コード例 #1
0
        public void Initialize()
        {
            var logger = _logManager.GetSawmill("con.groups");

            _configurationManager.RegisterCVar("console.loginlocal", true, CVar.ARCHIVE);

            _playerManager.PlayerStatusChanged += _onClientStatusChanged;

            // load the permission groups in the console
            _groups = new ConGroupContainer(_resourceManager, logger);
            _groups.LoadGroups();

            // set up the session group container
            _sessions = new SessionGroupContainer(_configurationManager, logger);
        }
コード例 #2
0
        public void Initialize()
        {
            var logger = _logManager.GetSawmill("con.groups");

            _netManager.RegisterNetMessage <MsgConGroupUpdate>(MsgConGroupUpdate.Name);

            _playerManager.PlayerStatusChanged += _onClientStatusChanged;

            // load the permission groups in the console
            _groups = new ConGroupContainer(_resourceManager, logger);
            _groups.LoadGroups();

            // set up the session group container
            _sessions = new SessionGroupContainer(_configurationManager, logger);

            UpdateAllClientData();
        }
コード例 #3
0
 /// <summary>
 /// Clears the existing groups, and reloads from disk.
 /// </summary>
 public void ReloadGroups()
 {
     _groups.Clear();
     _groups.LoadGroups();
     UpdateAllClientData();
 }
コード例 #4
0
 /// <summary>
 /// Clears the existing groups, and reloads from disk.
 /// </summary>
 public void ReloadGroups()
 {
     _groups.Clear();
     _groups.LoadGroups();
 }