summaryrefslogtreecommitdiffstats
path: root/src/Packet.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Packet.hpp')
-rw-r--r--src/Packet.hpp18
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