本文整理汇总了C#中GamePlayer.GetType方法的典型用法代码示例。如果您正苦于以下问题:C# GamePlayer.GetType方法的具体用法?C# GamePlayer.GetType怎么用?C# GamePlayer.GetType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GamePlayer
的用法示例。
在下文中一共展示了GamePlayer.GetType方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Show_Info
private void Show_Info(GamePlayer player, GameClient client)
{
var text = new List<string>();
text.Add(" ");
text.Add("PLAYER INFORMATION (Client # " + player.Client.SessionID + ", " + player.GetType().FullName + ")");
text.Add(" - Name Lastname : " + player.Name + " " + player.LastName);
text.Add(" - Realm Level Class : " + GlobalConstants.RealmToName(player.Realm) + " " + player.Level + " " + player.CharacterClass.Name + " (" + player.CharacterClass.ID + ")");
text.Add(" - Guild : " + player.GuildName + " " + (player.GuildRank != null ? "Rank: " + player.GuildRank.RankLevel.ToString() : ""));
text.Add(" - XPs/RPs/BPs : " + player.Experience + " xp, " + player.RealmPoints + " rp, " + player.BountyPoints + " bp");
if (player.DamageRvRMemory > 0)
text.Add(" - Damage RvR Memory: " + player.DamageRvRMemory);
if (player.Champion)
{
text.Add(" - Champion : CL " + player.ChampionLevel + ", " + player.ChampionExperience + " clxp");
string activeBags = "None";
if (player.ActiveSaddleBags != 0)
{
if (player.ActiveSaddleBags == (byte)GamePlayer.eHorseSaddleBag.All)
{
activeBags = "All";
}
else
{
activeBags = "";
if ((player.ActiveSaddleBags & (byte)GamePlayer.eHorseSaddleBag.LeftFront) > 0)
{
if (activeBags != "")
activeBags += ", ";
activeBags += "LeftFront";
}
if ((player.ActiveSaddleBags & (byte)GamePlayer.eHorseSaddleBag.RightFront) > 0)
{
if (activeBags != "")
activeBags += ", ";
activeBags += "RightFront";
}
if ((player.ActiveSaddleBags & (byte)GamePlayer.eHorseSaddleBag.LeftRear) > 0)
{
if (activeBags != "")
activeBags += ", ";
activeBags += "LeftRear";
}
if ((player.ActiveSaddleBags & (byte)GamePlayer.eHorseSaddleBag.RightRear) > 0)
{
if (activeBags != "")
activeBags += ", ";
activeBags += "RightRear";
}
}
}
text.Add(string.Format(" - ActiveSaddleBags : {0} (0x{1:X2})", activeBags, player.ActiveSaddleBags));
}
else
{
text.Add(" - Champion : Not Started");
}
if (player.MLGranted)
{
text.Add(" - Master Levels : ML " + player.MLLevel + ", " + player.MLExperience + " mlxp , MLLine " + player.MLLine);
}
else
{
text.Add(" - Master Levels : Not Started");
}
text.Add(" - Craftingskill : " + player.CraftingPrimarySkill + "");
text.Add(" - Money : " + Money.GetString(player.GetCurrentMoney()) + "");
text.Add(" - Model ID : " + player.Model);
text.Add(" - AFK Message: " + player.TempProperties.getProperty<string>(GamePlayer.AFK_MESSAGE) + "");
text.Add(" ");
text.Add("HOUSE INFORMATION ");
text.Add(" - Personal House : " + HouseMgr.GetHouseNumberByPlayer(player));
if (player.CurrentHouse != null && player.CurrentHouse.HouseNumber > 0)
text.Add(" - Current House : " + player.CurrentHouse.HouseNumber);
text.Add(" - In House : " + player.InHouse);
text.Add(" ");
text.Add("ACCOUNT INFORMATION ");
text.Add(" - Account Name & IP : " + player.Client.Account.Name + " from " + player.Client.Account.LastLoginIP);
text.Add(" - Priv. Level : " + player.Client.Account.PrivLevel);
text.Add(" - Client Version: " + player.Client.Account.LastClientVersion);
text.Add(" ");
text.Add("CHARACTER STATS ");
String sCurrent = "";
String sTitle = "";
int cnt = 0;
for (eProperty stat = eProperty.Stat_First; stat <= eProperty.Stat_Last; stat++, cnt++)
{
sTitle += GlobalConstants.PropertyToName(stat) + "/";
sCurrent += player.GetModified(stat) + "/";
if (cnt == 3)
//.........这里部分代码省略.........