Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarNetPackets.cpp
diff options
context:
space:
mode:
authorchililisoup <rebot333gaming@gmail.com>2025-03-20 15:48:46 -0600
committerchililisoup <rebot333gaming@gmail.com>2025-03-20 15:48:46 -0600
commit3130381b1c23e42af6fc14e9de951638f5c275b1 (patch)
tree7a0b7696ad29d594a84d76f3a190a26ffed65ba1 /source/game/StarNetPackets.cpp
parent3f761123e939ece5c8805c165dc625756b950f8b (diff)
block swapping
Diffstat (limited to 'source/game/StarNetPackets.cpp')
-rw-r--r--source/game/StarNetPackets.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/game/StarNetPackets.cpp b/source/game/StarNetPackets.cpp
index 2e64eee..54e7825 100644
--- a/source/game/StarNetPackets.cpp
+++ b/source/game/StarNetPackets.cpp
@@ -747,6 +747,17 @@ void ModifyTileListPacket::write(DataStream& ds) const {
ds.write(allowEntityOverlap);
}
+ReplaceTileListPacket::ReplaceTileListPacket(TileModificationList modifications)
+ : modifications(modifications) {}
+
+void ReplaceTileListPacket::read(DataStream& ds) {
+ ds.readContainer(modifications);
+}
+
+void ReplaceTileListPacket::write(DataStream& ds) const {
+ ds.writeContainer(modifications);
+}
+
DamageTileGroupPacket::DamageTileGroupPacket() : layer(TileLayer::Foreground) {}
DamageTileGroupPacket::DamageTileGroupPacket(