5 partial class MonsterMission : Mission
12 base.ClientReadInitial(msg);
14 for (
int i = 0; i < monsterCount; i++)
19 throw new System.Exception($
"Error in MonsterMission.ClientReadInitial: failed to create a monster (mission: {Prefab.Identifier}, index: {i})");
21 monsters.Add(monster);
23 if (monsters.Count != monsterCount)
25 throw new System.Exception(
"Error in MonsterMission.ClientReadInitial: monster count does not match the server count (" + monsterCount +
" != " + monsters.Count +
"mission: " +
Prefab.
Identifier +
")");
27 InitializeMonsters(monsters);
static Character ReadSpawnData(IReadMessage inc)
override bool DisplayAsCompleted
override bool DisplayAsFailed
override void ClientReadInitial(IReadMessage msg)
readonly Identifier Identifier