blob: 48257e09f53590111b7b6286f85ce0fbbb6387d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#pragma once
#include <evfl/ResActor.h>
namespace sead {
class Heap;
}
namespace ksys::evt {
class ActorBinding;
class ActorBindings;
} // namespace ksys::evt
namespace ksys::res {
class EventFlowBinder {
public:
EventFlowBinder(evt::ActorBindings* bindings, sead::Heap* heap)
: mBindings(bindings), mHeap(heap) {}
virtual ~EventFlowBinder() = default;
EventFlowBinder(const EventFlowBinder&) = default;
EventFlowBinder& operator=(const EventFlowBinder&) = default;
protected:
evt::ActorBindings* mBindings;
sead::Heap* mHeap;
};
class EventFlowActorBinder : public EventFlowBinder {
public:
using EventFlowBinder::EventFlowBinder;
void bind(evfl::ActorBinding* evfl_binding, const evfl::ResActor* evfl_actor);
};
class EventFlowActionBinder : public EventFlowBinder {
public:
using EventFlowBinder::EventFlowBinder;
void bind(evfl::ActorBinding::Action* evfl_binding, const evfl::ResAction* evfl_action,
const evfl::ResActor* evfl_actor, evt::ActorBinding* binding);
};
class EventFlowQueryBinder : public EventFlowBinder {
public:
using EventFlowBinder::EventFlowBinder;
void bind(evfl::ActorBinding::Query* evfl_binding, const evfl::ResQuery* evfl_query,
const evfl::ResActor* evfl_actor, evt::ActorBinding* binding);
};
} // namespace ksys::res
|