示例#1
0
文件: Client.cs 项目: davidhart/micro
 public void SetStatus(RemotePlayerStatus status)
 {
     NetOutgoingMessage msg = CreateMessage(eClientToServerMessage.SetStatus);
     msg.Write((byte)status);
     client.SendMessage(msg, NetDeliveryMethod.ReliableOrdered);
 }
示例#2
0
    public void SetStatus(RemotePlayer player, RemotePlayerStatus status)
    {
        player.Status = status;

        OnPlayerStatusChanged(player);
    }
示例#3
0
    public bool AllPlayerStatusEquals(RemotePlayerStatus status)
    {
        foreach(RemotePlayer player in ConnectedPlayers)
        {
            if (player.Status != status)
                return false;
        }

        return true;
    }
示例#4
0
    public void SetAllStatus(RemotePlayerStatus status)
    {
        foreach(RemotePlayer player in ConnectedPlayers)
        {
            player.Status = status;

            OnPlayerStatusChanged(player);
        }
    }
示例#5
0
 public void SetStatus(RemotePlayerStatus status)
 {
     client.SetStatus(status);
 }