コード例 #1
0
        public override void Init(ITorchBase torch)
        {
            torch.GameStateChanged += OnGameStateChanged;
            var pgmr = new PBProfilerManager(torch);

            torch.Managers.AddManager(pgmr);

            _config = Persistent <ProfilerConfig> .Load(Path.Combine(StoragePath, "PBLimiter.cfg"));

            server = torch;

            Log.Info("PBLimiter loaded!");
        }
コード例 #2
0
        public override void Init(ITorchBase torch)
        {
            torch.GameStateChanged += OnGameStateChanged;
            var pgmr = new PBProfilerManager(torch);

            torch.Managers.AddManager(pgmr);

            _config = Persistent <ProfilerConfig> .Load(Path.Combine(StoragePath, "PBLimiter.cfg"));

            server = torch;

            ProfilerConfig.PlayerOverrides.CollectionChanged += PlayerOverrides_CollectionChanged;

            PBPlayerTracker.OnListChanged();
            Log.Info("PBLimiter loaded!");
        }