diff options
Diffstat (limited to '')
-rw-r--r-- | src/Packet.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Packet.hpp b/src/Packet.hpp index 6318eab..e3d09fd 100644 --- a/src/Packet.hpp +++ b/src/Packet.hpp @@ -801,4 +801,22 @@ struct PacketMultiBlockChange : Packet { int BlockId; }; std::vector<Record> Records; +}; + +struct PacketTimeUpdate : Packet { + void ToStream(StreamOutput *stream) override { + + } + + void FromStream(StreamInput *stream) override { + WorldAge = stream->ReadLong(); + TimeOfDay = stream->ReadLong(); + } + + int GetPacketId() override { + return PacketNamePlayCB::TimeUpdate; + } + + long long WorldAge; + long long TimeOfDay; };
\ No newline at end of file |