Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TaskBaseBuild.cs
Go to the documentation of this file.
2{
3 public bool CanPlaceCard(Point pos, Card c)
4 {
5 if (!InstallCheck<TraitBed>())
6 {
7 return false;
8 }
9 return true;
10 bool InstallCheck<T>() where T : Trait
11 {
12 if (!(c.trait is T))
13 {
14 return true;
15 }
16 foreach (Thing thing in pos.Things)
17 {
18 if (thing.trait is T)
19 {
20 return false;
21 }
22 }
23 return true;
24 }
25 }
26}
Definition: Card.cs:11
Trait trait
Definition: Card.cs:49
Definition: Point.cs:9
List< Thing > Things
Definition: Point.cs:314
bool CanPlaceCard(Point pos, Card c)
Definition: TaskBaseBuild.cs:3
Point pos
Definition: TaskPoint.cs:11
Definition: Thing.cs:8
Definition: Trait.cs:7