Elin Modding Docs Doc
All Classes Namespaces
Season.cs
1using System;
2using Newtonsoft.Json;
3
4// Token: 0x020006F2 RID: 1778
5[JsonObject(MemberSerialization.OptIn)]
6public class Season : EClass
7{
8 // Token: 0x17000F84 RID: 3972
9 // (get) Token: 0x060033C9 RID: 13257 RVA: 0x0011B114 File Offset: 0x00119314
10 public GameDate date
11 {
12 get
13 {
14 return EClass.world.date;
15 }
16 }
17
18 // Token: 0x17000F85 RID: 3973
19 // (get) Token: 0x060033CA RID: 13258 RVA: 0x0011B120 File Offset: 0x00119320
20 public bool isSpring
21 {
22 get
23 {
24 return this.date.month >= 3 && this.date.month <= 5;
25 }
26 }
27
28 // Token: 0x17000F86 RID: 3974
29 // (get) Token: 0x060033CB RID: 13259 RVA: 0x0011B143 File Offset: 0x00119343
30 public bool isSummer
31 {
32 get
33 {
34 return this.date.month >= 6 && this.date.month <= 8;
35 }
36 }
37
38 // Token: 0x17000F87 RID: 3975
39 // (get) Token: 0x060033CC RID: 13260 RVA: 0x0011B166 File Offset: 0x00119366
40 public bool isAutumn
41 {
42 get
43 {
44 return this.date.month >= 9 && this.date.month <= 11;
45 }
46 }
47
48 // Token: 0x17000F88 RID: 3976
49 // (get) Token: 0x060033CD RID: 13261 RVA: 0x0011B18B File Offset: 0x0011938B
50 public bool isWinter
51 {
52 get
53 {
54 return this.date.month >= 12 || this.date.month <= 2;
55 }
56 }
57
58 // Token: 0x060033CE RID: 13262 RVA: 0x0011B1AF File Offset: 0x001193AF
59 public Weather.Condition GetRandomWeather(Date date, Weather.Condition current)
60 {
61 if (EClass.rnd(3) == 0)
62 {
63 return Weather.Condition.Cloudy;
64 }
65 if (EClass.rnd(4) == 0)
66 {
67 return Weather.Condition.Rain;
68 }
69 if (EClass.rnd(5) == 0)
70 {
71 return Weather.Condition.RainHeavy;
72 }
73 if (EClass.rnd(6) == 0)
74 {
75 return Weather.Condition.Snow;
76 }
77 return Weather.Condition.Fine;
78 }
79
80 // Token: 0x060033CF RID: 13263 RVA: 0x0011B1DC File Offset: 0x001193DC
81 public void Next()
82 {
83 if (this.isSpring)
84 {
85 this.date.month = 6;
86 return;
87 }
88 if (this.isSummer)
89 {
90 this.date.month = 9;
91 return;
92 }
93 if (this.isAutumn)
94 {
95 this.date.month = 12;
96 return;
97 }
98 this.date.month = 3;
99 }
100
101 // Token: 0x04001C31 RID: 7217
102 public const int Spring = 1;
103
104 // Token: 0x04001C32 RID: 7218
105 public const int Summer = 2;
106
107 // Token: 0x04001C33 RID: 7219
108 public const int Autumn = 3;
109
110 // Token: 0x04001C34 RID: 7220
111 public const int Winter = 4;
112}
Definition Date.cs:6