A class in Root.Township, the global namespace.
One controller input mode (for example a held item's mode) with action mappings per player mode (Oculus, OpenVR, fly cam, auto cam) plus a shared all-platform mapping.
Constructors
Fields
5 private and internal fields
| Member | What it is |
|---|
private PlatformActionMapping allPlatformsActionMapping | Mapping shared by every platform; each platform mapping links back to it. |
private string modeName | Display name of the mode. Exposed as ModeName. |
private Dictionary<PlayerMode, PlatformActionMapping> platformActionMappings | Lazy lookup of mappings by player mode, behind PlatformActionMappings. |
private List<PlatformActionMapping> platformActionMappingsList | Serialized per-platform mappings for Oculus, OpenVR, Fly and AutoCam. |
private ControllerModeType type | The controller mode this is. Exposed as Type. |
Properties
Methods
| Member | What it is |
|---|
PlatformActionMapping GetMapping(PlayerMode platform) | The mapping for a player mode, or null. |
void SetupPlatformActionMappingsList() | Links each platform mapping to this mode and to the all-platform mapping. |
1 private and internal method
| Member | What it is |
|---|
private void InitializeDictionary() | Builds platformActionMappings from the serialized list on first access. |
Used in
Members of other types that take, return or hold a ControllerActionMode: