Inheritance: OpenNos.Data.ShopDTO, IGameObject
Exemple #1
0
 public Npc(short npcId)
 {
     Mapper.CreateMap<NpcDTO, Npc>();
     Mapper.CreateMap<Npc, NpcDTO>();
     NpcId = npcId;
     ShopDTO shop = DAOFactory.ShopDAO.LoadByNpc(NpcId);
     if (shop != null)
         Shop = new Shop(shop.ShopId) { Name = shop.Name, NpcId = NpcId, MenuType = shop.MenuType,ShopType = shop.ShopType };
 }