withSIX.Play.Core.Games.Legacy.RunningGame.RunningGame C# (CSharp) Method

RunningGame() public method

public RunningGame ( Game game, Process proc, Collection collection, Server server = null ) : System
game Game
proc System.Diagnostics.Process
collection Collection
server Server
return System
        public RunningGame(Game game, Process proc, Collection collection, Server server = null) {
            Game = game;
            Process = proc;
            Collection = collection;
            Server = server;

            _cts = new CancellationTokenSource();
            CommandAPI = new CommandAPI(_cts.Token);
            _token = _cts.Token;

            CommandAPI.MessageReceived.OfType<MissingAddonsMessage>().Subscribe(HandleMissingAddonsMessage);

            var gv = Game.InstalledState.Version;
            if (gv != null && gv.Revision > AcMinGameRevision)
                TryLaunchArmaCommander().ConfigureAwait(false);
        }