Class ClientCarriedLightSettings
The torch or lantern the player's own character carries (CarriedLight): which one, remembered between sessions, and stepped by the carried-light key (Off, Torch, Lantern).
public static class ClientCarriedLightSettings
- Inheritance
-
ClientCarriedLightSettings
- Inherited Members
Remarks
Kept in the settings store rather than on the character because it is how this player likes to see, not something the character owns: the same choice comes back on every character and every login, as the look sensitivity does.
Seen by this client alone. Nothing replicated says what a character carries: CharacterFlags are the server's to set, and the movement replicate's flags are input the simulation reads. A light is neither, so other players do not see it, rather than borrowing a channel meant for something else.
Properties
Mode
What the player last chose to carry; nothing on a fresh install.
public static CarriedLightMode Mode { get; }
Property Value
Methods
Begin(ICharacter)
Hangs the saved choice on the local character as it enters the world.
public static void Begin(ICharacter character)
Parameters
characterICharacter
Cycle()
Steps to the next mode, shows it at once, and remembers it.
public static void Cycle()
End()
Forgets the local character as it leaves; its light goes with its object.
public static void End()
SetMode(CarriedLightMode)
Carries mode and remembers it.
public static void SetMode(CarriedLightMode mode)
Parameters
modeCarriedLightMode