Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
ZoneProfile.cs
Go to the documentation of this file.
1
using
System;
2
using
UnityEngine;
3
4
public
class
ZoneProfile
:
EScriptable
5
{
6
public
enum
GenType
7
{
8
Default
,
9
Sky
,
10
Underground
11
}
12
13
[Serializable]
14
public
class
Seeds
15
{
16
public
int
height
;
17
18
public
int
poi
;
19
20
public
int
biome
;
21
22
public
int
biomeSub
;
23
24
public
int
bush
;
25
}
26
27
public
MapGenVariation
variation
;
28
29
public
MapHeight
height
;
30
31
public
Seeds
seeds
;
32
33
public
int
size
= 200;
34
35
public
int
sizeBounds
;
36
37
public
int
offsetX
;
38
39
public
int
offsetZ
;
40
41
public
int
blockHeight
;
42
43
public
int
water
;
44
45
public
int
bushMod
= 2;
46
47
public
int
extraShores
;
48
49
public
float
shoreHeight
;
50
51
public
float
biomeSubScale
= 5f;
52
53
public
bool
isShore
;
54
55
public
bool
setShore
=
true
;
56
57
public
bool
noWater
;
58
59
public
bool
river
=
true
;
60
61
public
bool
useRootSize
;
62
63
public
bool
indoor
;
64
65
public
bool
clearEdge
;
66
67
public
string
idSceneProfile
;
68
69
public
GenType
genType
;
70
71
public
MapBG
mapBG
;
72
73
public
static
ZoneProfile
Load
(
string
id
)
74
{
75
return
Resources.
Load
<
ZoneProfile
>(
"World/Zone/Profile/"
+
id
.IsEmpty(
"Default"
));
76
}
77
78
public
void
Generate
()
79
{
80
ZoneBlueprint
zoneBlueprint =
new
ZoneBlueprint
();
81
zoneBlueprint.
Create
();
82
zoneBlueprint.map =
EClass
.
_map
;
83
zoneBlueprint.zoneProfile =
this
;
84
zoneBlueprint.
GenerateMap
(
EClass
.
_zone
);
85
EClass
.
_map
.
RevealAll
();
86
}
87
88
public
void
RerollBiome
()
89
{
90
seeds
.
biome
++;
91
Generate
();
92
}
93
94
public
void
RerollBiomeSub
()
95
{
96
seeds
.
biomeSub
++;
97
Generate
();
98
}
99
100
public
void
RerollBush
()
101
{
102
seeds
.
bush
++;
103
Generate
();
104
}
105
}
MapBG
MapBG
Definition:
MapBG.cs:2
EClass
Definition:
EClass.cs:5
EClass._zone
static Zone _zone
Definition:
EClass.cs:20
EClass._map
static Map _map
Definition:
EClass.cs:18
EScriptable
Definition:
EScriptable.cs:4
MapGenVariation
Definition:
MapGenVariation.cs:5
MapHeight
Definition:
MapHeight.cs:4
Map.RevealAll
void RevealAll(bool reveal=true)
Definition:
Map.cs:899
ZoneBlueprint
Definition:
ZoneBlueprint.cs:4
ZoneBlueprint.GenerateMap
void GenerateMap(Zone zone)
Definition:
ZoneBlueprint.cs:55
ZoneBlueprint.Create
void Create()
Definition:
ZoneBlueprint.cs:46
ZoneProfile.Seeds
Definition:
ZoneProfile.cs:15
ZoneProfile.Seeds.biome
int biome
Definition:
ZoneProfile.cs:20
ZoneProfile.Seeds.height
int height
Definition:
ZoneProfile.cs:16
ZoneProfile.Seeds.biomeSub
int biomeSub
Definition:
ZoneProfile.cs:22
ZoneProfile.Seeds.bush
int bush
Definition:
ZoneProfile.cs:24
ZoneProfile.Seeds.poi
int poi
Definition:
ZoneProfile.cs:18
ZoneProfile
Definition:
ZoneProfile.cs:5
ZoneProfile.water
int water
Definition:
ZoneProfile.cs:43
ZoneProfile.noWater
bool noWater
Definition:
ZoneProfile.cs:57
ZoneProfile.size
int size
Definition:
ZoneProfile.cs:33
ZoneProfile.mapBG
MapBG mapBG
Definition:
ZoneProfile.cs:71
ZoneProfile.shoreHeight
float shoreHeight
Definition:
ZoneProfile.cs:49
ZoneProfile.isShore
bool isShore
Definition:
ZoneProfile.cs:53
ZoneProfile.sizeBounds
int sizeBounds
Definition:
ZoneProfile.cs:35
ZoneProfile.seeds
Seeds seeds
Definition:
ZoneProfile.cs:31
ZoneProfile.idSceneProfile
string idSceneProfile
Definition:
ZoneProfile.cs:67
ZoneProfile.Load
static ZoneProfile Load(string id)
Definition:
ZoneProfile.cs:73
ZoneProfile.RerollBiomeSub
void RerollBiomeSub()
Definition:
ZoneProfile.cs:94
ZoneProfile.bushMod
int bushMod
Definition:
ZoneProfile.cs:45
ZoneProfile.blockHeight
int blockHeight
Definition:
ZoneProfile.cs:41
ZoneProfile.setShore
bool setShore
Definition:
ZoneProfile.cs:55
ZoneProfile.biomeSubScale
float biomeSubScale
Definition:
ZoneProfile.cs:51
ZoneProfile.useRootSize
bool useRootSize
Definition:
ZoneProfile.cs:61
ZoneProfile.indoor
bool indoor
Definition:
ZoneProfile.cs:63
ZoneProfile.genType
GenType genType
Definition:
ZoneProfile.cs:69
ZoneProfile.clearEdge
bool clearEdge
Definition:
ZoneProfile.cs:65
ZoneProfile.GenType
GenType
Definition:
ZoneProfile.cs:7
ZoneProfile.GenType.Sky
@ Sky
ZoneProfile.GenType.Underground
@ Underground
ZoneProfile.GenType.Default
@ Default
ZoneProfile.river
bool river
Definition:
ZoneProfile.cs:59
ZoneProfile.RerollBiome
void RerollBiome()
Definition:
ZoneProfile.cs:88
ZoneProfile.variation
MapGenVariation variation
Definition:
ZoneProfile.cs:27
ZoneProfile.Generate
void Generate()
Definition:
ZoneProfile.cs:78
ZoneProfile.height
MapHeight height
Definition:
ZoneProfile.cs:29
ZoneProfile.offsetZ
int offsetZ
Definition:
ZoneProfile.cs:39
ZoneProfile.offsetX
int offsetX
Definition:
ZoneProfile.cs:37
ZoneProfile.extraShores
int extraShores
Definition:
ZoneProfile.cs:47
ZoneProfile.RerollBush
void RerollBush()
Definition:
ZoneProfile.cs:100
Elin
ZoneProfile.cs
Generated by
1.9.6