![]() |
XII Release 0.1.0
|
A message to modify the main color of some thing. More...
#include <SetColorMessage.h>
Public Member Functions | |
XII_DECLARE_MESSAGE_TYPE (xiiMsgSetColor, xiiMessage) | |
void | ModifyColor (xiiColor &ref_color) const |
Applies m_Color using m_Mode to the given color. | |
void | ModifyColor (xiiColorGammaUB &ref_color) const |
Applies m_Color using m_Mode to the given color. | |
virtual void | Serialize (xiiStreamWriter &ref_stream) const override |
Implement this for efficient transmission across process boundaries (e.g. network transfer etc.) | |
virtual void | Deserialize (xiiStreamReader &ref_stream, xiiUInt8 uiTypeVersion) override |
![]() | |
virtual const xiiRTTI * | GetDynamicRTTI () const |
bool | IsInstanceOf (const xiiRTTI *pType) const |
Returns whether the type of this instance is of the given type or derived from it. | |
template<typename T> | |
XII_ALWAYS_INLINE bool | IsInstanceOf () const |
Returns whether the type of this instance is of the given type or derived from it. | |
Public Attributes | |
xiiColor | m_Color |
The color to apply to the target. | |
xiiEnum< xiiSetColorMode > | m_Mode |
The mode with which to apply the color to the target. | |
Additional Inherited Members | |
![]() | |
static const xiiRTTI * | GetStaticRTTI () |
A message to modify the main color of some thing.
Components that handle this message use it to change their main color. For instance a light component may change its light color, a mesh component will change the main mesh color.
|
overridevirtual |
Reimplemented from xiiMessage.
|
overridevirtual |
Implement this for efficient transmission across process boundaries (e.g. network transfer etc.)
If the message is only ever sent within the same process between nodes of the same xiiWorld, this does not need to be implemented.
Note that PackageForTransfer() will automatically include the xiiRTTI type version into the stream and ReplicatePackedMessage() will pass this into Deserialize(). Use this if the serialization changes.
Reimplemented from xiiMessage.