Class ExpectedContent
One piece of content a mod declares by stable identity: its Kind (item, prefab,
recipe, statusEffect or piece),
its Name (the prefab or recipe object's name; items and prefabs are identified by the game's
stable hash of it) and the Sides that must have it. A recipe may also declare the Item it
crafts, its Station (a crafting station's prefab name, or none for crafting by hand) and its
Resources (item prefab names). A piece must name the Tool whose build table should contain
it, and may also declare its station and resources. An optional dependency left null is not checked.
public sealed record ExpectedContent
- Inheritance
-
objectExpectedContent
Properties
Hash
The game's hash of the name (Of(string)), by which it looks items and prefabs up.
[JsonIgnore]
public int Hash { get; }
Property Value
- int
Item
public string? Item { get; init; }
Property Value
- string
Kind
public required string Kind { get; init; }
Property Value
- string
Name
public required string Name { get; init; }
Property Value
- string
Resources
public IReadOnlyList<string>? Resources { get; init; }
Property Value
- IReadOnlyList<string>
Sides
public required IReadOnlyList<CensusSide> Sides { get; init; }
Property Value
- IReadOnlyList<CensusSide>
Station
public string? Station { get; init; }
Property Value
- string
Tool
public string? Tool { get; init; }
Property Value
- string