コード例 #1
0
        private void _handleHandoff(object sender, NetworkMessageContainer messageData)
        {
            MessageClientHandoff c = messageData?.MessageData as MessageClientHandoff;

            if (_galaxyManager.IsLocalArea(c.DestinationAreaID))
            {
                ConsoleManager.WriteLine("Received client handoff");

                Account refreshedAccount = _accountManager.GetAccountAsync(c.AccountID, true, true).Result;
                _connectionManager.AddPendingHandoff(c.IPAddress, refreshedAccount, c.DestinationAreaID, c.ShipID, c.ServerGameStateId);
            }
        }