Revert "shared_ptr -> std::shared_ptr"

This reverts commit 7074f35e4b.
This commit is contained in:
void_17
2026-03-02 17:37:16 +07:00
parent 8a2a62ea1d
commit 119bff3514
1373 changed files with 12049 additions and 12049 deletions

View File

@@ -15,7 +15,7 @@ TextureAndGeometryChangePacket::TextureAndGeometryChangePacket()
dwSkinID = 0;
}
TextureAndGeometryChangePacket::TextureAndGeometryChangePacket(std::shared_ptr<Entity> e, const wstring &path)
TextureAndGeometryChangePacket::TextureAndGeometryChangePacket(shared_ptr<Entity> e, const wstring &path)
{
id = e->entityId;
this->path = path;
@@ -28,26 +28,26 @@ TextureAndGeometryChangePacket::TextureAndGeometryChangePacket(std::shared_ptr<E
}
void TextureAndGeometryChangePacket::read(DataInputStream *dis) //throws IOException
void TextureAndGeometryChangePacket::read(DataInputStream *dis) //throws IOException
{
id = dis->readInt();
dwSkinID = dis->readInt();
path = dis->readUTF();
}
void TextureAndGeometryChangePacket::write(DataOutputStream *dos) //throws IOException
void TextureAndGeometryChangePacket::write(DataOutputStream *dos) //throws IOException
{
dos->writeInt(id);
dos->writeInt(dwSkinID);
dos->writeUTF(path);
}
void TextureAndGeometryChangePacket::handle(PacketListener *listener)
void TextureAndGeometryChangePacket::handle(PacketListener *listener)
{
listener->handleTextureAndGeometryChange(shared_from_this());
}
int TextureAndGeometryChangePacket::getEstimatedSize()
int TextureAndGeometryChangePacket::getEstimatedSize()
{
return 8 + (int)path.size();
}