RespawnSystemSettings
A class in Root.Township, ATT.Respawn.
Global settings for respawn shrines: per-shrine data by GUID, tick rates, beacon sizes, subscriber marks, glyph colours and sounds. Get it with RespawnSystemSettings.Instance.
- Listed in ATT, Features and other game namespaces
- Inherits or implements
GlobalSettings<RespawnSystemSettings>,IRespawnSystemSettings, IEnumerable<IRespawnShrineSettings>,IEnumerable - Derived types
RespawnSystemSettings - Attributes
DefaultMember,GlobalSettings
Constructors
| Member | What it is |
|---|---|
RespawnSystemSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
15 private and internal fields
| Member | What it is |
|---|---|
private Color activeGlyphColor | Glyph colour when the player is subscribed to the shrine. |
private float fuelConsumptionTickRateInSeconds | How often shrine fuel is burned down. |
private Color inactiveGlyphColor | Glyph colour when the player isn't subscribed. |
private bool isUpdatingMarksOnPlayerJoinAndLeave | Whether subscriber marks refresh when players join or leave. |
private PooledObjectDefinition localPlayerSubscriberMark | Pooled mark shown for the local player on a shrine. |
private static readonly Logger logger | Class logger. |
private float maximumBeaconRadius | Largest beacon radius. |
private float minimumBeaconRadius | Smallest beacon radius. |
private float minimumBeaconScreenWidth | Smallest on-screen width a beacon is drawn at. |
private float modelUpdateTickRateInSeconds | How often the respawn model is checked for changes to sync. |
private PooledObjectDefinition remotePlayerSubscriberMark | Pooled mark shown for other players on a shrine. |
private List<RespawnShrineData> respawnShrineSettings | Data for every respawn shrine, including the global one. |
private SoundEffectSet shrineDeactivationSfx | Sound for a shrine running out or being turned off. |
private SoundEffectSet shrineSubscribeSfx | Sound played when a player subscribes to a shrine. |
private float subscriberMarkDistanceFromCentre | How far subscriber marks sit from the shrine centre. |
Properties
| Member | What it is |
|---|---|
Color ActiveGlyphColor { get; } | Glyph colour on an active shrine. |
float FuelConsumptionTickRateInSeconds { get; } | How often shrine fuel is consumed, in seconds. |
Color InactiveGlyphColor { get; } | Glyph colour on an inactive shrine. |
bool IsUpdatingMarksOnPlayerJoinAndLeave { get; } | Whether subscriber marks are refreshed when players join or leave. |
IRespawnShrineSettings this[Guid shrineId] { get; } | Indexer: the settings for the shrine with this GUID. Throws if there's none. |
PooledObjectDefinition LocalPlayerSubscriberMarkPrefab { get; } | Pooled mark shown on a shrine for the local player's subscription. |
float MaxBeaconRadius { get; } | Largest radius of a shrine's beacon. |
float MinBeaconRadius { get; } | Smallest radius of a shrine's beacon. |
float MinBeaconScreenWidth { get; } | Smallest width a beacon may take on screen. |
float ModelUpdateTickRateInSeconds { get; } | How often shrine models update, in seconds. |
PooledObjectDefinition RemotePlayerSubscriberMarkPrefab { get; } | Pooled mark shown on a shrine for other players' subscriptions. |
SoundEffectSet ShrineDeactivationSfx { get; } | Sound played when a shrine deactivates. |
SoundEffectSet ShrineSubscribeSfx { get; } | Sound played when a player subscribes to a shrine. |
float SubscriberMarkDistanceFromCentre { get; } | How far from the shrine's centre subscriber marks are placed. |
Methods
| Member | What it is |
|---|---|
IEnumerator<IRespawnShrineSettings> GetEnumerator() | Goes through every shrine's settings. |
IRespawnShrineSettings GetShrineSettings(Guid shrineId) | The settings for the shrine with this GUID. Throws if there's none. |