$darkmode
engine::actions::Lua Class Reference
Inheritance diagram for engine::actions::Lua:
Collaboration diagram for engine::actions::Lua:

Public Member Functions

 Lua (const std::string &name, const std::string &script, sol::state_view lua)
 
cloe::ActionPtr clone () const override
 
cloe::CallbackResult operator() (const cloe::Sync &, cloe::TriggerRegistrar &) override
 
- Public Member Functions inherited from cloe::Action
virtual bool is_significant () const
 
virtual void to_json (fable::Json &j) const =0
 
 Entity (std::string name)
 
 Entity (std::string name, std::string desc)
 
- Public Member Functions inherited from cloe::Entity
 Entity (std::string name)
 
 Entity (std::string name, std::string desc)
 
const std::string & name () const
 
void set_name (std::string name)
 
const std::string & description () const
 
void set_description (std::string desc)
 

Protected Member Functions

void to_json (cloe::Json &j) const override
 
- Protected Member Functions inherited from cloe::Action
Logger logger () const
 

Additional Inherited Members

- Protected Attributes inherited from cloe::Entity
std::string name_
 
std::string desc_
 

Member Function Documentation

◆ clone()

cloe::ActionPtr engine::actions::Lua::clone ( ) const
inlineoverridevirtual

Clone this action with correct state information.

This happens when a sticky trigger evaluates to true.

Implements cloe::Action.

Here is the call graph for this function:

◆ operator()()

cloe::CallbackResult engine::actions::Lua::operator() ( const cloe::Sync ,
cloe::TriggerRegistrar  
)
overridevirtual

Execute the action.

Implements cloe::Action.

Here is the call graph for this function:

The documentation for this class was generated from the following files: