public RocketUnturnedHost(IDependencyContainer container)
        {
            string rocketDirectory = $"Servers/{Dedicator.serverID}/Rocket/";

            if (!Directory.Exists(rocketDirectory))
            {
                Directory.CreateDirectory(rocketDirectory);
            }

            Directory.SetCurrentDirectory(rocketDirectory);
            Console = new StdConsole(container);
        }
예제 #2
0
 public ConsoleHost(IRuntime runtime)
 {
     Console = new StdConsole(runtime.Container);
 }
예제 #3
0
 /// <inheritdoc />
 public EcoHost(IDependencyContainer container)
 {
     Console = new StdConsole(container);
 }
예제 #4
0
 public TestHost(IDependencyContainer container, ILogger logger)
 {
     this.logger = logger;
     Console     = new StdConsole(container);
 }