Example #1
0
		public virtual void OnMobAllocated(Puzzle puzzle, MonsterGroup group)
		{
		}
Example #2
0
		public virtual void OnMonsterDead(Puzzle puzzle, MonsterGroup group)
		{
		}
Example #3
0
		/// <summary>
		/// Spawns mob in place.
		/// </summary>
		/// <param name="place"></param>
		/// <param name="name"></param>
		/// <param name="group"></param>
		/// <param name="spawnPosition"></param>
		public void AllocateAndSpawnMob(PuzzlePlace place, string name, DungeonMonsterGroupData group, Placement spawnPosition)
		{
			var mob = new MonsterGroup(name, this, place, spawnPosition);
			_monsterGroups.Add(name, mob);

			mob.Allocate(group);
			mob.Spawn();
		}