![]() |
XII Release 0.1.0
|
This message is used to replace the material on a mesh. More...
#include <MeshComponentBase.h>
Public Member Functions | |
XII_DECLARE_MESSAGE_TYPE (xiiMsgSetMeshMaterial, xiiMessage) | |
XII_ADD_RESOURCEHANDLE_ACCESSORS (Material, m_hMaterial) | |
virtual void | Serialize (xiiStreamWriter &inout_stream) const override |
Implement this for efficient transmission across process boundaries (e.g. network transfer etc.) | |
virtual void | Deserialize (xiiStreamReader &inout_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 | |
xiiMaterialResourceHandle | m_hMaterial |
The material to be used. | |
xiiUInt32 | m_uiMaterialSlot = 0 |
The slot on the mesh component where the material should be set. | |
Additional Inherited Members | |
![]() | |
static const xiiRTTI * | GetStaticRTTI () |
This message is used to replace the material on a mesh.
|
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.