LeviLamina
Loading...
Searching...
No Matches
PlayerReportHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/oreui/binding/facets/vanilla/PlayerReportFacet.h"
7#include "mc/client/safety/ReportArea.h"
8#include "mc/client/safety/ReportReason.h"
9#include "mc/deps/core/file/PathBuffer.h"
10#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
11
12// auto generated forward declare list
13// clang-format off
14class IClientInstance;
15class MultiPlayerLevel;
16namespace Json { class Value; }
17// clang-format on
18
19class PlayerReportHandler : public ::Bedrock::EnableNonOwnerReferences,
20 public ::std::enable_shared_from_this<::PlayerReportHandler> {
21public:
22 // member variables
23 // NOLINTBEGIN
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual ~PlayerReportHandler() /*override*/;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCNAPI explicit PlayerReportHandler(::IClientInstance& clientInstance);
49
50 MCNAPI ::OreUI::PlayerReportFacet::DropdownOption
51 _createReportReasonDropdownOption(::Safety::ReportReason reason) const;
52
53 MCNAPI ::Core::PathBuffer<::std::string> _getScreenshotPath() const;
54
55 MCNAPI ::std::string _reportAreaToString(::Safety::ReportArea area) const;
56
57 MCNAPI void _sendCurrentPlayerReportPayload(::std::string gamertag);
58
59 MCNAPI void captureAndSaveChatForPlayerReport(::std::string const& xuid);
60
62
64 ::MultiPlayerLevel* level,
65 ::std::string const& xuid,
66 ::std::string const& platformId
67 );
68
70 ::std::vector<::OreUI::PlayerReportFacet::ChatMessageData>& chatMessages,
71 ::std::vector<int>& selectedChatMessages
72 );
73
74 MCNAPI ::std::vector<::OreUI::PlayerReportFacet::DropdownOption> const
75 getReportReasonOptionsForReportArea(::Safety::ReportArea const& area) const;
76
78 ::std::string const& xuid,
79 ::std::string const& platformId,
80 ::std::string const& galleryScreenshotId
81 );
82
83 MCNAPI void reportPlayer(
84 int reportArea,
85 int reportReason,
86 ::std::string reportMessage,
87 ::std::string xuid,
88 ::std::string platformId,
89 ::std::vector<int> selectedChatMessages
90 );
91 // NOLINTEND
92
93public:
94 // constructor thunks
95 // NOLINTBEGIN
96 MCNAPI void* $ctor(::IClientInstance& clientInstance);
97 // NOLINTEND
98
99public:
100 // destructor thunk
101 // NOLINTBEGIN
102 MCNAPI void $dtor();
103 // NOLINTEND
104
105public:
106 // vftables
107 // NOLINTBEGIN
108 MCNAPI static void** $vftable();
109 // NOLINTEND
110};
Definition PlayerReportHandler.h:5
MCAPI void captureAndSaveSkinForPlayerReport(::MultiPlayerLevel *level, ::std::string const &xuid, ::std::string const &platformId)
MCAPI PlayerReportHandler(::IClientInstance &clientInstance)
MCAPI void * $ctor(::IClientInstance &clientInstance)
MCAPI::Json::Value createChatLogsJsonFromSelectedMessages(::std::vector<::OreUI::PlayerReportFacet::ChatMessageData > &chatMessages, ::std::vector< int > &selectedChatMessages)
MCAPI ::std::vector<::OreUI::PlayerReportFacet::DropdownOption > const getReportReasonOptionsForReportArea(::Safety::ReportArea const &area) const
MCAPI::std::string _reportAreaToString(::Safety::ReportArea area) const
MCAPI void initiatePlayerReport(::std::string const &xuid, ::std::string const &platformId, ::std::string const &galleryScreenshotId)
MCAPI void $dtor()
MCAPI::OreUI::PlayerReportFacet::DropdownOption _createReportReasonDropdownOption(::Safety::ReportReason reason) const
MCAPI ::Core::PathBuffer<::std::string > _getScreenshotPath() const
static MCAPI void ** $vftable()
MCAPI void captureAndSaveChatForPlayerReport(::std::string const &xuid)
MCAPI void captureAndSaveScreenshotForPlayerReport()
MCAPI void _sendCurrentPlayerReportPayload(::std::string gamertag)
MCAPI void reportPlayer(int reportArea, int reportReason, ::std::string reportMessage, ::std::string xuid, ::std::string platformId, ::std::vector< int > selectedChatMessages)
Definition Alias.h:14