Plasma Engine  2.0
Loading...
Searching...
No Matches
DamageMessage.h
1#pragma once
2
3#include <Core/Messages/EventMessage.h>
4#include <GameEngine/GameEngineDLL.h>
5
6struct PL_GAMEENGINE_DLL plMsgDamage : public plEventMessage
7{
8 PL_DECLARE_MESSAGE_TYPE(plMsgDamage, plEventMessage);
9
10 double m_fDamage = 0;
11 float m_fImpulse = 0.0f;
13
16};
Base class for all messages that are sent as 'events'.
Definition EventMessage.h:8
Definition DamageMessage.h:7
plString m_sHitObjectName
The actual game object that was hit (may be a child of the object to which the message is sent)
Definition DamageMessage.h:12
plVec3 m_vGlobalPosition
The global position at which the damage was applied. Set to zero, if unused.
Definition DamageMessage.h:14
plVec3 m_vImpactDirection
The direction into which the damage was applied (e.g. direction of a projectile). May be zero.
Definition DamageMessage.h:15