Chira Engine
A customizable MIT-licensed game engine.
chira::ConCommand Class Reference
Inheritance diagram for chira::ConCommand:
Collaboration diagram for chira::ConCommand:

Public Types

using CallbackArgs = const std::vector< std::string > &
 

Public Member Functions

 ConCommand (std::string name_, const std::function< void()> &callback_, int flags_=CON_FLAG_NONE)
 
 ConCommand (std::string name_, std::function< void(CallbackArgs)> callback_, int flags_=CON_FLAG_NONE)
 
 ConCommand (std::string name_, std::string description_, const std::function< void()> &callback_, int flags_=CON_FLAG_NONE)
 
 ConCommand (std::string name_, std::string description_, std::function< void(CallbackArgs)> callback_, int flags_=CON_FLAG_NONE)
 
void fire (CallbackArgs args)
 
 operator std::string () const
 
- Public Member Functions inherited from chira::ConEntry
 ConEntry (std::string name_, std::string description_, int flags_=CON_FLAG_NONE)
 
std::string_view getName () const
 
std::string_view getDescription () const
 
bool hasFlag (ConFlags flag) const
 

Additional Inherited Members

- Protected Attributes inherited from chira::ConEntry
std::string name
 
std::string description
 
int flags
 

Detailed Description

Definition at line 39 of file ConEntry.h.


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