Example #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);
        }
Example #2
0
 public SRCoS(SRCoS value) : base(value)
 {
     StateType = value.StateType;
     ModelID   = value.ModelID;
     ModelName = value.ModelName;
     unkByte01 = value.unkByte01;
 }
Example #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);
        }