Interface IWorldStateSystem
Inherited Members
Namespace: Ride.WorldState
Assembly: cs.temp.dll.dll
Syntax
public interface IWorldStateSystem : IRideSystem, IApiInject, IIdentity
Properties
Name | Description |
---|---|
worldState | The data that IWorldStateSystem modifies |
Methods
Name | Description |
---|---|
AddListener<T>(WorldEvent, WorldSimulationEvent<T>) | Adds a callback to be triggered when the given world event is dispatched |
AddListener<T>(String, WorldSimulationEvent<T>) | Adds a callback to be triggered when the given world event is dispatched |
ClearListeners() | Removes all listeners from all world events |
ClearWorldEvents() | Removes all past world events from the cache |
DispatchEvent<T>(WorldEvent, T) | Dispatches an event and invokes all listeners associated with the given event and the given type of data received in the callback |
DispatchEvent<T>(String, T) | Dispatches an event and invokes all listeners associated with the given event and the given type of data received in the callback |
GetLocalTime() | Get the local real world time of the computer running the simulation |
GetTimeOfDay() | the time of the simulation at the moment it is called which is the SetTimeOfDay + the unity time.tim * time increment |
GetWorldEvents() | returns all of the events that have occurred so far |
HasWorldEventOccurred(WorldEvent) | Checks whether the WorldEvent has ever happened |
RemoveListener<T>(WorldEvent, WorldSimulationEvent<T>) | Removes a callback from being triggered when the given world event is dispatched |
RemoveListener<T>(String, WorldSimulationEvent<T>) | Removes a callback from being triggered when the given world event is dispatched |
SetTimeIncrement(Single) | sets the time increment which is the multiple of the Unity Time.time which is game time so if timeIncrement is 1 then 1 unity second = 1 simulation second and if timeIncrement is 10 then 1 unity second = 10 simulation seconds |
SetTimeOfDay(DateTime) | Sets the date time for the simulation to keep track of time |