예제 #1
0
 /// <summary>
 /// Add new DeliveryObjective
 /// </summary>
 public void Add(DeliveryObjective d)
 {
     if (d.ExistsInWorld)
     {
         if (CanAdd)
         {
             _items.Add(d);
         }
     }
     else
     {
         BadIdList.AddItemId(d.Id);
     }
 }
예제 #2
0
        /// <summary>
        /// Add new Reward [Item]
        /// </summary>
        public void Add(Reward r)
        {
            if (r.ExistsInWorld)
            {
                if (CanAdd)
                {
                    _items.Add(r);
                }
            }

            else
            {
                BadIdList.AddItemId(r.Id);
            }
        }
예제 #3
0
 /// <summary>
 /// Add new NPC Objective
 /// </summary>
 public void Add(NPCObjective npco)
 {
     if (npco.TypeObj == TypeNpcObj.Mobile)
     {                   //if Mobile
         if (npco.ExistsInWorld)
         {               // exists in world
             if (CanAdd) //can be added
             {
                 _items.Add(npco);
             }
         }
         else
         {
             BadIdList.AddMobileId(npco.Id);                   //add to bad statistic list
         }
     }
     //else // GameObject objective (not supported yet)
     //{
     //}
 }