protected override void MakeConfig() { TweakLogger.LogInfo("AContentModuleExample", "make config"); //use AddConfig(...) here. //Not all tweaks will have config, but all must implement this method. }
private void Enabled_SettingChanged(object sender, EventArgs e) { if (Enabled.Value) { TweakLogger.LogInfo("AContentModuleBase", $"Enabled AContentModule: {Name}."); } else { TweakLogger.LogInfo("AContentModuleBase", $"Disabled AContentModule: {Name}."); } }
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"); }
protected override void AddContent() { //This is where you set your hooks, subscribe to events, apply variable changes. TweakLogger.LogInfo("AContentModuleExample ", "add content"); }
/// <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); }