RedCore
Loading...
Searching...
No Matches
ActorCreateEvent.h
Go to the documentation of this file.
1#pragma once
2
3#include <red/event_sys/EventBase.h>
4#include <red/event_sys/EventDelegator.h>
5#include <actor/ActorBase.h>
6
7namespace red {
8
10 public:
12
13 public:
14 [[nodiscard]]
15 ActorBase* getActor() const { return mActor; }
16
17 private:
18 explicit ActorCreateEvent(ActorBase* actor)
19 : mActor(actor)
20 { }
21
22 public:
23 static void subscribe(EventDelegator<ActorCreateEvent>::Listener& listener);
24 static void emit(ActorBase* actor);
25
26 private:
27 [[nodiscard]]
28 static Delegator& getDelegator();
29
30 private:
31 ActorBase* mActor;
32 };
33
34}
Definition ActorCreateEvent.h:9
static void emit(ActorBase *actor)
static void subscribe(EventDelegator< ActorCreateEvent >::Listener &listener)
ActorBase * getActor() const
Definition ActorCreateEvent.h:15
Definition ActorDonutBlock.h:5