diff --git a/src/gaemstone.ECS/EntityBuilder.cs b/src/gaemstone.ECS/EntityBuilder.cs index 750c52a..cbc98d2 100644 --- a/src/gaemstone.ECS/EntityBuilder.cs +++ b/src/gaemstone.ECS/EntityBuilder.cs @@ -109,11 +109,11 @@ public class EntityBuilder using var alloc = TempAllocator.Use(); var desc = new ecs_entity_desc_t { id = Id, - name = (Path != null) ? alloc.AllocateCString(Path.Name.AsSpan()) : default, - symbol = alloc.AllocateCString(_symbol), - add_expr = alloc.AllocateCString(Expression), + _name = (Path != null) ? alloc.AllocateCString(Path.Name.AsSpan()) : default, + _symbol = alloc.AllocateCString(_symbol), + _add_expr = alloc.AllocateCString(Expression), use_low_id = UseLowId, - sep = CStringExtensions.ETX, + _sep = CStringExtensions.ETX, }; var add = desc.add; var index = 0; diff --git a/src/gaemstone.ECS/EntityPath.cs b/src/gaemstone.ECS/EntityPath.cs index 79b8f4e..e4f44bf 100644 --- a/src/gaemstone.ECS/EntityPath.cs +++ b/src/gaemstone.ECS/EntityPath.cs @@ -197,7 +197,7 @@ public class EntityPath foreach (var part in path) fixed (byte* ptr = part.AsSpan()) if (skipLookup || (parent = new(ecs_lookup_child(world, parent, ptr))).IsNone) { - var desc = new ecs_entity_desc_t { name = ptr, sep = CStringExtensions.ETX }; + var desc = new ecs_entity_desc_t { _name = ptr, _sep = CStringExtensions.ETX }; if (parent.IsSome) desc.add[0] = Id.Pair(FlecsBuiltIn.ChildOf, parent); parent = new(ecs_entity_init(world, &desc)); skipLookup = true; diff --git a/src/gaemstone.ECS/Filter.cs b/src/gaemstone.ECS/Filter.cs index 7e5f08a..ad5df8b 100644 --- a/src/gaemstone.ECS/Filter.cs +++ b/src/gaemstone.ECS/Filter.cs @@ -77,7 +77,7 @@ public class FilterDesc public unsafe ecs_filter_desc_t ToFlecs(IAllocator allocator) { var desc = new ecs_filter_desc_t { - expr = allocator.AllocateCString(Expression), + _expr = allocator.AllocateCString(Expression), instanced = Instanced, entity = Entity, }; diff --git a/src/gaemstone.ECS/Term.cs b/src/gaemstone.ECS/Term.cs index 5690cf4..d98d9ec 100644 --- a/src/gaemstone.ECS/Term.cs +++ b/src/gaemstone.ECS/Term.cs @@ -80,7 +80,7 @@ public class TermId public ecs_term_id_t ToFlecs(IAllocator allocator) => new() { id = Id, - name = allocator.AllocateCString(Name), + _name = allocator.AllocateCString(Name), trav = Traverse, flags = (ecs_flags32_t)(uint)Flags };