Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
PersonaTextureBuilder.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/persona/builders/TextureTint.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8
9// auto generated forward declare list
10// clang-format off
13class Pack;
18namespace Json { class Value; }
19namespace mce { class TextureGroup; }
20namespace persona { struct TextureTint; }
21// clang-format on
22
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 8, ::IPersonaImageProvider&> mImageProvider;
28 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions>> mAdvancedGraphicsOptions;
29 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager>> mResourceLoadManager;
30 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::ResourcePackManager>> mResourcePackManager;
31 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::TextureHotReloader>> mTextureHotReloader;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 PersonaTextureBuilder& operator=(PersonaTextureBuilder const&);
37 PersonaTextureBuilder(PersonaTextureBuilder const&);
38 PersonaTextureBuilder();
39
40public:
41 // member functions
42 // NOLINTBEGIN
44 ::IPersonaImageProvider& imageProvider,
45 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions> advancedGraphicsOptions,
46 ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager> resourceLoadManager,
47 ::Bedrock::NotNullNonOwnerPtr<::ResourcePackManager> resourcePackManager,
49 );
50
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCNAPI static void _addClothingMap(
58 ::PersonaTextureResources& textureResources,
59 ::std::shared_ptr<::Pack const> clothingSourcePack,
60 ::std::string const& mapId,
61 ::std::string clothingMapPath
62 );
63
64 MCNAPI static void _addPieceTextureToMap(
65 ::PersonaTextureResources& textureResources,
66 ::std::string const& pieceId,
68 bool isAnimated,
69 ::std::optional<uint> sampledTexelWidth
70 );
71
72 MCNAPI static void _addTextureToConfiguration(
73 ::mce::TextureGroup& textureGroup,
74 ::persona::TextureTint const& texture,
75 ::Json::Value& pieceTextureData,
76 bool validateFileExists
77 );
78
79 MCNAPI static void _ensureCPUImageDataIsLoaded(
80 ::mce::TextureGroup& textureGroup,
81 ::persona::TextureTint const& texture,
82 ::persona::TextureTint::PathType pathType,
83 bool validateFileExists
84 );
85 // NOLINTEND
86
87public:
88 // static variables
89 // NOLINTBEGIN
90 MCNAPI static ::std::string const& BASE_FACE_TEXTURE_ID();
91
92 MCNAPI static ::std::string const& BASE_TEXTURE_ID();
93
94 MCNAPI static ::std::string const& PERSONA_ANIMATED_ATLAS_TEST_PATH();
95
96 MCNAPI static ::std::string const& PERSONA_ATLAS_TEST_PATH();
97 // NOLINTEND
98
99public:
100 // constructor thunks
101 // NOLINTBEGIN
102 MCNAPI void* $ctor(
103 ::IPersonaImageProvider& imageProvider,
104 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions> advancedGraphicsOptions,
105 ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager> resourceLoadManager,
106 ::Bedrock::NotNullNonOwnerPtr<::ResourcePackManager> resourcePackManager,
108 );
109 // NOLINTEND
110
111public:
112 // destructor thunk
113 // NOLINTBEGIN
114 MCNAPI void $dtor();
115 // NOLINTEND
116};
Definition NonOwnerPointer.h:9
Definition IAdvancedGraphicsOptions.h:10
Definition IPersonaImageProvider.h:5
Definition Value.h:16
Definition Pack.h:28
Definition PersonaTextureBuilder.h:5
static MCAPI void _addPieceTextureToMap(::PersonaTextureResources &textureResources, ::std::string const &pieceId, ::persona::TextureTint texture, bool isAnimated, ::std::optional< uint > sampledTexelWidth)
MCAPI PersonaTextureBuilder(::IPersonaImageProvider &imageProvider, ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions > advancedGraphicsOptions, ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > resourceLoadManager, ::Bedrock::NotNullNonOwnerPtr<::ResourcePackManager > resourcePackManager, ::Bedrock::NonOwnerPointer<::TextureHotReloader > textureHotReloader)
static MCAPI ::std::string const & PERSONA_ATLAS_TEST_PATH()
static MCAPI ::std::string const & BASE_TEXTURE_ID()
MCAPI ~PersonaTextureBuilder()
static MCAPI void _addClothingMap(::PersonaTextureResources &textureResources, ::std::shared_ptr<::Pack const > clothingSourcePack, ::std::string const &mapId, ::std::string clothingMapPath)
MCAPI void * $ctor(::IPersonaImageProvider &imageProvider, ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions > advancedGraphicsOptions, ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > resourceLoadManager, ::Bedrock::NotNullNonOwnerPtr<::ResourcePackManager > resourcePackManager, ::Bedrock::NonOwnerPointer<::TextureHotReloader > textureHotReloader)
static MCAPI void _ensureCPUImageDataIsLoaded(::mce::TextureGroup &textureGroup, ::persona::TextureTint const &texture, ::persona::TextureTint::PathType pathType, bool validateFileExists)
static MCAPI ::std::string const & PERSONA_ANIMATED_ATLAS_TEST_PATH()
static MCAPI ::std::string const & BASE_FACE_TEXTURE_ID()
static MCAPI void _addTextureToConfiguration(::mce::TextureGroup &textureGroup, ::persona::TextureTint const &texture, ::Json::Value &pieceTextureData, bool validateFileExists)
Definition ResourceLoadManager.h:22
Definition ResourcePackManager.h:29
Definition TextureGroup.h:7
Definition PersonaTextureResources.h:5
Definition TextureHotReloader.h:5
Definition TextureTint.h:7