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


C# IRecvPacket类代码示例

本文整理汇总了C#中IRecvPacket的典型用法代码示例。如果您正苦于以下问题:C# IRecvPacket类的具体用法?C# IRecvPacket怎么用?C# IRecvPacket使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: receive_NewSubserver

 private static void receive_NewSubserver(IRecvPacket packet)
 {
     SubServerPacket p = (SubServerPacket)packet;
     announce_UnhandledPacket(packet);
 }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:5,代码来源:UltimaClient.cs

示例2: receive_SkillsList

 private static void receive_SkillsList(IRecvPacket packet)
 {
     foreach (SendSkillsPacket_SkillEntry skill in ((SendSkillsPacket)packet).Skills)
     {
         if (skill.SkillID > 55)
             continue;
         ClientVars.SkillEntry entry = ClientVars.Skills.SkillEntry(skill.SkillID);
         entry.Value = skill.SkillValue;
         entry.ValueUnmodified = skill.SkillValueUnmodified;
         entry.LockType = skill.SkillLock;
         entry.Cap = skill.SkillCap;
     }
 }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:13,代码来源:UltimaClient.cs

示例3: receive_TargetCursor

 private static void receive_TargetCursor(IRecvPacket packet)
 {
     TargetCursorPacket p = (TargetCursorPacket)packet;
     GameState.MouseTargeting((TargetTypes)p.CommandType, p.CursorID);
 }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:5,代码来源:UltimaClient.cs

示例4: receive_SendCustomHouse

        private static void receive_SendCustomHouse(IRecvPacket packet)
        {
            CustomHousePacket p = (CustomHousePacket)packet;
            Data.CustomHousing.UpdateCustomHouseData(p.HouseSerial, p.RevisionHash, p.PlaneCount, p.Planes);

            Multi e = EntitiesCollection.GetObject<Multi>(p.HouseSerial, false);
            if (e.CustomHouseRevision != p.RevisionHash)
            {
                Data.CustomHouse house = Data.CustomHousing.GetCustomHouseData(p.HouseSerial);
                e.AddCustomHousingTiles(house);
            }
        }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:12,代码来源:UltimaClient.cs

示例5: receive_ServerRelay

 private static void receive_ServerRelay(IRecvPacket packet)
 {
     ServerRelayPacket p = (ServerRelayPacket)packet;
     // Normally, upon receiving this packet you would disconnect and
     // log in to the specified server. Since we are using RunUO, we don't
     // actually need to do this.
     _ClientNetwork.IsDecompressionEnabled = true;
     Send(new GameLoginPacket(p.AccountId, _account, _password));
 }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:9,代码来源:UltimaClient.cs

示例6: receive_RequestNameResponse

 private static void receive_RequestNameResponse(IRecvPacket packet)
 {
     RequestNameResponsePacket p = (RequestNameResponsePacket)packet;
     Mobile u = EntitiesCollection.GetObject<Mobile>(p.Serial, false);
     u.Name = p.MobileName;
 }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:6,代码来源:UltimaClient.cs

示例7: receive_SeasonalInformation

 private static void receive_SeasonalInformation(IRecvPacket packet)
 {
     // Only partially handled !!! If iSeason2 = 1, then this is a season change.
     // If season change, then iSeason1 = (0=spring, 1=summer, 2=fall, 3=winter, 4 = desolation)
     SeasonChangePacket p = (SeasonChangePacket)packet;
     ClientVars.EngineVars.Season = p.Season;
 }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:7,代码来源:UltimaClient.cs

示例8: receive_OpenPaperdoll

 private static void receive_OpenPaperdoll(IRecvPacket packet)
 {
     announce_UnhandledPacket(packet);
 }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:4,代码来源:UltimaClient.cs

示例9: receive_OpenWebBrowser

 private static void receive_OpenWebBrowser(IRecvPacket packet)
 {
     OpenWebBrowserPacket p = (OpenWebBrowserPacket)packet;
     System.Diagnostics.Process.Start("iexplore.exe", p.WebsiteUrl);
 }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:5,代码来源:UltimaClient.cs

示例10: receive_OnSwing

 private static void receive_OnSwing(IRecvPacket packet)
 {
     SwingPacket p = (SwingPacket)packet;
     if (p.Attacker == EntitiesCollection.MySerial)
     {
         ClientVars.EngineVars.LastTarget = p.Defender;
     }
 }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:8,代码来源:UltimaClient.cs

示例11: receive_OpenBuyWindow

 private static void receive_OpenBuyWindow(IRecvPacket packet)
 {
     VendorBuyListPacket p = (VendorBuyListPacket)packet;
     Item iObject = EntitiesCollection.GetObject<Item>(p.VendorPackSerial, false);
     if (iObject == null)
         return;
     // UserInterface.Merchant_Open(iObject, 0);
     // !!!
 }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:9,代码来源:UltimaClient.cs

示例12: receive_OnParticleEffect

 private static void receive_OnParticleEffect(IRecvPacket packet)
 {
     announce_UnhandledPacket(packet);
 }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:4,代码来源:UltimaClient.cs

示例13: receive_ObjectPropertyList

        private static void receive_ObjectPropertyList(IRecvPacket packet)
        {
            ObjectPropertyListPacket p = (ObjectPropertyListPacket)packet;

            Entity iObject = EntitiesCollection.GetObject<Entity>(p.Serial, false);
            iObject.PropertyList.Hash = p.Hash;
            iObject.PropertyList.Clear();

            for (int i = 0; i < p.CliLocs.Count; i++)
            {
                string iCliLoc = Data.StringList.Entry(p.CliLocs[i]);
                if (p.Arguements[i] == string.Empty)
                {
                    iObject.PropertyList.AddProperty(iCliLoc);
                }
                else
                {
                    iObject.PropertyList.AddProperty(constructCliLoc(iCliLoc, p.Arguements[i]));
                }
            }
        }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:21,代码来源:UltimaClient.cs

示例14: receive_ObjectHelpResponse

 private static void receive_ObjectHelpResponse(IRecvPacket packet)
 {
     announce_UnhandledPacket(packet);
 }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:4,代码来源:UltimaClient.cs

示例15: receive_QuestArrow

 private static void receive_QuestArrow(IRecvPacket packet)
 {
     announce_UnhandledPacket(packet);
 }
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:4,代码来源:UltimaClient.cs


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