/// <summary> /// Add new DeliveryObjective /// </summary> public void Add(DeliveryObjective d) { if (d.ExistsInWorld) { if (CanAdd) { _items.Add(d); } } else { BadIdList.AddItemId(d.Id); } }
/// <summary> /// Add new Reward [Item] /// </summary> public void Add(Reward r) { if (r.ExistsInWorld) { if (CanAdd) { _items.Add(r); } } else { BadIdList.AddItemId(r.Id); } }
/// <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) //{ //} }