本文整理汇总了C#中IPackage.GetInt8方法的典型用法代码示例。如果您正苦于以下问题:C# IPackage.GetInt8方法的具体用法?C# IPackage.GetInt8怎么用?C# IPackage.GetInt8使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPackage
的用法示例。
在下文中一共展示了IPackage.GetInt8方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Decode
/// <summary>
/// Decode the specified package.
/// </summary>
/// <param name="package">Package.</param>
public override void Decode(IPackage package)
{
Timestamp = package.GetInt32 ();
PlayerID = package.GetInt32 ();
MapID = package.GetInt32 ();
WorldID = package.GetInt32 ();
SelfID = package.GetInt32 ();
Position = package.GetVector3 ();
Angle = package.GetFloat ();
Name = package.GetString ();
Job = package.GetInt8 ();
Level = package.GetInt16();
Exp = package.GetInt32();
BagOpen = package.GetInt8();
StoreOpen = package.GetInt8();
Money = package.GetInt32();
Honor = package.GetInt32();
HP = package.GetInt32();
MP = package.GetInt32();
Emoney = package.GetInt32();
EnergyPiece = package.GetInt32();
MakeEnergyIndex = package.GetInt8();
StartStone = package.GetInt32 ();
StoneBuyTimes = package.GetInt8 ();
MaxPowerTimeStamp = package.GetInt32();
LastedLevelGotGiftID = package.GetInt8();
NextGiftTime = package.GetInt32();
LastedGotOnlineGiftID = package.GetInt8();
LastAttendanceTime = package.GetInt32();
TotalAttendanceCount = package.GetInt16();
UntilAttendanceID = package.GetInt16();
AccumulateID = package.GetInt8();
MaxPowerBuyTimes = package.GetInt8 ();
UntilPayEmoney = package.GetInt32();
LastVipGiftID = package.GetInt8();
GrowId = package.GetInt8();
MagicWeaponInfo = package.GetString();
//OpenEffectState = package.GetInt8();
}
示例2: Decode
public override void Decode(IPackage package)
{
int nCount = package.GetInt8();
for(int i=0; i<nCount; i++)
{
TeamStruct team = new TeamStruct();
team.Decode(
package
);
TeamList.Add(team);
}
}