|
- using System;
-
- using RobocraftX.GUI.MyGamesScreen;
- using Svelto.ECS;
- using TechbloxModdingAPI.Engines;
- using TechbloxModdingAPI.Utility;
-
- namespace TechbloxModdingAPI.App
- {
- public class AppEngine : IFactoryEngine
- {
- public WrappedHandler<MenuEventArgs> EnterMenu;
-
- public WrappedHandler<MenuEventArgs> ExitMenu;
-
- public IEntityFactory Factory { set; private get; }
-
- public string Name => "TechbloxModdingAPIAppEngine";
-
- public bool isRemovable => false;
-
- public EntitiesDB entitiesDB { set; private get; }
-
- public void Dispose()
- {
- IsInMenu = false;
- ExitMenu.Invoke(this, new MenuEventArgs { });
- }
-
- public void Ready()
- {
- IsInMenu = true;
- EnterMenu.Invoke(this, new MenuEventArgs { });
- }
-
- // app functionality
-
- public bool IsInMenu
- {
- get;
- private set;
- } = false;
- }
- }
|