Plasma Engine  2.0
Loading...
Searching...
No Matches
CommonMessages.h
1#pragma once
2
3#include <Core/Messages/EventMessage.h>
4#include <Core/World/Declarations.h>
5#include <Foundation/Communication/Message.h>
6
8struct PL_CORE_DLL plMsgSetPlaying : public plMessage
9{
10 PL_DECLARE_MESSAGE_TYPE(plMsgSetPlaying, plMessage);
11
12 bool m_bPlay = true;
13};
14
16struct PL_CORE_DLL plMsgSetFloatParameter : public plMessage
17{
18 PL_DECLARE_MESSAGE_TYPE(plMsgSetFloatParameter, plMessage);
19
20 plString m_sParameterName;
21 float m_fValue = 0;
22};
23
28struct PL_CORE_DLL plMsgGenericEvent : public plEventMessage
29{
30 PL_DECLARE_MESSAGE_TYPE(plMsgGenericEvent, plEventMessage);
31
34 plVariant m_Value;
35};
36
41struct PL_CORE_DLL plMsgAnimationReachedEnd : public plEventMessage
42{
43 PL_DECLARE_MESSAGE_TYPE(plMsgAnimationReachedEnd, plEventMessage);
44};
This class is optimized to take nearly no memory (sizeof(void*)) and to allow very fast checks whethe...
Definition HashedString.h:25
Base class for all message types. Each message type has it's own id which is used to dispatch message...
Definition Message.h:22
plVariant is a class that can store different types of variables, which is useful in situations where...
Definition Variant.h:44
Base class for all messages that are sent as 'events'.
Definition EventMessage.h:8
Sent when an animation reached its end (either forwards or backwards playing)
Definition CommonMessages.h:42
For use in scripts to signal a custom event that some game event has occurred.
Definition CommonMessages.h:29
plHashedString m_sMessage
A custom string to identify the intent.
Definition CommonMessages.h:33
Basic message to set some generic parameter to a float value.
Definition CommonMessages.h:17
Common message for components that can be toggled between playing and paused states.
Definition CommonMessages.h:9