Class WorldStateSystemMono
Base class for all Ride systems.
Inherited Members
Namespace: Ride.WorldState
Assembly: cs.temp.dll.dll
Syntax
public class WorldStateSystemMono : RideSystemMonoBehaviour, IWorldStateSystem, IRideSystem, IApiInject, IIdentity
Properties
Name | Description |
---|---|
worldState |
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() | |
GetTimeOfDay() | Time.time is the unity elapsed time in seconds * the multiplier in case one unity simulation second should be more then add that to the time the simulation started and we have our current TimeOdDay |
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 |
SystemAwake() | |
SystemShutdown() |