Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
Social.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/social/MultiplayerServiceIdentifier.h"
7#include "mc/platform/brstd/function_ref.h"
8#include "mc/platform/brstd/move_only_function.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace Bedrock::Services::gatherings::model { struct DestinationInfoResponseData; }
13namespace ServerConfiguration { struct GatheringsConfigurationJoinInfo; }
14namespace Social { class GameConnectionInfo; }
15namespace Social { struct ResolvedExperienceInfo; }
16namespace Social::Events { struct ServerTelemetryData; }
17namespace cohtml { class Binder; }
18namespace Social { class MultiplayerPlatformFactory; }
19namespace Social { struct MultiplayerPlatformFactoryData; }
20namespace Social { struct PlayerProfileState; }
21// clang-format on
22
23namespace Social {
24// functions
25// NOLINTBEGIN
26#ifdef LL_PLAT_C
27MCNAPI void CoherentBind(::cohtml::Binder* binder, ::Social::PlayerProfileState* state);
28
29MCNAPI ::std::string bedrockClientErrorToString(int errorCode);
30
31MCNAPI ::brstd::move_only_function<::std::unique_ptr<::Social::MultiplayerPlatformFactory>()>
32createMultiplayerPlatformFactory(::Social::MultiplayerPlatformFactoryData&& data);
33
34MCNAPI void decryptProfileImageIfEncrypted(::std::vector<uchar>& imageBytes);
35#endif
36
37MCNAPI bool isValidDisplayNameCharacter(int utf32char);
38
39#ifdef LL_PLAT_C
40MCNAPI ::std::optional<::Social::ResolvedExperienceInfo> makeResolvedExperienceInfo(
41 ::std::optional<::Bedrock::Services::gatherings::model::DestinationInfoResponseData> const& destinationInfo
42);
43
44MCNAPI ::std::optional<::Social::ResolvedExperienceInfo> makeResolvedExperienceInfo(
45 ::std::optional<::ServerConfiguration::GatheringsConfigurationJoinInfo> const& destinationInfo
46);
47
48MCNAPI ::Social::Events::ServerTelemetryData
49makeServerTelemetryData(::Social::ResolvedExperienceInfo const& resolvedExperienceInfo);
50#endif
51
52MCNAPI bool minimalFilteredCharacter(int utf32char);
53
54MCNAPI bool nintendoAllowedCharacter(int utf32char);
55
56#ifdef LL_PLAT_C
57MCNAPI ::std::string playfabErrorToString(int errorCode);
58#endif
59
60MCNAPI ::std::string
61sanitizeDisplayName(::std::string_view input, uint64 maxLength, ::brstd::function_ref<bool(int)> validCharFn);
62
63#ifdef LL_PLAT_C
64MCNAPI ::Social::MultiplayerServiceIdentifier serviceIdentifierFromString(::std::string_view idString);
65
66MCNAPI ::std::string xblErrorToString(int errorCode);
67#endif
68// NOLINTEND
69
70// static variables
71// NOLINTBEGIN
72#ifdef LL_PLAT_C
73MCNAPI ::std::string const& BEDROCK_PLAYFAB_CSUB_DEVELOPMENT();
74
75MCNAPI ::std::string const& BEDROCK_PLAYFAB_CSUB_PRODUCTION();
76
77MCNAPI ::std::string const& BEDROCK_PLAYFAB_REALMS_PLUS_DEVELOPMENT();
78
79MCNAPI ::std::string const& BEDROCK_PLAYFAB_REALMS_PLUS_PRODUCTION();
80
81MCNAPI ::std::vector<::std::string> const& BEDROCK_XBOXLIVE_ALL_SCIDS();
82#endif
83
84MCNAPI ::Social::GameConnectionInfo const& INVALID_CONNECTION();
85
86#ifdef LL_PLAT_C
87MCNAPI ::std::vector<::Social::MultiplayerServiceIdentifier> const& MOCK_ID();
88
89MCNAPI ::std::string const& UNKNOWN_CATEGORY_ERROR_STRING();
90#endif
91// NOLINTEND
92
93} // namespace Social
Definition GameConnectionInfo.h:24
Definition MultiplayerPlatformFactory.h:7
Definition Binder.h:7
Definition GatheringsConfigurationJoinInfo.h:7
Definition ServerTelemetryData.h:7
Definition MultiplayerPlatformFactoryData.h:7
Definition PlayerProfileState.h:7
Definition ResolvedExperienceInfo.h:7