Class TimbnLook
Builds the conditions for a station's extra models. They use the game's own conditional drawer, the way the autopsy table shows its cloth when it holds a body. Pass one to ShowWhen(TimbnLookCondition, TimbnModel, bool).
public static class TimbnLook
- Inheritance
-
TimbnLook
- Inherited Members
Methods
HasWorker()
True while the station has a worker, the player or a zombie, whether or not the work is running.
public static TimbnLookCondition HasWorker()
Returns
HoldsGroup(string, int)
True while the station's own inventory holds at least this many items of an item group, such as "body", which every body and zombie item is in.
public static TimbnLookCondition HoldsGroup(string groupId, int atLeast = 1)
Parameters
Returns
Exceptions
- ArgumentException
The id is empty.
- ArgumentOutOfRangeException
The count is below 1.
HoldsItem(string, int)
True while the station's own inventory holds at least this many of an item.
public static TimbnLookCondition HoldsItem(string itemId, int atLeast = 1)
Parameters
Returns
Exceptions
- ArgumentException
The id is empty.
- ArgumentOutOfRangeException
The count is below 1.
IsCrafting()
True while a craft runs on the station, whoever or whatever runs it. The game's resurrection table shows its working effects this way.
public static TimbnLookCondition IsCrafting()
Returns
IsWorking()
True while someone is working the station, the player at its work or a zombie at its craft.
public static TimbnLookCondition IsWorking()
Returns
Resource(string, TimbnComparison, int)
True while one of the station's own game resources compares as asked, for a value a mod keeps on the station with SetGameRes. A resource that was never set counts as 0.
public static TimbnLookCondition Resource(string resourceId, TimbnComparison comparison, int value)
Parameters
resourceIdstringThe resource's id.
comparisonTimbnComparisonHow the resource is compared with the value.
valueintThe number to compare with.
Returns
Exceptions
- ArgumentException
The id is empty.