public Room(RoomData data) : base(data) { IsLagging = 0; Unloaded = false; IdleTime = 0; RoomMuted = false; MutedUsers = new Dictionary <int, double>(); Tents = new Dictionary <int, List <RoomUser> >(); _gamemap = new Gamemap(this, data.Model); _roomItemHandling = new RoomItemHandling(this); _roomUserManager = new RoomUserManager(this); _filterComponent = new FilterComponent(this); _wiredComponent = new WiredComponent(this); _bansComponent = new BansComponent(this); _tradingComponent = new TradingComponent(this); GetRoomItemHandler().LoadFurniture(); GetGameMap().GenerateMaps(); LoadPromotions(); LoadRights(); LoadFilter(); InitBots(); InitPets(); lastRegeneration = DateTime.Now; }
public Room(RoomData Data) { IsLagging = 0; IdleTime = 0; RoomData = Data; RoomMuted = false; mDisposed = false; Id = Data.Id; Name = Data.Name; Description = Data.Description; OwnerName = Data.OwnerName; OwnerId = Data.OwnerId; Category = Data.Category; Type = Data.Type; Access = Data.Access; UsersNow = 0; UsersMax = Data.UsersMax; ModelName = Data.ModelName; Score = Data.Score; Tags = new List <string>(); foreach (var tag in Data.Tags) { Tags.Add(tag); } AllowPets = Data.AllowPets; AllowPetsEating = Data.AllowPetsEating; RoomBlockingEnabled = Data.RoomBlockingEnabled; Hidewall = Data.Hidewall; Group = Data.Group; Password = Data.Password; Wallpaper = Data.Wallpaper; Floor = Data.Floor; Landscape = Data.Landscape; WallThickness = Data.WallThickness; FloorThickness = Data.FloorThickness; chatMode = Data.chatMode; chatSize = Data.chatSize; chatSpeed = Data.chatSpeed; chatDistance = Data.chatDistance; extraFlood = Data.extraFlood; TradeSettings = Data.TradeSettings; WhoCanBan = Data.WhoCanBan; WhoCanKick = Data.WhoCanKick; WhoCanBan = Data.WhoCanBan; PushEnabled = Data.PushEnabled; PullEnabled = Data.PullEnabled; SPullEnabled = Data.SPullEnabled; SPushEnabled = Data.SPushEnabled; EnablesEnabled = Data.EnablesEnabled; RespectNotificationsEnabled = Data.RespectNotificationsEnabled; PetMorphsAllowed = Data.PetMorphsAllowed; ActiveTrades = new ArrayList(); MutedUsers = new Dictionary <int, double>(); Tents = new Dictionary <int, List <RoomUser> >(); _gamemap = new Gamemap(this); if (_roomItemHandling == null) { _roomItemHandling = new RoomItemHandling(this); } _roomUserManager = new RoomUserManager(this); _filterComponent = new FilterComponent(this); _wiredComponent = new WiredComponent(this); _bansComponent = new BansComponent(this); _tradingComponent = new TradingComponent(this); GetRoomItemHandler().LoadFurniture(); GetGameMap().GenerateMaps(); LoadPromotions(); LoadRights(); LoadFilter(); InitBots(); InitPets(); Data.UsersNow = 1; }