public override void Terminate()
 {
     Log.Trace("Terminating Client Conceal Session", "Terminate");
     TerminatePlayerList();
     Instance = null;
     Log.Trace("Finished Terminate Client Conceal Session", "Terminate");
 }
예제 #2
0
 public override void Terminate()
 {
     Log.Trace("Terminating Client Conceal Session", "Terminate");
     TerminatePlayerList();
     Instance = null;
     Log.Trace("Finished Terminate Client Conceal Session", "Terminate");
 }
예제 #3
0
        /// <summary>
        /// Should only be called by GP.Session
        /// Starts the client or server sessions depending on run location
        /// </summary>
        /// <param name="runningOn"></param>
        public static void Initialize(RunLocation runningOn)
        {
            Log.Trace("Starting Concealment Sessions", "Initialize");

            RunningOn = runningOn;

            switch (RunningOn) {
                case RunLocation.Client:
                    Client = new ClientConcealSession();
                    Client.Initialize();
                    break;
                case RunLocation.Server:
                    Server = new ServerConcealSession();
                    Server.Initialize();
                    break;
                case RunLocation.Singleplayer:
                    Server = new ServerConcealSession();
                    Server.Initialize();
                    Client = new ClientConcealSession();
                    Client.Initialize();
                    break;
            }

            Log.Trace("Finished Starting Concealment Sessions", "Initialize");
        }
 public override void Initialize()
 {
     Log.Trace("Initializing Client Conceal Session", "Initialize");
     GardenGateway.Commands.addCommands(Commands.FullTree);
     Messenger = new ClientMessageHandler();
     ModMessenger = new ModMessageHandler();
     BuildPlayerList();
     new SettingsRequest().SendToServer();
     Instance = this;
     Log.Trace("Finished Initializing Client Conceal Session", "Initialize");
 }
예제 #5
0
 public override void Initialize()
 {
     Log.Trace("Initializing Client Conceal Session", "Initialize");
     GardenGateway.Commands.addCommands(Commands.FullTree);
     Messenger    = new ClientMessageHandler();
     ModMessenger = new ModMessageHandler();
     BuildPlayerList();
     new SettingsRequest().SendToServer();
     Instance = this;
     Log.Trace("Finished Initializing Client Conceal Session", "Initialize");
 }
예제 #6
0
        /// <summary>
        /// Should only be called by GP.Session
        /// Stops the client or server sessions depending on run location
        /// </summary>
        public static void Terminate()
        {
            Log.Trace("Terminating Concealment Sessions", "Initialize");

            switch (RunningOn) {
                case RunLocation.Client:
                    Client.Terminate();
                    Client = null;
                    break;
                case RunLocation.Server:
                    Server.Terminate();
                    Server = null;
                    break;
                case RunLocation.Singleplayer:
                    Server.Terminate();
                    Server = null;
                    Client.Terminate();
                    Client = null;
                    break;
            }

            Log.Trace("Finished Terminating Concealment Sessions", "Initialize");
        }