Пример #1
0
        public static SRItem Create(string ServerName, SRRentable Rentable = null)
        {
            SRItem item = new SRItem(ServerName);

            if (Rentable == null)
            {
                Rentable = new SRRentable(0);
            }
            item.Rentable = Rentable;
            if (item.isEquipable())
            {
                SREquipable equipable = new SREquipable(item);
                item = equipable;
            }
            else if (item.isCoS())
            {
                SRCoS cos = new SRCoS(item);
                item = cos;
            }
            else if (item.isEtc())
            {
                SREtc etc = new SREtc(item);
                item = etc;
            }
            return(item);
        }
Пример #2
0
        protected SRItem(SRItem value)
        {
            ID         = value.ID;
            ServerName = value.ServerName;
            Name       = value.Name;
            ID1        = value.ID1;
            ID2        = value.ID2;
            ID3        = value.ID3;
            ID4        = value.ID4;

            Icon          = value.Icon;
            Quantity      = value.Quantity;
            QuantityMax   = value.QuantityMax;
            LevelRequired = value.LevelRequired;
            Rentable      = value.Rentable;
        }
Пример #3
0
        public static SRItem Create(uint ID, SRRentable Rentable)
        {
            SRItem item = new SRItem(ID);

            item.Rentable = Rentable;
            if (item.isEquipable())
            {
                SREquipable equipable = new SREquipable(item);
                item = equipable;
            }
            else if (item.isCoS())
            {
                SRCoS cos = new SRCoS(item);
                item = cos;
            }
            else if (item.isEtc())
            {
                SREtc etc = new SREtc(item);
                item = etc;
            }
            return(item);
        }
Пример #4
0
 public SRCoS(SRItem value) : base(value)
 {
 }
Пример #5
0
 public SREquipable(SRItem value) : base(value)
 {
     Quantity = 1;
 }