Пример #1
0
 public RoomItemHandling GetRoomItemHandler()
 {
     if (_roomItemHandling == null)
     {
         _roomItemHandling = new RoomItemHandling(this);
     }
     return(_roomItemHandling);
 }
Пример #2
0
        //public RoomTraxManager traxManager; // Added

        //private ProcessComponent _process = null;

        public Room(RoomData Data)
        {
            IsLagging = 0;
            IdleTime  = 0;

            _roomData         = Data;
            RoomMuted         = false;
            mDisposed         = false;
            muteSignalEnabled = false;

            Id          = Data.Id;
            Name        = Data.Name;
            Description = Data.Description;
            OwnerName   = Data.OwnerName;
            OwnerId     = Data.OwnerId;

            WiredScoreBordDay              = Data.WiredScoreBordDay;
            WiredScoreBordWeek             = Data.WiredScoreBordWeek;
            WiredScoreBordMonth            = Data.WiredScoreBordMonth;
            WiredScoreFirstBordInformation = Data.WiredScoreFirstBordInformation;

            ForSale   = false;
            SalePrice = 0;
            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 (string 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;

            poolQuestion   = string.Empty;
            yesPoolAnswers = new List <int>();
            noPoolAnswers  = new List <int>();

            ActiveTrades = new ArrayList();
            Bans         = new Dictionary <int, double>();
            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);
            _traxManager     = new RoomTraxManager(this);
            OnFurnisLoad();

            GetRoomItemHandler().LoadFurniture();
            GetGameMap().GenerateMaps();

            LoadPromotions();
            LoadRights();
            LoadBans();
            LoadFilter();
            InitBots();
            InitPets();

            Data.UsersNow = 1;
        }