Elin Modding Docs Doc
Loading...
Searching...
No Matches
MapGen Class Reference
Inheritance diagram for MapGen:
BaseMapGen GenBounds EClass

Public Member Functions

void MakeNeighbor ()
 
void MakeNeighbor_old ()
 
void MakeRoad ()
 
void ModifyHeight (Map _map)
 
void MakeRiver (Map _map)
 
bool TryMakeRiver (Point p1, Point p2)
 
void Populate (Map _map)
 
void Output ()
 
- Public Member Functions inherited from BaseMapGen
void SetSize (int size, int _poiSize)
 
void Generate (ZoneBlueprint _bp)
 
- Public Member Functions inherited from GenBounds
void SetFloor (BiomeProfile.Tile t, int x, int z)
 
void SetBlock (BiomeProfile.Tile t, int x, int z)
 
void SetFloor (int x, int z, int idMat, int idFloor, int direction=0)
 
void SetBlock (int x, int z, int idMat, int idBlock, int direction=0)
 
bool IsEmpty ()
 
List< PointListEmptyPoint ()
 
GenBounds GetBounds (int w, int h, bool ignoreBlock)
 
GenBounds GetBounds (Map map, Zone zone, int x, int y, int width, int height, int dw, int dh, bool ignoreBlock)
 
PartialMap TryAddMapPiece (MapPiece.Type type=MapPiece.Type.Any, float ruin=-1f, string tags=null, Action< PartialMap, GenBounds > onCreate=null)
 

Protected Member Functions

override void GenerateTerrain ()
 
override bool OnGenerateTerrain ()
 
- Protected Member Functions inherited from BaseMapGen

Properties

static MapGen Instance [get]
 
- Properties inherited from BaseMapGen
bool extraBiome [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from GenBounds
static GenBounds Create (Zone z)
 
- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Public Attributes inherited from BaseMapGen
NoiseLayer layerHeight
 
NoiseLayer layerRiver
 
NoiseLayer layerStratum
 
NoiseLayer layerBiome
 
BiomeProfile[] biomeProfiles
 
BiomeProfile biomeShore
 
BiomeProfile biomeSand
 
BiomeProfile biomeWater
 
Crawler[] crawlers
 
ZoneBlueprint bp
 
ZoneProfile zp
 
int blockHeight
 
int seed
 
int lastSize
 
int OX
 
int OZ
 
BiomeProfile[,] biomes
 
bool[,] subBiomes
 
MapGenVariation variation
 
MapHeight hSetting
 
- Public Attributes inherited from GenBounds
Map map
 
Zone zone
 
int Size
 
int x
 
int y
 
int width
 
int height
 
int marginPartial
 
Func< Cell, bool > FuncCheckEmpty
 
- Static Public Attributes inherited from BaseMapGen
static string err
 
- Static Public Attributes inherited from EClass
static Core core
 
- Protected Attributes inherited from BaseMapGen
bool skipWater
 
float[,] heights1
 
float[,] heights2
 
float[,] heights3
 
float[,] waters
 
float[,] heights3d
 
float waterCount
 

Detailed Description

Definition at line 7 of file MapGen.cs.

Member Function Documentation

◆ GenerateTerrain()

override void MapGen.GenerateTerrain ( )
protectedvirtual

Reimplemented from BaseMapGen.

Definition at line 25 of file MapGen.cs.

◆ MakeNeighbor()

void MapGen.MakeNeighbor ( )

Definition at line 347 of file MapGen.cs.

◆ MakeNeighbor_old()

void MapGen.MakeNeighbor_old ( )

Definition at line 365 of file MapGen.cs.

◆ MakeRiver()

void MapGen.MakeRiver ( Map _map)

Definition at line 510 of file MapGen.cs.

◆ MakeRoad()

void MapGen.MakeRoad ( )

Definition at line 378 of file MapGen.cs.

◆ ModifyHeight()

void MapGen.ModifyHeight ( Map _map)

Definition at line 404 of file MapGen.cs.

◆ OnGenerateTerrain()

override bool MapGen.OnGenerateTerrain ( )
protectedvirtual

Reimplemented from BaseMapGen.

Definition at line 69 of file MapGen.cs.

◆ Output()

void MapGen.Output ( )

Definition at line 671 of file MapGen.cs.

◆ Populate()

void MapGen.Populate ( Map _map)

Definition at line 600 of file MapGen.cs.

◆ TryMakeRiver()

bool MapGen.TryMakeRiver ( Point p1,
Point p2 )

Definition at line 545 of file MapGen.cs.

Property Documentation

◆ Instance

MapGen MapGen.Instance
staticget

Definition at line 11 of file MapGen.cs.


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