-
Notifications
You must be signed in to change notification settings - Fork 0
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
c15ce32
commit 9cec55f
Showing
85 changed files
with
139 additions
and
70 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
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,16 @@ | ||
namespace ConfigurableWarning; | ||
|
||
/// <summary> | ||
/// Contains the plugin information for the ConfigurableWarning plugin. | ||
/// </summary> | ||
public static class CWPluginInfo { | ||
/// <summary> | ||
/// The GUID of the plugin. | ||
/// </summary> | ||
public const string PLUGIN_GUID = "RedstoneWizard08.ConfigurableWarning"; | ||
|
||
/// <summary> | ||
/// The name of the plugin. | ||
/// </summary> | ||
public const string PLUGIN_NAME = "RedstoneWizard08.ConfigurableWarning"; | ||
} |
31 changes: 31 additions & 0 deletions
31
ContentLibrary/Source/ConfigurableWarning/ConfigurableWarning.cs
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,31 @@ | ||
using BepInEx; | ||
using BepInEx.Logging; | ||
using ConfigurableWarning.API; | ||
using ContentLibrary; | ||
|
||
namespace ConfigurableWarning; | ||
|
||
/// <summary> | ||
/// ConfigurableWarning's BepInEx entrypoint. | ||
/// </summary> | ||
[ContentWarningPlugin(CWPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_VERSION, false)] | ||
[BepInPlugin(CWPluginInfo.PLUGIN_GUID, CWPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)] | ||
[BepInDependency(MyceliumNetworking.MyPluginInfo.PLUGIN_GUID)] | ||
public class ConfigurableWarning : BaseUnityPlugin { | ||
/// <summary> | ||
/// Our <see cref="ManualLogSource" />. | ||
/// </summary> | ||
internal new static readonly ManualLogSource Logger = BepInEx.Logging.Logger.CreateLogSource(CWPluginInfo.PLUGIN_GUID); | ||
|
||
/// <summary> | ||
/// Initializes the plugin | ||
/// </summary> | ||
public void Awake() { | ||
Logger.LogInfo($"Loading plugin {CWPluginInfo.PLUGIN_GUID} (bundled with {MyPluginInfo.PLUGIN_GUID})..."); | ||
|
||
ConfigurableWarningAPI.Init(); | ||
ConfigurableWarningAPI.Register(); | ||
|
||
Logger.LogInfo($"Plugin {CWPluginInfo.PLUGIN_GUID} loaded!"); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.