REDNODE / GAME API

TimeSystem

classnative name gameTimeSystemnative

extends gameITimeSystem › IReplicatedGameSystem › IGameSystem › IScriptable › ISerializable

Methods 22

native func GetActiveTimeDilation(opt reason: CName, opt ignoreCurves: Bool) -> Float
native func GetGameTime() -> GameTime
native func GetGameTimeStamp() -> Float
native func GetSimTime() -> EngineTime
native func IsPausedState() -> Bool
native func IsTimeDilationActive(opt reason: CName) -> Bool
native func RealTimeSecondsToGameTime(seconds: Float) -> GameTime
native func RegisterDelayedListener(entity: wref<Entity>, eventToDelay: ref<Event>, delay: GameTime, repeat: Int32, opt sendOldNoifications: Bool) -> Uint32
native func RegisterIntervalListener(entity: wref<Entity>, eventToDelay: ref<Event>, expectedHour: GameTime, timeout: GameTime, opt repeat: Int32) -> Uint32
native func RegisterListener(entity: wref<Entity>, eventToDelay: ref<Event>, expectedTime: GameTime, repeat: Int32, opt sendOldNoifications: Bool) -> Uint32
native func RegisterScriptableSystemIntervalListener(systemName: CName, requestToDelay: ref<ScriptableSystemRequest>, expectedHour: GameTime, timeout: GameTime, opt repeat: Int32) -> Uint32
native func RestorePreviousIgnoreTimeDilationOnLocalPlayerZero()
native func SetGameTime()
native func SetGameTimeByHMS(hours: Int32, minutes: Int32, seconds: Int32, opt reason: CName)
native func SetGameTimeBySeconds(seconds: Int32)
native func SetIgnoreTimeDilationOnLocalPlayerZero(ignore: Bool)
native func SetPausedState(paused: Bool, source: CName)
native func SetTimeDilation(reason: CName, dilation: Float, opt duration: Float, opt easeInCurve: CName, opt easeOutCurve: CName, opt listener: ref<TimeDilationListener>)
native func SetTimeDilationOnLocalPlayerZero(reason: CName, dilation: Float, opt duration: Float, opt easeInCurve: CName, opt easeOutCurve: CName)
native func UnregisterListener(listenerID: Uint32)
native func UnsetTimeDilation(reason: CName, opt easeOutCurve: CName)
native func UnsetTimeDilationOnLocalPlayerZero(reason: CName, opt easeOutCurve: CName)