Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ZoneProfile Class Reference
Inheritance diagram for ZoneProfile:
EScriptable

Classes

class  Seeds
 

Public Types

enum  GenType { Default , Sky , Underground }
 

Public Member Functions

void Generate ()
 
void RerollBiome ()
 
void RerollBiomeSub ()
 
void RerollBush ()
 

Static Public Member Functions

static ZoneProfile Load (string id)
 
- Static Public Member Functions inherited from EScriptable
static int rnd (int a)
 

Public Attributes

MapGenVariation variation
 
MapHeight height
 
Seeds seeds
 
int size = 200
 
int sizeBounds
 
int offsetX
 
int offsetZ
 
int blockHeight
 
int water
 
int bushMod = 2
 
int extraShores
 
float shoreHeight
 
float biomeSubScale = 5f
 
bool isShore
 
bool setShore = true
 
bool noWater
 
bool river = true
 
bool useRootSize
 
bool indoor
 
bool clearEdge
 
string idSceneProfile
 
GenType genType
 
MapBG mapBG
 

Detailed Description

Definition at line 4 of file ZoneProfile.cs.

Member Enumeration Documentation

◆ GenType

Enumerator
Default 
Sky 
Underground 

Definition at line 6 of file ZoneProfile.cs.

Member Function Documentation

◆ Generate()

void ZoneProfile.Generate ( )
inline

Definition at line 78 of file ZoneProfile.cs.

79 {
80 ZoneBlueprint zoneBlueprint = new ZoneBlueprint();
81 zoneBlueprint.Create();
82 zoneBlueprint.map = EClass._map;
83 zoneBlueprint.zoneProfile = this;
84 zoneBlueprint.GenerateMap(EClass._zone);
86 }
Definition: EClass.cs:5
static Zone _zone
Definition: EClass.cs:20
static Map _map
Definition: EClass.cs:18
void RevealAll(bool reveal=true)
Definition: Map.cs:899
void GenerateMap(Zone zone)

References EClass._map, EClass._zone, ZoneBlueprint.Create(), ZoneBlueprint.GenerateMap(), and Map.RevealAll().

Referenced by RerollBiome(), RerollBiomeSub(), and RerollBush().

◆ Load()

static ZoneProfile ZoneProfile.Load ( string  id)
inlinestatic

Definition at line 73 of file ZoneProfile.cs.

74 {
75 return Resources.Load<ZoneProfile>("World/Zone/Profile/" + id.IsEmpty("Default"));
76 }

References Load().

Referenced by Zone.GetProfile(), Load(), and UIMapSelector.WriteNote().

◆ RerollBiome()

void ZoneProfile.RerollBiome ( )
inline

Definition at line 88 of file ZoneProfile.cs.

89 {
90 seeds.biome++;
91 Generate();
92 }
Seeds seeds
Definition: ZoneProfile.cs:31
void Generate()
Definition: ZoneProfile.cs:78

References ZoneProfile.Seeds.biome, Generate(), and seeds.

◆ RerollBiomeSub()

void ZoneProfile.RerollBiomeSub ( )
inline

Definition at line 94 of file ZoneProfile.cs.

95 {
97 Generate();
98 }

References ZoneProfile.Seeds.biomeSub, Generate(), and seeds.

◆ RerollBush()

void ZoneProfile.RerollBush ( )
inline

Definition at line 100 of file ZoneProfile.cs.

101 {
102 seeds.bush++;
103 Generate();
104 }

References ZoneProfile.Seeds.bush, Generate(), and seeds.

Member Data Documentation

◆ biomeSubScale

float ZoneProfile.biomeSubScale = 5f

Definition at line 51 of file ZoneProfile.cs.

Referenced by MapGen.OnGenerateTerrain().

◆ blockHeight

int ZoneProfile.blockHeight

Definition at line 41 of file ZoneProfile.cs.

Referenced by BaseMapGen.Generate().

◆ bushMod

int ZoneProfile.bushMod = 2

Definition at line 45 of file ZoneProfile.cs.

Referenced by MapGen.OnGenerateTerrain().

◆ clearEdge

bool ZoneProfile.clearEdge

Definition at line 65 of file ZoneProfile.cs.

Referenced by MapGen.OnGenerateTerrain().

◆ extraShores

int ZoneProfile.extraShores

Definition at line 47 of file ZoneProfile.cs.

Referenced by MapGen.OnGenerateTerrain().

◆ genType

GenType ZoneProfile.genType

Definition at line 69 of file ZoneProfile.cs.

Referenced by MapGen.OnGenerateTerrain().

◆ height

MapHeight ZoneProfile.height

Definition at line 29 of file ZoneProfile.cs.

Referenced by BaseMapGen.Generate().

◆ idSceneProfile

string ZoneProfile.idSceneProfile

Definition at line 67 of file ZoneProfile.cs.

Referenced by BaseMapGen.Generate().

◆ indoor

bool ZoneProfile.indoor

Definition at line 63 of file ZoneProfile.cs.

Referenced by BaseMapGen.Generate().

◆ isShore

bool ZoneProfile.isShore

Definition at line 53 of file ZoneProfile.cs.

Referenced by MapGen.Populate().

◆ mapBG

MapBG ZoneProfile.mapBG

Definition at line 71 of file ZoneProfile.cs.

Referenced by BaseMapGen.Generate().

◆ noWater

bool ZoneProfile.noWater

Definition at line 57 of file ZoneProfile.cs.

◆ offsetX

int ZoneProfile.offsetX

Definition at line 37 of file ZoneProfile.cs.

Referenced by BaseMapGen.Generate().

◆ offsetZ

int ZoneProfile.offsetZ

Definition at line 39 of file ZoneProfile.cs.

Referenced by BaseMapGen.Generate().

◆ river

bool ZoneProfile.river = true

Definition at line 59 of file ZoneProfile.cs.

Referenced by MapGen.Populate().

◆ seeds

◆ setShore

bool ZoneProfile.setShore = true

Definition at line 55 of file ZoneProfile.cs.

Referenced by MapGen.OnGenerateTerrain().

◆ shoreHeight

float ZoneProfile.shoreHeight

Definition at line 49 of file ZoneProfile.cs.

Referenced by MapGen.OnGenerateTerrain().

◆ size

int ZoneProfile.size = 200

Definition at line 33 of file ZoneProfile.cs.

Referenced by MapGen.GenerateTerrain().

◆ sizeBounds

int ZoneProfile.sizeBounds

Definition at line 35 of file ZoneProfile.cs.

Referenced by MapGen.OnGenerateTerrain().

◆ useRootSize

bool ZoneProfile.useRootSize

Definition at line 61 of file ZoneProfile.cs.

Referenced by MapGen.GenerateTerrain(), and MapGen.OnGenerateTerrain().

◆ variation

MapGenVariation ZoneProfile.variation

Definition at line 27 of file ZoneProfile.cs.

Referenced by ZoneBlueprint.GenerateMap().

◆ water

int ZoneProfile.water

Definition at line 43 of file ZoneProfile.cs.

Referenced by MapGen.OnGenerateTerrain().


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