Table of Contents

Class TimbnLook

Namespace
Timbn.GraveyardKeeperTwo.Core.Framework
Assembly
Timbn.GraveyardKeeperTwo.Core.dll

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

TimbnLookCondition

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

groupId string

The item group's id.

atLeast int

How many, 1 or more.

Returns

TimbnLookCondition

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

itemId string

The item's id, for example "body_zombie".

atLeast int

How many, 1 or more.

Returns

TimbnLookCondition

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

TimbnLookCondition

IsWorking()

True while someone is working the station, the player at its work or a zombie at its craft.

public static TimbnLookCondition IsWorking()

Returns

TimbnLookCondition

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

resourceId string

The resource's id.

comparison TimbnComparison

How the resource is compared with the value.

value int

The number to compare with.

Returns

TimbnLookCondition

Exceptions

ArgumentException

The id is empty.