Update to newest flecs-cs

wip/no-type-lookup
copygirl 2 years ago
parent f7d17d46ab
commit 42f843e690
  1. 2
      src/flecs-cs
  2. 2
      src/gaemstone.ECS/Id.cs
  3. 2
      src/gaemstone.ECS/Internal/FlecsBuiltIn.cs
  4. 10
      src/gaemstone.ECS/Iterator.cs
  5. 6
      src/gaemstone.ECS/Term.cs

@ -1 +1 @@
Subproject commit a2047983917aa462a8c2f34d5315aea48502f4d8
Subproject commit fcce5620d21fcd14c79d73a4406db8ce85f53dad

@ -15,7 +15,7 @@ public unsafe struct Id<TContext>
public bool IsWildcard => Value.IsWildcard;
public bool IsValid => ecs_id_is_valid(World, this);
public bool IsTag => ecs_id_is_tag(World, this).Data != default;
public bool IsTag => ecs_id_is_tag(World, this);
public bool IsInUse => ecs_id_in_use(World, this);
public int Count => ecs_count_id(World, this);

@ -7,5 +7,5 @@ public static class FlecsBuiltIn
public static Entity ChildOf { get; } = new(pinvoke_EcsChildOf());
// FIXME: Hopefully flecs-cs will expose this one day.
public static Entity Disabled { get; } = new(new() { Data = ECS_HI_COMPONENT_ID + 7 });
public static Entity Disabled { get; } = new(new() { Data = FLECS_HI_COMPONENT_ID + 7 });
}

@ -50,8 +50,8 @@ public enum IteratorFlags : uint
{
/// <summary> Does iterator contain valid result. </summary>
IsValid = EcsIterIsValid,
/// <summary> Is iterator filter (metadata only). </summary>
IsFilter = EcsIterIsFilter,
/// <summary> Does iterator provide (component). </summary>
NoData = EcsIterNoData,
/// <summary> Is iterator instanced. </summary>
IsInstanced = EcsIterIsInstanced,
/// <summary> Does result have shared terms. </summary>
@ -64,8 +64,12 @@ public enum IteratorFlags : uint
NoResults = EcsIterNoResults,
/// <summary> Only evaluate non-this terms. </summary>
IgnoreThis = EcsIterIgnoreThis,
/// <summary> Does iterator have conditionally set fields. </summary>
MatchVar = EcsIterMatchVar,
/// <summary> </summary>
HasCondSet = EcsIterHasCondSet,
/// <summary> Profile iterator performance. </summary>
Profile = EcsIterProfile,
}
public class Variable

@ -95,6 +95,8 @@ public enum TermTraversalFlags : uint
Up = EcsUp,
/// <summary> Match by traversing downwards (derived, cannot be set). </summary>
Down = EcsDown,
/// <summary> Match all entities encountered through traversal. </summary>
TraverseAll = EcsTraverseAll,
/// <summary> Sort results breadth first. </summary>
Cascade = EcsCascade,
/// <summary> Short for up(ChildOf). </summary>
@ -103,6 +105,8 @@ public enum TermTraversalFlags : uint
IsVariable = EcsIsVariable,
/// <summary> Term id is an entity. </summary>
IsEntity = EcsIsEntity,
/// <summary> Prevent observer from triggering on term. </summary>
/// <summary> Term id is a name (don't attempt to lookup as entity). </summary>
IsName = EcsIsName,
/// <summary> revent observer from triggering on term. </summary>
Filter = EcsFilter,
}

Loading…
Cancel
Save