BlockInstanceGeneratorRule.h 658 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include "GeneratorRule.h"
  3. class BlockInstanceGeneratorRule : public GeneratorRule
  4. {
  5. private:
  6. int blockType;
  7. public:
  8. BlockInstanceGeneratorRule(
  9. Framework::JSON::JSONValue* zConfig, JExpressionMemory* zMemory);
  10. Framework::Either<Block*, int> createBlock(
  11. int x, int y, int z, int dimensionId) override;
  12. };
  13. class BlockInstanceGeneratorRuleFactory : public GeneratorRuleFactory
  14. {
  15. public:
  16. BlockInstanceGeneratorRuleFactory();
  17. GeneratorRule* createRule(Framework::JSON::JSONValue* zConfig,
  18. JExpressionMemory* zMemory) override;
  19. Framework::JSON::Validator::JSONValidator* getValidator() override;
  20. };