Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
IPaperDollUpdateContext.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/brstd/move_only_function.h"
7
8// auto generated forward declare list
9// clang-format off
13class Skin;
14class SkinPackPin;
15struct SkinImages;
16namespace mce { class UUID; }
17// clang-format on
18
20public:
21 // virtual functions
22 // NOLINTBEGIN
23 virtual ~IPaperDollUpdateContext() = default;
24
25 virtual ::brstd::move_only_function<void(::std::string_view) const> getRemoveSkinFunction() = 0;
26
27 virtual ::Skin const* getSelectedSkin() = 0;
28
29 virtual ::Skin const* getSkinFromPack(uint64 packHash, int packIndex) = 0;
30
31 virtual ::SkinPackPin pinSkinPack(::mce::UUID const& packId) = 0;
32
33 virtual bool isValidSelectedSkin(::mce::UUID const& packId, int skinIndex) const = 0;
34
35 virtual void createOrUpdateSkin(
36 ::AnimationComponent& animationComponent,
37 ::SerializedSkinRef const& skin,
38 ::SkinImages const& images
39 ) = 0;
40
41 virtual ::SkinImages getSkinImages(::Skin const& skin, bool isPlayer) = 0;
42
43 virtual bool isSkinReadyToRender(::std::string_view skin) const = 0;
44
45 virtual void markLocalPlayerAsDirty() = 0;
46
47 virtual bool shouldAllSkinsRotate() const = 0;
48
49 virtual ::std::shared_ptr<::ActorAnimationGroup> getActorAnimationGroup() = 0;
50
51 virtual void playUI(::std::string const& name, float volume, float pitch) = 0;
52 // NOLINTEND
53};
Definition ActorAnimationGroup.h:22
Definition AnimationComponent.h:38
Definition IPaperDollUpdateContext.h:5
Definition SerializedSkinRef.h:26
Definition SkinPackPin.h:5
Definition Skin.h:5
Definition UUID.h:8
Definition SkinImages.h:5