Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitDoorSwing.cs
Go to the documentation of this file.
2{
3 public bool isOpen;
4
5 public override bool IsOpen()
6 {
7 return isOpen;
8 }
9
10 public override void ToggleDoor(bool sound = true, bool refresh = true)
11 {
12 if (sound)
13 {
15 }
16 isOpen = !isOpen;
17 count = 0;
18 if (refresh)
19 {
22 }
23 }
24
25 public override void OnChangePlaceState(PlaceState state)
26 {
27 isOpen = false;
28 }
29}
PlaceState
Definition: PlaceState.cs:2
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:5404
Point pos
Definition: Card.cs:55
Definition: EClass.cs:5
static Map _map
Definition: EClass.cs:18
void RefreshSingleTile(int x, int z)
Definition: Map.cs:2081
void RefreshFOV(int x, int z, int radius=6, bool recalculate=false)
Definition: Map.cs:923
int x
Definition: Point.cs:36
int z
Definition: Point.cs:39
override void ToggleDoor(bool sound=true, bool refresh=true)
override void OnChangePlaceState(PlaceState state)
override bool IsOpen()
int count
Definition: TraitDoor.cs:3
virtual string idSound
Definition: TraitDoor.cs:31
Card owner
Definition: Trait.cs:26