|
- using RobocraftX.GUI.CommandLine;
- using RobocraftX.Multiplayer;
- using Svelto.Context;
- using Svelto.ECS;
- using System;
- using Unity.Entities;
- using RobocraftX;
-
- namespace ExtraCommands
- {
- class CustomCommandEngine : IQueryingEntitiesEngine, IEngine, IDisposable
- {
- protected UnityContext<FullGameCompositionRoot> context;
-
- protected EnginesRoot enginesRoot;
-
- protected World physWorld;
-
- protected Action reloadGame;
-
- protected MultiplayerInitParameters multiplayerInitParameters;
-
- public CustomCommandEngine(UnityContext<FullGameCompositionRoot> ctxHolder, EnginesRoot enginesRoot, World physW, Action reloadGame, MultiplayerInitParameters mpParams)
- {
- this.context = ctxHolder;
- this.enginesRoot = enginesRoot;
- this.physWorld = physW;
- this.reloadGame = reloadGame;
- this.multiplayerInitParameters = mpParams;
- }
-
- public IEntitiesDB entitiesDB { set; get; }
-
- virtual public void Dispose() { }
-
- // NOTE: Ready() should call uREPL.RuntimeCommands.Register to add the command to the command line
- virtual public void Ready() { }
- }
- }
|