コード例 #1
0
 private void Setup_DefaultGlobalHandlers()
 {
     CustomExpHandlerManager.AddGlobalHandler <TweakedSettingHandler>("TweakedSetting", CustomExpSettings.MAIN_ONLY);
     CustomExpHandlerManager.AddGlobalHandler <TimedObjectiveHandler>("TimedObjective", CustomExpSettings.MAIN_ONLY);
     //CustomObjectiveManager.AddGlobalHandler<FogControlTerminalHandler>(); later
     //TODO: New Global Handler: Change Light Settings (color / type / or whatever)
     // New Global Handler: Change Alarm Settings for existing door
     // New Global Handler: Regen Hibernating Enemies on other zone
 }
コード例 #2
0
        private void PostSetup_LocalConfigs()
        {
            ConfigUtil.SetupLocalConfig();

            if (!ConfigUtil.HasLocalPath)
            {
                return;
            }

            if (ConfigUtil.TryGetLocalConfig <LocalConfigDTO>("CustomExpPrefs.json", out var config))
            {
                Logger.Log("=== Global Handler Whitelist ===");
                foreach (var p in config.EnabledGlobalHandlers)
                {
                    Logger.Log("Allowed Plugin: {0}", p);
                }
                CustomExpHandlerManager.SetGlobalHandlerWhitelist(config.EnabledGlobalHandlers.ToArray());
            }
        }