Table of Contents

Class ContentDef

Namespace
GrindFest.Content
Assembly
GrindFest.dll

One content definition — the data half of a prefab.

id is the stable identity (today: the prefab's Addressables address, which is what saves and networking already store). values carries only what systems filter/sort/decide on; the complete mirror of every component field lives in defs/<kind>.json, loaded on demand.

[Serializable]
public sealed class ContentDef
Inheritance
object
ContentDef

Fields

components

Component type names present on the prefab — the composition that defines the definition's shape.

icon

Addressables address of a representative icon, when one could be derived.

id
kind
name
prefab

Addressables address of the archetype prefab (the asset that must be loaded to spawn it).

tags
tier

Load tier of prefab.

values

Queryable scalars (subset of the component values, plus derived fields).

Methods

GetBool(string, bool)
GetFloat(string, float)
GetInt(string, int)
GetString(string, string)
Has(string)
HasComponent(string)
HasTag(string)
ToString()