Ejemplo n.º 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);
        }
Ejemplo n.º 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)
     //{
     //}
 }
Ejemplo n.º 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)
     //{
     //}
 }