本文整理汇总了C#中IRecvPacket类的典型用法代码示例。如果您正苦于以下问题:C# IRecvPacket类的具体用法?C# IRecvPacket怎么用?C# IRecvPacket使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IRecvPacket类属于命名空间,在下文中一共展示了IRecvPacket类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: receive_OverallLightLevel
private static void receive_OverallLightLevel(IRecvPacket packet)
{
// byte iLightLevel = reader.ReadByte();
// 0x00 - day
// 0x09 - OSI night
// 0x1F - Black
// Max normal val = 0x1F
OverallLightLevelPacket p = (OverallLightLevelPacket)packet;
// Console.WriteLine("OverallLight: {0}", p.LightLevel);
_worldService.OverallLightning = p.LightLevel;
}
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:12,代码来源:UltimaClient.cs
示例17: receive_RejectMoveItemRequest
private static void receive_RejectMoveItemRequest(IRecvPacket packet)
{
LiftRejectionPacket p = (LiftRejectionPacket)packet;
_LegacyUI.AddMessage_Chat("Could not pick up item: " + p.ErrorMessage);
_LegacyUI.Cursor.ClearHolding();
}
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:6,代码来源:UltimaClient.cs
示例18: receive_PersonalLightLevel
private static void receive_PersonalLightLevel(IRecvPacket packet)
{
// int iCreatureID = reader.ReadInt();
// byte iLightLevel = reader.ReadByte();
// 0x00 - day
// 0x09 - OSI night
// 0x1F - Black
// Max normal val = 0x1F
PersonalLightLevelPacket p = (PersonalLightLevelPacket)packet;
// Console.WriteLine("PersonalLight: {0}", p.LightLevel);
_worldService.PersonalLightning = p.LightLevel;
}
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:13,代码来源:UltimaClient.cs
示例19: receive_ResurrectionMenu
private static void receive_ResurrectionMenu(IRecvPacket packet)
{
// int iAction = reader.ReadByte();
// 0: Server sent
// 1: Resurrect
// 2: Ghost
// The only use on OSI for this packet is now sending "2C02" for the "You Are Dead" screen upon character death.
announce_UnhandledPacket(packet);
}
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:9,代码来源:UltimaClient.cs
示例20: receive_PlayerLocaleAndBody
private static void receive_PlayerLocaleAndBody(IRecvPacket packet)
{
LoginConfirmPacket p = (LoginConfirmPacket)packet;
// When loading the player object, we must load the serial before the object.
EntitiesCollection.MySerial = p.Serial;
PlayerMobile iPlayer = EntitiesCollection.GetObject<PlayerMobile>(p.Serial, true);
iPlayer.Move_Instant(p.X, p.Y, p.Z, p.Direction);
// iPlayer.SetFacing(p.Direction);
// We want to make sure we have the client object before we load the world...
if (Status == UltimaClientStatus.WorldServer_LoginComplete)
Status = UltimaClientStatus.WorldServer_InWorld;
}
开发者ID:Crwth,项目名称:UltimaXNA,代码行数:14,代码来源:UltimaClient.cs
注:本文中的IRecvPacket类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论