A static class in Root.Township, the global namespace.
Client: static set of reasons rendering is held off, such as no player controller yet or a fade to black. Starts locked until the player controller spawns.
Fields
1 private and internal field
Properties
| Member | What it is |
|---|
static bool IsLocked { get; } | True while any lock reason is set. |
Events
| Member | What it is |
|---|
static event Action<bool> OnLockedChanged | Fired when the lock turns on or off. |
Methods
| Member | What it is |
|---|
static void Lock(RenderLock.RenderLockType renderingLock) | Adds a lock reason; fires OnLockedChanged with true if it was unlocked. |
static void Unlock(RenderLock.RenderLockType renderingLock) | Removes a lock reason; fires OnLockedChanged with false when none remain. |