|
|
@ -2,7 +2,6 @@ using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Generic; |
|
|
|
using gaemstone.Utility; |
|
|
|
using gaemstone.Utility; |
|
|
|
using static flecs_hub.flecs; |
|
|
|
using static flecs_hub.flecs; |
|
|
|
using static flecs_hub.flecs.Runtime; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace gaemstone.ECS; |
|
|
|
namespace gaemstone.ECS; |
|
|
|
|
|
|
|
|
|
|
@ -79,7 +78,6 @@ public class EntityBuilder |
|
|
|
public override EntityBuilder Set<T>(T obj) |
|
|
|
public override EntityBuilder Set<T>(T obj) |
|
|
|
{ _toSet.Add(e => e.Set(obj)); return this; } |
|
|
|
{ _toSet.Add(e => e.Set(obj)); return this; } |
|
|
|
|
|
|
|
|
|
|
|
public static CString ETX { get; } = (CString)"\x3"; |
|
|
|
|
|
|
|
public unsafe EntityRef Build() |
|
|
|
public unsafe EntityRef Build() |
|
|
|
{ |
|
|
|
{ |
|
|
|
var parent = _parent; |
|
|
|
var parent = _parent; |
|
|
@ -98,7 +96,7 @@ public class EntityBuilder |
|
|
|
symbol = alloc.AllocateCString(_symbol), |
|
|
|
symbol = alloc.AllocateCString(_symbol), |
|
|
|
add_expr = alloc.AllocateCString(Expression), |
|
|
|
add_expr = alloc.AllocateCString(Expression), |
|
|
|
use_low_id = UseLowID, |
|
|
|
use_low_id = UseLowID, |
|
|
|
sep = ETX, // TODO: Replace with CStringExtensions.Empty once supported. |
|
|
|
sep = CStringExtensions.ETX, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var add = desc.add; var index = 0; |
|
|
|
var add = desc.add; var index = 0; |
|
|
|