Add Entity<>.IsEnabled

main
copygirl 2 years ago
parent c575046a61
commit 1dca1e7988
  1. 1
      src/gaemstone.ECS/Entity.cs

@ -77,6 +77,7 @@ public unsafe readonly partial struct Entity<TContext>
=> Add(FlecsBuiltIn.ChildOf, parent);
public bool IsDisabled => Has(FlecsBuiltIn.Disabled);
public bool IsEnabled => !Has(FlecsBuiltIn.Disabled);
public Entity<TContext> Disable() => Add(FlecsBuiltIn.Disabled);
public Entity<TContext> Enable() => Remove(FlecsBuiltIn.Disabled);

Loading…
Cancel
Save