| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #pragma once
- #include "InteractionConfig.h"
- class UIDialogElement;
- class OpenDialogInteractionConfig : public InteractionConfig
- {
- private:
- UIDialogElement* dialogElement;
- public:
- OpenDialogInteractionConfig();
- ~OpenDialogInteractionConfig();
- void setDialogElement(UIDialogElement* dialogElement);
- UIDialogElement* zDialogElement() const;
- protected:
- virtual bool onInteraction(Framework::Either<Block*, Entity*> target,
- Item* zItem,
- Entity* actor,
- bool& itemChanged) override;
- };
- class OpenDialogInteractionConfigFactory
- : public InteractionConfigFactory<OpenDialogInteractionConfig>
- {
- public:
- OpenDialogInteractionConfigFactory();
- virtual JSONObjectValidationBuilder* addToValidator(
- JSONObjectValidationBuilder* builder) const override;
- virtual OpenDialogInteractionConfig* fromJson(
- Framework::JSON::JSONObject* zJson) const override;
- virtual Framework::JSON::JSONObject* toJsonObject(
- OpenDialogInteractionConfig* zObject) const override;
- virtual const char* getTypeToken() const override;
- protected:
- virtual OpenDialogInteractionConfig* createValue(
- Framework::JSON::JSONObject* zJson) const override;
- };
|