本文整理汇总了C#中PacketWriter.WriteUnicodeStatic方法的典型用法代码示例。如果您正苦于以下问题:C# PacketWriter.WriteUnicodeStatic方法的具体用法?C# PacketWriter.WriteUnicodeStatic怎么用?C# PacketWriter.WriteUnicodeStatic使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PacketWriter
的用法示例。
在下文中一共展示了PacketWriter.WriteUnicodeStatic方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public void Serialize(PacketWriter writer)
{
writer.Write(CID);
writer.WriteUnicodeStatic(Name, 0x15);
writer.WriteUnicodeStatic(LastMessageFrom, 0xB);
writer.Write(LastDate);
writer.Write(Avatar);
writer.Write(Level);
ExpInfo.Serialize(writer);
writer.Write(MitoMoney);
writer.Write(TeamId);
writer.Write(TeamMarkId);
writer.WriteUnicodeStatic(TeamName, 0xD);
writer.Write(TeamRank);
writer.Write(PType);
writer.Write(PvpCnt);
writer.Write(PvpWinCnt);
writer.Write(PvpPoint);
writer.Write(TPvpCnt);
writer.Write(TPvpWinCnt);
writer.Write(TPvpPoint);
writer.Write(QuickCnt);
writer.Write(0); // unknown
writer.Write(0); // unknown
writer.Write(TotalDistance);
writer.Write(PositionX);
writer.Write(PositionY);
writer.Write(PositionZ);
writer.Write(Rotation);
writer.Write(LastChannel);
writer.Write(City);
writer.Write(PosState);
writer.Write(CurrentCarID);
writer.Write(QuickSlot1);
writer.Write(QuickSlot2);
writer.Write(TeamJoinDate);
writer.Write(TeamCloseDate);
writer.Write(TeamLeaveDate);
writer.Write(new byte[12]); // filler
writer.Write(HancoinInven);
writer.Write(HancoinGarage);
writer.Write(new byte[42]); // filler
writer.Write(Flags);
writer.Write(Guild);
//writer.Write(Mileage);
}