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


C# Parser.ReadString方法代码示例

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


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

示例1: ReadSetInfo

        public static void ReadSetInfo(Parser packet)
        {
            packet.ReadPackedGuid("SetID");
            packet.ReadInt32("Index");
            packet.ReadString("SetName");
            packet.ReadString("SetIcon");

            for (var j = 0; j < 19; j++)
                packet.ReadPackedGuid("Item GUID");
        }
开发者ID:Gintama,项目名称:VoragineTools,代码行数:10,代码来源:EquipmentSetHandler.cs

示例2: HandleCommandCalendar

 public void HandleCommandCalendar(Parser packet)
 {
     WriteLine("unk: " + packet.ReadInt32() + "(unused)");
     WriteLine("unk: " + packet.ReadInt8() + "(unused)");
     WriteLine("unk: " + packet.ReadString());
     packet.ReadEnum<CalendarResponseResult>("Result");
 }
开发者ID:Gintama,项目名称:VoragineTools,代码行数:7,代码来源:CalendarHandler.cs

示例3: HandleAddEvent

        public void HandleAddEvent(Parser packet)
        {
            WriteLine("Name: " + packet.ReadString());
            WriteLine("Description: " + packet.ReadString());
            WriteLine("Type: " + packet.ReadInt8());
            WriteLine("Repeat_Option: " + packet.ReadInt8());
            WriteLine("maxSize: " + packet.ReadInt32());
            WriteLine("dungeonID: " + packet.ReadInt32());
            WriteLine("time: " + packet.ReadPackedTime());
            WriteLine("lockoutTime: " + packet.ReadInt32());
            WriteLine("flags: " + packet.ReadInt32());

            var inviteCount = packet.ReadInt32("inviteCount");
            WriteLine("");
            WriteLine("Invited Players");

            for (var i = 0; i < inviteCount; ++i)
            {
                WriteLine(" PlayerGuid: " + packet.ReadPackedGuid());
                WriteLine(" inviteStatus: " + packet.ReadInt8());
                WriteLine(" modType: " + packet.ReadInt8());
                WriteLine("");
            }
        }
开发者ID:Gintama,项目名称:VoragineTools,代码行数:24,代码来源:CalendarHandler.cs

示例4: HandleEventInviteAlert

 public void HandleEventInviteAlert(Parser packet)
 {
     WriteLine("EventID: " + packet.ReadInt64());
     WriteLine("EventName: " + packet.ReadString());
     WriteLine("EventTime: " + packet.ReadTime());
     WriteLine("EventFlags: " + packet.ReadInt32());
     WriteLine("EventType: " + packet.ReadInt32());
     WriteLine("DungeonID: " + packet.ReadInt32());
     WriteLine("unk: " + packet.ReadInt32());
     WriteLine("InviteID: " + packet.ReadInt64());
     WriteLine("InviteStatus: " + packet.ReadInt8());
     WriteLine("Mod_Type: " + packet.ReadInt8());
     WriteLine("unk: " + packet.ReadInt32());
     WriteLine("Inviter_1: " + packet.ReadPackedGuid());
     WriteLine("Inviter_2: " + packet.ReadPackedGuid());
 }
开发者ID:Gintama,项目名称:VoragineTools,代码行数:16,代码来源:CalendarHandler.cs

示例5: HandleSenddCalendar

        public void HandleSenddCalendar(Parser packet)
        {
            var inviteCount = packet.ReadInt32("InviteCount");
            for (var i = 0; i < inviteCount; ++i)
            {
                WriteLine("  EventID: " + packet.ReadInt64());
                WriteLine("  InviteID: " + packet.ReadInt64());
                WriteLine("  InviteStats: " + packet.ReadInt8());
                WriteLine("  Mod_Type: " + packet.ReadInt8());
                WriteLine("  Invite_Type: " + packet.ReadInt8());
                WriteLine("  InvitedBy: " + packet.ReadPackedGuid());
                WriteLine("");
            }

            var EventCount = packet.ReadInt32("EventCount");
            for (var i = 0; i < EventCount; ++i)
            {
                WriteLine("  EventID: " + packet.ReadInt64());
                WriteLine("  EventName: " + packet.ReadString());
                WriteLine("  EventModFlags: " + packet.ReadInt32());
                WriteLine("  EventDate: " + packet.ReadPackedTime());
                WriteLine("  EventFlags: " + packet.ReadInt32());
                WriteLine("  DungeonID: " + packet.ReadInt32());
                WriteLine("  unk: " + packet.ReadInt64());
                WriteLine("  InvitedBy: " + packet.ReadPackedGuid());
                WriteLine("");
            }

            WriteLine("CurrentUnixTime: " + packet.ReadTime());
            WriteLine("CurrentPacketTime: " + packet.ReadPackedTime());

            var InstanceResetCount = packet.ReadInt32("InstanceResetCount");
            for (var i = 0; i < InstanceResetCount; ++i)
            {
                WriteLine("  MapID: " + packet.ReadInt32());
                WriteLine("  Difficulty: " + packet.ReadInt32());
                WriteLine("  ResetTime: " + packet.ReadTime());
                WriteLine("  RaidID: " + packet.ReadInt64());
                WriteLine("");
            }

            WriteLine("BaseTime: " + packet.ReadTime());

            var RaidResetCount = packet.ReadInt32("RaidResetCount");
            for (var i = 0; i < RaidResetCount; ++i)
            {
                WriteLine("  MapID: " + packet.ReadInt32());
                WriteLine("  ResetTime: " + packet.ReadTime());
                WriteLine("  NegativeOffset: " + packet.ReadInt32());
                WriteLine("");
            }

            var Counter = packet.ReadInt32();
            WriteLine("Counter: " + Counter + "(Never seen this larger than 0)");
        }
开发者ID:Gintama,项目名称:VoragineTools,代码行数:55,代码来源:CalendarHandler.cs

示例6: HandleSendEvent

        public void HandleSendEvent(Parser packet)
        {
            WriteLine("Invite_Type: " + packet.ReadInt8());
            WriteLine("Creator " + packet.ReadPackedGuid());
            WriteLine("EventID: " + packet.ReadInt32());
            WriteLine("unk: " + packet.ReadInt32());
            WriteLine("EventName: " + packet.ReadString());
            WriteLine("EventDescription: " + packet.ReadString());
            WriteLine("Event_Type: " + packet.ReadInt8());
            WriteLine("Repeat_Option: " + packet.ReadInt8());
            WriteLine("MaxSize: " + packet.ReadInt32());
            WriteLine("DungeonID: " + packet.ReadInt32());
            WriteLine("EventFlags: " + packet.ReadInt32());
            WriteLine("EventTime: " + packet.ReadPackedTime());
            WriteLine("LockOutTime: " + packet.ReadInt32());
            WriteLine("unk: " + packet.ReadInt32());
            WriteLine("unk: " + packet.ReadInt32());

            var inviteCount = packet.ReadInt32("InviteCount");
            for (var i = 0; i < inviteCount; ++i)
            {
                WriteLine("  PlayerGuid: " + packet.ReadPackedGuid());
                WriteLine("  PlayerLevel: " + packet.ReadInt8());
                WriteLine("  InviteStatus: " + packet.ReadInt8());
                WriteLine("  Mod_Type: " + packet.ReadInt8());
                WriteLine("  unk: " + packet.ReadInt8());
                WriteLine("  inviteID: " + packet.ReadInt64());
                WriteLine("  unk: " + packet.ReadInt8());
                WriteLine("  unk: " + packet.ReadInt32());
                WriteLine("");
            }
        }
开发者ID:Gintama,项目名称:VoragineTools,代码行数:32,代码来源:CalendarHandler.cs


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