Elin Decompiled Documentation EA 23.102 Nightly
|
Public Member Functions | |
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) |
Static Public Member Functions | |
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) |
Public Attributes | |
Map | map |
Zone | zone |
int | Size |
int | x |
int | y |
int | width |
int | height |
int | marginPartial |
Func< Cell, bool > | FuncCheckEmpty |
Private Member Functions | |
bool | IsSub (BiomeProfile.Tile g, int x, int y) |
Additional Inherited Members | |
![]() | |
static Core | core |
![]() | |
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] |
Definition at line 5 of file GenBounds.cs.
Definition at line 123 of file GenBounds.cs.
References Map.bounds, height, map, Zone.map, width, MapBounds.Width, x, MapBounds.x, y, MapBounds.z, and zone.
Referenced by ZoneEventHarvest.OnVisit(), and ZoneEventMusic.OnVisit().
|
inline |
Definition at line 137 of file GenBounds.cs.
References GetBounds(), height, map, width, x, y, and zone.
Referenced by GetBounds(), and TryAddMapPiece().
|
inline |
Definition at line 142 of file GenBounds.cs.
References FuncCheckEmpty, height, IsEmpty(), map, marginPartial, EClass.rnd(), width, x, y, and zone.
|
inline |
Definition at line 66 of file GenBounds.cs.
References EClass._map, Algorithms.WeightCell.blocked, Map.cells, FuncCheckEmpty, Cell.HasBlock, height, Cell.Installed, map, marginPartial, MapBounds.Size, width, x, and y.
Referenced by GetBounds().
|
inlineprivate |
Definition at line 25 of file GenBounds.cs.
References EClass.rnd(), x, and y.
Referenced by SetBlock(), and SetFloor().
|
inline |
Definition at line 94 of file GenBounds.cs.
References EClass._map, Algorithms.WeightCell.blocked, Map.cells, Cell.HasBlock, Point.HasChara, height, Cell.Installed, Trait.IsBlockPath, map, MapBounds.Size, Card.trait, width, x, and y.
Referenced by ZoneEventHarvest.OnVisit(), and ZoneEventMusic.OnVisit().
|
inline |
Definition at line 43 of file GenBounds.cs.
References IsSub(), SetBlock(), and x.
Referenced by MapGen.MakeNeighbor(), MapGen.MakeNeighbor_old(), MapGen.MakeRoad(), MapGen.OnGenerateTerrain(), MapGenDungen.OnGenerateTerrain(), SetBlock(), and MapGen.TryMakeRiver().
|
inline |
|
inline |
Definition at line 37 of file GenBounds.cs.
References IsSub(), EClass.rnd(), SetFloor(), and x.
Referenced by MapGen.MakeNeighbor(), MapGen.MakeNeighbor_old(), MapGen.MakeRoad(), MapGen.OnGenerateTerrain(), MapGenDungen.OnGenerateTerrain(), MapGenRegion.OnGenerateTerrain(), SetFloor(), and MapGen.TryMakeRiver().
|
inline |
|
inline |
Definition at line 183 of file GenBounds.cs.
References PartialMap.Apply(), Zone.biome, Debug, GetBounds(), MapPiece.GetMap(), PartialMap.h, PartialMap.ignoreBlock, MapPiece.Instance, PartialMap.path, Zone.RuinChance, BiomeProfile.tags, PartialMap.w, x, y, and zone.
Referenced by Zone_CaveMonster.OnGenerateRooms(), ZoneEventHarvest.OnVisit(), ZoneEventMusic.OnVisit(), and GenRoom.Populate().
Func<Cell, bool> GenBounds.FuncCheckEmpty |
Definition at line 23 of file GenBounds.cs.
Referenced by GetBounds(), and IsEmpty().
int GenBounds.height |
Definition at line 19 of file GenBounds.cs.
Referenced by Create(), GetBounds(), GenRoom.Init(), IsEmpty(), ListEmptyPoint(), MapGenDungen.OnGenerateTerrain(), and GenRoom.Populate().
Map GenBounds.map |
Definition at line 7 of file GenBounds.cs.
Referenced by Create(), BaseMapGen.Generate(), MapGen.GenerateTerrain(), GetBounds(), IsEmpty(), ListEmptyPoint(), MapGen.ModifyHeight(), MapGen.OnGenerateTerrain(), MapGenDungen.OnGenerateTerrain(), MapGenRegion.OnGenerateTerrain(), GenRoom.OnPopulate(), MapGen.Populate(), SetBlock(), SetFloor(), and BaseMapGen.SetSize().
int GenBounds.marginPartial |
Definition at line 21 of file GenBounds.cs.
Referenced by GetBounds(), and IsEmpty().
int GenBounds.Size |
Definition at line 11 of file GenBounds.cs.
Referenced by MapGen.GenerateTerrain(), GenRoom.Init(), MapGen.MakeNeighbor(), MapGen.MakeNeighbor_old(), MapGen.MakeRoad(), MapGen.ModifyHeight(), MapGen.OnGenerateTerrain(), MapGenDungen.OnGenerateTerrain(), MapGenRegion.OnGenerateTerrain(), GenRoom.OnPopulate(), GenRoomMonsterHouse.OnPopulate(), MapGen.Populate(), and BaseMapGen.SetSize().
int GenBounds.width |
Definition at line 17 of file GenBounds.cs.
Referenced by Create(), GetBounds(), GenRoom.Init(), IsEmpty(), ListEmptyPoint(), MapGenDungen.OnGenerateTerrain(), and GenRoom.Populate().
int GenBounds.x |
Definition at line 13 of file GenBounds.cs.
Referenced by Create(), GetBounds(), GenRoom.Init(), IsEmpty(), IsSub(), ListEmptyPoint(), GenRoom.Populate(), SetBlock(), SetFloor(), and TryAddMapPiece().
int GenBounds.y |
Definition at line 15 of file GenBounds.cs.
Referenced by Create(), GetBounds(), GenRoom.Init(), IsEmpty(), IsSub(), ListEmptyPoint(), GenRoom.Populate(), and TryAddMapPiece().
Zone GenBounds.zone |
Definition at line 9 of file GenBounds.cs.
Referenced by Create(), BaseMapGen.Generate(), MapGen.GenerateTerrain(), GetBounds(), MapGen.OnGenerateTerrain(), MapGenDungen.OnGenerateTerrain(), MapGenRegion.OnGenerateTerrain(), GenRoom.Populate(), GenRoom.SpawnMob(), and TryAddMapPiece().