3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/certificates/identity/edu/Role.h"
7#include "mc/client/gui/DirtyFlag.h"
8#include "mc/client/gui/EncyclopediaTopicIndex.h"
9#include "mc/client/gui/HowToPlayTopicIndex.h"
10#include "mc/client/gui/UIDefType.h"
11#include "mc/client/gui/screens/LayoutVariableType.h"
12#include "mc/client/renderer/actor/v2/Destination.h"
13#include "mc/client/renderer/game/ShadowRenderingParameters.h"
14#include "mc/client/renderer/game/TerrainVariation.h"
15#include "mc/client/resources/ContentCatalogQueryData.h"
16#include "mc/client/services/download/DlcCheckResult.h"
17#include "mc/client/social/DisconnectionErrorStringOverrides.h"
18#include "mc/client/store/DlcPerformanceTier.h"
19#include "mc/client/tutorial/GameTip.h"
20#include "mc/common/SubClientId.h"
21#include "mc/debug/SentryEnvelopePayloadDebugMetadataSourcemapImage.h"
22#include "mc/debug/SentryEnvelopePayloadStacktraceFrame.h"
23#include "mc/deps/core/NetworkConnectionType.h"
24#include "mc/deps/core/debug/log/LogLevel.h"
25#include "mc/deps/core/file/file_system/FileType.h"
26#include "mc/deps/core/resource/PackType.h"
27#include "mc/deps/core/sem_ver/SemVersionBase.h"
28#include "mc/deps/core/string/HashedString.h"
29#include "mc/deps/core/string/StaticOptimizedString.h"
30#include "mc/deps/core/threading/Async.h"
31#include "mc/deps/core/utility/HardwareMemoryTier.h"
32#include "mc/deps/core/utility/NonOwnerPointer.h"
33#include "mc/deps/core_graphics/TextureSetLayerType.h"
34#include "mc/deps/json/ValueType.h"
35#include "mc/deps/nether_net/LogSeverity.h"
36#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
37#include "mc/deps/scripting/runtime/Result.h"
38#include "mc/deps/shared_types/legacy/FilterSubject.h"
39#include "mc/deps/shared_types/legacy/item/UseAnimation.h"
40#include "mc/deps/shared_types/v1_21_110/item/ItemCategory.h"
41#include "mc/entity/components/KineticDamageSettings.h"
42#include "mc/events/TextProcessingEventOrigin.h"
43#include "mc/external/lib_http_client/http_stl_allocator.h"
44#include "mc/external/libsrtp/srtp_err_status_t.h"
45#include "mc/legacy/facing/Name.h"
46#include "mc/network/packet/AgentActionType.h"
47#include "mc/options/DiscoveryEnvironment.h"
48#include "mc/options/EducationServicesEnvironment.h"
49#include "mc/platform/Result.h"
50#include "mc/platform/brstd/function_ref.h"
51#include "mc/scripting/diagnostics/ScriptStat.h"
52#include "mc/util/HudElement.h"
53#include "mc/util/gltf/Accessor.h"
54#include "mc/util/gltf/Image.h"
55#include "mc/util/gltf/Material.h"
56#include "mc/util/molang/ExpressionNode.h"
57#include "mc/util/molang/ExpressionOp.h"
58#include "mc/world/Direction.h"
59#include "mc/world/actor/ActorCategory.h"
60#include "mc/world/actor/ActorFilterGroup.h"
61#include "mc/world/actor/ActorType.h"
62#include "mc/world/actor/ActorTypeNamespaceRules.h"
63#include "mc/world/actor/DefinitionTrigger.h"
64#include "mc/world/containers/ContainerEnumName.h"
65#include "mc/world/filters/FilterGroup.h"
66#include "mc/world/filters/FilterOperator.h"
67#include "mc/world/item/CreativeItemCategory.h"
68#include "mc/world/item/components/DiggerBlockTypeInfo.h"
69#include "mc/world/level/GameType.h"
70#include "mc/world/level/WorldVersion.h"
71#include "mc/world/level/block/BlockProperty.h"
72#include "mc/world/level/block/BlockSlot.h"
73#include "mc/world/level/block/TorchFacing.h"
74#include "mc/world/level/block/components/BlockMaterialInstance.h"
75#include "mc/world/level/chunk/ChunkState.h"
76#include "mc/world/level/chunk/LevelChunkTag.h"
77#include "mc/world/level/chunk/SubChunk.h"
78#include "mc/world/level/chunk/SubChunkDelayedDeleter.h"
79#include "mc/world/level/chunk/SubChunkStorage.h"
80#include "mc/world/level/levelgen/flat/FlatWorldPresetID.h"
81#include "mc/world/level/material/MaterialType.h"
82#include "mc/world/level/saveddata/maps/MapItemSavedData.h"
83#include "mc/world/redstone/circuit/components/CircuitComponentType.h"
157namespace Bedrock::Http {
class Status; }
160namespace Core {
class File; }
162namespace Core {
class Path; }
164namespace Core {
class Result; }
165namespace Json {
class Reader; }
166namespace Json {
class Value; }
177namespace SharedTypes::v1_21_20::JigsawStructureTemplatePool {
struct EmptyPoolElement; }
178namespace SharedTypes::v1_21_20::JigsawStructureTemplatePool {
struct SinglePoolElement; }
181namespace mce {
class UUID; }
225namespace cohtml {
class Binder; }
226namespace mce {
class Camera; }
235MCAPI
void BedrockLogOut(uint,
char const*, ...);
249MCAPI ::CreativeItemCategory
250CreativeItemCategoryComprehensiveToRuntime(::SharedTypes::v1_21_110::ItemCategory::CreativeItemCategory category);
252MCAPI ::CreativeItemCategory CreativeItemCategoryFromString(::std::string
const& str);
254MCFOLD
void* DefaultMemAllocFunction(uint64 size, uint memoryType);
256MCFOLD
void DefaultMemFreeFunction(
void* pointer, uint memoryType);
258MCFOLD
void DefaultOutOfMemoryHandler(
char const* file,
long line);
260MCAPI_C
void DiscardData();
262MCAPI
bool DoesMockCallMatch(
::HC_CALL const* mockCall,
::HC_CALL const* originalCall);
264MCAPI ::HashedString
const& EntityCanonicalName(::ActorType entityType);
266MCAPI ::ActorType EntityTypeFromString(::std::string
const& str);
268MCAPI ::std::string EntityTypeToFormattedLocString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
270MCAPI ::std::string EntityTypeToLocString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
272MCAPI ::std::string EntityTypeToString(::ActorType entityType, ::ActorTypeNamespaceRules namespaceRule);
274MCAPI
void EntityTypeToStringAndNamespace(::ActorType entityType, ::std::string& nameOut, ::std::string& namespaceOut);
276MCAPI ::std::unordered_map<::std::string, ::ActorFactoryData>& GetActorDataRegistry();
278MCAPI
double GetEngagementMetricsTimeSinceAppStart_DEPRECATED();
280MCAPI_S ::TraceState& GetTraceState();
282MCAPI_C
long InitializeGameRuntimeDll(uint64 flags);
284MCAPI_C
long LoadGameRuntimeDll();
286MCAPI_S ::std::optional<::LogLevel> LogLevelFromString(::std::string
const& str);
292MCAPI ::MaterialType MaterialTypeFromString(::std::string
const& materialType);
294MCAPI
bool Mock_Internal_HCHttpCallPerformAsync(
::HC_CALL* originalCall);
296MCAPI_S
long Mock_Internal_ReadRequestBodyIntoMemory(
301MCAPI_C
void NGXInvalidParameterHandler(
302 wchar_t const* expression,
303 wchar_t const* function,
309MCAPI_C
bool NGXSafeInitializeLog(
wchar_t const* InPathToValidate,
wchar_t const* InFileName);
311MCAPI_S ::std::optional<::NetherNet::LogSeverity> NetherNetLogSeverityFromString(::std::string
const& str);
313MCAPI ::PackType PackTypeFromString(::std::string
const& value);
315MCAPI_S
void PlatformBedrockLogOut(uint _priority,
char const* buf, uint64 nullTerminatorPos);
317MCAPI
void PushCircularReference(
318 ::std::unordered_map<::BlockPos, ::RedstoneTorchCapacitor*>& relatedTorches,
323MCAPI_C
bool ReadJpegFile(
::Core::Path const& fileName,
int readMode);
325MCAPI_C
int ReadJpegSections(
::Core::File& infile,
int readMode);
327MCAPI_C
void ResetJpgfile();
329MCAPI ::std::string StringFromMaterialType(::MaterialType
const& materialType);
331MCAPI ::std::string
const& StringFromPackType(::PackType value);
333MCAPI_C ::edu::Role StringToADRole(::std::string
const& str);
335MCFOLD_C uint StringToNameId(::std::string
const& name);
337MCAPI ::SharedTypes::Legacy::UseAnimation UseAnimationFromString(::std::string
const& str);
339MCAPI_C int64 WndProc(::HWND__* hwnd, uint uMsg, uint64 wParam, int64 lParam);
341MCAPI_C ::Bedrock::Threading::Async<::ContentCatalogQueryData::Done> _addCatalogItemsFromSearch(
344 ::std::shared_ptr<::ContentCatalogQueryData> request
347MCAPI
void _addEnvironmentSubfilter(
348 ::std::string
const& legacyPredicate,
349 ::FilterGroup::CollectionType type,
350 ::std::string
const& filterName,
351 ::SharedTypes::Legacy::FilterSubject subject,
353 ::ActorFilterGroup::Processing process
356MCAPI
void _addLegacyFilterDefinition(
357 ::std::string
const& legacyPredicate,
358 ::FilterGroup::CollectionType type,
359 ::std::string
const& filterName,
360 ::SharedTypes::Legacy::FilterSubject subject,
362 ::ActorFilterGroup::Processing process
365MCAPI_C ::ShadowRenderingParameters::ShadowMap _calculateCascade(
370 ::glm::mat4x4
const& playerView,
371 ::glm::vec3
const& viewPos,
372 ::glm::vec3
const& up,
373 ::glm::mat4x4
const& worldToLight,
374 ::glm::mat4x4
const& lightToWorld,
375 ::glm::vec3
const& playerPosition,
376 float maxWorldTexelSnappingPosition,
378 float maxShadowDistance,
384MCAPI_C ::glm::vec3 _clampShadowAngle(::glm::vec3
const& lightDir, ::glm::vec3
const& up,
float shadowClampAngle);
386MCAPI ::std::unique_ptr<::ListTag> _createBlockStateEnum(
::BlockState const& state);
388MCAPI uint _facingToVineDirection(uchar facing);
390MCAPI_C
int _findNextIndex(::std::vector<::std::shared_ptr<::UIControl>>& tabControls,
int originIndex,
bool right);
392MCAPI_C
void _forEachObject(
397MCFOLD_C ::std::vector<::BlockPos> _generateChunkStartPositions(
::AABB const& area);
399MCAPI_C ::std::vector<int>
const _getRenderDistanceLevels(
int& defaultDistanceIdx,
bool isVR);
401MCAPI ::ScatterParamsMolangVariableIndices& _getScatterParamsMolangVariableIndices();
403MCAPI_C
void _handleFetchedImageResponseData(
404 ::std::shared_ptr<::ContentCatalogQueryData> request,
406 ::std::unique_ptr<::PackManifest> manifestPtr,
411MCAPI_C
bool _haveSameScrollSection(::std::weak_ptr<::UIControl>
const& a, ::std::weak_ptr<::UIControl>
const& b);
416MCAPI_C ::Bedrock::Threading::Async<::ContentCatalogQueryData::Done>
417_loadAllCatalogItems(::std::shared_ptr<::ContentCatalogQueryData> request);
419MCAPI ::Block
const* _loadLayerBlock(
::Json::Value const& layer);
421MCAPI ::std::optional<::BlockPos> _locateBiome(
422 ::std::function<
bool(
::Biome const&)>
const& predicate,
429MCAPI ::std::optional<::std::vector<::BlockLayer>>
432MCAPI ::std::optional<::std::vector<::BlockLayer>>
435MCAPI ::std::optional<::std::vector<::BlockLayer>>
438MCAPI ::std::optional<::std::vector<::BlockLayer>>
441MCAPI_C ::glm::vec3 _quantizeLightDirection(
float angle,
float perpendicularAngle,
int step);
445MCAPI ::std::unique_ptr<::ListTag> _saveBlockList(::std::vector<::BlockType const*>
const& blockList);
447MCAPI_C
void _searchBlockByCameraCenter(
457MCAPI_C
bool _searchBlockByFreeFormPick(
467MCAPI_C
bool _stringLessThan(::std::string
const& str1, ::std::string
const& str2);
472MCAPI_C ::Destination addExpressionOrConstantResources(
473 ::std::vector<float>& constantBuffer,
474 ::std::vector<::ExpressionNode>& expressionBuffer,
476 char const* defaultExpression,
480MCAPI_C
void applyAnimations(
483 ::std::vector<::glm::mat4x4>& boneList,
485 ::gsl::span<::mce::framebuilder::RenderBatchActorInstanceDescription const> actorDescriptions
490MCAPI_C
void bakeDataDrivenRenderer(
491 ::std::weak_ptr<::DataDrivenModel> weakModelPtr,
496MCAPI_C ushort bakeGeneratedDraws(
499 ::std::vector<::std::string>
const& materialRegex,
500 ::std::vector<::std::string>
const& partVisibilityRegex,
504MCAPI_C ::BakedRenderControllerResults bakeRenderController(
510MCAPI_C ::ResourceBakingResult bakeResourceOffsets(
520MCAPI
char const* blockSlotToString(::BlockSlot slot);
522MCAPI ::KeyOrNameResult
523buildActorDisplayName(::ActorType actorType, ::std::string
const& nameTag,
::Actor const* actor);
525MCAPI_C
void calculateTileLighting(
534MCAPI
void checkComponent(
537 ::CircuitComponentType typeId,
545MCAPI_C
bool checkMinMaxClientVer(
::Json::Value const& documentObject,
bool pascalCase);
547MCAPI_C
bool checkMinMaxClientVer(::std::string
const& minClientVersion, ::std::string
const& maxClientVersion);
549MCAPI
bool checkTypeFilter(
554MCAPI_C
void clearBakedTextures(
563MCAPI_C ::HardwareMemoryTier
564convertMinHardwareMemTierInt(
int memTier,
char const* context_str, ::std::string
const& context_str_val);
566MCAPI_C ::DlcPerformanceTier
567convertMinPerformanceTierInt(
int perfTier,
char const* context_str, ::std::string
const& context_str_val);
569MCAPI ::TorchFacing convertTorchDirection(::Facing::Name facing);
572createDefaultUniqueRakPeer();
574MCAPI_C ::std::unique_ptr<::ResponseVerifier> createMutsResponseVerifier(
575 ::std::string responseField,
576 ::std::string payloadField,
577 ::std::string publicKey,
578 ::std::function<int64()> getTime,
579 ::std::function<::std::string()> createRequestId
582MCAPI_C ::ExprToken createTokenFromUIDefVal(
::Json::Value const& resVal);
587MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool> createWorkerPool(
588 ::std::string_view name,
590 ::std::shared_ptr<::Bedrock::WorkerPoolHandleInterface>& destHandle
593MCAPI_C ::UIDefType defTypeFromString(::std::string
const& str);
595MCAPI_C ::std::string dlcCheckerResultToString(::DlcCheckResult result);
597MCAPI_C
void emplaceMatchedBoneIndex(
598 ::std::string
const& boneName,
600 ::std::vector<::std::string>
const& regexArray,
601 ::std::vector<::std::vector<uint64>>& indices
604MCAPI ::ActorCategory entityCategoriesFromString(::std::string
const& str);
606MCAPI ::ActorCategory entityCategoryFromString(::std::string
const& str);
608MCAPI_C
void executeOnPrimaryUserStorageArea(
609 ::std::function<
void(::std::shared_ptr<::Core::FileStorageArea>)> onSuccess,
610 ::std::function<
void()> onFailure
613MCAPI ::srtp_err_status_t external_crypto_init();
615MCAPI ::srtp_err_status_t external_hmac_alloc(
::srtp_auth_t** a,
int key_len,
int out_len);
617MCAPI ::srtp_err_status_t external_hmac_compute(
void*, uchar
const*,
int,
int tag_len, uchar* result);
619MCAPI ::srtp_err_status_t external_hmac_dealloc(
::srtp_auth_t* a);
621MCAPI ::srtp_err_status_t external_hmac_init(
void* state, uchar
const* key,
int key_len);
623MCFOLD ::srtp_err_status_t external_hmac_start(
void*);
625MCFOLD ::srtp_err_status_t external_hmac_update(
void*, uchar
const*,
int);
627MCAPI_C ::std::optional<::ExtractedDataDataDrivenModel>
628extractModelData(
::HashedString const& name, ::std::shared_ptr<::DataDrivenRenderer> rendererPtr);
636MCAPI_C
void fillLangValue(
637 ::std::string
const& jsonFieldStr,
638 ::std::string
const& langCode,
639 ::std::string
const& modifiedCode,
643 ::std::unordered_map<::std::string, ::std::string>& locDictionary
646MCAPI_C
void fillPackIdentityListFromJson(
647 ::std::vector<::PackIdVersion>& packIdentityListToFill,
651MCAPI_C
void findInvalidControls(
653 ::std::vector<::std::string>& foundInvalidControls,
655 ::std::string
const& fileName
658MCAPI ::std::optional<::FlatWorldPresetID> flatWorldPresetIDFromString(::std::string
const& str);
660MCAPI_C ::std::string_view flatWorldPresetIDToString(::FlatWorldPresetID
id);
662MCAPI
void forEachEntityType(
663 ::std::function<
bool(::ActorType, ::std::string
const&)> callback,
664 ::ActorTypeNamespaceRules namespaceRule
671MCAPI ::std::tuple<::std::string, ::std::unique_ptr<::StructurePoolElement>> from(
673 ::Bedrock::NotNullNonOwnerPtr<::IStructureTemplateManager> structureManager,
678MCAPI ::std::tuple<::std::string, ::std::unique_ptr<::StructurePoolElement>> from(
680 ::Bedrock::NotNullNonOwnerPtr<::IStructureTemplateManager> structureManager,
685MCAPI ::std::tuple<::std::string, ::std::unique_ptr<::StructurePoolElement>> from(
689 ::Bedrock::NotNullNonOwnerPtr<::IStructureTemplateManager> structures,
694MCAPI
int fseek(
::Core::File& file, int64 offset,
int origin);
698MCAPI uint64 fwrite(
void const*
buffer, uint64 size, uint64 count,
::Core::File& file);
700MCAPI_C
void gameplayValueGeneration(
710MCAPI ::std::string gatherTypeStrings(::std::vector<::Json::ValueType>
const& types);
712MCAPI_C ::ResourceOffset generateExpressionOffset(
714 ::ExpressionOp expectedOperator,
715 ::std::vector<::ExpressionNode>& outputExpressionList
721MCAPI_C ::std::_Vector_const_iterator<::std::_Vector_val<::std::_Simple_types<::DateRange>>>
const
722getActiveDateRange(::std::vector<::DateRange>
const& dateRangesToSearch,
::DateManager const& dateManager);
725getAnchorPointFromDirectionAndAnchor(::GameTip::ArrowDirection direction, ::GameTip::ArrowAnchor anchor);
727MCAPI_S ::std::string getCPUName();
729MCAPI_C ::std::shared_ptr<::UIControl> getControlBreadthFirst(
::UIControl* scope, ::std::string name);
731MCAPI_C ::std::shared_ptr<::UIControl> getControlFromAncestors(
::UIControl* scope, ::std::string name);
733MCAPI_C
float getControlVariableValue(
::UIControl& control, ::LayoutVariableType type);
735MCAPI_C
void getControlsInternal(
736 ::std::vector<::std::shared_ptr<::UIControl>>& result,
737 ::std::function<
bool(
::UIControl const&)> predicate,
741MCAPI ::std::string getDiscoveryServiceURL(::DiscoveryEnvironment environment);
743MCAPI_C ::Json::Value
const& getDisplayProperties(
::Json::Value const& resultObject,
bool pascalCase);
745MCAPI ::std::string
const getEdition();
749MCAPI_C
void getFirstControlInternal(
750 ::std::shared_ptr<::UIControl>& result,
751 ::std::function<
bool(
::UIControl const&)>
const& predicate,
755MCAPI_C
void getFirstVisibleControlInternal(
756 ::std::shared_ptr<::UIControl>& result,
757 ::std::function<
bool(
::UIControl const&)>
const& predicate,
761MCAPI ::std::unordered_map<::FlatWorldPresetID, ::FlatWorldPreset>
const& getFlatWorldPresets();
763MCAPI_C ::HowToPlayTopicIndex getHowToPlayTopicIndexFromName(::std::string_view topicString);
765MCAPI ::I18n& getI18n();
767MCAPI_C ::std::vector<::PackIdVersion> getJsonPackIdVersion(
::Json::Value const& objectArray);
769MCAPI ::std::string getJsonTypeString(::Json::ValueType
const& type);
771MCAPI ::std::unordered_map<int, ::std::string>
const& getPackParseErrorTypeEventMapAccess();
773MCAPI ::std::unordered_map<int, ::std::string>
const& getPackParseErrorTypeLOCMapAccess();
775MCAPI ::Scripting::Result<
781MCAPI_C ::Core::Result getPrimaryUserStorageArea(::std::shared_ptr<::Core::FileStorageArea>& sptStorageArea);
785MCAPI_C ::std::string getScreenshotTextureFileSystemFromBag(
795MCAPI_C ::SubChunk::SubChunkState getSubChunkState(
::LevelChunk& levelChunk,
short absoluteIndex);
797MCAPI_C
void getVisibleControlsInternal(::std::function<
void(
::UIControl&)>
const& action,
::UIControl& control);
799MCAPI ::AllWorkerConfigurations getWorkerConfiguration(uint highPowerCores, uint totalCores);
801MCAPI
bool isChunkAtStage(::std::weak_ptr<::LevelChunk> lcwp, ::ChunkState stateToCheck);
803MCAPI
int itemVarientFromString(::std::string
const& str);
805MCAPI ::std::string join(::std::string prefix, ::std::string_view chunkKey);
807MCAPI ::std::string join(::std::string_view prefix, ::LevelChunkTag tag);
809MCAPI ::std::string join(::std::string_view prefix, ::LevelChunkTag tag, uint i);
811MCAPI_C ::glm::vec3 lerpCoefficients(
float normalizedDensityIndex, ::gsl::span<::glm::vec3 const> coefficientData);
813MCAPI_C ::std::string makeGuestDisplayName(::std::string
const& hostName, ::SubClientId subclientId);
815MCAPI ::mce::UUID makeGuestUUID(
::mce::UUID const& hostUuid, ::SubClientId subclientId);
817MCAPI ::mce::UUID makePlayerUUIDForXUID(::std::string
const& xuid);
819MCAPI_S ::std::shared_ptr<::Bedrock::Services::IDiscoveryService>
822MCAPI_C
void mergeControls(
827 ::std::unordered_map<::std::string, ::std::string>
const& topLevelNames,
828 ::std::string
const& fileName,
832MCAPI_C
int nvFPrintf(::_iobuf*,
char const*, ...);
834MCAPI_C
int nvSWprintf(
wchar_t*, uint64,
wchar_t const*, ...);
836MCAPI_C
int nvSprintf(
char*, uint64,
char const*, ...);
838MCAPI
bool operator!=(
862MCAPI_C ::std::ostream& operator<<(::std::ostream& os, ::cg::TextureSetLayerType
const& type);
871MCAPI
bool operator==(
883MCAPI
bool operator==(
888MCAPI
bool operator==(
897MCAPI_C
bool operator>=(
902MCAPI ::BlockProperty operator|(::BlockProperty lhs, ::BlockProperty b);
904MCAPI_C ::std::string pascalCaseConverter(::std::string
const& inString,
bool pascalCase);
906MCAPI_C ::ActorAttachableDerivitiveData processActorAttachables(
909 bool lessThanOrEqualToVersion_1_16_210
912MCAPI_C ::ActorDerivitiveData processActors(
917 ::std::vector<::mce::framebuilder::RenderBatchActorInstanceDescription>& actorDescriptions,
921MCAPI_C ::DataDrivenRendererDerivitiveData processDataDrivenRenderers(
932MCAPI_C
void renderAttachables(
940MCAPI_C ::mce::framebuilder::FrameBuilder* renderDragonFrameBuilder();
946MCAPI
void renderMapChunk(
954MCAPI_C
void renderTempComponents(
962MCAPI_C
void reportParseError(::std::string
const& fileName,
::Json::Reader& reader);
964MCAPI_C
void separateEntityStreams(
973MCAPI_C ::ui::DirtyFlag setControlVariableValue(
975 ::LayoutVariableType type,
981MCAPI_C
void setRegexIndexByBoneIndex(
982 ::std::string
const& boneName,
984 ::std::vector<::std::string>
const& regexArray,
985 ::std::vector<ushort>& indices
988MCAPI_C
void setupAttachables(
997MCAPI_C
bool shouldRenderAnyAttachables(
998 bool modelAttachablesAreEnabled,
1000 bool lessThanOrEqualToVersion_1_16_210,
1004MCAPI ::Scripting::Result<
1007spawnSimulatedPlayer(
1010 ::std::string
const& name,
1014MCAPI_S ::DiscoveryEnvironment stringToDiscoveryEnvironment(::std::string
const& str);
1016MCAPI_C
void submitActors(
1022MCAPI_C
bool supportsDataDrivenRenderer(
1029MCAPI_C ::TerrainVariation terrainVariationFromString(::std::string_view terrainVariation);
1039MCAPI_C ::std::string toString(::NetworkConnectionType connectionType);
1041MCAPI ::std::string toString(::AgentActionType type);
1043MCAPI_C ::std::optional<uint> tryCreateDataDrivenV2Resource(
1045 ::std::shared_ptr<::DataDrivenRenderer>
const& render,
1049MCAPI ::std::optional<::std::locale> tryGetLocaleFromName(::std::string
const& localeName);
1051MCAPI_C
void updateLevelSettingsConsideringPlayerIntents(
1052 ::Bedrock::NotNullNonOwnerPtr<::ILevel> level,
1053 ::Bedrock::NotNullNonOwnerPtr<::IAppPlatform> appPlatform,
1054 ::Bedrock::NotNullNonOwnerPtr<::Social::MultiplayerServiceManager>
const&,
1055 bool isNxAdhocMultiplayer,
1056 ::Bedrock::NotNullNonOwnerPtr<::Social::IUserManager> userManager,
1057 ::Bedrock::NotNullNonOwnerPtr<::TrialManager> trialManager,
1058 bool hasAllValidCrossPlatformSkin
1061MCAPI ::http_wstring utf16_from_utf8(::http_string
const& utf8);
1063MCAPI ::http_wstring utf16_from_utf8(
char const* utf8);
1065MCAPI ::http_wstring utf16_from_utf8(
char const* utf8, uint64 size);
1067MCAPI ::http_string utf8_from_utf16(::http_wstring
const& utf16);
1069MCAPI ::http_string utf8_from_utf16(
wchar_t const* utf16, uint64 size);
1071MCAPI_C
void visitTreeInternal(
1073 ::std::function<
bool(
::UIControl&,
int,
bool)> visitor,
1075 bool ancestorVisible
1081MCAPI ::std::vector<::HudElement>
const& ALL_HUD_ELEMENTS();
1083MCAPI ::std::unordered_map<
1084 ::glTF::Accessor::Type,
1087 ::std::equal_to<::glTF::Accessor::Type>>
const&
1088AccessorTypeEnumMap();
1090MCAPI_C ::std::array<::LayoutVariableType, 11>
const& AllLayoutVariableTypes();
1092MCAPI ::HashedString
const& BLAST_FURNACE_TAG();
1094MCAPI ::HashedString
const& CAMPFIRE_TAG();
1096MCAPI_C ::std::chrono::seconds
const& CLUBS_CACHE_DURATION_FAILED();
1098MCAPI_C ::std::chrono::seconds
const& CLUBS_CACHE_DURATION_SUCCEEDED();
1100MCAPI ::std::unordered_map<::ContainerEnumName, ::std::string>& ContainerCollectionNameMap();
1102MCAPI_C ::std::string
const& DEFAULT_DRIVE_CONTENTS_PATH();
1104MCAPI_C
int const& DEFAULT_SEARCH_RESULTS_PER_REQUEST();
1106MCAPI_C ::std::unordered_map<::std::string_view, ::EncyclopediaTopicIndex>
const& EncyclopediaTopicIndexMap();
1108MCAPI_C ::std::string
const& FEATURED_SKIN_PACK_COLLECTION_INDEX();
1110MCAPI_C ::std::string
const& FEATURED_SKIN_PACK_COLLECTION_NAME();
1112MCAPI ::HashedString
const& FURNACE_TAG();
1114MCAPI ::std::array<::std::pair<::HudElement, ::std::string>, 13>
const& HUD_ELEMENTS_TO_STRINGS();
1116MCAPI_C ::std::add_lvalue_reference_t<char const*[]> HeaderBannerType();
1118MCAPI_C ::std::unordered_map<::std::string_view, ::HowToPlayTopicIndex>
const& HowToPlayTopicIndexMap();
1120MCAPI_C ::std::string
const& ICON_OVERLAY_FACTORY();
1122MCAPI ::GatheringServerInfo
const& INVALID_GATHERING_SERVER_INFO();
1124MCAPI ::ThirdPartyInfo
const& INVALID_THIRD_PARTY_INFO();
1126MCAPI
char const*& IPV4_LOOPBACK();
1128MCAPI
char const*& IPV6_LOOPBACK();
1130MCAPI ::std::unordered_map<
1131 ::glTF::Image::ImageMimeType,
1134 ::std::equal_to<::glTF::Image::ImageMimeType>>
const&
1135ImageMimeTypeEnumMap();
1137MCAPI ::MCRESULT
const& MCRESULT_AllTargetsWillFail();
1139MCAPI ::MCRESULT
const& MCRESULT_ChatMuted();
1141MCAPI ::MCRESULT
const& MCRESULT_CommandExecIncomplete();
1143MCAPI ::MCRESULT
const& MCRESULT_CommandNotFound();
1145MCAPI ::MCRESULT
const& MCRESULT_CommandRequestInitiated();
1147MCAPI ::MCRESULT
const& MCRESULT_CommandStepDone();
1149MCAPI ::MCRESULT
const& MCRESULT_CommandStepFail();
1151MCAPI ::MCRESULT
const& MCRESULT_CommandVersionMismatch();
1153MCAPI ::MCRESULT
const& MCRESULT_CommandsDisabled();
1155MCAPI ::MCRESULT
const& MCRESULT_EncryptionRequired();
1157MCAPI ::MCRESULT
const& MCRESULT_ExecutionFail();
1159MCAPI ::MCRESULT
const& MCRESULT_ExpectedRequestMsg();
1161MCAPI ::MCRESULT
const& MCRESULT_FailWithoutFailMsg();
1163MCAPI ::MCRESULT
const& MCRESULT_FailedToParseCommand();
1165MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandCall();
1167MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandContext();
1169MCAPI ::MCRESULT
const& MCRESULT_InvalidCommandOrigin();
1171MCAPI ::MCRESULT
const& MCRESULT_InvalidOverloadSyntax();
1173MCAPI ::MCRESULT
const& MCRESULT_MalformedRequest();
1175MCAPI ::MCRESULT
const& MCRESULT_MustSpecifyVersion();
1177MCAPI ::MCRESULT
const& MCRESULT_NewCommandVersionAvailable();
1179MCAPI ::MCRESULT
const& MCRESULT_NoChatPermissions();
1181MCAPI ::MCRESULT
const& MCRESULT_NoTargetsFound();
1183MCAPI ::MCRESULT
const& MCRESULT_NotEnoughPermissions();
1185MCAPI ::MCRESULT
const& MCRESULT_Success();
1187MCAPI ::MCRESULT
const& MCRESULT_TooManyPendingRequests();
1189MCAPI ::MCRESULT
const& MCRESULT_VersionMismatch();
1191MCAPI ::SemVersionConstant
const& MIN_ENGINE_VERSION_MINIMUM_V2();
1193MCAPI ::std::unordered_map<
1194 ::glTF::Material::AlphaMode,
1197 ::std::equal_to<::glTF::Material::AlphaMode>>
const&
1198MaterialAlphaModeEnumMap();
1200MCAPI ::std::bitset<38>
const& PLAYER_ACTION_MOVEMENT_BITSET();
1202MCAPI ::std::bitset<38>
const& PLAYER_ACTION_MOVEMENT_FLYING_ATTRIBUTE_BITSET();
1204MCAPI ::std::bitset<38>
const& PLAYER_ACTION_MOVEMENT_SPEED_ATTRIBUTE_BITSET();
1206MCAPI_C ::std::string
const& SKIN_PACK_COLLECTION_INDEX_DEP();
1208MCAPI_C ::std::string
const& SKIN_PACK_COLLECTION_NAME_DEP();
1210MCAPI ::HashedString
const& SMOKER_TAG();
1212MCAPI ::HashedString
const& SOUL_CAMPFIRE_TAG();
1218MCAPI ::std::unordered_map<
1219 ::TextProcessingEventOrigin,
1222 ::std::equal_to<::TextProcessingEventOrigin>>
const&
1223TextProcessingEventOriginEnumMap();
1225MCAPI ::std::array<::HashedString, 17>
const& VanillaStructureFeatureTypes();
1227MCAPI ::std::unordered_map<::std::string, ::ActorFilterGroup::LegacyMapping>& _environmentSubfilters();
1229MCAPI ::std::unordered_map<::std::string, ::ActorFilterGroup::LegacyMapping>& _legacyPredicates();
1231MCAPI_C ::std::unordered_map<int, ::std::string>
const& autoUpdateModeLabels();
1233MCAPI_C ::mce::Camera& camera();
1235MCAPI_C ::std::unordered_map<int, ::std::string>
const& chatDurationLabels();
1237MCAPI_C ::std::unordered_map<int, ::std::string>
const& chunkMapModeLabels();
1239MCAPI_C ::std::unordered_map<int, ::std::string>
const& cloudQualityLabels();
1241MCAPI_C ::std::unordered_map<int, ::std::string>
const& contentLogGUILevelLables();
1243MCAPI_C ::std::unordered_map<int, ::std::string>
const& debugHudLabels();
1245MCAPI_C ::std::unordered_map<int, ::std::string>
const& devConnectionQualityLabels();
1247MCAPI_C ::std::unordered_map<int, ::std::string>
const& devEducationServicesEnvironmentLabels();
1249MCAPI_C ::std::unordered_map<int, ::std::string>
const& devMarketplaceRotationSpeedMultiplierLabels();
1251MCAPI_C ::std::unordered_map<int, ::std::string>
const& devTimeZoneTypeLabels();
1253MCAPI_C ::std::unordered_map<int, ::std::string>
const& devWindowsStoreLabels();
1255MCAPI_C ::std::unordered_map<int, ::std::string>
const& deviceInfoMemoryTierLabels();
1257MCAPI_C ::std::unordered_map<int, ::std::string>
const& difficultyLabels();
1259MCAPI ::std::unordered_map<int, ::std::string>
const& discoveryEnvironmentLabels();
1261MCAPI ::std::unordered_map<::std::string, ::DiscoveryEnvironment>
const& discoveryEnvironmentStrings();
1263MCAPI ::std::unordered_map<::DiscoveryEnvironment, ::std::string>
const& discoveryEnvironments();
1265MCAPI ::std::array<::std::pair<char const*, char const*>, 5>
const& educationServicesEnvironmentStrings();
1267MCAPI ::std::add_lvalue_reference_t<uint[]> englishCharacterFrequencies();
1269MCAPI_C ::std::unordered_map<int, ::std::string>
const& exposureTechniqueLabels();
1271MCAPI_S ::std::vector<::std::string>& gAreaFilters();
1273MCAPI ::SubChunkDelayedDeleter<::SubChunkStorage<::Biome>>& gBiomeChunkGC();
1275MCAPI ::SubChunkDelayedDeleter<::SubChunkStorage<::Block>>& gBlockStorageGC();
1277MCAPI ::InternalTaskGroup& gInternalTaskGroup();
1279MCAPI ::SubChunkDelayedDeleter<::SubChunkBrightnessStorage>& gLightStorageGC();
1281MCAPI_C ::std::add_lvalue_reference_t<uchar[]> gMinecraftLogoImage();
1283MCAPI_S ::std::vector<::std::string>& gPriorityFilters();
1285MCAPI_C
double& gTotalRealWorldTime();
1287MCAPI_C
double& gTotalRealWorldTimeDelta();
1289MCAPI ::std::add_lvalue_reference_t<
void* (*)(uint64, uint)> g_memAllocFunc();
1291MCAPI ::std::add_lvalue_reference_t<void (*)(
void*, uint)> g_memFreeFunc();
1293MCAPI ::HCTraceImplArea& g_traceHTTPCLIENT();
1295MCAPI ::HCTraceImplArea& g_traceWEBSOCKET();
1297MCAPI_C ::HCTraceImplArea& g_traceXAL();
1299MCAPI_C ::HCTraceImplArea& g_traceXAL_TELEMETRY();
1301MCAPI_C ::HCTraceImplArea& g_traceXSAPI();
1303MCAPI_C
char const*& gamepad_disconnected_screen();
1305MCAPI_C ::std::unordered_map<int, ::std::string>
const& graphicsApiLabels();
1307MCAPI_C ::std::unordered_map<int, ::std::string>
const& graphicsModeLabels();
1309MCAPI_C ::std::unordered_map<int, ::std::string>
const& graphicsQualityPresetModeLabels();
1311MCAPI_C
char const*& hud_screen();
1313MCAPI_C
char const*& idle_route();
1315MCAPI_C ::std::unordered_map<int, ::std::string>
const& interactionModelLabels();
1317MCAPI_C ::std::unordered_map<int, ::std::string>
const& joystickVisibilityOptionLabels();
1319MCAPI ::EducationServicesEnvironment& mCachedServicesEnvironment();
1321MCAPI_C ::std::unordered_map<int, ::std::string>
const& nethernetLoggingVerbosityLabels();
1323MCAPI_C ::std::unordered_map<int, ::std::string>
const& networkLoggingVerbosityLabels();
1325MCAPI_C ::std::unordered_map<int, ::std::string>
const& newPlayerFlowV3ABCTestGroupLabels();
1327MCAPI ::std::add_lvalue_reference_t<void (*)(
char const*, long)> notifyOutOfMemory();
1329MCAPI_C ::std::unordered_map<int, ::std::string>
const& partyInviteReceivedFilterLabels();
1331MCAPI_C ::std::unordered_map<int, ::std::string>
const& partyInviteSendPrivilegesLabels();
1333MCAPI_C ::std::unordered_map<int, ::std::string>
const& partyPrivacyLabels();
1335MCAPI_C
char const*& pause_screen();
1337MCAPI_C ::std::unordered_map<::std::string, int>
const& permissionsNameValuePairs();
1339MCAPI_C ::std::unordered_map<int, ::std::string>
const& permissionsValueLabelPairs();
1341MCAPI_C ::std::unordered_map<int, ::std::string>
const& permissionsValueTexturePairs();
1343MCAPI_C ::std::unordered_map<int, ::std::string>
const& pointLightLODingQualityLabels();
1345MCAPI_C ::std::unordered_map<int, ::std::string>
const& pointLightShadowQualityLabels();
1347MCAPI ::std::add_lvalue_reference_t<void (*)(
void*,
char const*, uint)> rakFree_Ex();
1349MCAPI ::std::add_lvalue_reference_t<
void* (*)(uint64,
char const*, uint)> rakMalloc_Ex();
1351MCAPI ::std::add_lvalue_reference_t<
void* (*)(
void*, uint64,
char const*, uint)> rakRealloc_Ex();
1353MCAPI_C ::std::unordered_map<int, ::std::string>
const& realmsEnvironmentLabels();
1355MCAPI_C ::std::unordered_map<int, ::std::string>
const& realmsSkuLabels();
1357MCAPI_C ::std::unordered_map<int, ::std::string>
const& reflectionQualityLabels();
1359MCAPI ::std::add_lvalue_reference_t<::DynDnsResult[]> resultTable();
1361MCAPI_C ::std::shared_ptr<::Bedrock::Platform_GameCore>& sPlatform();
1363MCAPI_C ::std::unique_ptr<::WindowState>& sWindowState();
1365MCAPI_S
bool& s_AsyncLibEnablePumpingWait();
1367MCAPI_S ::std::atomic<uint>& s_AsyncLibGlobalStateCount();
1369MCAPI_C ::std::unordered_map<int, ::std::string>
const& scriptDebuggerAttachModeLabels();
1371MCAPI_C ::std::unordered_map<int, ::std::string>
const& shadowQualityLabels();
1373MCAPI_C ::std::unordered_map<int, ::std::string>
const& sneakOptionLabels();
1375MCAPI_C ::std::unordered_map<int, ::std::string>
const& splitScreenLabels();
1377MCAPI_C ::std::unordered_map<int, ::std::string>
const& startupStatisticsLabels();
1379MCAPI ::__m128i& stbir__s16_32768();
1381MCAPI ::__m128i& stbir__s32_32768();
1383MCAPI_C ::std::unordered_map<int, ::std::string>
const& storageLocationLabels();
1385MCAPI_C ::std::unordered_map<int, ::std::string>
const& sunsettingTierLabels();
1387MCAPI_C ::std::unordered_map<int, ::std::string>
const& suspendedConnectionBehaviorLabels();
1389MCAPI_C ::std::unordered_map<int, ::std::string>
const& thirdPersonLabels();
1391MCAPI_C ::std::unordered_map<int, ::std::string>
const& toastsDurationLabels();
1393MCAPI_C ::std::unordered_map<int, ::std::string>
const& tonemapTechniqueLabels();
1395MCAPI_C ::std::unordered_map<int, ::std::string>
const& topButtonScaleOptionLabels();
1397MCAPI ::std::add_lvalue_reference_t<::TypeMapping[]> typeMappings();
1399MCAPI_C ::std::unordered_map<int, ::std::string>
const& typefaceLabels();
1401MCAPI_C ::std::unordered_map<int, ::std::string>
const& uiProfileLabels();
1403MCAPI_C ::std::unordered_map<int, ::std::string>
const& upscalingModeLabels();
1405MCAPI_C ::std::unordered_map<int, ::std::string>
const& volumetricFogQualityLabels();
1407MCAPI_C ::std::unordered_map<int, ::std::string>
const& vsyncLabels();
1409MCAPI_C ::std::add_lvalue_reference_t<int (*)(
void*)> winrt_to_hresult_handler();
1411MCAPI_C ::std::unordered_map<int, ::std::string>
const& xboxEnvironmentLabels();
Definition ActorOwnerComponent.h:10
Definition BaseActorRenderContext.h:34
Definition IDiscoveryService.h:16
Definition WorkerPoolHandleInterface.h:15
Definition BiomeArea.h:11
Definition BlockSource.h:68
Definition BlockState.h:13
Definition BlockType.h:84
Definition BoundingBox.h:13
Definition BribeableComponent.h:14
Definition CircuitComponentList.h:14
Definition CircuitSceneGraph.h:18
Definition CircuitTrackingInfo.h:14
Definition FileStorageArea.h:26
Definition DataDrivenGeometry.h:19
Definition DataDrivenModel.h:5
Definition DataDrivenRenderer.h:5
Definition DateManager.h:14
Definition DefinitionTrigger.h:15
Definition Dimension.h:85
Definition ExpressionNode.h:33
Definition FeatureRegistry.h:18
Definition GatheringServerInfo.h:5
Definition HashedString.h:5
Definition HitResult.h:17
Definition IClientInstance.h:5
Definition IFileAccess.h:15
Definition IStructureTemplateManager.h:16
Definition InternalTaskGroup.h:18
Definition ItemInstance.h:15
Definition ItemStack.h:26
Definition JigsawStructureRegistry.h:22
Definition LevelChunk.h:79
Definition LevelData.h:50
Definition PackManifest.h:37
Definition PackReport.h:16
Definition RakPeerInterface.h:32
Definition RecipeIngredient.h:17
Definition RedstoneTorchCapacitor.h:19
Definition ResponseVerifier.h:10
Definition ScriptSimulatedPlayer.h:36
Definition ScriptPlayer.h:54
Definition ScriptStat.h:10
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:7
Definition SemVersionBase.h:9
Definition SemVersionConstant.h:8
Definition IUserManager.h:34
Definition StructurePoolElement.h:39
Definition SubChunkBrightnessStorage.h:5
Definition Tessellator.h:5
Definition ThirdPartyInfo.h:5
Definition TraceState.h:5
Definition WindowState.h:11
Definition WorkerPool.h:19
Definition function_ref.h:60
Definition _HeaderOutputPredefine.h:237
Definition http_stl_allocator.h:6
Definition AccessorTypeEnumHasher.h:5
Definition ActorAttachableDerivitiveData.h:5
Definition ActorDefinitionIdentifier.h:15
Definition ActorDerivitiveData.h:5
Definition ActorFactoryData.h:16
Definition AllWorkerConfigurations.h:5
Definition AnimationData.h:5
Definition AssertHandlerContext.h:5
Definition AttachablesPreprocessingContext.h:5
Definition BakedDataDrivenRenderDataInfrequentAccess.h:5
Definition BakedRenderControllerResults.h:5
Definition DiscoveryConfig.h:7
Definition BlockLayer.h:10
Definition BlockMaterialInstance.h:17
Definition CommonLocTextPair.h:5
Definition ContentCatalogQueryData.h:5
Definition DataDrivenRendererDerivitiveData.h:5
Definition DataDrivenRendererPreprocessingContext.h:5
Definition DiggerBlockTypeInfo.h:14
Definition DisconnectionErrorStringOverrides.h:5
Definition DurableSearchResults.h:5
Definition DynDnsResult.h:5
Definition FinalRenderingData.h:5
Definition FlatWorldLayer.h:8
Definition FlatWorldPreset.h:15
Definition FrameAllocationCount.h:5
Definition HCTraceImplArea.h:5
Definition ImageMimeTypeEnumHasher.h:5
Definition KeyOrNameResult.h:5
Definition KineticDamageSettings.h:10
Definition LocalPlayer.h:5
Definition MapItemSavedData.h:43
Definition MaterialAlphaModeEnumHasher.h:5
Definition ModificationOperation.h:5
Definition PackIdVersion.h:10
Definition ParticleEffectComponentRegistry.h:7
Definition ProcessedDataDrivenRenderers.h:5
Definition RakPeerConfiguration.h:7
Definition RealmsWorldInfo.h:5
Definition RenderControllerResources.h:5
Definition RequestedRenderEntries.h:5
Definition ResourceBakingResult.h:5
Definition ResourceOffset.h:5
Definition ScatterParamsMolangVariableIndices.h:8
Definition ScriptPlayerSkinData.h:17
Definition ScriptDimensionLocation.h:16
Definition ScriptInvalidActorError.h:17
Definition EngineError.h:15
Definition InvalidArgumentError.h:17
Definition SearchQuery.h:5
Definition SentryEnvelopePayloadDebugMetadataSourcemapImage.h:10
Definition SentryEnvelopePayloadStacktraceFrame.h:5
Definition EmptyPoolElement.h:7
Definition SinglePoolElement.h:12
Definition MultiplayerServiceManager.h:7
Definition StoreDataDrivenScreenController.h:5
Definition TextProcessingEventOriginEnumHasher.h:5
Definition TrialManager.h:5
Definition TypeMapping.h:5
Definition UIPropertyBag.h:5
Definition WorkerConfiguration.h:8
Definition WorldSeedModel.h:5
Definition WorldTemplateInfo.h:12
Definition ReflectionCtx.h:11
Definition FrameBuilder.h:7
Definition PerCascadeRenderingParameters.h:7
Definition RenderBatchActorInstanceDescription.h:7
Definition ShadowRange.h:7
Definition srtp_auth_t.h:5