Class SunSettingsUserToolState
Inheritance
SunSettingsUserToolState
Assembly: fwt.hexterrains.dll
public class SunSettingsUserToolState : BrushUserToolState<SunTerrainLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, SunTerrainLayer>, ISmState
Constructors
Declaration
public SunSettingsUserToolState(ISmState parent)
Parameters
Properties
Declaration
public float CoolingIntensity { get; set; }
Property Value
Declaration
public float CurveFactor { get; set; }
Property Value
Declaration
public float CurveOutputValueOffset { get; set; }
Property Value
Declaration
public float CurveOutputValueScale { get; set; }
Property Value
Declaration
public float DayLength { get; set; }
Property Value
Declaration
public float DayProgress { get; set; }
Property Value
Declaration
public float HeatingIntensity { get; set; }
Property Value
Declaration
public bool IsCurveInverted { get; set; }
Property Value
Declaration
public bool IsEnabled { get; set; }
Property Value
Declaration
public float MaxCurveValue { get; set; }
Property Value
Declaration
public float MinCurveValue { get; set; }
Property Value
Declaration
public float PlanetAngle { get; set; }
Property Value
Declaration
public SunDirection SunDirection { get; set; }
Property Value
Declaration
public float SunRadius { get; set; }
Property Value
Declaration
public SunType SunType { get; set; }
Property Value
If IsGetLayerByIndex is true, this index is used to get terrain layer from terrain layers list."/>
Declaration
public override int TerrainLayerIndex { get; set; }
Property Value
Overrides
Type identifier for the user tool. Allows state machine to change states based on tool type instead of state index.
Declaration
public override int UserToolType { get; }
Property Value
Overrides
Declaration
public int YearLengthInDays { get; set; }
Property Value
Declaration
public float YearProgress { get; set; }
Property Value
Methods
Applies brush to the brushView. Returns true if changes were applied
Declaration
public override bool ApplyBrush(int brushMode, int2 cellCoord, int cellIndex, SunTerrainLayerGroup brushTarget, int mouseButton)
Parameters
Returns
Overrides
Declaration
protected virtual void ExtractDataFromTerrain()
Initializes the default settings for the current instance. This method is intended to be overridden in
derived classes to configure initial values or options as needed.
Declaration
protected override void InitDefaultSettings()
Overrides
Loads configuration settings for the current instance. Derived classes override this method to implement
custom settings initialization.
Declaration
protected override void LoadSettings()
Overrides
Declaration
protected virtual void OnCoolingIntensityChanged()
Declaration
protected virtual void OnCurveFactorChanged()
Declaration
protected virtual void OnCurveOutputValueOffsetChanged()
Declaration
protected virtual void OnCurveOutputValueScaleChanged()
Declaration
protected virtual void OnDayLengthChanged()
Declaration
protected virtual void OnDayProgressChanged()
Declaration
protected virtual void OnEnableSunChanged()
Declaration
protected virtual void OnHeatingIntensityChanged()
Declaration
protected virtual void OnInvertCurveChanged()
Declaration
protected virtual void OnMaxCurveValueChanged()
Declaration
protected virtual void OnMinCurveValueChanged()
Declaration
protected virtual void OnPlanetAngleChanged()
Declaration
protected virtual void OnSunDirectionChanged()
Declaration
protected virtual void OnSunRadiusChanged()
Declaration
protected virtual void OnSunTypeChanged()
Invoked when the terrain layer changes to update the view mode accordingly.
Declaration
protected override void OnTerrainLayerChanged()
Overrides
Declaration
protected virtual void OnYearLengthChanged()
Declaration
protected virtual void OnYearProgressChanged()
Performs any necessary initialization or setup required before executing the main operation.
Called by state machine once when state becomes active.
If state is disabled and then enabled again, this method will be called again.
Declaration
public override void PrepareToRun()
Overrides
Performs any necessary actions to prepare the object for stopping or shutdown.
Called when the state is about to be deactivated.
Declaration
public override void PrepareToStop()
Overrides
Declaration
protected virtual void SaveDataToTerrain()
Implements
Extension Methods