-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
using Friflo.Engine.ECS; | ||
using NUnit.Framework; | ||
// ReSharper disable InconsistentNaming | ||
namespace Tests.ECS.Github { | ||
// https://github.com/friflo/Friflo.Json.Fliox/issues/56 | ||
public struct CompA : IComponent | ||
{ | ||
public float2 goalLS; | ||
} | ||
public struct float2 | ||
{ | ||
public float3 xyz{get;set;} // Error CS0523 : Struct member 'float2.xyz' of type 'float3' causes a cycle in the struct layout | ||
}; | ||
public struct float3 | ||
{ | ||
public float2 xy{get;set;} // Error CS0523 : Struct member 'float3.xy' of type 'float2' causes a cycle in the struct layout | ||
}; | ||
public static class Test_GitHub_56 | ||
{ | ||
[Test] | ||
public static void Test_Serialize_enum_component_2() | ||
{ | ||
var store = new EntityStore(); | ||
Entity entity = store.CreateEntity(1); | ||
entity.AddComponent(new CompA { goalLS = new float2 { xyz = new float3 { }} }); | ||
} | ||
} | ||
} | ||
*/ |