Elin Decompiled Documentation EA 23.102 Nightly
|
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 () |
![]() | |
void | SetSize (int size, int _poiSize) |
void | Generate (ZoneBlueprint _bp) |
![]() | |
void | SetFloor (BiomeProfile.Tile t, int x, int z) |
void | SetBlock (BiomeProfile.Tile t, int x, int z, int idMat=-1) |
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< Point > | ListEmptyPoint () |
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 () |
virtual void | GenerateTerrain () |
virtual bool | OnGenerateTerrain () |
Properties | |
static MapGen | Instance [get] |
![]() | |
bool | extraBiome [get] |
![]() | |
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] |
Static Private Attributes | |
static MapGen | _Instance |
Additional Inherited Members | |
![]() | |
static GenBounds | Create (Zone z) |
![]() | |
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) |
![]() | |
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 |
![]() | |
Map | map |
Zone | zone |
int | Size |
int | x |
int | y |
int | width |
int | height |
int | marginPartial |
Func< Cell, bool > | FuncCheckEmpty |
![]() | |
static string | err |
![]() | |
static Core | core |
![]() | |
bool | skipWater |
float[,] | heights1 |
float[,] | heights2 |
float[,] | heights3 |
float[,] | waters |
float[,] | heights3d |
float | waterCount |
|
inlineprotectedvirtual |
Reimplemented from BaseMapGen.
Definition at line 10 of file MapGen.cs.
References EClass._zone, BaseMapGen.biomes, Zone.bounds, BaseMapGen.bp, Debug, BaseMapGen.err, Zone.GetTopZone(), BaseMapGen.heights1, BaseMapGen.heights2, BaseMapGen.heights3, BaseMapGen.heights3d, BaseMapGen.lastSize, BaseMapGen.layerBiome, BaseMapGen.layerHeight, BaseMapGen.layerRiver, BaseMapGen.layerStratum, GenBounds.map, OnGenerateTerrain(), Map.QuickRefreshTile(), BaseMapGen.seed, Rand.SetSeed(), BaseMapGen.SetSize(), Map.SetZone(), GenBounds.Size, MapBounds.Size, ZoneProfile.size, BaseMapGen.skipWater, BaseMapGen.subBiomes, ZoneBlueprint.tileCenter, ZoneProfile.useRootSize, BaseMapGen.waters, GenBounds.zone, and BaseMapGen.zp.
|
inline |
Definition at line 343 of file MapGen.cs.
References BaseMapGen.bp, Point.Clamp(), Point.IsValid, EClass.rnd(), EloMap.TileInfo.sea, Point.Set(), GenBounds.SetBlock(), GenBounds.SetFloor(), EloMap.TileInfo.shore, GenBounds.Size, ZoneBlueprint.surrounding, Point.x, and Point.z.
Referenced by OnGenerateTerrain().
|
inline |
Definition at line 418 of file MapGen.cs.
References BaseMapGen.bp, Point.IsValid, EClass.rnd(), Point.Set(), GenBounds.SetBlock(), GenBounds.SetFloor(), GenBounds.Size, ZoneBlueprint.surrounding, Point.x, and Point.z.
|
inline |
Definition at line 637 of file MapGen.cs.
References EClass._map, Algorithms.WeightCell.blocked, Point.cell, Point.Distance(), Map.GetRandomEdge(), EClass.rnd(), MapBounds.Size, TryMakeRiver(), Point.x, and Point.z.
Referenced by Populate().
|
inline |
Definition at line 475 of file MapGen.cs.
References BaseMapGen.bp, ZoneBlueprint.ignoreRoad, Point.IsValid, EClass.rnd(), EloMap.TileInfo.roadDown, EloMap.TileInfo.roadLeft, EloMap.TileInfo.roadRight, EloMap.TileInfo.roadUp, Point.Set(), GenBounds.SetBlock(), GenBounds.SetFloor(), GenBounds.Size, ZoneBlueprint.tileCenter, Point.x, and Point.z.
|
inline |
Definition at line 532 of file MapGen.cs.
References EClass._map, Map.cells, Cell.height, BaseMapGen.hSetting, Cell.IsTopWater, GenBounds.map, MapHeight.mod1, MapHeight.mod2, MapHeight.mod3, EClass.rnd(), GenBounds.Size, and MapHeight.smoothDownhill.
Referenced by OnGenerateTerrain().
|
inlineprotectedvirtual |
Reimplemented from BaseMapGen.
Definition at line 53 of file MapGen.cs.
References Cell._block, Cell._floor, TileRow.alias, SourceBlock.Row.autoFloor, MapHeight.baseHeight, ZoneProfile.Seeds.biome, BaseMapGen.biomeProfiles, BaseMapGen.biomes, BaseMapGen.biomeShore, ZoneProfile.Seeds.biomeSub, ZoneProfile.biomeSubScale, BaseMapGen.biomeWater, BiomeProfile.TileGroup.block, BaseMapGen.blockHeight, SourceManager.blocks, Map.bounds, Zone.bounds, BaseMapGen.bp, ZoneProfile.Seeds.bush, ZoneProfile.bushMod, Map.cells, ZoneProfile.clearEdge, Map.CreateNew(), GameSetting.defaultMapSize, RenderRow.DefaultMaterial, SourceMaterial.Row.defFloor, BiomeProfile.exterior, ZoneProfile.extraShores, BiomeProfile.TileGroup.floor, BiomeProfile.floor_height, SourceManager.floors, ZoneProfile.genType, BiomeProfile.Tile.GetDir(), Zone.GetTopZone(), Cell.HasBlock, Cell.height, MapHeight.heightMod, BaseMapGen.heights1, BaseMapGen.heights2, BaseMapGen.heights3, BaseMapGen.hSetting, BiomeProfile.Tile.id, SourceMaterial.Row.id, TileRow.id, Map.isGenerated, Cell.IsTopWater, BaseMapGen.layerBiome, BiomeProfile.layerBlock, BaseMapGen.layerHeight, BaseMapGen.layerRiver, MakeNeighbor(), GenBounds.map, BiomeProfile.MatFloor, GameSetting.maxGenHeight, MapGenVariation.maxWaterRatio, MapBounds.maxX, MapBounds.maxZ, ModifyHeight(), BaseMapGen.OX, BaseMapGen.OZ, Map.poiMap, Map.Reset(), POIMap.Reset(), Map.Resize(), BaseMapGen.seed, ZoneProfile.seeds, GenBounds.SetBlock(), Map.SetBounds(), GenBounds.SetFloor(), ZoneProfile.setShore, EClass.setting, ZoneProfile.shoreHeight, GenBounds.Size, MapBounds.Size, ZoneProfile.sizeBounds, BaseMapGen.skipWater, EClass.sources, MapHeight.step, BaseMapGen.subBiomes, ZoneProfile.useRootSize, BaseMapGen.variation, ZoneProfile.water, BaseMapGen.waterCount, BaseMapGen.waters, MapBounds.x, MapBounds.z, GenBounds.zone, ZoneBlueprint.zoneProfile, and BaseMapGen.zp.
Referenced by GenerateTerrain().
|
inline |
|
inline |
Definition at line 725 of file MapGen.cs.
References EClass._map, Cell.Back, Cell.biome, BaseMapGen.biomeWater, BaseMapGen.bp, Point.cell, Crawler.CrawlUntil(), Crawler.Create(), Cell.Front, Map.GetRandomPoint(), Cell.HasBlock, BaseMapGen.heights1, BaseMapGen.heights2, BaseMapGen.heights3, BaseMapGen.heights3d, ZoneProfile.isShore, Cell.IsTopWater, BaseMapGen.layerStratum, Cell.Left, MakeRiver(), GenBounds.map, BaseMapGen.OX, BaseMapGen.OZ, ZoneProfile.Seeds.poi, BiomeProfile.Populate(), Map.RefreshAllTiles(), Cell.Right, ZoneProfile.river, BaseMapGen.seed, ZoneProfile.seeds, Point.Set(), Rand.SetSeed(), GenBounds.Size, ZoneBlueprint.zoneProfile, and BaseMapGen.zp.
Referenced by ZoneBlueprint.GenerateMap().
Definition at line 671 of file MapGen.cs.
References Point.Equals(), Point.IsWater, EClass.rnd(), GenBounds.SetBlock(), GenBounds.SetFloor(), Point.x, and Point.z.
Referenced by MakeRiver().
|
staticget |
Definition at line 8 of file MapGen.cs.
Referenced by ZoneBlueprint.GenerateMap().