当前位置: 首页>>代码示例>>C#>>正文


C# PacketReader.ReadInt32方法代码示例

本文整理汇总了C#中PacketReader.ReadInt32方法的典型用法代码示例。如果您正苦于以下问题:C# PacketReader.ReadInt32方法的具体用法?C# PacketReader.ReadInt32怎么用?C# PacketReader.ReadInt32使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PacketReader的用法示例。


在下文中一共展示了PacketReader.ReadInt32方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ReadPacket

        public void ReadPacket(PacketReader reader)
        {
            UserID = reader.ReadInt64();
            UserToken = reader.ReadString();
            ClientMajorVersion = reader.ReadInt32();
            ClientContentVersion = reader.ReadInt32();
            ClientMinorVersion = reader.ReadInt32();
            FingerprintHash = reader.ReadString();

            Unknown1 = reader.ReadString();

            OpenUDID = reader.ReadString();
            MacAddress = reader.ReadString();
            DeviceModel = reader.ReadString();
            LocaleKey = reader.ReadInt32();
            Language = reader.ReadString();
            AdvertisingGUID = reader.ReadString();
            OsVersion = reader.ReadString();

            Unknown2 = (byte)reader.ReadByte();
            Unknown3 = reader.ReadString();

            AndroidDeviceID = reader.ReadString();
            FacebookDistributionID = reader.ReadString();
            IsAdvertisingTrackingEnabled = reader.ReadBoolean();
            VendorGUID = reader.ReadString();
            Seed = reader.ReadInt32();
        }
开发者ID:jibinthomas007,项目名称:CoCSharp,代码行数:28,代码来源:LoginRequestPacket.cs

示例2: ProcessCreateChar

        public static void ProcessCreateChar(Client client, PacketReader packetReader)
        {
            var uid = packetReader.ReadMuid();
            var index = packetReader.ReadInt32();
            var name = packetReader.ReadString();
            var sex = packetReader.ReadInt32();
            var hair = packetReader.ReadInt32();
            var face = packetReader.ReadInt32();
            var costume = packetReader.ReadInt32();
            var result = Results.Accepted;

            if (uid != client.GetMuid() || index < 0 || index > 4 || sex < 0 || sex > 1)
            {
                client.Disconnect();
                return;
            }

            if (!Globals.AcceptedString.IsMatch(name))
                result = Results.CharacterEnterName;
            else if (Globals.GunzDatabase.GetCharacterCount(client.ClientPlayer.PlayerAccount.AccountId) >= 4)
                result = Results.CharacterNameNonExistant;
            else if (Globals.GunzDatabase.CharacterExists(name))
                result = Results.CharacterNameInUse;
            else if (!Globals.GunzDatabase.CreateCharacter(client.ClientPlayer.PlayerAccount.AccountId, (byte)index, name, sex, hair, face, costume))
                result = Results.CharacterInvalidName;

            Match.ResponseCreateChar(client, result, name);
        }
开发者ID:Theoretical,项目名称:bunnyemu,代码行数:28,代码来源:Login.cs

示例3: ReadCommand

 public void ReadCommand(PacketReader reader)
 {
     X = reader.ReadInt32();
     Y = reader.ReadInt32();
     UnitID = reader.ReadInt32();
     Unknown1 = reader.ReadInt32();
 }
开发者ID:maithanhtan,项目名称:CoCSharp,代码行数:7,代码来源:PlaceAttackerCommand.cs

示例4: Read

 public override void Read(PacketReader r)
 {
     Time = r.ReadInt32();
     BulletId = r.ReadByte();
     ObjectId = r.ReadInt32();
     TargetId = r.ReadInt32();
 }
开发者ID:Zeroeh,项目名称:K_Relay,代码行数:7,代码来源:OtherHitPacket.cs

示例5: ReadCommand

 public void ReadCommand(PacketReader reader)
 {
     BuildingID = reader.ReadInt32();
     Unknown1 = reader.ReadInt32();
     Unknown2 = reader.ReadInt32();
     Unknown3 = reader.ReadInt32();
 }
开发者ID:jibinthomas007,项目名称:CoCSharp,代码行数:7,代码来源:UpgradeUnitCommand.cs

示例6: ReadPacket

 public void ReadPacket(PacketReader reader)
 {
     Unknown1 = reader.ReadBoolean();
     Unknown2 = reader.ReadBoolean();
     Unknown3 = reader.ReadInt32();
     Unknown4 = reader.ReadInt32();
 }
开发者ID:maithanhtan,项目名称:CoCSharp,代码行数:7,代码来源:AllianceRankingListRequestPacket.cs

示例7: Read

 public override void Read(PacketReader r)
 {
     AccountListId = r.ReadInt32();
     AccountIds = new string[r.ReadUInt16()];
     for (int i = 0; i < AccountIds.Length; i++)
         AccountIds[i] = r.ReadString();
     LockAction = r.ReadInt32();
 }
开发者ID:JuixGames,项目名称:K_Relay,代码行数:8,代码来源:AccountListPacket.cs

示例8: Read

 public override void Read(PacketReader r)
 {
     AccountId = r.ReadString();
     CharId = r.ReadInt32();
     Killer = r.ReadString();
     obf0 = r.ReadInt32();
     obf1 = r.ReadInt32();
 }
开发者ID:JuixGames,项目名称:K_Relay,代码行数:8,代码来源:DeathPacket.cs

示例9: ReadCommand

 public void ReadCommand(PacketReader reader)
 {
     BuildingID = reader.ReadInt32();
     Unknown1 = reader.ReadInt32();
     CharacterID = reader.ReadInt32();
     Count = reader.ReadInt32();
     Unknown2 = reader.ReadInt32();
 }
开发者ID:castelbuilder123,项目名称:CoCSharp,代码行数:8,代码来源:TrainUnitCommand.cs

示例10: Read

 public override void Read(PacketReader r)
 {
     AccountId = r.ReadString();
     CharId = r.ReadInt32();
     KilledBy = r.ReadString();
     ZombieType = r.ReadInt32();
     ZombieId = r.ReadInt32();
 }
开发者ID:Zeroeh,项目名称:K_Relay,代码行数:8,代码来源:DeathPacket.cs

示例11: Read

        public IDataObject Read(PacketReader r)
        {
            ItemItem = r.ReadInt32();
            SlotType = r.ReadInt32();
            Tradable = r.ReadBoolean();
            Included = r.ReadBoolean();

            return this;
        }
开发者ID:JuixGames,项目名称:K_Relay,代码行数:9,代码来源:Item.cs

示例12: Read

 public override void Read(PacketReader r)
 {
     TickId = r.ReadInt32();
     Time = r.ReadInt32();
     NewPosition = (Location)new Location().Read(r);
     Records = new LocationRecord[r.ReadInt16()];
     for (int i = 0; i < Records.Length; i++)
         Records[i] = (LocationRecord)new LocationRecord().Read(r);
 }
开发者ID:JuixGames,项目名称:K_Relay,代码行数:9,代码来源:MovePacket.cs

示例13: Read

        public override void Read(PacketReader r)
        {
            TickId = r.ReadInt32();
            TickTime = r.ReadInt32();

            Statuses = new Status[r.ReadInt16()];
            for (int i = 0; i < Statuses.Length; i++)
                Statuses[i] = (Status)new Status().Read(r);
        }
开发者ID:JuixGames,项目名称:K_Relay,代码行数:9,代码来源:NewTickPacket.cs

示例14: Read

        public IDataObject Read(PacketReader r)
        {
            Width = r.ReadInt32();
            Height = r.ReadInt32();
            Bytes = new byte[Width * Height * 4];
            Bytes = r.ReadBytes(Bytes.Length);

            return this;
        }
开发者ID:JuixGames,项目名称:K_Relay,代码行数:9,代码来源:BitmapData.cs

示例15: ReadPacket

 public override void ReadPacket(PacketReader reader)
 {
     base.ReadPacket(reader);
     Badge = reader.ReadInt32();
     Unknown3 = reader.ReadInt32();
     Unknown4 = reader.ReadInt32();
     EP = reader.ReadInt32();
     Level = reader.ReadInt32();
 }
开发者ID:buddyfavors,项目名称:CoCSharp,代码行数:9,代码来源:AllianceSearchResponsePacket.cs


注:本文中的PacketReader.ReadInt32方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。