Experimental re-imagining of Pixi with less C#
Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- using System.Reflection;
-
- using IllusionPlugin;
- //using GamecraftModdingAPI;
-
- namespace NPort
- {
- public class NPortPlugin : IEnhancedPlugin
- {
- public override string Name { get; } = Assembly.GetExecutingAssembly().GetName().Name;
- // To change the name, change the project's name
-
- public override string Version { get; } = Assembly.GetExecutingAssembly().GetName().Version.ToString();
-
- // called when Gamecraft shuts down
- public override void OnApplicationQuit()
- {
- // Shutdown this mod
- GamecraftModdingAPI.Utility.Logging.LogDebug($"{Name} has shutdown");
-
- // Shutdown the Gamecraft modding API last
- GamecraftModdingAPI.Main.Shutdown();
- }
-
- // called when Gamecraft starts up
- public override void OnApplicationStart()
- {
- // Initialize the Gamecraft modding API first
- GamecraftModdingAPI.Main.Init();
- // check out the modding API docs here: https://mod.exmods.org/
-
- // Initialize this mod
-
- GamecraftModdingAPI.Utility.Logging.MetaLog($"{Name} has started up");
- }
-
- // unused methods
-
- public override void OnFixedUpdate() { } // called once per physics update
-
- public override void OnUpdate() { } // called once per rendered frame (frame update)
- }
- }
|