Ejemplo n.º 1
0
        private CatalogueItemInfo ProcessCatalogueItemInfoDataRow(DataRow dRow)
        {
            CatalogueItemInfo cItem = new CatalogueItemInfo();

            cItem.FurniSprite = dRow["Sprite"].ToString();
            cItem.WallItem =  dRow["Flags"].ToString().Contains('V');
            cItem.Col = dRow["Col"].ToString();
            cItem.FurniName = InstanceManager.Game.Furni.GetItemName(cItem.WallItem, cItem.FurniSprite, cItem.Col);
            cItem.FurniDesc = InstanceManager.Game.Furni.GetItemDesc(cItem.WallItem, cItem.FurniSprite, cItem.Col);
            cItem.W = (int) dRow["W"];
            cItem.L = (int)dRow["L"];
            cItem.ItemCost = (int) dRow["ItemCost"];
            cItem.HandType = dRow["HandType"].ToString();
            cItem.PurchaseCode = dRow["PurchaseCode"].ToString();
            cItem.FurniType = (int) dRow["CatalogueFurniType"];
            cItem.Sticky = dRow["Flags"].ToString().Contains('N');
            cItem.StaffOnly = (bool)dRow["StaffOnly"];
            return cItem;
        }