Elin Decompiled Documentation
EA 23.357 Nightly
Loading...
Searching...
No Matches
TraitDoorBig.cs
Go to the documentation of this file.
1
public
class
TraitDoorBig
:
TraitDoor
2
{
3
public
override
int
height
=> 2;
4
5
public
override
string
idSound
=>
GetParam
(1);
6
7
public
override
void
ToggleDoor
(
bool
sound =
true
,
bool
refresh =
true
)
8
{
9
base.ToggleDoor(sound, refresh);
10
TraitDoorBig
doorPair =
GetDoorPair
();
11
if
(doorPair !=
null
&& doorPair.
IsOpen
() !=
IsOpen
())
12
{
13
doorPair.
ToggleDoor
(sound:
false
);
14
}
15
}
16
17
public
TraitDoorBig
GetDoorPair
()
18
{
19
int
dir =
owner
.
dir
;
20
Cell
cell =
null
;
21
cell = ((!(
this
is
TraitDoorBigL
)) ? ((dir == 0 || dir == 2) ?
owner
.
Cell
.
Back
:
owner
.
Cell
.
Left
) : ((dir == 0 || dir == 2) ?
owner
.
Cell
.
Front
:
owner
.
Cell
.
Right
));
22
return
cell.traitDoor as
TraitDoorBig
;
23
}
24
}
Card.Cell
Cell Cell
Definition:
Card.cs:2107
Card.dir
int dir
Definition:
Card.cs:149
Cell
Definition:
Cell.cs:7
Cell.Back
Cell Back
Definition:
Cell.cs:175
Cell.Front
Cell Front
Definition:
Cell.cs:151
Cell.Left
Cell Left
Definition:
Cell.cs:187
Cell.Right
Cell Right
Definition:
Cell.cs:163
TraitDoorBigL
Definition:
TraitDoorBigL.cs:4
TraitDoorBig
Definition:
TraitDoorBig.cs:2
TraitDoorBig.GetDoorPair
TraitDoorBig GetDoorPair()
Definition:
TraitDoorBig.cs:17
TraitDoorBig.height
override int height
Definition:
TraitDoorBig.cs:3
TraitDoorBig.idSound
override string idSound
Definition:
TraitDoorBig.cs:5
TraitDoorBig.ToggleDoor
override void ToggleDoor(bool sound=true, bool refresh=true)
Definition:
TraitDoorBig.cs:7
TraitDoor
Definition:
TraitDoor.cs:2
TraitDoor.IsOpen
virtual bool IsOpen()
Definition:
TraitDoor.cs:101
Trait.GetParam
string GetParam(int i, string def=null)
Definition:
Trait.cs:591
Trait.owner
Card owner
Definition:
Trait.cs:28
Elin
TraitDoorBig.cs
Generated by
1.9.6