private void SendWorldInfo() { _interClient.OnConnected -= SendWorldInfo; _interClient.Send(new ISMessage(ISMessageType.WORLD_INFO, _worldConfiguration)); _interClient.OnSessionResponse += LoadSelectionScreen; }
public async Task Handle(WorldClient client, HandshakePacket packet) { client.SetClientUserID(packet.UserId); _sessionId = client.Id; // Send request to login server and get client key. await _interClient.Send(new ISMessage(ISMessageType.AES_KEY_REQUEST, packet.SessionId)); }
private void SendWorldInfo() { _interClient.OnConnected -= SendWorldInfo; _interClient.Send(new ISMessage(ISMessageType.WORLD_INFO, _worldConfiguration)); }