diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2019-08-07 18:29:40 -0700 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2019-08-07 18:34:52 -0700 |
commit | 50fd2deede92bcc7d0c502731092da89aa2c1e41 (patch) | |
tree | 9400cdfbd17d49d17fc0bf1f1676066fb7b7cef9 /modules/mono/glue/Managed/Files/AABB.cs | |
parent | 05be97a607105dbd8fb93bc90d5fc3dd3eaf94a2 (diff) |
[Mono] Make all structs seralizable
Diffstat (limited to 'modules/mono/glue/Managed/Files/AABB.cs')
-rw-r--r-- | modules/mono/glue/Managed/Files/AABB.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/mono/glue/Managed/Files/AABB.cs b/modules/mono/glue/Managed/Files/AABB.cs index a2ebbc0736..98a73382f4 100644 --- a/modules/mono/glue/Managed/Files/AABB.cs +++ b/modules/mono/glue/Managed/Files/AABB.cs @@ -5,6 +5,7 @@ // file: core/variant_call.cpp // commit: 5ad9be4c24e9d7dc5672fdc42cea896622fe5685 using System; +using System.Runtime.InteropServices; #if REAL_T_IS_DOUBLE using real_t = System.Double; #else @@ -13,6 +14,8 @@ using real_t = System.Single; namespace Godot { + [Serializable] + [StructLayout(LayoutKind.Sequential)] public struct AABB : IEquatable<AABB> { private Vector3 _position; |