![]() |
Plasma Engine
2.0
|
This message is used to replace the material on a mesh. More...
#include <MeshComponentBase.h>
Public Member Functions | |
PL_DECLARE_MESSAGE_TYPE (plMsgSetMeshMaterial, plMessage) | |
void | SetMaterialFile (const char *szFile) |
const char * | GetMaterialFile () const |
virtual void | Serialize (plStreamWriter &inout_stream) const override |
Implement this for efficient transmission across process boundaries (e.g. network transfer etc.) | |
virtual void | Deserialize (plStreamReader &inout_stream, plUInt8 uiTypeVersion) override |
![]() | |
virtual const plRTTI * | GetDynamicRTTI () const |
bool | IsInstanceOf (const plRTTI *pType) const |
Returns whether the type of this instance is of the given type or derived from it. | |
template<typename T > | |
PL_ALWAYS_INLINE bool | IsInstanceOf () const |
Returns whether the type of this instance is of the given type or derived from it. | |
Public Attributes | |
plMaterialResourceHandle | m_hMaterial |
The material to be used. | |
plUInt32 | m_uiMaterialSlot = 0xFFFFFFFFu |
The slot on the mesh component where the material should be set. | |
Additional Inherited Members | |
![]() | |
static const plRTTI * | GetStaticRTTI () |
This message is used to replace the material on a mesh.
|
overridevirtual |
Reimplemented from plMessage.
|
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 plWorld, this does not need to be implemented.
Note that PackageForTransfer() will automatically include the plRTTI type version into the stream and ReplicatePackedMessage() will pass this into Deserialize(). Use this if the serialization changes.
Reimplemented from plMessage.