public bool TryGetEntity(EntityId entityId, out Entity entity) { return(EntityIdToEntity.TryGetValue(entityId, out entity)); }
public ReceivedMessagesSpan <T> GetRequests <T>(EntityId targetEntityId) where T : struct, IReceivedCommandRequest { var manager = (IDiffCommandRequestStorage <T>)worker.Diff.GetCommandDiffStorage(typeof(T)); return(manager.GetRequests(targetEntityId)); }
public bool HasEntity(EntityId entityId) { return(entities.Contains(entityId)); }
/// <summary> /// Checks whether a SpatialOS entity is checked out on this worker. /// </summary> /// <param name="entityId">The SpatialOS entity ID to check for.</param> /// <returns>True, if the SpatialOS entity is checked out on this worker, false otherwise.</returns> public bool HasEntity(EntityId entityId) { return(EntityIdToEntity.ContainsKey(entityId)); }
public void UpdateComponent <T>(EntityId entityId, in T update) where T : struct, ISpatialComponentUpdate