Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
PersonaAnimationModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/deps/shared_types/persona/PieceType.h"
8#include "mc/world/actor/player/persona/ReactAnimationType.h"
9
10// auto generated forward declare list
11// clang-format off
13class IStoreCatalogItem;
14class UIPropertyBag;
15namespace persona { class PieceOfferWrapper; }
16// clang-format on
17
19public:
20 // PersonaAnimationModel inner types declare
21 // clang-format off
23 struct ReactAnimationData;
24 // clang-format on
25
26 // PersonaAnimationModel inner types define
27 struct ReactAnimationTypeHash {};
28
29 struct ReactAnimationData {
30 public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 32, ::std::string> animationName;
34 ::ll::TypedStorage<8, 32, ::std::string> soundEventName;
35 // NOLINTEND
36 };
37
38 using ReactAnimationType = ::persona::ReactAnimationType;
39
40 using ReactAnimationData = ::PersonaAnimationModel::ReactAnimationData;
41
42public:
43 // member variables
44 // NOLINTBEGIN
45 ::ll::TypedStorage<
46 8,
47 64,
48 ::std::unordered_map<
49 ::persona::ReactAnimationType,
50 ::std::vector<::PersonaAnimationModel::ReactAnimationData>,
51 ::PersonaAnimationModel::ReactAnimationTypeHash,
52 ::std::equal_to<::persona::ReactAnimationType>>>
53 mReactAnimations;
54 ::ll::TypedStorage<8, 8, ::IPersonaRepository const&> mPersonaRepo;
55 ::ll::TypedStorage<8, 32, ::std::string> mEmoteAnimationToPlay;
56 ::ll::TypedStorage<4, 4, ::persona::ReactAnimationType> mBoredAnimationType;
57 ::ll::TypedStorage<4, 4, ::persona::ReactAnimationType> mIdleAnimationType;
58 ::ll::TypedStorage<4, 4, ::persona::ReactAnimationType> mAnimationReactState;
59 ::ll::TypedStorage<4, 4, float> mStartingRotation;
60 ::ll::TypedStorage<4, 4, ::ui::DirtyFlag> mDirtyFlag;
61 ::ll::TypedStorage<4, 4, float> mNextBoredAnimationTime;
62 ::ll::TypedStorage<1, 1, bool> mAnimationUpdated;
63 // NOLINTEND
64
65public:
66 // prevent constructor by default
67 PersonaAnimationModel& operator=(PersonaAnimationModel const&);
68 PersonaAnimationModel(PersonaAnimationModel const&);
69 PersonaAnimationModel();
70
71public:
72 // member functions
73 // NOLINTBEGIN
74 MCNAPI explicit PersonaAnimationModel(::IPersonaRepository const& personaRepo);
75
77
78 MCNAPI void playEmote(::IStoreCatalogItem const& emoteCatalogOffer);
79
80 MCNAPI void playEmote(::persona::PieceOfferWrapper const& emoteCatalogOffer);
81
82 MCNAPI void playReactAnimations(::SharedTypes::persona::PieceType pieceType, bool offer);
83
84 MCNAPI void updateAppearanceData(::persona::PieceOfferWrapper const& offer, bool isOwned);
85
87
89 // NOLINTEND
90
91public:
92 // constructor thunks
93 // NOLINTBEGIN
94 MCNAPI void* $ctor(::IPersonaRepository const& personaRepo);
95 // NOLINTEND
96
97public:
98 // destructor thunk
99 // NOLINTBEGIN
100 MCNAPI void $dtor();
101 // NOLINTEND
102};
Definition IPersonaRepository.h:5
Definition PersonaAnimationModel.h:5
MCAPI void * $ctor(::IPersonaRepository const &personaRepo)
MCAPI ~PersonaAnimationModel()
MCAPI void playEmote(::persona::PieceOfferWrapper const &emoteCatalogOffer)
MCAPI void _populateReactAnimations()
MCAPI void updateAppearanceData(::persona::PieceOfferWrapper const &offer, bool isOwned)
MCAPI void playEmote(::IStoreCatalogItem const &emoteCatalogOffer)
MCAPI PersonaAnimationModel(::IPersonaRepository const &personaRepo)
MCAPI void playReactAnimations(::SharedTypes::persona::PieceType pieceType, bool offer)
MCAPI void updatePaperDollAnimation(::UIPropertyBag &bag)
Definition UIPropertyBag.h:5
Definition PieceOfferWrapper.h:7
Definition PersonaAnimationModel.h:16
Definition PersonaAnimationModel.h:14