![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Special script context for conversation scripts. Adds the default Peoplemon built-ins and the conversation dependent built-ins. More...
#include <ConversationContext.hpp>
Public Types | |
using | StatusCb = std::function< bool(bl::ecs::Entity)> |
Special callback type for reporting conversation state. More... | |
Public Member Functions | |
ConversationContext (system::Systems &systems, bl::ecs::Entity entity, const StatusCb &cb) | |
Construct a new ConversationContext. More... | |
Protected Member Functions | |
virtual void | addCustomSymbols (bl::script::SymbolTable &table) const override |
Special script context for conversation scripts. Adds the default Peoplemon built-ins and the conversation dependent built-ins.
Definition at line 23 of file ConversationContext.hpp.
using core::script::ConversationContext::StatusCb = std::function<bool(bl::ecs::Entity)> |
Special callback type for reporting conversation state.
entity | The entity to check status for |
Definition at line 32 of file ConversationContext.hpp.
core::script::ConversationContext::ConversationContext | ( | system::Systems & | systems, |
bl::ecs::Entity | entity, | ||
const StatusCb & | cb | ||
) |
Construct a new ConversationContext.
systems | The primary systems object |
entity | The entity being conversed with |
cb | Callback that can be used to query the conversation state |
Definition at line 33 of file ConversationContext.cpp.
|
overrideprotectedvirtual |
Definition at line 39 of file ConversationContext.cpp.