Exemple #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);
        }
Exemple #2
0
 public SREquipable(SREquipable value) : base(value)
 {
     Plus            = value.Plus;
     Variance        = value.Variance;
     Durability      = value.Durability;
     MagicOptions    = value.MagicOptions;
     Sockets         = value.Sockets;
     AdvancedElixirs = value.AdvancedElixirs;
 }
Exemple #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);
        }