mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:20:05 +00:00
Load packets using a packet factory
This commit is contained in:
parent
0ef21fd609
commit
ae7baf0980
4 changed files with 155 additions and 14 deletions
30
wxdata/include/scwx/wsr88d/rpg/packet_factory.hpp
Normal file
30
wxdata/include/scwx/wsr88d/rpg/packet_factory.hpp
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/wsr88d/rpg/packet.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace wsr88d
|
||||
{
|
||||
namespace rpg
|
||||
{
|
||||
|
||||
class PacketFactory
|
||||
{
|
||||
private:
|
||||
explicit PacketFactory() = delete;
|
||||
~PacketFactory() = delete;
|
||||
|
||||
PacketFactory(const PacketFactory&) = delete;
|
||||
PacketFactory& operator=(const PacketFactory&) = delete;
|
||||
|
||||
PacketFactory(PacketFactory&&) noexcept = delete;
|
||||
PacketFactory& operator=(PacketFactory&&) noexcept = delete;
|
||||
|
||||
public:
|
||||
static std::shared_ptr<Packet> Create(std::istream& is);
|
||||
};
|
||||
|
||||
} // namespace rpg
|
||||
} // namespace wsr88d
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue