Exemple #1
0
        /// <summary>
        /// NPC Objective by id if exist
        /// </summary>
        public NPCObjective GetById(int id)
        {
            NPCObjective result = null;

            foreach (NPCObjective npc in _items)
            {
                if (npc.Id2 == id)
                {
                    result = npc; break;
                }
            }
            return(result);
        }
Exemple #2
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)
     //{
     //}
 }
Exemple #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)
     //{
     //}
 }