Esempio n. 1
0
 public SSessionBase SendAsync(SWorldCurrentDataResponse value) =>
 SendAsync(ClientOpcode.CurrentDate, (PacketWriter writer) =>
 {
     writer.Write(value.UnixTimeSeconds);
     writer.Write(value.Year);
     writer.Write(value.Month);
     writer.Write(value.Day);
     writer.Write(value.Hour);
     writer.Write(value.Minute);
     writer.Write(value.Second);
     writer.Write(value.IsDaylightSavingTime);
 });
Esempio n. 2
0
 public SSessionBase SendDeferred(SWorldCurrentDataResponse value) =>
 SendDeferred(SCCategory.World, SCWorld.CurDate, (SPacketWriter writer) =>
 {
     writer.Write(value.UnixTimeSeconds);
     writer.Write(value.Year);
     writer.Write(value.Month);
     writer.Write(value.Day);
     writer.Write(value.Hour);
     writer.Write(value.Minute);
     writer.Write(value.Second);
     writer.Write(value.IsDaylightSavingTime);
 });