Elin Decompiled Documentation EA 23.282 Stable Patch 3
Loading...
Searching...
No Matches
TraitFakeBlock.cs
Go to the documentation of this file.
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 {
17 {
19 }
20 return null;
21 }
23 }
25 }
27 }
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}
int refVal
Definition: Card.cs:207
SourcePref blockWall
Definition: CoreRef.cs:336
SourcePref blockPillar
Definition: CoreRef.cs:338
SourcePref blockFence
Definition: CoreRef.cs:332
SourcePref blockStairs
Definition: CoreRef.cs:334
PrefData prefs
Definition: CoreRef.cs:417
CoreRef refs
Definition: Core.cs:51
Definition: EClass.cs:6
static Core core
Definition: EClass.cs:7
static SourceManager sources
Definition: EClass.cs:43
SourceBlock blocks
SourceBlock.Row block
override string GetName()
override SourcePref GetPref()
virtual TileType tileType
Definition: Trait.cs:50
Card owner
Definition: Trait.cs:28