Experimental re-imagining of Pixi with less C#
25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System.Reflection;
-
- using IllusionPlugin;
- using TechbloxModdingAPI.Utility;
- using TechbloxModdingAPI;
-
- 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
- Logging.LogDebug($"{Name} has shutdown");
-
- // Shutdown the Gamecraft modding API last
- Main.Shutdown();
- }
-
- // called when Gamecraft starts up
- public override void OnApplicationStart()
- {
- // Initialize the Gamecraft modding API first
- Main.Init();
- // check out the modding API docs here: https://mod.exmods.org/
-
- // Initialize this mod
-
- Logging.MetaLog($"{Name} has started up");
- #if DEBUG
- // TEST
- Bindings.Robocraft.FactoryRobotListInfo[] items = Bindings.Robocraft.GetFactoryFrontPage();
- foreach (var item in items)
- {
- Logging.MetaLog($"{item.item_name} by {item.added_by_display_name} ({item.item_id})");
- }
- #endif
- }
-
- // unused methods
-
- public override void OnFixedUpdate() { } // called once per physics update
-
- public override void OnUpdate() { } // called once per rendered frame (frame update)
- }
- }
|