Exemplo n.º 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);
        }
Exemplo n.º 2
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);
        }