BasicItems.h 371 B

123456789101112131415161718
  1. #pragma once
  2. #include "ItemType.h"
  3. class NoBlockItemType : public ItemType
  4. {
  5. private:
  6. std::function<Item*()> createItemImp;
  7. public:
  8. NoBlockItemType(int id,
  9. const char* name,
  10. ItemSkillLevelUpRule* levelUp,
  11. int brokenTypeId,
  12. ModelInfo model,
  13. std::function<Item*()> createItemImp);
  14. Item* createItem() const override;
  15. };