Show / Hide Table of Contents

Class ClimateSim

Inheritance
System.Object
ClimateSim
Namespace: Eco.Simulation
Assembly: Eco.Simulation.dll
Syntax
public class ClimateSim : Object

Constructors

ClimateSim()

Declaration
public ClimateSim()

Fields

TimeSpentTicking

Declaration
public double TimeSpentTicking
Field Value
Type Description
System.Double

Properties

AirPollution

Accumulates air pollution in tons.

Declaration
public AccumulatingPuller AirPollution { get; }
Property Value
Type Description
AccumulatingPuller

GroundPollution

Declaration
public WorldLayer GroundPollution { get; }
Property Value
Type Description
WorldLayer

State

Declaration
public ClimateState State { get; set; }
Property Value
Type Description
ClimateState

Temperature

Declaration
public WorldLayer Temperature { get; }
Property Value
Type Description
WorldLayer

Methods

AddAirPollutionTons(WrappedPosition3i, Single)

Adds tons of air pollution at pos.

Declaration
public void AddAirPollutionTons(WrappedPosition3i pos, float tons)
Parameters
Type Name Description
WrappedPosition3i pos
System.Single tons

AddGroundPollution(Vector2i, Single)

Declaration
public void AddGroundPollution(Vector2i pos, float newPollution)
Parameters
Type Name Description
Vector2i pos
System.Single newPollution

ApplySettings(ClimateState)

Declaration
public void ApplySettings(ClimateState settings)
Parameters
Type Name Description
ClimateState settings

Inititalize()

Declaration
public void Inititalize()

Pull()

Pulls data at beginning of tick for more precise results.

Declaration
public void Pull()

SetSeaLevel(Single)

Declaration
public void SetSeaLevel(float newLevel)
Parameters
Type Name Description
System.Single newLevel

Tick()

Declaration
public void Tick()

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String

Events

ClimateStateChanged

Can subscribe to this event for climate state updates.

Declaration
public event Action ClimateStateChanged
Event Type
Type Description
System.Action
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾