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 MCNAPI explicit EventManager(::Bedrock::NonOwnerPointer<::AppPlatform> const& appPlatform);
53
54 MCNAPI void UpdateDnAPlatString();
55
56 MCNAPI ::std::string _buildDnAPlatformString();
57
58 MCNAPI void addListener(::std::unique_ptr<::Social::Events::IEventListener> listener);
59
60 MCNAPI ::std::unordered_map<::std::string, ::Social::Events::Property>
61 buildCommonProperties(uint userId, ::std::vector<::std::string> const& exclude) const;
62
64 ::std::unordered_map<::std::string, ::Social::Events::Property>& props,
65 uint userId,
66 ::std::vector<::std::string> const& exclude
67 ) const;
68
69 MCNAPI ::Social::Events::Property getGlobalProperty(::std::string const& name) const;
70
71 MCNAPI ::Social::Events::Property getPlayerCommonProperty(uint userId, ::std::string const& name) const;
72
73 MCNAPI ::Social::Events::Property getPlayerGlobalProperty(uint userId, ::std::string const& name) const;
74
75 MCNAPI void recordDelayedEventAction(::std::string const& action);
76
78
79 MCNAPI void removePlayerCommonProperty(uint userId, ::std::string const& name);
80
81 MCNAPI void setupCommonProperties();
82
83 MCNAPI ~EventManager();
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCNAPI void* $ctor(::Bedrock::NonOwnerPointer<::AppPlatform> const& appPlatform);
90 // NOLINTEND
91
92public:
93 // destructor thunk
94 // NOLINTBEGIN
95 MCNAPI void $dtor();
96 // NOLINTEND
97};
98
99} // 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)
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