Exemple #1
0
 public MonsterGroup(int id, ObjectPosition position, SpawningPoolBase spawningPool = null)
 {
     ContextualId = id;
     Position     = position;
     CreationDate = DateTime.Now;
     SpawningPool = spawningPool;
 }
Exemple #2
0
 public void UnSpawnSpaces()
 {
     foreach (Map current in this.m_maps.Values)
     {
         InteractiveObject[] array  = current.GetInteractiveObjects().ToArray <InteractiveObject>();
         InteractiveObject[] array2 = array;
         for (int i = 0; i < array2.Length; i++)
         {
             InteractiveObject interactive = array2[i];
             current.UnSpawnInteractive(interactive);
         }
         SpawningPoolBase[] array3 = current.SpawningPools.ToArray <SpawningPoolBase>();
         for (int i = 0; i < array3.Length; i++)
         {
             SpawningPoolBase spawningPool = array3[i];
             current.RemoveSpawningPool(spawningPool);
         }
         CellTrigger[] array4 = current.GetTriggers().ToArray <CellTrigger>();
         CellTrigger[] array5 = array4;
         for (int i = 0; i < array5.Length; i++)
         {
             CellTrigger trigger = array5[i];
             current.RemoveTrigger(trigger);
         }
     }
     foreach (System.Collections.Generic.KeyValuePair <int, SubArea> current2 in this.m_subAreas)
     {
         foreach (MonsterSpawn current3 in current2.Value.MonsterSpawns)
         {
             current2.Value.RemoveMonsterSpawn(current3);
         }
     }
 }
Exemple #3
0
 public MonsterGroupWithAlternatives(int id, ObjectPosition position, SpawningPoolBase spawningPool = null)
     : base(id, position, spawningPool)
 {
 }