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; }
14namespace Social::Events { struct EventManagerArguments; }
15// clang-format on
16
17namespace Social::Events {
18
19class EventManager {
20public:
21 // member variables
22 // NOLINTBEGIN
42 // NOLINTEND
43
44public:
45 // prevent constructor by default
46 EventManager& operator=(EventManager const&);
47 EventManager(EventManager const&);
48 EventManager();
49
50public:
51 // member functions
52 // NOLINTBEGIN
54
55#ifdef LL_PLAT_C
56 MCNAPI void SendDelayedEventActions(uint primaryUserId);
57#endif
58
59 MCNAPI void UpdateDnAPlatString();
60
61 MCNAPI ::std::string _buildDnAPlatformString();
62
63#ifdef LL_PLAT_C
64 MCNAPI void addListener(::std::unique_ptr<::Social::Events::IEventListener> listener);
65#endif
66
68 ::std::unordered_map<::std::string, ::Social::Events::Property>& props,
69 uint userId,
70 ::std::vector<::std::string> const& exclude
71 ) const;
72
73 MCNAPI ::std::optional<::Social::Events::Property> getCommonProperty(::std::string const& name) const;
74
75 MCNAPI ::Social::Events::Property getGlobalProperty(::std::string const& name) const;
76
77#ifdef LL_PLAT_C
78 MCNAPI uint getNextSequenceNumber();
79#endif
80
81 MCNAPI ::Social::Events::Property getPlayerCommonProperty(uint userId, ::std::string const& name) const;
82
83 MCNAPI ::Social::Events::Property getPlayerGlobalProperty(uint userId, ::std::string const& name) const;
84
85#ifdef LL_PLAT_C
86 MCNAPI bool isEventRecordingEnabled() const;
87#endif
88
89 MCNAPI void recordDelayedEventAction(::std::string const& action);
90
92
93#ifdef LL_PLAT_C
94 MCNAPI void removeCommonProperty(::std::string const& name);
95#endif
96
97 MCNAPI void removePlayerCommonProperty(uint userId, ::std::string const& name);
98
99 MCNAPI void setupCommonProperties();
100
102 // NOLINTEND
103
104public:
105 // static functions
106 // NOLINTBEGIN
107#ifdef LL_PLAT_C
108 MCNAPI static ::std::string getPlatformCategory(::Bedrock::NonOwnerPointer<::AppPlatform> const& appPlatform);
109#endif
110 // NOLINTEND
111
112public:
113 // constructor thunks
114 // NOLINTBEGIN
116 // NOLINTEND
117
118public:
119 // destructor thunk
120 // NOLINTBEGIN
121 MCNAPI void $dtor();
122 // NOLINTEND
123};
124
125} // namespace Social::Events
Definition AppPlatform.h:91
Definition NonOwnerPointer.h:9
MCAPI EventManager(::Social::Events::EventManagerArguments &&args)
MCAPI::Social::Events::Property getPlayerCommonProperty(uint userId, ::std::string const &name) const
MCAPI void buildCommonProperties(::std::unordered_map<::std::string, ::Social::Events::Property > &props, uint userId, ::std::vector<::std::string > const &exclude) const
MCAPI void recordDelayedEventAction(::std::string const &action)
MCAPI ::std::optional<::Social::Events::Property > getCommonProperty(::std::string const &name) const
MCAPI void setupCommonProperties()
MCAPI::Social::Events::Property getGlobalProperty(::std::string const &name) const
MCAPI void removePlayerCommonProperty(uint userId, ::std::string const &name)
MCAPI void * $ctor(::Social::Events::EventManagerArguments &&args)
MCAPI void recordEvent(::Social::Events::Event &event)
MCAPI::Social::Events::Property getPlayerGlobalProperty(uint userId, ::std::string const &name) const
MCAPI::std::string _buildDnAPlatformString()
Definition Event.h:19
Definition IEventListener.h:16
Definition Property.h:7
Definition EventManagerArguments.h:7
Definition Alias.h:14