Elin Modding Docs Doc
Loading...
Searching...
No Matches
ZoneProfile.cs
1using System;
2using UnityEngine;
3
4// Token: 0x020006F6 RID: 1782
5public class ZoneProfile : EScriptable
6{
7 // Token: 0x060033E7 RID: 13287 RVA: 0x0011B825 File Offset: 0x00119A25
8 public static ZoneProfile Load(string id)
9 {
10 return Resources.Load<ZoneProfile>("World/Zone/Profile/" + id.IsEmpty("Default"));
11 }
12
13 // Token: 0x060033E8 RID: 13288 RVA: 0x0011B841 File Offset: 0x00119A41
14 public void Generate()
15 {
16 ZoneBlueprint zoneBlueprint = new ZoneBlueprint();
17 zoneBlueprint.Create();
18 zoneBlueprint.map = EClass._map;
19 zoneBlueprint.zoneProfile = this;
20 zoneBlueprint.GenerateMap(EClass._zone);
21 EClass._map.RevealAll(true);
22 }
23
24 // Token: 0x060033E9 RID: 13289 RVA: 0x0011B875 File Offset: 0x00119A75
25 public void RerollBiome()
26 {
27 this.seeds.biome++;
28 this.Generate();
29 }
30
31 // Token: 0x060033EA RID: 13290 RVA: 0x0011B890 File Offset: 0x00119A90
32 public void RerollBiomeSub()
33 {
34 this.seeds.biomeSub++;
35 this.Generate();
36 }
37
38 // Token: 0x060033EB RID: 13291 RVA: 0x0011B8AB File Offset: 0x00119AAB
39 public void RerollBush()
40 {
41 this.seeds.bush++;
42 this.Generate();
43 }
44
45 // Token: 0x04001C3B RID: 7227
46 public MapGenVariation variation;
47
48 // Token: 0x04001C3C RID: 7228
49 public MapHeight height;
50
51 // Token: 0x04001C3D RID: 7229
52 public ZoneProfile.Seeds seeds;
53
54 // Token: 0x04001C3E RID: 7230
55 public int size = 200;
56
57 // Token: 0x04001C3F RID: 7231
58 public int sizeBounds;
59
60 // Token: 0x04001C40 RID: 7232
61 public int offsetX;
62
63 // Token: 0x04001C41 RID: 7233
64 public int offsetZ;
65
66 // Token: 0x04001C42 RID: 7234
67 public int blockHeight;
68
69 // Token: 0x04001C43 RID: 7235
70 public int water;
71
72 // Token: 0x04001C44 RID: 7236
73 public int bushMod = 2;
74
75 // Token: 0x04001C45 RID: 7237
76 public int extraShores;
77
78 // Token: 0x04001C46 RID: 7238
79 public float shoreHeight;
80
81 // Token: 0x04001C47 RID: 7239
82 public float biomeSubScale = 5f;
83
84 // Token: 0x04001C48 RID: 7240
85 public bool isShore;
86
87 // Token: 0x04001C49 RID: 7241
88 public bool setShore = true;
89
90 // Token: 0x04001C4A RID: 7242
91 public bool noWater;
92
93 // Token: 0x04001C4B RID: 7243
94 public bool river = true;
95
96 // Token: 0x04001C4C RID: 7244
97 public bool useRootSize;
98
99 // Token: 0x04001C4D RID: 7245
100 public bool indoor;
101
102 // Token: 0x04001C4E RID: 7246
103 public bool clearEdge;
104
105 // Token: 0x04001C4F RID: 7247
106 public string idSceneProfile;
107
108 // Token: 0x04001C50 RID: 7248
109 public ZoneProfile.GenType genType;
110
111 // Token: 0x04001C51 RID: 7249
112 public MapBG mapBG;
113
114 // Token: 0x02000C17 RID: 3095
115 public enum GenType
116 {
117 // Token: 0x0400301B RID: 12315
118 Default,
119 // Token: 0x0400301C RID: 12316
120 Sky,
121 // Token: 0x0400301D RID: 12317
122 Underground
123 }
124
125 // Token: 0x02000C18 RID: 3096
126 [Serializable]
127 public class Seeds
128 {
129 // Token: 0x0400301E RID: 12318
130 public int height;
131
132 // Token: 0x0400301F RID: 12319
133 public int poi;
134
135 // Token: 0x04003020 RID: 12320
136 public int biome;
137
138 // Token: 0x04003021 RID: 12321
139 public int biomeSub;
140
141 // Token: 0x04003022 RID: 12322
142 public int bush;
143 }
144}