public void MovedTo(ref UECSEntityComponent entityComponent, ExclusiveGroupStruct previousGroup, EGID egid) { _ECB.SetSharedComponent(entityComponent.uecsEntity, new UECSSveltoGroupID(egid.groupID)); }
public void Add(ref UECSEntityComponent entityComponent, EGID egid) { }
public void Remove(ref UECSEntityComponent entityComponent, EGID egid) { _ECB.DestroyEntity(entityComponent.uecsEntity); }
public EntityStructInitializer BuildEntity <T>(EGID egid, T entityDescriptor, object[] implementors) where T : IEntityDescriptor { return(_weakEngine.Target.BuildEntity(egid, entityDescriptor, implementors)); }
public void Step(EGID id) { _numberOfEnemyToSpawn++; }
void StopMovementOnDeath(EGID ID) { int count; var playerEntityView = entitiesDB.QueryEntities<PlayerEntityView>(out count)[0]; playerEntityView.rigidBodyComponent.isKinematic = true; }
public bool TryQueryEntityView <T>(EGID entityegid, out T entityView) where T : class, IEntityStruct { return(TryQueryEntityViewInGroupInternal(entityegid, out entityView)); }
public void MovedTo(ref TestEntityComponent entityComponent, ExclusiveGroupStruct previousGroup, EGID egid) { movedCount++; }
public EnemyCollisionData(EGID otherEntityID, bool collides) { this.otherEntityID = otherEntityID; this.collides = collides; }
public void Add(ref TestEntityComponent entityComponent, EGID egid) { addedCount++; }
public void Remove(ref TestEntityComponent entityComponent, EGID egid) { removedCount++; }
public NativeEntityInitializer BuildEntity(EGID egid, int threadIndex) { return(BuildEntity(egid.entityID, egid.groupID, threadIndex)); }
public static FasterDictionary <RefWrapper <Type>, ITypeSafeDictionary> BuildGroupedEntities(EGID egid, EnginesRoot.DoubleBufferedEntitiesToAdd groupEntitiesToAdd, IComponentBuilder[] componentsToBuild, IEnumerable <object> implementors) { var group = FetchEntityGroup(egid.groupID, groupEntitiesToAdd); BuildEntitiesAndAddToGroup(egid, group, componentsToBuild, implementors); return(group); }
public static void SetEGIDImpl <U>(ref U target, EGID egid) where U : struct, INeedEGID { target.ID = egid; }