-
Notifications
You must be signed in to change notification settings - Fork 0
2. API documentation
This document describes accessible API methods, functions, and interfaces provided by the library for time manipulation in Rain World.
Description:
Toggles the current time state. Freezes time if currently unfrozen, unfreezes if frozen.
Internals:
Calls FreezeTime() or UnfreezeTime() as appropriate.
Description:
Freezes time if currently unfrozen.
Behavior:
No operation if time is already frozen.
Description:
Unfreezes time if currently frozen.
Behavior:
No operation if time is already unfrozen.
Returns:
true if time is currently frozen, false otherwise.
Description:
Adds a type to the time-stop immune classes list.
Logging:
Records calling assembly and added type to:
Rain World/RainWorld_Data/StreamingAssets/timeStopImmuneListLog.txt
Description:
Removes a type from the time-stop immune classes list.
Logging:
Records calling assembly and removed type to:
Rain World/RainWorld_Data/StreamingAssets/timeStopImmuneListLog.txt
Description:
Allows some decorative graphics (mainly camera controlled effects) and sound controllers to get updates during Time Stop State.
Description:
Prevents some decorative graphics (mainly camera controlled effects) and sound controllers from getting updates during Time Stop State.
Description:
Returns whenever or not decorative graphics and sound controllers updates are allowed during Time Stop State.
Description:
Toggles time-stop immunity for the object. Grants immunity if absent, revokes if present.
Description:
Grants time-stop immunity to the object.
Description:
Revokes time-stop immunity from the object.
Returns:
true if object has active time-stop immunity, false otherwise.
Returns:
true if the object's type is in the global immune classes list, false otherwise.
Behavior:
When implemented by an UpdatableAndDeletable-based object:
- Object continues updating during time freeze even if it's IsTimeStopImmune() and IsThisTypeImmune() return false
Usage Example:
public class MyCustomObject : UpdatableAndDeletable, IAmImmuneToTimeStop
{
// Will update even during time freeze
public override void Update(bool eu)
{
base.Update(eu);
// Custom logic here
}
}