本文整理匯總了C#中Zepheus.FiestaLib.Networking.Packet.WriteSByte方法的典型用法代碼示例。如果您正苦於以下問題:C# Packet.WriteSByte方法的具體用法?C# Packet.WriteSByte怎麽用?C# Packet.WriteSByte使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zepheus.FiestaLib.Networking.Packet
的用法示例。
在下文中一共展示了Packet.WriteSByte方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: SendInterfaceClock
public static void SendInterfaceClock(WorldClient client)
{
DateTime dt = DateTime.Now;
using (var packet = new Packet(SH2Type.InterfaceClock))
{
packet.WriteInt(DateTime.Now.DayOfYear); //unk
packet.WriteInt(DateTime.Now.Minute);
packet.WriteInt(DateTime.Now.Hour);
packet.WriteInt(DateTime.Now.Day);
packet.WriteInt((DateTime.Now.Month - 1));
packet.WriteInt((DateTime.Now.Year - 1900));
packet.WriteInt((int)DateTime.Now.DayOfWeek);
packet.WriteInt((DateTime.Now.DayOfYear - 1));
packet.Fill(4, 0); //unk
packet.WriteSByte(Convert.ToSByte((DateTime.Now - DateTime.UtcNow).ToString().Split(':')[0])); //Timezone
client.SendPacket(packet);
}
}
示例2: WriteInfo
public virtual void WriteInfo(Packet packet)
{
packet.WriteByte(5); //entry length
packet.WriteSByte(this.Slot);
packet.WriteByte(0x24); //status?
WriteItemStats(packet);
}