-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69e7e27
commit 627125b
Showing
8 changed files
with
135 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
src/main/java/com/falsepattern/lib/internal/config/ConfigEngineConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* This file is part of FalsePatternLib. | ||
* | ||
* Copyright (C) 2022-2024 FalsePattern | ||
* All Rights Reserved | ||
* | ||
* The above copyright notice and this permission notice shall be included | ||
* in all copies or substantial portions of the Software. | ||
* | ||
* FalsePatternLib is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* FalsePatternLib is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with FalsePatternLib. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.falsepattern.lib.internal.config; | ||
|
||
import com.falsepattern.lib.StableAPI; | ||
import com.falsepattern.lib.config.Config; | ||
import com.falsepattern.lib.config.ConfigurationManager; | ||
import com.falsepattern.lib.internal.Tags; | ||
|
||
@Config.Comment("Settings for the FPLib config system (also used by other mods)") | ||
@Config.LangKey | ||
@Config(modid = Tags.MODID, | ||
category = "config_engine") | ||
public class ConfigEngineConfig { | ||
|
||
@Config.Comment("How the config error logging should be set up.") | ||
@Config.LangKey | ||
@Config.DefaultEnum("Log") | ||
@Config.Name(value = "configErrorLogging") | ||
public static LoggingLevel CONFIG_ERROR_LOGGING; | ||
|
||
@Config.Comment("How successful config synchronizations should be logged.") | ||
@Config.LangKey | ||
@Config.DefaultEnum("Log") | ||
@Config.Name(value = "configSyncSuccessLogging") | ||
public static LoggingLevel CONFIG_SYNC_SUCCESS_LOGGING; | ||
|
||
@Config.Comment("How failed config synchronizations should be logged.") | ||
@Config.LangKey | ||
@Config.DefaultEnum("LogAndToast") | ||
@Config.Name(value = "configSyncFailureLogging") | ||
public static LoggingLevel CONFIG_SYNC_FAILURE_LOGGING; | ||
|
||
static { | ||
ConfigurationManager.selfInit(); | ||
} | ||
|
||
public static void poke() { | ||
|
||
} | ||
|
||
public enum LoggingLevel { | ||
@StableAPI.Expose(since = "__INTERNAL__") None, | ||
@StableAPI.Expose(since = "__INTERNAL__") Log, | ||
@StableAPI.Expose(since = "__INTERNAL__") LogAndToast | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters