Class MonsterSpawnEntry
- Namespace
- GrindFest.Characters.Monster
- Assembly
- GrindFest.dll
[Serializable]
public class MonsterSpawnEntry
- Inheritance
-
objectMonsterSpawnEntry
Fields
- MonsterName
The monster's NAME in the content index — what a declaration actually means.
MonsterPrefab above stays as the resolved fast path, but a table must not require an instance when it is built: a story is parsed while it is being read, long before anything is resident (and a WebGL build cannot load synchronously at all), and a mod can replace a monster's prefab after a table was written. A name survives both; a pinned instance survives neither.
At spawn time the name is resolved through
MonsterPool.RequestMonsterPrefab, which is the place where waiting is possible — resident resolves immediately, a miss spawns when it arrives.