Class DMIntrospector
- Namespace
- GrindFest.GameMaster
- Assembly
- GrindFest.dll
Discovers configurable properties on GameObjects via reflection and applies property changes from the DM. Separated from DMToolExecutor to keep concerns clean.
public static class DMIntrospector
- Inheritance
-
objectDMIntrospector
Methods
- FormatForLLM(GameObject)
Format configurable properties as a human-readable string appended to tool results.
- GetConfigurableProperties(GameObject)
Get all configurable properties on a GameObject. Walks MonoBehaviours, filters to game components, extracts simple-typed fields.
- GetPropertySchema(GameObject)
Generate a JSON schema for the configurable properties of a GameObject. Used for constrained LLM decoding in request.json toolSchemas.
- SetProperties(GameObject, JObject)
Set multiple properties at once. Returns all results joined.
- SetProperty(GameObject, string, JToken)
Set a property on a GameObject by path (e.g., "CharacterBehaviour.Strength"). Supports Component.Field paths and searches children if prefixed with ChildName.