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); }
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); } */ }
private void ObjectMonster(S.ObjectMonster p) { MonsterObject ob = new MonsterObject(p.ObjectID); ob.Load(p); }