This commit is contained in:
2026-07-09 04:15:40 -04:00
commit 6a777d54df
5376 changed files with 978510 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
#include "stdafx.h"
#include <iostream>
#include "InputOutputStream.h"
#include "PacketListener.h"
#include "ContainerClosePacket.h"
ContainerClosePacket::ContainerClosePacket()
{
containerId = 0;
}
ContainerClosePacket::ContainerClosePacket(int containerId)
{
this->containerId = containerId;
}
void ContainerClosePacket::handle(PacketListener *listener)
{
listener->handleContainerClose(shared_from_this());
}
void ContainerClosePacket::read(DataInputStream *dis) //throws IOException
{
containerId = dis->readByte();
}
void ContainerClosePacket::write(DataOutputStream *dos) //throws IOException
{
dos->writeByte(containerId);
}
int ContainerClosePacket::getEstimatedSize()
{
return 1;
}