LeviLamina
Loading...
Searching...
No Matches
StructureDataLoadHelper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/dataloadhelper/DataLoadHelper.h"
7#include "mc/dataloadhelper/DataLoadHelperType.h"
8#include "mc/deps/core/math/Vec3.h"
9#include "mc/legacy/ActorUniqueID.h"
10#include "mc/util/Mirror.h"
11#include "mc/util/Rotation.h"
12#include "mc/world/Direction.h"
13#include "mc/world/actor/InternalComponentRegistry.h"
14#include "mc/world/level/BlockPos.h"
15
16// auto generated forward declare list
17// clang-format off
18class HashedString;
19class Level;
20// clang-format on
21
22class StructureDataLoadHelper : public ::DataLoadHelper {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 12, ::BlockPos> mStructurePlacementLocation;
27 ::ll::TypedStorage<4, 12, ::BlockPos> mStructureWorldOrigin;
28 ::ll::TypedStorage<4, 12, ::Vec3> mPivot;
29 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mOwner;
30 ::ll::TypedStorage<1, 1, ::Rotation> mRotation;
31 ::ll::TypedStorage<1, 1, ::Mirror> mMirror;
32 ::ll::TypedStorage<8, 8, ::Level*> mLevel;
33 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ActorUniqueID, ::ActorUniqueID>> mOldIDToNewID;
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 StructureDataLoadHelper();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual ::Vec3 loadPosition(::Vec3 const& position) /*override*/;
44
45 virtual ::BlockPos loadBlockPosition(::BlockPos const& blockPos) /*override*/;
46
47 virtual ::BlockPos loadBlockPositionOffset(::BlockPos const& blockPosOffset) /*override*/;
48
49 virtual float loadRotationDegreesX(float x) /*override*/;
50
51 virtual float loadRotationDegreesY(float y) /*override*/;
52
53 virtual float loadRotationRadiansX(float x) /*override*/;
54
55 virtual float loadRotationRadiansY(float y) /*override*/;
56
57 virtual uchar loadFacingID(uchar facing) /*override*/;
58
59 virtual ::Vec3 loadDirection(::Vec3 const& direction) /*override*/;
60
61 virtual ::Direction::Type loadDirection(::Direction::Type direction) /*override*/;
62
63 virtual ::Rotation loadRotation(::Rotation rotation) /*override*/;
64
65 virtual ::Mirror loadMirror(::Mirror) /*override*/;
66
67 virtual ::ActorUniqueID loadActorUniqueID(::ActorUniqueID id) /*override*/;
68
69 virtual ::ActorUniqueID loadOwnerID(::ActorUniqueID id) /*override*/;
70
71 virtual ::InternalComponentRegistry::ComponentInfo const* loadActorInternalComponentInfo(
72 ::std::unordered_map<::HashedString, ::InternalComponentRegistry::ComponentInfo> const& registry,
73 ::std::string const& componentName
74 ) /*override*/;
75
76 virtual bool shouldResetTime() /*override*/;
77
78 virtual ::DataLoadHelperType getType() const /*override*/;
79
80 virtual ::ActorUniqueID _generateNewID();
81
82 virtual ~StructureDataLoadHelper() /*override*/;
83 // NOLINTEND
84
85public:
86 // member functions
87 // NOLINTBEGIN
89 ::BlockPos const& structurePlacementLocation,
90 ::BlockPos const& structureWorldOrigin,
91 ::Vec3 const& rotationPivot,
92 ::ActorUniqueID ownerID,
93 ::Rotation rotation,
94 ::Mirror mirror,
95 ::Level& level
96 );
97 // NOLINTEND
98
99public:
100 // constructor thunks
101 // NOLINTBEGIN
102 MCNAPI void* $ctor(
103 ::BlockPos const& structurePlacementLocation,
104 ::BlockPos const& structureWorldOrigin,
105 ::Vec3 const& rotationPivot,
106 ::ActorUniqueID ownerID,
107 ::Rotation rotation,
108 ::Mirror mirror,
109 ::Level& level
110 );
111 // NOLINTEND
112
113public:
114 // destructor thunk
115 // NOLINTBEGIN
116 MCNAPI void $dtor();
117 // NOLINTEND
118
119public:
120 // virtual function thunks
121 // NOLINTBEGIN
122 MCNAPI ::Vec3 $loadPosition(::Vec3 const& position);
123
124 MCNAPI ::BlockPos $loadBlockPosition(::BlockPos const& blockPos);
125
126 MCNAPI ::BlockPos $loadBlockPositionOffset(::BlockPos const& blockPosOffset);
127
128 MCNAPI float $loadRotationDegreesX(float x);
129
130 MCNAPI float $loadRotationDegreesY(float y);
131
132 MCNAPI float $loadRotationRadiansX(float x);
133
134 MCNAPI float $loadRotationRadiansY(float y);
135
136 MCNAPI uchar $loadFacingID(uchar facing);
137
138 MCNAPI ::Vec3 $loadDirection(::Vec3 const& direction);
139
140 MCNAPI ::Direction::Type $loadDirection(::Direction::Type direction);
141
142 MCNAPI ::Rotation $loadRotation(::Rotation rotation);
143
144 MCNAPI ::ActorUniqueID $loadActorUniqueID(::ActorUniqueID id);
145
146 MCNAPI ::ActorUniqueID $loadOwnerID(::ActorUniqueID id);
147
148 MCNAPI ::InternalComponentRegistry::ComponentInfo const* $loadActorInternalComponentInfo(
149 ::std::unordered_map<::HashedString, ::InternalComponentRegistry::ComponentInfo> const& registry,
150 ::std::string const& componentName
151 );
152
153 MCNAPI bool $shouldResetTime();
154
155 MCNAPI ::DataLoadHelperType $getType() const;
156
157 MCNAPI ::ActorUniqueID $_generateNewID();
158
159
160 // NOLINTEND
161
162public:
163 // vftables
164 // NOLINTBEGIN
165 MCNAPI static void** $vftable();
166 // NOLINTEND
167};
Definition BlockPos.h:19
Definition DataLoadHelper.h:20
Definition HashedString.h:5
Definition Level.h:249
MCAPI float $loadRotationDegreesY(float y)
MCAPI::InternalComponentRegistry::ComponentInfo const * $loadActorInternalComponentInfo(::std::unordered_map<::HashedString, ::InternalComponentRegistry::ComponentInfo > const &registry, ::std::string const &componentName)
static MCAPI void ** $vftable()
MCAPI::ActorUniqueID $_generateNewID()
MCAPI::Vec3 $loadPosition(::Vec3 const &position)
MCAPI float $loadRotationRadiansY(float y)
MCAPI float $loadRotationDegreesX(float x)
MCAPI::Rotation $loadRotation(::Rotation rotation)
MCAPI::DataLoadHelperType $getType() const
MCAPI::Vec3 $loadDirection(::Vec3 const &direction)
MCAPI::Direction::Type $loadDirection(::Direction::Type direction)
MCAPI void * $ctor(::BlockPos const &structurePlacementLocation, ::BlockPos const &structureWorldOrigin, ::Vec3 const &rotationPivot, ::ActorUniqueID ownerID, ::Rotation rotation, ::Mirror mirror, ::Level &level)
MCAPI bool $shouldResetTime()
MCAPI uchar $loadFacingID(uchar facing)
MCAPI StructureDataLoadHelper(::BlockPos const &structurePlacementLocation, ::BlockPos const &structureWorldOrigin, ::Vec3 const &rotationPivot, ::ActorUniqueID ownerID, ::Rotation rotation, ::Mirror mirror, ::Level &level)
MCAPI::ActorUniqueID $loadOwnerID(::ActorUniqueID id)
MCAPI::ActorUniqueID $loadActorUniqueID(::ActorUniqueID id)
MCAPI::BlockPos $loadBlockPosition(::BlockPos const &blockPos)
MCAPI float $loadRotationRadiansX(float x)
MCAPI::BlockPos $loadBlockPositionOffset(::BlockPos const &blockPosOffset)
Definition Vec3.h:10
Definition ActorUniqueID.h:5