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 MCNAPI void UpdateDnAPlatString();
56
57 MCNAPI ::std::string _buildDnAPlatformString();
58
59 MCNAPI void addListener(::std::unique_ptr<::Social::Events::IEventListener> listener);
60
61 MCNAPI ::std::unordered_map<::std::string, ::Social::Events::Property>
62 buildCommonProperties(uint userId, ::std::vector<::std::string> const& exclude) const;
63
65 ::std::unordered_map<::std::string, ::Social::Events::Property>& props,
66 uint userId,
67 ::std::vector<::std::string> const& exclude
68 ) const;
69
70 MCNAPI_C ::std::optional<::Social::Events::Property> getCommonProperty(::std::string const& name) const;
71
72 MCNAPI ::Social::Events::Property getGlobalProperty(::std::string const& name) const;
73
74 MCNAPI ::Social::Events::Property getPlayerCommonProperty(uint userId, ::std::string const& name) const;
75
76 MCNAPI ::Social::Events::Property getPlayerGlobalProperty(uint userId, ::std::string const& name) const;
77
78 MCNAPI void recordDelayedEventAction(::std::string const& action);
79
81
82 MCNAPI void removePlayerCommonProperty(uint userId, ::std::string const& name);
83
84 MCNAPI void setupCommonProperties();
85
86 MCNAPI ~EventManager();
87 // NOLINTEND
88
89public:
90 // static functions
91 // NOLINTBEGIN
92 MCNAPI_C static ::std::string getPlatformCategory(::Bedrock::NonOwnerPointer<::AppPlatform> const& appPlatform);
93 // NOLINTEND
94
95public:
96 // constructor thunks
97 // NOLINTBEGIN
99 // NOLINTEND
100
101public:
102 // destructor thunk
103 // NOLINTBEGIN
104 MCNAPI void $dtor();
105 // NOLINTEND
106};
107
108} // namespace Social::Events
Definition AppPlatform.h:90
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 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 * $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:18
Definition IEventListener.h:16
Definition Property.h:7
Definition EventManagerArguments.h:7
Definition Alias.h:14