![]() |
ezEngine
Release 25.03
|
A message to modify the main color of some thing. More...
#include <SetColorMessage.h>
Public Member Functions | |
EZ_DECLARE_MESSAGE_TYPE (ezMsgSetColor, ezMessage) | |
void | ModifyColor (ezColor &ref_color) const |
Applies m_Color using m_Mode to the given color. | |
void | ModifyColor (ezColorGammaUB &ref_color) const |
Applies m_Color using m_Mode to the given color. | |
virtual void | Serialize (ezStreamWriter &inout_stream) const override |
Implement this for efficient transmission across process boundaries (e.g. network transfer etc.) More... | |
virtual void | Deserialize (ezStreamReader &inout_stream, ezUInt8 uiTypeVersion) override |
![]() | |
virtual const ezRTTI * | GetDynamicRTTI () const |
bool | IsInstanceOf (const ezRTTI *pType) const |
Returns whether the type of this instance is of the given type or derived from it. | |
template<typename T > | |
EZ_ALWAYS_INLINE bool | IsInstanceOf () const |
Returns whether the type of this instance is of the given type or derived from it. | |
Public Attributes | |
ezColor | m_Color |
The color to apply to the target. | |
ezEnum< ezSetColorMode > | m_Mode |
The mode with which to apply the color to the target. | |
Additional Inherited Members | |
![]() | |
static const ezRTTI * | 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 ezMessage.
|
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 ezWorld, this does not need to be implemented.
Note that PackageForTransfer() will automatically include the ezRTTI type version into the stream and ReplicatePackedMessage() will pass this into Deserialize(). Use this if the serialization changes.
Reimplemented from ezMessage.