コード例 #1
0
 public void Read(UdpPacket packet)
 {
     LocalPlayerName = packet.ReadString();
     Name            = packet.ReadString();
     Map             = packet.ReadString();
     Version         = packet.ReadString();
 }
コード例 #2
0
 public void Read(UdpPacket packet)
 {
     UserName    = packet.ReadString();
     DisplayName = packet.ReadString();
     IP          = packet.ReadString();
     AuthLevel   = packet.ReadInt();
 }
コード例 #3
0
 public void Read(UdpPacket packet)
 {
     try
     {
         Name           = packet.ReadString();
         UnityId        = packet.ReadString();
         Version        = packet.ReadString();
         PrefferedClass = (ClassType)packet.ReadInt();
     }
     catch (Exception)
     {
         IsValid = false;
     }
 }
コード例 #4
0
            public override void Read(UdpPacket packet)
            {
                base.Read(packet);

                CustomName     = packet.ReadString();
                CreatureInfoId = packet.ReadInt();
            }
コード例 #5
0
 public void Read(UdpPacket packet)
 {
     this.AdminPassword  = packet.ReadString();
     this.ServerPassword = packet.ReadString();
     if (packet.CanRead())
     {
         int num = packet.ReadInt();
         if (num > 0)
         {
             this.steamBlobToken = new byte[num];
             for (int i = 0; i < this.steamBlobToken.Length; i++)
             {
                 this.steamBlobToken[i] = packet.ReadByte();
             }
         }
     }
 }
コード例 #6
0
 public void Read(UdpPacket packet)
 {
     ServerName     = packet.ReadString();
     Version        = packet.ReadString();
     GameMode       = packet.ReadString();
     MapName        = packet.ReadString();
     Public         = packet.ReadBool();
     GameStarted    = packet.ReadBool();
     CanBeJoined    = packet.ReadBool();
     MaxPlayers     = packet.ReadInt();
     CurrentPlayers = packet.ReadInt();
     PlayersNicknames.Clear();
     for (int i = 0; i < CurrentPlayers; i++)
     {
         PlayersNicknames.Add(packet.ReadString());
     }
 }
コード例 #7
0
 public void Read(UdpPacket packet)
 {
     this.AdminPassword = packet.ReadString();
     this.ServerPassword = packet.ReadString();
 }
コード例 #8
0
 public void Read(UdpPacket packet)
 {
     this.AdminPassword  = packet.ReadString();
     this.ServerPassword = packet.ReadString();
 }
コード例 #9
0
ファイル: UserToken.cs プロジェクト: Noitha/DetentionRoom
 public void Read(UdpPacket packet)
 {
     Username = packet.ReadString();
     Password = packet.ReadString();
 }
コード例 #10
0
ファイル: TheForestCore.cs プロジェクト: tralivali1234/Oxide
 public void Read(UdpPacket packet) => KickMessage = packet.ReadString();
コード例 #11
0
 public void Read(UdpPacket packet)
 {
     playerName      = packet.ReadString();
     colorPreference = packet.ReadColorRGB();
 }
コード例 #12
0
            public override void Read(UdpPacket packet)
            {
                base.Read(packet);

                PlayerName = packet.ReadString();
            }
コード例 #13
0
 public void Read(UdpPacket packet)
 {
     DisplayName = packet.ReadString();
     PlayerID    = packet.ReadInt();
 }
コード例 #14
0
 public void Read(UdpPacket packet)
 {
     SceneFrom = packet.ReadString();
     SceneTo   = packet.ReadString();
     Reason    = packet.ReadString();
 }
コード例 #15
0
 public void Read(UdpPacket packet)
 {
     this.Error = packet.ReadString();
 }
コード例 #16
0
 public void Read(UdpPacket packet)
 {
     Name    = packet.ReadString();
     UnityId = packet.ReadString();
     Version = packet.ReadString();
 }
コード例 #17
0
 public void Read(UdpPacket packet)
 {
     Nickname = packet.ReadString();
 }
コード例 #18
0
 public void Read(UdpPacket packet)
 {
     playerName   = packet.ReadString();
     playerNumber = packet.ReadInt();
     playerColor  = packet.ReadColorRGB();
 }
コード例 #19
0
 public void Read(UdpPacket packet)
 {
     this.Error = packet.ReadString();
 }
コード例 #20
0
            public override void Read(UdpPacket packet)
            {
                base.Read(packet);

                CustomNameId = packet.ReadString();
            }
コード例 #21
0
 public void Read(UdpPacket packet)
 {
     Won           = packet.ReadBool();
     EndGameReason = packet.ReadString();
 }
コード例 #22
0
ファイル: CoopKickToken.cs プロジェクト: ahvonenj/TheForest
 public void Read(UdpPacket packet)
 {
     this.KickMessage = packet.ReadString();
 }
コード例 #23
0
 public void Read(UdpPacket packet)
 {
     ArbitraryData = packet.ReadString();
     password      = packet.ReadString();
 }
コード例 #24
0
 void IProtocolToken.Read(UdpPacket packet)
 {
     this.PlayerName = packet.ReadString();
 }
コード例 #25
0
 public void Read(UdpPacket packet)
 {
     data        = packet.ReadString();
     playerIndex = packet.ReadInt();
 }
コード例 #26
0
 public void Read(UdpPacket packet)
 {
     username = packet.ReadString();
 }
コード例 #27
0
 public void Read(UdpPacket packet)
 {
     RoomInfo     = packet.ReadString();
     Gamemode     = packet.ReadString();
     PlayersCount = packet.ReadInt();
 }
コード例 #28
0
 public void Read(UdpPacket packet)
 {
     data = packet.ReadString();
 }
コード例 #29
0
 public void Read(UdpPacket packet)
 {
     levelName       = packet.ReadString();
     playersInGame   = packet.ReadInt();
     messageOfTheDay = packet.ReadString();
 }