Пример #1
0
 private void ObjectMonster(S.ObjectMonster p)
 {
     MonsterObject mob;
     for (int i = MapControl.Objects.Count - 1; i >= 0; i--)
     {
         MapObject ob = MapControl.Objects[i];
         if (ob.ObjectID == p.ObjectID)
         {
             mob = (MonsterObject)ob;
             mob.Load(p, true);
             return;
         }
     }
     mob = new MonsterObject(p.ObjectID);
     mob.Load(p);
 }
Пример #2
0
 private void ObjectMonster(S.ObjectMonster p)
 {
     MonsterObject mob;
     for (int i = MapControl.Objects.Count - 1; i >= 0; i--)
     {
         MapObject ob = MapControl.Objects[i];
         if (ob.ObjectID == p.ObjectID)
         {
             mob = (MonsterObject)ob;
             mob.Load(p, true);
             return;
         }
     }
     mob = new MonsterObject(p.ObjectID);
     mob.Load(p);
     /*
     string[] mobs = new string[] { "OmaKing", "DarkDevil", "MinotaurKing" };
     if (mobs.Contains(mob.Name))
     {
         ChatDialog.ReceiveChat(string.Format("{0} at {1}", p.Name, p.Location), ChatType.Hint);
     }
     */
 }
Пример #3
0
 private void ObjectMonster(S.ObjectMonster p)
 {
     MonsterObject ob = new MonsterObject(p.ObjectID);
     ob.Load(p);
 }