Esempio n. 1
0
        protected override void MakeConfig()
        {
            TweakLogger.LogInfo("AContentModuleExample", "make config");

            //use AddConfig(...) here.
            //Not all tweaks will have config, but all must implement this method.
        }
Esempio n. 2
0
 private void Enabled_SettingChanged(object sender, EventArgs e)
 {
     if (Enabled.Value)
     {
         TweakLogger.LogInfo("AContentModuleBase", $"Enabled AContentModule: {Name}.");
     }
     else
     {
         TweakLogger.LogInfo("AContentModuleBase", $"Disabled AContentModule: {Name}.");
     }
 }
Esempio n. 3
0
 protected override void RemoveContent()
 {
     //This should return the game to the original state after Hook has been called.
     //AKA: after Unhook() has been called, the game continues in a vanilla behaviour.
     TweakLogger.LogInfo("AContentModuleExample", "remove content");
 }
Esempio n. 4
0
 protected override void AddContent()
 {
     //This is where you set your hooks, subscribe to events, apply variable changes.
     TweakLogger.LogInfo("AContentModuleExample ", "add content");
 }
Esempio n. 5
0
 /// <summary>
 /// This will only be logged to the console if the loglevel is set to 3 or higher.
 /// </summary>
 /// <param name="text">The message to display in the bepinex console</param>
 protected void LogInfo(string text)
 {
     TweakLogger.LogInfo(Name, text);
 }