示例#1
0
        private void OnClientConnected(MyPacket packet)
        {
            Sync.ClientConnected(packet.Sender.Id.Value);
            ConnectedClientDataMsg msg = base.ReplicationLayer.OnClientConnected(packet);

            this.OnConnectedClient(ref msg);
            packet.Return();
        }
示例#2
0
        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();
        }