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
43 // NOLINTEND
44
45public:
46 // prevent constructor by default
47 EventManager& operator=(EventManager const&);
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCNAPI explicit EventManager(::Bedrock::NonOwnerPointer<::AppPlatform> const& appPlatform);
55
56 MCNAPI void UpdateDnAPlatString();
57
58 MCNAPI ::std::string _buildDnAPlatformString();
59
60 MCNAPI void addListener(::std::unique_ptr<::Social::Events::IEventListener> listener);
61
62 MCNAPI ::std::unordered_map<::std::string, ::Social::Events::Property>
63 buildCommonProperties(uint userId, ::std::vector<::std::string> const& exclude) const;
64
66 ::std::unordered_map<::std::string, ::Social::Events::Property>& props,
67 uint userId,
68 ::std::vector<::std::string> const& exclude
69 ) const;
70
71 MCNAPI ::Social::Events::Property getGlobalProperty(::std::string const& name) const;
72
73 MCNAPI ::Social::Events::Property getPlayerCommonProperty(uint userId, ::std::string const& name) const;
74
75 MCNAPI ::Social::Events::Property getPlayerGlobalProperty(uint userId, ::std::string const& name) const;
76
77 MCNAPI void recordDelayedEventAction(::std::string const& action);
78
80
81 MCNAPI void removePlayerCommonProperty(uint userId, ::std::string const& name);
82
83 MCNAPI void setupCommonProperties();
84
85 MCNAPI ~EventManager();
86 // NOLINTEND
87
88public:
89 // static functions
90 // NOLINTBEGIN
91 MCNAPI static ::std::string GetEdition();
92 // NOLINTEND
93
94public:
95 // constructor thunks
96 // NOLINTBEGIN
97 MCNAPI void* $ctor(::Bedrock::NonOwnerPointer<::AppPlatform> const& appPlatform);
98 // NOLINTEND
99
100public:
101 // destructor thunk
102 // NOLINTBEGIN
103 MCNAPI void $dtor();
104 // NOLINTEND
105};
106
107} // namespace Social::Events
Definition AppPlatform.h:50
Definition NonOwnerPointer.h:9
Definition EventManager.h:18
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 * $ctor(::Bedrock::NonOwnerPointer<::AppPlatform > const &appPlatform)
MCAPI void recordDelayedEventAction(::std::string const &action)
static MCAPI ::std::string GetEdition()
MCAPI void setupCommonProperties()
MCAPI void addListener(::std::unique_ptr<::Social::Events::IEventListener > listener)
MCAPI::Social::Events::Property getGlobalProperty(::std::string const &name) const
MCAPI ::std::unordered_map<::std::string, ::Social::Events::Property > buildCommonProperties(uint userId, ::std::vector<::std::string > const &exclude) const
MCAPI void removePlayerCommonProperty(uint userId, ::std::string const &name)
MCAPI void recordEvent(::Social::Events::Event &event)
MCAPI EventManager(::Bedrock::NonOwnerPointer<::AppPlatform > const &appPlatform)
MCAPI::Social::Events::Property getPlayerGlobalProperty(uint userId, ::std::string const &name) const
MCAPI::std::string _buildDnAPlatformString()
Definition Event.h:17
Definition Alias.h:14