Table of Contents

Class TimbnZombies

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

Finds the zombies in the loaded save and the looks the game can give them.

public static class TimbnZombies
Inheritance
TimbnZombies
Inherited Members

Methods

All()

The zombies standing in the world of the loaded save, whatever job they have. Zombies lying on the ground as items are not included. Empty at the main menu.

public static List<ZombieWgoData> All()

Returns

List<ZombieWgoData>

Each zombie's world object.

Examples

var caretakers = TimbnZombies.All().Count(zombie => zombie.ZombieType == ZombieType.Caretaker);

AtStation(WgoData)

The zombie a station holds, either lying in its slot as an item (a station made with HoldsZombie, or the game's autopsy table) or working it. Use it to pay the zombie tech points when a craft there ends.

public static ZombieWgoData? AtStation(WgoData station)

Parameters

station WgoData

The station.

Returns

ZombieWgoData

The zombie, or null when the station holds none.

Looks(string)

The bodies, heads, and skin colors the game picks from when it rolls a zombie's looks, read once from the game's zombie customization config. A mod that restyles zombies offers these so its zombies look like the game's own.

public static TimbnZombieSkins? Looks(string dataId = "zombie_worker")

Parameters

dataId string

Which kind of zombie, the worker zombie by default.

Returns

TimbnZombieSkins

The looks, or null when the game has no such kind.

Redraw(ZombieWgoData)

Redraws a zombie after its looks or gear changed in its data, the way the game does when it spawns. It covers a zombie standing in the world, one lying on the ground as an item, and a fighter. Events.ZombieViewReady runs again for a zombie standing in the world, except a fighter.

public static bool Redraw(ZombieWgoData zombie)

Parameters

zombie ZombieWgoData

The zombie.

Returns

bool

False when the zombie has no view to redraw right now, or at the main menu.

Examples

ZombieSkinHelper.ApplySkinToZombieWgoData(zombie, body, head, bodyColor, headColor);
TimbnZombies.Redraw(zombie);