/// <summary> /// Inform the server that the client has a complete copy of the /// mapping, and alert other code that the handshake is over. /// </summary> /// <seealso cref="ClientHandshakeComplete"/> /// <seealso cref="NetworkInitialize"/> private void OnClientCompleteHandshake(INetManager net, INetChannel channel) { LogSzr.Debug("Letting server know we're good to go."); var handshake = net.CreateNetMessage <MsgMapStrClientHandshake>(); handshake.NeedsStrings = false; channel.SendMessage(handshake); if (ClientHandshakeComplete == null) { LogSzr.Warning("There's no handler attached to ClientHandshakeComplete."); } ClientHandshakeComplete?.Invoke(); }
private void HandleServerHandshake(MsgMapStrServerHandshake message) { ClientHandshakeComplete?.Invoke(); }