LeviLamina
Loading...
Searching...
No Matches
InteractionDescription.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
7#include "mc/deps/shared_types/v1_26_50/actor/InteractionData.h"
8#include "mc/entity/components_json_legacy/InteractionParticle.h"
9#include "mc/entity/components_json_legacy/ItemSlotInfo.h"
10#include "mc/world/actor/ActorDefinitionTrigger.h"
11#include "mc/world/actor/ItemDefinition.h"
12
13// auto generated forward declare list
14// clang-format off
15class GameEvent;
17namespace SharedTypes::v1_26_50 { struct InteractionData; }
18// clang-format on
19
20class InteractionDescription {
21public:
22 // InteractionDescription inner types define
23 using InteractionData = ::SharedTypes::v1_26_50::InteractionData;
24
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<4, 4, int> mRequiresCooldown;
29 ::ll::TypedStorage<4, 4, int> mCooldownAfterBeingAttacked;
30 ::ll::TypedStorage<1, 1, bool> mSwing;
31 ::ll::TypedStorage<1, 1, bool> mUseItem;
32 ::ll::TypedStorage<1, 1, bool> mBarter;
33 ::ll::TypedStorage<1, 1, bool> mAdmire;
34 ::ll::TypedStorage<1, 1, bool> mGiveItem;
35 ::ll::TypedStorage<1, 1, bool> mTakeItem;
36 ::ll::TypedStorage<4, 4, int> mHurtItem;
37 ::ll::TypedStorage<4, 4, int> mAdjustHealthAmount;
38 ::ll::TypedStorage<4, 12, ::std::optional<::ItemSlotInfo>> mEquipItemSlot;
39 ::ll::TypedStorage<4, 12, ::std::optional<::ItemSlotInfo>> mDropItemSlot;
40 ::ll::TypedStorage<4, 12, ::std::optional<::ItemSlotInfo>> mRepairItemSlot;
41 ::ll::TypedStorage<4, 4, int> mRepairItemAmount;
42 ::ll::TypedStorage<4, 8, ::ItemDefinition> mTransformItem;
43 ::ll::TypedStorage<8, 32, ::std::string> mInteractText;
44 ::ll::TypedStorage<8, 32, ::std::string> mAddItemsTable;
45 ::ll::TypedStorage<8, 32, ::std::string> mSpawnItemsTable;
46 ::ll::TypedStorage<4, 16, ::InteractionParticle> mParticleData;
47 ::ll::TypedStorage<4, 4, float> mDropItemYOffset;
48 ::ll::TypedStorage<4, 4, float> mSpawnItemsYOffset;
49 ::ll::TypedStorage<8, 24, ::std::vector<::SharedTypes::Legacy::LevelSoundEvent>> mPlaySounds;
50 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionIdentifier>> mSpawnEntities;
51 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnInteraction;
52 ::ll::TypedStorage<8, 8, ::GameEvent const*> mVibration;
53 // NOLINTEND
54
55public:
56 // prevent constructor by default
57 InteractionDescription& operator=(InteractionDescription const&);
58 InteractionDescription();
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI InteractionDescription(::InteractionDescription&&);
64
65 MCAPI InteractionDescription(::InteractionDescription const&);
66
67 MCAPI void addActorDefinitionIdentifierByName(::std::string const& name);
68
69 MCAPI void setTransformItem(::std::string const& name);
70
71 MCAPI void setVibration(::SharedTypes::v1_26_50::InteractionData::VibrationType const& type);
72
73 MCAPI ~InteractionDescription();
74 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
79 MCAPI void* $ctor(::InteractionDescription&&);
80
81 MCAPI void* $ctor(::InteractionDescription const&);
82 // NOLINTEND
83
84public:
85 // destructor thunk
86 // NOLINTBEGIN
87 MCAPI void $dtor();
88 // NOLINTEND
89};
Definition GameEvent.h:8
Definition ActorDefinitionIdentifier.h:15
Definition InteractionData.h:18