mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:20:05 +00:00
Graphic alphanumeric block
This commit is contained in:
parent
09649c0fe7
commit
add6c41016
4 changed files with 251 additions and 11 deletions
|
|
@ -0,0 +1,44 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/wsr88d/message.hpp>
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace wsr88d
|
||||
{
|
||||
namespace rpg
|
||||
{
|
||||
|
||||
class GraphicAlphanumericBlockImpl;
|
||||
|
||||
class GraphicAlphanumericBlock : public Message
|
||||
{
|
||||
public:
|
||||
explicit GraphicAlphanumericBlock();
|
||||
~GraphicAlphanumericBlock();
|
||||
|
||||
GraphicAlphanumericBlock(const GraphicAlphanumericBlock&) = delete;
|
||||
GraphicAlphanumericBlock&
|
||||
operator=(const GraphicAlphanumericBlock&) = delete;
|
||||
|
||||
GraphicAlphanumericBlock(GraphicAlphanumericBlock&&) noexcept;
|
||||
GraphicAlphanumericBlock& operator=(GraphicAlphanumericBlock&&) noexcept;
|
||||
|
||||
int16_t block_divider() const;
|
||||
|
||||
size_t data_size() const override;
|
||||
|
||||
bool Parse(std::istream& is);
|
||||
|
||||
static constexpr size_t SIZE = 102u;
|
||||
|
||||
private:
|
||||
std::unique_ptr<GraphicAlphanumericBlockImpl> p;
|
||||
};
|
||||
|
||||
} // namespace rpg
|
||||
} // namespace wsr88d
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue