DarknessReaderMethod
An abstract class in Root.Township, the global namespace.
Base for a way of measuring how dark it is around the local player, which can ask for darkness creatures to spawn. Only runs for the local player on a client.
- Listed in Global namespace: C to D
- Derived types
ComputeShaderDarknessReader,PlatformLightDarknessReader
Constructors
| Member | What it is |
|---|---|
DarknessReaderMethod(DarknessReader reader, PlayerController character, Action requestSpawn) | Creates a DarknessReaderMethod from reader, character and requestSpawn. |
Fields
| Member | What it is |
|---|---|
protected readonly PlayerController character | The player being measured around. |
protected static Logger logger | Shared logger. |
protected readonly DarknessReader reader | The darkness reader that owns this method. |
protected readonly Action requestSpawn | Call to ask for a darkness spawn. |
protected readonly DarknessSpawnerSettings settings | DarknessSpawnerSettings.Instance. |
Properties
| Member | What it is |
|---|---|
bool IsEnabled { get; private set; } | Whether the method is running. |
Methods
Used in
Members of other types that take, return or hold a DarknessReaderMethod: