Block.h 358 B

12345678910111213141516171819
  1. #ifndef BLOCK_H
  2. #define BLOCK_H
  3. #include "common/utils/HashedString.h"
  4. #include "common/block/BlockBuilder.h"
  5. class Block final {
  6. public:
  7. Block();
  8. Block(u16 id, const HashedString& registry, const BlockBuilder& builder);
  9. u16 getId() const;
  10. const HashedString& getRegistry() const;
  11. private:
  12. u16 id;
  13. HashedString registry;
  14. };
  15. #endif