Elin Modding Docs Doc
Loading...
Searching...
No Matches
ZoneBlueprint.cs
1using System;
2using System.Collections.Generic;
3
4// Token: 0x0200073E RID: 1854
5public class ZoneBlueprint : EClass
6{
7 // Token: 0x1700108B RID: 4235
8 // (get) Token: 0x060035C6 RID: 13766 RVA: 0x00124011 File Offset: 0x00122211
9 public EloMap.TileInfo tileCenter
10 {
11 get
12 {
13 if (this.surrounding == null)
14 {
15 return null;
16 }
17 return this.surrounding[1, 1];
18 }
19 }
20
21 // Token: 0x060035C7 RID: 13767 RVA: 0x0012402A File Offset: 0x0012222A
22 public void Create()
23 {
24 this.OnCreate();
25 }
26
27 // Token: 0x060035C8 RID: 13768 RVA: 0x00124032 File Offset: 0x00122232
28 public virtual void OnCreate()
29 {
30 }
31
32 // Token: 0x060035C9 RID: 13769 RVA: 0x00124034 File Offset: 0x00122234
33 public void GenerateMap(Zone zone)
34 {
35 this.zone = zone;
36 this.idDebug = ZoneBlueprint.debugCount;
37 ZoneBlueprint.debugCount++;
38 if (this.map == null)
39 {
40 this.map = new Map();
41 }
42 zone.map = this.map;
43 if (!this.zoneProfile)
44 {
45 this.zoneProfile = zone.GetProfile();
46 }
47 if (!this.genSetting.variation)
48 {
49 this.genSetting.variation = this.zoneProfile.variation.Instantiate<MapGenVariation>();
50 }
51 this.genSetting.seed = ((this.zoneProfile.seeds.height == -1) ? (Rand.rnd(10000) + 1) : this.zoneProfile.seeds.height);
52 bool flag = false;
53 if (zone.IDGenerator != null)
54 {
55 MapGenDungen.Instance.Generate(this);
56 }
57 else if (zone.IsRegion)
58 {
59 MapGenRegion.Instance.Generate(this);
60 }
61 else
62 {
63 flag = true;
64 MapGen.Instance.Generate(this);
65 }
66 this.map.SetZone(zone);
67 if (flag)
68 {
69 MapGen.Instance.Populate(this.map);
70 }
71 }
72
73 // Token: 0x04001C79 RID: 7289
74 public Map map;
75
76 // Token: 0x04001C7A RID: 7290
77 public Zone zone;
78
79 // Token: 0x04001C7B RID: 7291
80 public ZoneProfile zoneProfile;
81
82 // Token: 0x04001C7C RID: 7292
83 public List<Chara> charas = new List<Chara>();
84
85 // Token: 0x04001C7D RID: 7293
86 public List<Thing> things = new List<Thing>();
87
88 // Token: 0x04001C7E RID: 7294
89 public ZoneBlueprint.MapGenSetting genSetting;
90
91 // Token: 0x04001C7F RID: 7295
92 public int idDebug;
93
94 // Token: 0x04001C80 RID: 7296
95 public EloMap.TileInfo[,] surrounding;
96
97 // Token: 0x04001C81 RID: 7297
98 public static int debugCount;
99
100 // Token: 0x04001C82 RID: 7298
101 public bool customMap;
102
103 // Token: 0x04001C83 RID: 7299
104 public bool ignoreRoad;
105
106 // Token: 0x02000C38 RID: 3128
107 public struct MapGenSetting
108 {
109 // Token: 0x04003070 RID: 12400
110 public int seed;
111
112 // Token: 0x04003071 RID: 12401
113 public MapGenVariation variation;
114 }
115}
Definition Map.cs:15
Definition Zone.cs:14