// ================ Main Setup ==================== internal void Awake() { Instance = this; new SL(); SL.Log($"Version {SL.VERSION} starting..."); /* setup Harmony */ var harmony = new Harmony(SL.GUID); harmony.PatchAll(); /* SceneManager.sceneLoaded event */ SceneManager.sceneLoaded += SL.Instance.SceneLoaded; /* Initialize custom textures callbacks */ CustomTextures.Init(); /* Setup keybinding */ CustomKeybindings.AddAction(UIManager.MENU_TOGGLE_KEY, KeybindingsCategory.CustomKeybindings); }
public static void LogWarning(string log) => SLPlugin.Log(log, LogLevel.Warning);
public static void LogError(string log) => SLPlugin.Log(log, LogLevel.Error);
public static void Log(string log) => SLPlugin.Log(log, LogLevel.Message);