LeviLamina
Loading...
Searching...
No Matches
EventManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7
8// auto generated forward declare list
9// clang-format off
10class AppPlatform;
11namespace Social::Events { class Event; }
12namespace Social::Events { class IEventListener; }
13namespace Social::Events { class Property; }
14// clang-format on
15
16namespace Social::Events {
17
19public:
20 // member variables
21 // NOLINTBEGIN
41 // NOLINTEND
42
43public:
44 // prevent constructor by default
45 EventManager& operator=(EventManager const&);
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI explicit EventManager(::Bedrock::NonOwnerPointer<::AppPlatform> const& appPlatform);
53
54 MCAPI void UpdateDnAPlatString();
55
56 MCAPI ::std::string _buildDnAPlatformString();
57
58 MCAPI void addListener(::std::unique_ptr<::Social::Events::IEventListener> listener);
59
60 MCAPI ::std::unordered_map<::std::string, ::Social::Events::Property>
61 buildCommonProperties(uint userId, ::std::vector<::std::string> const& exclude) const;
62
63 MCAPI void buildCommonProperties(
64 ::std::unordered_map<::std::string, ::Social::Events::Property>& props,
65 uint userId,
66 ::std::vector<::std::string> const& exclude
67 ) const;
68
69 MCAPI ::Social::Events::Property getPlayerCommonProperty(uint userId, ::std::string const& name) const;
70
71 MCAPI ::Social::Events::Property getPlayerGlobalProperty(uint userId, ::std::string const& name) const;
72
73 MCAPI void recordDelayedEventAction(::std::string const& action);
74
75 MCAPI void recordEvent(::Social::Events::Event& event);
76
77 MCAPI void removePlayerCommonProperty(uint userId, ::std::string const& name);
78
79 MCAPI void setupCommonProperties();
80
81 MCAPI ~EventManager();
82 // NOLINTEND
83
84public:
85 // constructor thunks
86 // NOLINTBEGIN
87 MCAPI void* $ctor(::Bedrock::NonOwnerPointer<::AppPlatform> const& appPlatform);
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93 MCAPI void $dtor();
94 // NOLINTEND
95};
96
97} // namespace Social::Events
Definition AppPlatform.h:49
Definition NonOwnerPointer.h:9
Definition EventManager.h:18
Definition Event.h:17
Definition Alias.h:14