|
|
| PL_DECLARE_MESSAGE_TYPE (plMsgDamage, plEventMessage) |
| |
|
| PL_DECLARE_MESSAGE_TYPE (plEventMessage, plMessage) |
| |
|
PL_ALWAYS_INLINE void | FillFromSenderComponent (const plComponent *pSenderComponent) |
| |
|
virtual plInt32 | GetSortingKey () const |
| | Derived message types can override this method to influence sorting order. Smaller keys are processed first.
|
| |
|
PL_ALWAYS_INLINE plMessageId | GetId () const |
| | Returns the id for this message type.
|
| |
|
PL_ALWAYS_INLINE plUInt16 | GetSize () const |
| | Returns the size in byte of this message.
|
| |
|
PL_ALWAYS_INLINE plUInt64 | GetHash () const |
| | Calculates a hash of the message.
|
| |
| virtual void | Serialize (plStreamWriter &inout_stream) const |
| | Implement this for efficient transmission across process boundaries (e.g. network transfer etc.)
|
| |
| virtual void | Deserialize (plStreamReader &inout_stream, plUInt8 uiTypeVersion) |
| |
|
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.
|
| |
|
|
double | m_fDamage = 0 |
| |
|
float | m_fImpulse = 0.0f |
| |
|
plString | m_sHitObjectName |
| | The actual game object that was hit (may be a child of the object to which the message is sent)
|
| |
|
plVec3 | m_vGlobalPosition |
| | The global position at which the damage was applied. Set to zero, if unused.
|
| |
|
plVec3 | m_vImpactDirection |
| | The direction into which the damage was applied (e.g. direction of a projectile). May be zero.
|
| |
|
plGameObjectHandle | m_hSenderObject |
| |
|
plComponentHandle | m_hSenderComponent |
| |
The documentation for this struct was generated from the following file: