本文整理汇总了C#中GameClient.CanSendTooltip方法的典型用法代码示例。如果您正苦于以下问题:C# GameClient.CanSendTooltip方法的具体用法?C# GameClient.CanSendTooltip怎么用?C# GameClient.CanSendTooltip使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GameClient
的用法示例。
在下文中一共展示了GameClient.CanSendTooltip方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandlePacket
//.........这里部分代码省略.........
{
client.Out.SendMessage(LanguageMgr.GetTranslation(client.Account.Language, "DetailDisplayHandler.HandlePacket.VeryStrange"), eChatType.CT_System, eChatLoc.CL_SystemWindow);
}
return;
}
#endregion
#region BattleGroup
case 103: // Item info to battle group
{
invItem = client.Player.Inventory.GetItem((eInventorySlot)objectID);
if (invItem == null) return;
BattleGroup mybattlegroup = (BattleGroup)client.Player.TempProperties.getProperty<object>(BattleGroup.BATTLEGROUP_PROPERTY, null);
if (mybattlegroup == null)
{
client.Player.Out.SendMessage(LanguageMgr.GetTranslation(client.Account.Language, "DetailDisplayHandler.HandlePacket.MustBeInBattleGroup"), eChatType.CT_System, eChatLoc.CL_SystemWindow);
return;
}
if (mybattlegroup.Listen == true && (((bool)mybattlegroup.Members[client.Player]) == false))
{
client.Player.Out.SendMessage(LanguageMgr.GetTranslation(client.Account.Language, "DetailDisplayHandler.HandlePacket.OnlyModerator"), eChatType.CT_System, eChatLoc.CL_SystemWindow);
return;
}
string str = LanguageMgr.GetTranslation(client.Account.Language, "DetailDisplayHandler.HandlePacket.ChatItem", client.Player.Name, GetShortItemInfo(invItem, client));
foreach (GamePlayer ply in mybattlegroup.Members.Keys)
{
ply.Out.SendMessage(str, eChatType.CT_Chat, eChatLoc.CL_ChatWindow);
}
return;
}
#endregion
#region v1.110+
case 24://SpellsNew
if (client.CanSendTooltip(24, objectID))
client.Out.SendDelveInfo(DelveSpell(client, objectID));
break;
case 25://StylesNew
if (client.CanSendTooltip(25, objectID))
client.Out.SendDelveInfo(DelveStyle(client, objectID));
break;
case 26://SongsNew
if (client.CanSendTooltip(26, objectID))
client.Out.SendDelveInfo(DelveSong(client, objectID));
client.Out.SendDelveInfo(DelveSpell(client, objectID));
break;
case 27://RANew
if (client.CanSendTooltip(27, objectID))
client.Out.SendDelveInfo(DelveRealmAbility(client, objectID));
break;
case 28://AbilityNew
if (client.CanSendTooltip(28, objectID))
client.Out.SendDelveInfo(DelveAbility(client, objectID));
break;
#endregion
#region ChampionAbilities delve from trainer window
default:
{
// Try retieving champion lines
int clSpecID = objectType - 150;
int clLineIndex = objectID >> 8;
int clSkillIndex = objectID & 0x00FF;
// Get Player CL Spec
var clspec = client.Player.GetSpecList().Where(sp => sp is LiveChampionsSpecialization).Cast<LiveChampionsSpecialization>().FirstOrDefault();