示例#1
0
 public bool TryGetEntity(EntityId entityId, out Entity entity)
 {
     return(EntityIdToEntity.TryGetValue(entityId, out entity));
 }
示例#2
0
        public ReceivedMessagesSpan <T> GetRequests <T>(EntityId targetEntityId) where T : struct, IReceivedCommandRequest
        {
            var manager = (IDiffCommandRequestStorage <T>)worker.Diff.GetCommandDiffStorage(typeof(T));

            return(manager.GetRequests(targetEntityId));
        }
示例#3
0
 public bool HasEntity(EntityId entityId)
 {
     return(entities.Contains(entityId));
 }
示例#4
0
 /// <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));
 }
示例#5
0
 public void UpdateComponent <T>(EntityId entityId, in T update) where T : struct, ISpatialComponentUpdate