LeviLamina
Loading...
Searching...
No Matches
EventManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Social::Events { class Event; }
8namespace Social::Events { class IEventListener; }
9namespace Social::Events { class Property; }
10namespace Social::Events { struct EventManagerArguments; }
11// clang-format on
12
13namespace Social::Events {
14
15class EventManager {
16public:
17 // member variables
18 // NOLINTBEGIN
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 EventManager& operator=(EventManager const&);
44 EventManager(EventManager const&);
45 EventManager();
46
47public:
48 // member functions
49 // NOLINTBEGIN
51
52#ifdef LL_PLAT_C
53 MCNAPI void SendDelayedEventActions(uint primaryUserId);
54#endif
55
56 MCNAPI void UpdateDnAPlatString();
57
58 MCNAPI ::std::string _buildDnAPlatformString();
59
60#ifdef LL_PLAT_C
61 MCNAPI void addListener(::std::unique_ptr<::Social::Events::IEventListener> listener);
62#endif
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 ::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
79
80 MCNAPI void removePlayerCommonProperty(uint userId, ::std::string const& name);
81
82#ifdef LL_PLAT_C
83 MCNAPI void sendSavedEvents();
84#endif
85
86 MCNAPI ~EventManager();
87 // NOLINTEND
88
89public:
90 // constructor thunks
91 // NOLINTBEGIN
93 // NOLINTEND
94
95public:
96 // destructor thunk
97 // NOLINTBEGIN
98 MCNAPI void $dtor();
99 // NOLINTEND
100};
101
102} // namespace Social::Events
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 ::std::optional<::Social::Events::Property > getCommonProperty(::std::string const &name) const
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:15
Definition IEventListener.h:16
Definition Property.h:12
Definition EventManagerArguments.h:7
Definition Alias.h:14