private void OnClientConnected(MyPacket packet) { Sync.ClientConnected(packet.Sender.Id.Value); ConnectedClientDataMsg msg = base.ReplicationLayer.OnClientConnected(packet); this.OnConnectedClient(ref msg); packet.Return(); }
private unsafe void ClientConnected(MyPacket packet) { Sync.ClientConnected(packet.Sender.Id.Value); ConnectedClientDataMsg msg = base.ReplicationLayer.OnClientConnected(packet); ConnectedClientDataMsg *msgPtr1 = (ConnectedClientDataMsg *)ref msg; this.OnConnectedClient(ref (ConnectedClientDataMsg) ref msgPtr1, msg.SteamID); packet.Return(); }