Ejemplo n.º 1
0
        //public void PlayerConnected(IClientMockPlayer player)
        //{
        //	//Logging.BMSLog.Log("SEVERRRR: " + player.NetworkId);
        //	player.Name = "Player " + player.NetworkId;
        //	networkObject.SendRpc(RPC_PLAYER_JOINED, Receivers.AllBuffered, player.NetworkId);
        //}

        /// <summary>
        /// Arguments:
        /// uint playerid
        /// </summary>
        private void PlayerJoined(RpcArgs args)
        {
            uint playerId = args.GetNext <uint>();
            var  player   = CreateClientMockPlayer(playerId, "Player " + playerId);

            MasterLobby.OnFNPlayerConnected(player);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Arguments:
        /// uint playerid
        /// </summary>
        private void PlayerJoined(RpcArgs args)
        {
            uint playerId = args.GetNext <uint>();
            var  player   = CreateClientMockPlayer(playerId, "Player " + playerId);

            //Logging.BMSLog.Log("PLAYER JOINED!! :" + playerId);

            MasterLobby.OnFNPlayerConnected(player);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Arguments:
        /// uint playerid
        /// strng playername
        /// int teamid
        /// int avatarid
        /// </summary>
        private void SyncPlayer(RpcArgs args)
        {
            uint   playerId   = args.GetNext <uint>();
            string playerName = args.GetNext <string>();
            int    teamID     = args.GetNext <int>();
            int    avatarID   = args.GetNext <int>();
            var    player     = GetClientMockPlayer(playerId);

            if (player == null)
            {
                player = CreateClientMockPlayer(playerId, "Player " + playerId);
                MasterLobby.OnFNPlayerConnected(player);
            }

            player.Name     = playerName;
            player.TeamID   = teamID;
            player.AvatarID = avatarID;
            MasterLobby.OnFNPlayerSync(player);
        }