Ejemplo n.º 1
0
        // Set up any hooks, event handlers and your mod in general here.
        // Load runs before Celeste itself has initialized properly.
        public override void Load()
        {
            // SetLogLevel will set the *minimum* log level that will be written for logs that use the given prefix string.
            Logger.SetLogLevel("ExampleModule", LogLevel.Verbose);
            Logger.Log(LogLevel.Info, "ExampleModule", "Loading ExampleModule Hooks");
            // The default LogLevel when using Logger.Log is Verbose.
            Logger.Log(LogLevel.Verbose, "ExampleModule", "This line would not be logged with SetLogLevel LogLevel.Info");

            Hooks.Load();
            ExtendedDashBlock.Load();
        }
Ejemplo n.º 2
0
 // Unload the entirety of your mod's content. Free up any native resources.
 public override void Unload()
 {
     Hooks.Unload();
     ExtendedDashBlock.Unload();
 }