Chest.h 607 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "BasicBlocks.h"
  3. class Chest : public BasicBlock
  4. {
  5. private:
  6. bool open;
  7. int userEntityId;
  8. virtual void onDestroy() override;
  9. virtual void onDialogClosed(Framework::Text dialogId) override;
  10. Framework::Text getDialogId() const;
  11. protected:
  12. virtual bool onTick(
  13. TickQueue* zQueue, int numTicks, bool& blocked) override;
  14. public:
  15. Chest(
  16. int typeId, ItemType* zTool, Framework::Vec3<int> pos, int dimensionId);
  17. virtual void interact(Item* zItem, Entity* zActor) override;
  18. virtual void sendModelInfo(NetworkMessage* zMessage) override;
  19. };