Show / Hide Table of Contents

Class ExhaustionConfig

Settings for storing server exhaustion configs

Inheritance
System.Object
ExhaustionConfig
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
Namespace: Eco.Gameplay.Systems.Exhaustion
Assembly: Eco.Gameplay.dll
Syntax
public class ExhaustionConfig : Singleton<ExhaustionConfig>, IController, IViewController, IHasUniversalID, INotifyPropertyChanged

Constructors

ExhaustionConfig()

Declaration
public ExhaustionConfig()

Properties

AllowExhaustionPauseOnRest

Declaration
[PropertyExplanation]
[SavingCategory]
public bool AllowExhaustionPauseOnRest { get; set; }
Property Value
Type Description
System.Boolean

AllowPlaytimeSaving

Declaration
[PropertyExplanation]
[SavingCategory]
public bool AllowPlaytimeSaving { get; set; }
Property Value
Type Description
System.Boolean

BonusHoursOnExhaustionEnabled

Declaration
[PropertyExplanation]
[SavingCategory]
public float BonusHoursOnExhaustionEnabled { get; set; }
Property Value
Type Description
System.Single

BonusRetroactiveHoursAfterStart

Declaration
[PropertyExplanation]
[SavingCategory]
public bool BonusRetroactiveHoursAfterStart { get; set; }
Property Value
Type Description
System.Boolean

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

CurrentRefresh

Shortcut date time when next hours gain refresh happens. Not meant to be seen in editor

Declaration
public DateTime CurrentRefresh { get; }
Property Value
Type Description
System.DateTime

DailyGainHoursToday

Shortcut for daily hours gain for today. Not meant to be seen in editor

Declaration
public float DailyGainHoursToday { get; }
Property Value
Type Description
System.Single

FridayExhaustionRefreshHours

Declaration
[DayCategory]
public float FridayExhaustionRefreshHours { get; set; }
Property Value
Type Description
System.Single

HoursGainPerWeekday

Shortcut for each week day hour. Not meant to be displayed in editor

Declaration
public Dictionary<int, float> HoursGainPerWeekday { get; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.Int32, System.Single>

LocalRefresh

Declaration
[PropertyExplanation]
[TimeCategory]
public string LocalRefresh { get; }
Property Value
Type Description
System.String

LocalTime

Declaration
public DateTime LocalTime { get; }
Property Value
Type Description
System.DateTime

LocalTimeNow

Declaration
[PropertyExplanation]
[TimeCategory]
public string LocalTimeNow { get; }
Property Value
Type Description
System.String

MaxSavedHours

Declaration
[PropertyExplanation]
[SavingCategory]
public float MaxSavedHours { get; set; }
Property Value
Type Description
System.Single

MondayExhaustionRefreshHours

Declaration
[DayCategory]
public float MondayExhaustionRefreshHours { get; set; }
Property Value
Type Description
System.Single

OnOffInstruction

Declaration
[TimeCategory]
public string OnOffInstruction { get; }
Property Value
Type Description
System.String

RefreshHoursGain

Declaration
[PropertyExplanation]
[TimeCategory]
public string RefreshHoursGain { get; }
Property Value
Type Description
System.String

RefreshLocalHours

Declaration
[TimeCategory]
public float RefreshLocalHours { get; set; }
Property Value
Type Description
System.Single

RefreshLocalMinutes

Declaration
[TimeCategory]
public float RefreshLocalMinutes { get; set; }
Property Value
Type Description
System.Single

SaturdayExhaustionRefreshHours

Declaration
[DayCategory]
public float SaturdayExhaustionRefreshHours { get; set; }
Property Value
Type Description
System.Single

SundayExhaustionRefreshHours

Declaration
[DayCategory]
public float SundayExhaustionRefreshHours { get; set; }
Property Value
Type Description
System.Single

ThursdayExhaustionRefreshHours

Declaration
[DayCategory]
public float ThursdayExhaustionRefreshHours { get; set; }
Property Value
Type Description
System.Single

TimeUntilRefresh

Shortcut for time in seconds until next hours gain refresh happens. Not meant to be seen in editor

Declaration
public double TimeUntilRefresh { get; }
Property Value
Type Description
System.Double

TimeUntilRefreshDesc

Declaration
[PropertyExplanation]
[TimeCategory]
public string TimeUntilRefreshDesc { get; }
Property Value
Type Description
System.String

TuesdayExhaustionRefreshHours

Declaration
[DayCategory]
public float TuesdayExhaustionRefreshHours { get; set; }
Property Value
Type Description
System.Single

UTCNow

Declaration
[PropertyExplanation]
[TimeCategory]
public string UTCNow { get; }
Property Value
Type Description
System.String

UTCRefresh

Declaration
[PropertyExplanation]
[TimeCategory]
public string UTCRefresh { get; }
Property Value
Type Description
System.String

UtcTime

Declaration
public DateTime UtcTime { get; }
Property Value
Type Description
System.DateTime

Vehicles

Declaration
[VehicleCategory]
public List<VehicleExhaustionConfig> Vehicles { get; set; }
Property Value
Type Description
System.Collections.Generic.List<VehicleExhaustionConfig>

WednesdayExhaustionRefreshHours

Declaration
[DayCategory]
public float WednesdayExhaustionRefreshHours { get; set; }
Property Value
Type Description
System.Single

Methods

HoursGainPerDayFromWeek(DayOfWeek)

Daily hours gain from refresh at each week day

Declaration
public static float HoursGainPerDayFromWeek(DayOfWeek day)
Parameters
Type Name Description
System.DayOfWeek day
Returns
Type Description
System.Single

Initialize()

Declaration
public void Initialize()

IsExhaustable(PhysicsWorldObject)

Declaration
public bool IsExhaustable(PhysicsWorldObject wo)
Parameters
Type Name Description
PhysicsWorldObject wo
Returns
Type Description
System.Boolean

MaxTotalHoursOfDay(DayOfWeek)

Shortcut for max hours player can have today. Not meant to be seen in editor

Declaration
public float MaxTotalHoursOfDay(DayOfWeek day)
Parameters
Type Name Description
System.DayOfWeek day
Returns
Type Description
System.Single

SecondsGainPerDayFromWeek(DayOfWeek)

Declaration
public static double SecondsGainPerDayFromWeek(DayOfWeek day)
Parameters
Type Name Description
System.DayOfWeek day
Returns
Type Description
System.Double

SetHoursForAllDays(Single)

Declaration
public void SetHoursForAllDays(float val)
Parameters
Type Name Description
System.Single val

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾