public static Request CreateRequest(Entity entity, EntityId?entityId = null, uint?timeoutMillis = null, Object context = null) { return(new Request { Entity = entity, EntityId = entityId, TimeoutMillis = timeoutMillis, Context = context, RequestId = CommandRequestIdGenerator.GetNext(), }); }
internal EntityQuerySnapshot(Entity entitySnapshot, World world) { components = new Dictionary <uint, ISpatialComponentSnapshot>(); var componentDataHandler = new ComponentDataHandler { EntitySnapshot = entitySnapshot, World = world, Components = components, }; foreach (var componentId in entitySnapshot.GetComponentIds()) { DynamicSnapshot.ForSnapshotComponent(componentId, componentDataHandler); } }