LeviLamina
Loading...
Searching...
No Matches
ScriptItemInventoryComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/lifetime_registry/StrongObjectHandle.h"
7#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
8#include "mc/deps/scripting/runtime/Result.h"
9#include "mc/scripting/modules/minecraft/items/components/ScriptItemComponent.h"
10
11// auto generated forward declare list
12// clang-format off
14namespace ScriptModuleMinecraft { class ScriptComponentTypeEnumBuilder; }
15namespace ScriptModuleMinecraft { class ScriptContainerWrapper; }
16namespace ScriptModuleMinecraft { class ScriptItemStack; }
17namespace ScriptModuleMinecraft { struct ScriptInvalidContainerError; }
18namespace Scripting { class WeakLifetimeScope; }
19namespace Scripting { struct ClassBinding; }
20// clang-format on
21
22namespace ScriptModuleMinecraft {
23
24class ScriptItemInventoryComponent : public ::ScriptModuleMinecraft::ScriptItemComponent {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::DynamicContainerTracker>> mDynamicContainerTracker;
29 ::ll::TypedStorage<8, 40, ::std::optional<::Scripting::StrongObjectHandle>> mScriptContainer;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 ScriptItemInventoryComponent& operator=(ScriptItemInventoryComponent const&);
35 ScriptItemInventoryComponent();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual ~ScriptItemInventoryComponent() /*override*/ = default;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI ScriptItemInventoryComponent(::ScriptModuleMinecraft::ScriptItemInventoryComponent const&);
47
48 MCAPI ScriptItemInventoryComponent(
51 );
52
53 MCAPI void _tryTrackContainer();
54
55 MCAPI ::Scripting::Result<
58 getOrCreateContainer();
59 // NOLINTEND
60
61public:
62 // static functions
63 // NOLINTBEGIN
64 MCAPI static ::Scripting::ClassBinding
65 bind(::ScriptModuleMinecraft::ScriptComponentTypeEnumBuilder& componentTypeEnumBuilder);
66
67 MCAPI static ::std::string const& getTypeName();
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
74
75 MCAPI void* $ctor(
78 );
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCNAPI static void** $vftable();
85 // NOLINTEND
86};
87
88} // namespace ScriptModuleMinecraft
Definition DynamicContainerTracker.h:20
Definition ScriptComponentTypeEnumBuilder.h:17
Definition ScriptContainerWrapper.h:24
Definition ScriptItemComponent.h:20
Definition ScriptItemInventoryComponent.h:24
Definition ScriptItemStack.h:35
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:7
Definition ScriptInvalidContainerError.h:15
Definition ClassBinding.h:19