Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CMessageTemplateModification Class Referencefinal

Sent by aura and tech managers when a value of a certain template's component is changed. More...

#include <MessageTypes.h>

Inheritance diagram for CMessageTemplateModification:
Collaboration diagram for CMessageTemplateModification:

Public Member Functions

virtual int GetType () const
 
virtual const char * GetScriptHandlerName () const
 
virtual const char * GetScriptGlobalHandlerName () const
 
virtual JS::Value ToJSVal (const ScriptRequest &rq) const
 
 CMessageTemplateModification (player_id_t player, std::wstring component, const std::vector< std::wstring > &valueNames)
 
- Public Member Functions inherited from CMessage
virtual ~CMessage ()
 
virtual int GetType () const =0
 
virtual const char * GetScriptHandlerName () const =0
 
virtual const char * GetScriptGlobalHandlerName () const =0
 
virtual JS::Value ToJSVal (const ScriptRequest &) const =0
 
JS::Value ToJSValCached (const ScriptRequest &) const
 

Static Public Member Functions

static CMessageFromJSVal (const ScriptRequest &, JS::HandleValue val)
 

Public Attributes

player_id_t player
 
std::wstring component
 
std::vector< std::wstring > valueNames
 

Additional Inherited Members

- Protected Member Functions inherited from CMessage
 CMessage ()
 

Detailed Description

Sent by aura and tech managers when a value of a certain template's component is changed.

Constructor & Destructor Documentation

◆ CMessageTemplateModification()

CMessageTemplateModification::CMessageTemplateModification ( player_id_t  player,
std::wstring  component,
const std::vector< std::wstring > &  valueNames 
)
inline

Member Function Documentation

◆ FromJSVal()

CMessage * CMessageTemplateModification::FromJSVal ( const ScriptRequest rq,
JS::HandleValue  val 
)
static

◆ GetScriptGlobalHandlerName()

virtual const char * CMessageTemplateModification::GetScriptGlobalHandlerName ( ) const
inlinevirtual

Implements CMessage.

◆ GetScriptHandlerName()

virtual const char * CMessageTemplateModification::GetScriptHandlerName ( ) const
inlinevirtual

Implements CMessage.

◆ GetType()

virtual int CMessageTemplateModification::GetType ( ) const
inlinevirtual

Implements CMessage.

◆ ToJSVal()

JS::Value CMessageTemplateModification::ToJSVal ( const ScriptRequest rq) const
virtual

Implements CMessage.

Member Data Documentation

◆ component

std::wstring CMessageTemplateModification::component

◆ player

player_id_t CMessageTemplateModification::player

◆ valueNames

std::vector<std::wstring> CMessageTemplateModification::valueNames

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