Ejemplo n.º 1
0
        public bool Has <T>(EcsId.Entity entity)
        {
            var id   = Lookup <T>();
            var type = Entities.GetRecord(entity).Type;

            return(type.Contains(id));
        }
Ejemplo n.º 2
0
 public Prototype(EcsId.Entity value) => Value = value;
Ejemplo n.º 3
0
 public bool TryGet <T>(EcsId.Entity entity, [NotNullWhen(true)] out T?value)
 {
     var     id     = Lookup <T>();
     ref var record = ref Entities.GetRecord(entity);