Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 line
434B

  1. namespace Svelto.ECS
  2. {
  3. public struct FilterContextID
  4. {
  5. public readonly ushort id;
  6. internal FilterContextID(ushort id)
  7. {
  8. DBC.ECS.Check.Require(id < ushort.MaxValue, "too many types registered, HOW :)");
  9. this.id = id;
  10. }
  11. public static FilterContextID GetNewContextID()
  12. {
  13. return EntitiesDB.SveltoFilters.GetNewContextID();
  14. }
  15. }
  16. }