Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using Butterfly.HabboHotel.Items;
- namespace Butterfly.HabboHotel.Items
- {
- class Item
- {
- private uint Id;
- internal string PublicName;
- internal string Name;
- internal char Type;
- internal int Width;
- internal int Length;
- internal double Height;
- internal bool Stackable;
- internal bool Walkable;
- internal int SpriteId;
- internal bool IsSeat;
- internal bool AllowRecycle;
- internal bool AllowTrade;
- internal bool AllowMarketplaceSell;
- internal bool AllowGift;
- internal bool AllowInventoryStack;
- internal InteractionType InteractionType;
- internal List<int> VendingIds;
- internal int Modes;
- internal uint ItemId
- {
- get
- {
- return Id;
- }
- }
- internal Item(UInt32 Id, string PublicName, string Name, string Type, int Width, int Length, double Height, bool Stackable, bool IsSeat, bool Walkable, int Sprite, bool AllowRecycle, bool AllowTrade, bool AllowMarketplaceSell, bool AllowGift, bool AllowInventoryStack, InteractionType InteractionType, int Modes, string VendingIds)
- {
- this.Id = Id;
- this.PublicName = PublicName;
- this.Name = Name;
- this.Type = char.Parse(Type);
- this.Width = Width;
- this.Length = Length;
- this.Height = Height;
- this.Stackable = Stackable;
- this.IsSeat = IsSeat;
- this.Walkable = Walkable;
- this.SpriteId = Sprite;
- this.AllowRecycle = AllowRecycle;
- this.AllowTrade = AllowTrade;
- this.AllowMarketplaceSell = AllowMarketplaceSell;
- this.AllowGift = AllowGift;
- this.AllowInventoryStack = AllowInventoryStack;
- this.InteractionType = InteractionType;
- this.Modes = Modes;
- this.VendingIds = new List<int>();
- if (VendingIds.Contains(","))
- {
- foreach (string VendingId in VendingIds.Split(','))
- {
- this.VendingIds.Add(int.Parse(VendingId));
- }
- }
- else if (!VendingIds.Equals("") && (int.Parse(VendingIds)) > 0)
- {
- this.VendingIds.Add(int.Parse(VendingIds));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment