Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
Zone_RandomDungeonFactory.cs
Go to the documentation of this file.
1
public
class
Zone_RandomDungeonFactory
:
Zone_RandomDungeon
2
{
3
public
override
int
BaseElectricity
=> 1000;
4
5
public
override
void
OnGenerateMap
()
6
{
7
PlaceRail
(
RailType
.Factoy);
8
EClass
.
_map
.
ForeachCell
(delegate(
Cell
c)
9
{
10
if
(
EClass
.
rnd
(5) != 0 && c.
_block
!= 0 && !c.
HasObj
&& !c.
isSurrounded
&& !c.
hasDoor
)
11
{
12
c.GetSharedPoint().SetObj(106, 1, EClass.rnd(4));
13
}
14
});
15
base.OnGenerateMap();
16
}
17
}
Cell
Definition:
Cell.cs:7
Cell._block
byte _block
Definition:
Cell.cs:30
Cell.isSurrounded
bool isSurrounded
Definition:
Cell.cs:234
Cell.HasObj
bool HasObj
Definition:
Cell.cs:641
Cell.hasDoor
bool hasDoor
Definition:
Cell.cs:258
EClass
Definition:
EClass.cs:5
EClass.rnd
static int rnd(int a)
Definition:
EClass.cs:50
EClass._map
static Map _map
Definition:
EClass.cs:18
Map.ForeachCell
new void ForeachCell(Action< Cell > action)
Definition:
Map.cs:2324
Zone_Dungeon.PlaceRail
void PlaceRail(RailType railType=RailType.Mine)
Definition:
Zone_Dungeon.cs:109
Zone_Dungeon.RailType
RailType
Definition:
Zone_Dungeon.cs:8
Zone_RandomDungeonFactory
Definition:
Zone_RandomDungeonFactory.cs:2
Zone_RandomDungeonFactory.BaseElectricity
override int BaseElectricity
Definition:
Zone_RandomDungeonFactory.cs:3
Zone_RandomDungeonFactory.OnGenerateMap
override void OnGenerateMap()
Definition:
Zone_RandomDungeonFactory.cs:5
Zone_RandomDungeon
Definition:
Zone_RandomDungeon.cs:2
Elin
Zone_RandomDungeonFactory.cs
Generated by
1.9.6