Elin Modding Docs Doc
Loading...
Searching...
No Matches
Weather Class Reference
Inheritance diagram for Weather:
EClass

Classes

class  Forecast
 
class  WeatherForecast
 

Public Types

enum  Condition {
  Fine , Cloudy , Rain , RainHeavy ,
  Snow , SnowHeavy , Ether , Blossom ,
  None
}
 

Public Member Functions

string GetName ()
 
string GetName (Weather.Condition condition)
 
void RefreshWeather ()
 
void OnChangeHour ()
 
Weather.Forecast GetForecast (Date date, Weather.Condition current)
 
List< Weather.WeatherForecastGetWeatherForecast ()
 
void RefreshForecasts ()
 
long GetTimeSinceLastRain ()
 
void SetRandomCondition ()
 
void SetConditionFromForecast (bool silent=false)
 
void SetCondition (Weather.Condition condition, int _duration=20, bool silent=false)
 

Public Attributes

Weather.Condition _currentCondition
 
int duration = 8
 
int lastRain
 
List< Weather.Forecastforecasts = new List<Weather.Forecast>()
 

Properties

Weather.Condition CurrentCondition [get]
 
Season season [get]
 
bool IsHazard [get]
 
bool IsFineOrCloudy [get]
 
bool IsRaining [get]
 
bool IsSnowing [get]
 
bool IsBlossom [get]
 
bool IsEther [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 7 of file Weather.cs.

Member Enumeration Documentation

◆ Condition

enum Weather.Condition

Definition at line 341 of file Weather.cs.

Member Function Documentation

◆ GetForecast()

Weather.Forecast Weather.GetForecast ( Date date,
Weather.Condition current )

Definition at line 148 of file Weather.cs.

◆ GetName() [1/2]

string Weather.GetName ( )

Definition at line 94 of file Weather.cs.

◆ GetName() [2/2]

string Weather.GetName ( Weather.Condition condition)

Definition at line 100 of file Weather.cs.

◆ GetTimeSinceLastRain()

long Weather.GetTimeSinceLastRain ( )

Definition at line 230 of file Weather.cs.

◆ GetWeatherForecast()

List< Weather.WeatherForecast > Weather.GetWeatherForecast ( )

Definition at line 158 of file Weather.cs.

◆ OnChangeHour()

void Weather.OnChangeHour ( )

Definition at line 138 of file Weather.cs.

◆ RefreshForecasts()

void Weather.RefreshForecasts ( )

Definition at line 205 of file Weather.cs.

◆ RefreshWeather()

void Weather.RefreshWeather ( )

Definition at line 106 of file Weather.cs.

◆ SetCondition()

void Weather.SetCondition ( Weather.Condition condition,
int _duration = 20,
bool silent = false )

Definition at line 255 of file Weather.cs.

◆ SetConditionFromForecast()

void Weather.SetConditionFromForecast ( bool silent = false)

Definition at line 246 of file Weather.cs.

◆ SetRandomCondition()

void Weather.SetRandomCondition ( )

Definition at line 240 of file Weather.cs.

Member Data Documentation

◆ _currentCondition

Weather.Condition Weather._currentCondition

Definition at line 315 of file Weather.cs.

◆ duration

int Weather.duration = 8

Definition at line 319 of file Weather.cs.

◆ forecasts

List<Weather.Forecast> Weather.forecasts = new List<Weather.Forecast>()

Definition at line 327 of file Weather.cs.

◆ lastRain

int Weather.lastRain

Definition at line 323 of file Weather.cs.

Property Documentation

◆ CurrentCondition

Weather.Condition Weather.CurrentCondition
get

Definition at line 11 of file Weather.cs.

◆ IsBlossom

bool Weather.IsBlossom
get

Definition at line 75 of file Weather.cs.

◆ IsEther

bool Weather.IsEther
get

Definition at line 85 of file Weather.cs.

◆ IsFineOrCloudy

bool Weather.IsFineOrCloudy
get

Definition at line 45 of file Weather.cs.

◆ IsHazard

bool Weather.IsHazard
get

Definition at line 35 of file Weather.cs.

◆ IsRaining

bool Weather.IsRaining
get

Definition at line 55 of file Weather.cs.

◆ IsSnowing

bool Weather.IsSnowing
get

Definition at line 65 of file Weather.cs.

◆ season

Season Weather.season
get

Definition at line 25 of file Weather.cs.


The documentation for this class was generated from the following file: