BlockRenderers.h 354 B

123456789101112131415161718192021
  1. #ifndef BLOCKRENDERERS_H
  2. #define BLOCKRENDERERS_H
  3. #include "../../../block/Block.h"
  4. #include "BlockRenderer.h"
  5. class BlockRenderers
  6. {
  7. public:
  8. static const BlockRenderer& getBlockRenderer(BlockId id);
  9. static void init();
  10. private:
  11. BlockRenderers();
  12. static const int RENDERER_AMOUNT;
  13. static BlockRenderer RENDERER[];
  14. };
  15. #endif