|
- using System;
- using RobocraftX.GUI.CommandLine;
- using RobocraftX.Multiplayer;
- using RobocraftX.StateSync;
- using RobocraftX.Character;
- using Svelto.ECS;
- using Unity.Entities;
- using UnityEngine;
- using uREPL;
- using Svelto.Context;
- using RobocraftX;
-
- using GamecraftModdingAPI.Commands;
-
- namespace ExtraCommands.Basics
- {
- [CustomCommand("Exit")]
- class ExitCommandEngine : ICustomCommandEngine
- {
- public string Description => "Close Gamecraft without any prompts";
-
- public string Name => "Exit";
-
- public IEntitiesDB entitiesDB { set; private get; }
-
- public void Ready()
- {
- CommandRegistrationHelper.Register(Name, ExitCommand, Description);
- }
-
- private void ExitCommand()
- {
- Application.Quit();
- }
-
- public void Dispose()
- {
- CommandRegistrationHelper.Unregister(Name);
- }
- }
- }
|