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/file/PathBuffer.h"
7#include "mc/deps/core/string/BasicStackString.h"
8#include "mc/platform/Result.h"
9
10// auto generated forward declare list
11// clang-format off
12class TaskResult;
13namespace Json { class Value; }
14namespace Social::Events { class Event; }
15namespace Social::Events { class IEventListener; }
16namespace Social::Events { class Property; }
17namespace Social::Events { struct EventManagerArguments; }
18// clang-format on
19
20namespace Social::Events {
21
22class EventManager {
23public:
24 // member variables
25 // NOLINTBEGIN
48 // NOLINTEND
49
50public:
51 // prevent constructor by default
52 EventManager& operator=(EventManager const&);
53 EventManager(EventManager const&);
54 EventManager();
55
56public:
57 // member functions
58 // NOLINTBEGIN
60
61#ifdef LL_PLAT_C
62 MCNAPI void SendDelayedEventActions(uint primaryUserId);
63
64 MCNAPI void SendDelayedTelemetryEvents(uint primaryUserId);
65#endif
66
67 MCNAPI void UpdateDnAPlatString();
68
69 MCNAPI ::std::string _buildDnAPlatformString();
70
71#ifdef LL_PLAT_C
72 MCNAPI ::Bedrock::Result<::TaskResult> _processDelayedTelemetryEvents(
74 uint primaryUserId
75 ) const;
76
77 MCNAPI void addListener(::std::unique_ptr<::Social::Events::IEventListener> listener);
78#endif
79
81 ::std::unordered_map<::std::string, ::Social::Events::Property>& props,
82 uint userId,
83 ::std::vector<::std::string> const& exclude
84 ) const;
85
86 MCNAPI ::std::optional<::Social::Events::Property> getCommonProperty(::std::string const& name) const;
87
88 MCNAPI ::Social::Events::Property getGlobalProperty(::std::string const& name) const;
89
90 MCNAPI ::Social::Events::Property getPlayerCommonProperty(uint userId, ::std::string const& name) const;
91
92 MCNAPI ::Social::Events::Property getPlayerGlobalProperty(uint userId, ::std::string const& name) const;
93
95
96 MCNAPI void removePlayerCommonProperty(uint userId, ::std::string const& name);
97
98 MCNAPI ~EventManager();
99 // NOLINTEND
100
101public:
102 // constructor thunks
103 // NOLINTBEGIN
105 // NOLINTEND
106
107public:
108 // destructor thunk
109 // NOLINTBEGIN
110 MCNAPI void $dtor();
111 // NOLINTEND
112};
113
114} // namespace Social::Events
Definition BasicStackString.h:8
Definition PathBuffer.h:8
Definition Value.h:16
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:14
Definition IEventListener.h:16
Definition Property.h:7
Definition TaskResult.h:5
Definition EventManagerArguments.h:7
Definition Alias.h:14