Block.h 357 B

123456789101112131415161718
  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(u16 id, const HashedString& registry, const BlockBuilder& builder);
  8. u16 getId() const;
  9. const HashedString& getRegistry() const;
  10. private:
  11. const u16 id;
  12. const HashedString registry;
  13. };
  14. #endif