Elin Decompiled Documentation
EA 23.282 Stable Patch 3
Loading...
Searching...
No Matches
TraitFakeBlock.cs
Go to the documentation of this file.
1
public
class
TraitFakeBlock
:
TraitFakeTile
2
{
3
public
SourceBlock.Row
block
=>
EClass
.
sources
.
blocks
.map.TryGetValue(
owner
.
refVal
, 1);
4
5
public
override
SourcePref
GetPref
()
6
{
7
TileType
tileType
=
block
.tileType;
8
if
(!(
tileType
is
TileTypePillar
))
9
{
10
if
(!(
tileType
is
TileTypeFence
))
11
{
12
if
(!(
tileType
is
TileTypeStairs
))
13
{
14
if
(!(
tileType
is
TileTypeWall
))
15
{
16
if
(
tileType
is
TileTypeSlope
)
17
{
18
return
EClass
.
core
.
refs
.
prefs
.
blockStairs
;
19
}
20
return
null
;
21
}
22
return
EClass
.
core
.
refs
.
prefs
.
blockWall
;
23
}
24
return
EClass
.
core
.
refs
.
prefs
.
blockStairs
;
25
}
26
return
EClass
.
core
.
refs
.
prefs
.
blockFence
;
27
}
28
return
EClass
.
core
.
refs
.
prefs
.
blockPillar
;
29
}
30
31
public
override
string
GetName
()
32
{
33
if
(
owner
.
refVal
!= 0)
34
{
35
return
"_fakeblock"
.lang(
block
.GetName().ToLower());
36
}
37
return
base.GetName();
38
}
39
}
Card.refVal
int refVal
Definition:
Card.cs:207
CoreRef.PrefData.blockWall
SourcePref blockWall
Definition:
CoreRef.cs:336
CoreRef.PrefData.blockPillar
SourcePref blockPillar
Definition:
CoreRef.cs:338
CoreRef.PrefData.blockFence
SourcePref blockFence
Definition:
CoreRef.cs:332
CoreRef.PrefData.blockStairs
SourcePref blockStairs
Definition:
CoreRef.cs:334
CoreRef.prefs
PrefData prefs
Definition:
CoreRef.cs:417
Core.refs
CoreRef refs
Definition:
Core.cs:51
EClass
Definition:
EClass.cs:6
EClass.core
static Core core
Definition:
EClass.cs:7
EClass.sources
static SourceManager sources
Definition:
EClass.cs:43
SourceBlock.Row
Definition:
SourceBlock.cs:8
SourceManager.blocks
SourceBlock blocks
Definition:
SourceManager.cs:42
SourcePref
Definition:
SourcePref.cs:11
TileTypeFence
Definition:
TileTypeFence.cs:2
TileTypePillar
Definition:
TileTypePillar.cs:2
TileTypeSlope
Definition:
TileTypeSlope.cs:2
TileTypeStairs
Definition:
TileTypeStairs.cs:2
TileTypeWall
Definition:
TileTypeWall.cs:2
TileType
Definition:
TileType.cs:6
TraitFakeBlock
Definition:
TraitFakeBlock.cs:2
TraitFakeBlock.block
SourceBlock.Row block
Definition:
TraitFakeBlock.cs:3
TraitFakeBlock.GetName
override string GetName()
Definition:
TraitFakeBlock.cs:31
TraitFakeBlock.GetPref
override SourcePref GetPref()
Definition:
TraitFakeBlock.cs:5
TraitFakeTile
Definition:
TraitFakeTile.cs:4
Trait.tileType
virtual TileType tileType
Definition:
Trait.cs:50
Trait.owner
Card owner
Definition:
Trait.cs:28
Elin
TraitFakeBlock.cs
Generated by
1.9.6