Beispiel #1
0
        public uint GetPrice(uint TypeID, uint ADay)
        {
            switch (TypeID.GetItemGroup())
            {
            case IffGroupFlag.ITEM_TYPE_BALL:
                return(Ball.GetPrice(TypeID));

            case IffGroupFlag.ITEM_TYPE_CLUB:
                return(ClubSet.GetPrice(TypeID));

            case IffGroupFlag.ITEM_TYPE_CHARACTER:
                return(Character.GetPrice(TypeID));

            case IffGroupFlag.ITEM_TYPE_PART:
                return(Part.GetPrice(TypeID));

            case IffGroupFlag.ITEM_TYPE_HAIR_STYLE:
                return(HairStyle.GetPrice(TypeID));

            case IffGroupFlag.ITEM_TYPE_USE:
                return(Item.GetPrice(TypeID));

            case IffGroupFlag.ITEM_TYPE_CADDIE:
                return(Caddie.GetPrice(TypeID));

            case IffGroupFlag.ITEM_TYPE_CADDIE_ITEM:
                return(CaddieItem.GetPrice(TypeID, ADay));

            case IffGroupFlag.ITEM_TYPE_SETITEM:
                return(SetItem.GetPrice(TypeID));

            case IffGroupFlag.ITEM_TYPE_SKIN:
                return(Skin.GetPrice(TypeID, ADay));

            case IffGroupFlag.ITEM_TYPE_MASCOT:
                return(Mascot.GetPrice(TypeID, ADay));

            case IffGroupFlag.ITEM_TYPE_CARD:
                return(Card.GetPrice(TypeID));
            }
            return(0);
        }
        public UInt32 GetPrice(UInt32 TypeID, UInt32 ADay)
        {
            switch (GetItemGroup(TypeID))
            {
            case TITEMGROUP.ITEM_TYPE_BALL:
                return(Ball.GetPrice(TypeID));

            case TITEMGROUP.ITEM_TYPE_CLUB:
                return(Club.GetPrice(TypeID));

            case TITEMGROUP.ITEM_TYPE_CHARACTER:
                return(Character.GetPrice(TypeID));

            case TITEMGROUP.ITEM_TYPE_PART:
                return(Part.GetPrice(TypeID));

            case TITEMGROUP.ITEM_TYPE_HAIR_STYLE:
                return(HairStyle.GetPrice(TypeID));

            case TITEMGROUP.ITEM_TYPE_USE:
                return(Items.GetPrice(TypeID));

            case TITEMGROUP.ITEM_TYPE_CADDIE:
                return(Caddie.GetPrice(TypeID));

            case TITEMGROUP.ITEM_TYPE_CADDIE_ITEM:
                return(CaddieItem.GetPrice(TypeID, ADay));

            case TITEMGROUP.ITEM_TYPE_SETITEM:
                return(SetITem.GetPrice(TypeID));

            case TITEMGROUP.ITEM_TYPE_SKIN:
                return(Skin.GetPrice(TypeID, ADay));

            case TITEMGROUP.ITEM_TYPE_MASCOT:
                return(Mascot.GetPrice(TypeID, ADay));

            case TITEMGROUP.ITEM_TYPE_CARD:
                return(Card.GetPrice(TypeID));
            }
            return(0);
        }