|
| EZ_DECLARE_MESSAGE_TYPE (ezMsgDamage, ezEventMessage) |
|
| EZ_DECLARE_MESSAGE_TYPE (ezEventMessage, ezMessage) |
|
EZ_ALWAYS_INLINE void | FillFromSenderComponent (const ezComponent *pSenderComponent) |
|
virtual ezInt32 | GetSortingKey () const |
| Derived message types can override this method to influence sorting order. Smaller keys are processed first.
|
|
EZ_ALWAYS_INLINE ezMessageId | GetId () const |
| Returns the id for this message type.
|
|
EZ_ALWAYS_INLINE ezUInt16 | GetSize () const |
| Returns the size in byte of this message.
|
|
EZ_ALWAYS_INLINE ezUInt64 | GetHash () const |
| Calculates a hash of the message.
|
|
virtual void | Serialize (ezStreamWriter &inout_stream) const |
| Implement this for efficient transmission across process boundaries (e.g. network transfer etc.)
|
|
virtual void | Deserialize (ezStreamReader &inout_stream, ezUInt8 uiTypeVersion) |
|
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.
|
|
|
double | m_fDamage = 0 |
|
ezString | m_sHitObjectName |
| The actual game object that was hit (may be a child of the object to which the message is sent)
|
|
ezVec3 | m_vGlobalPosition |
| The global position at which the damage was applied. Set to zero, if unused.
|
|
ezVec3 | m_vImpactDirection |
| The direction into which the damage was applied (e.g. direction of a projectile). May be zero.
|
|
ezGameObjectHandle | m_hSenderObject |
|
ezComponentHandle | m_hSenderComponent |
|
The documentation for this struct was generated from the following file:
- /home/runner/work/ezEngine/ezEngine/Code/Engine/GameEngine/Messages/DamageMessage.h