stmm-games-doc  0.32.0
Public Attributes | List of all members
stmg::ActionsBoxWidget::BoxCell Struct Reference

Public Attributes

ACTION_TYPE m_eActionType = ACTION_NONE
 The action type. More...
 
int32_t m_nActionId = -1
 Depending on m_eActionType, the valid key action id, the INTERRUPT_TYPE value or event's message (must be >= -1). More...
 
int32_t m_nValue = ActionWidget::LocalInit{}.m_nValue
 Only used if m_eActionType is ACTION_EVENT_MSG. More...
 
std::string m_sActionName
 If m_eActionType is ACTION_EVENT_MSG the non empty event id. More...
 

Member Data Documentation

◆ m_eActionType

ACTION_TYPE stmg::ActionsBoxWidget::BoxCell::m_eActionType = ACTION_NONE

The action type.

◆ m_nActionId

int32_t stmg::ActionsBoxWidget::BoxCell::m_nActionId = -1

Depending on m_eActionType, the valid key action id, the INTERRUPT_TYPE value or event's message (must be >= -1).

◆ m_nValue

int32_t stmg::ActionsBoxWidget::BoxCell::m_nValue = ActionWidget::LocalInit{}.m_nValue

Only used if m_eActionType is ACTION_EVENT_MSG.

The event's value. Default is 0.

◆ m_sActionName

std::string stmg::ActionsBoxWidget::BoxCell::m_sActionName

If m_eActionType is ACTION_EVENT_MSG the non empty event id.

See Level::addEvent(const std::string& sId, unique_ptr<Event>).