LeviLamina
Loading...
Searching...
No Matches
ScriptDebugShape.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
8#include "mc/scripting/modules/minecraft/ScriptRGB.h"
9#include "mc/scripting/modules/minecraft/debugdrawer/ScriptDebugShapeType.h"
10
11// auto generated forward declare list
12// clang-format off
13struct ShapeDataPayload;
14namespace ScriptModuleMinecraft { class ScriptPlayer; }
15namespace Scripting { struct ClassBinding; }
16// clang-format on
17
18namespace ScriptModuleDebugUtilities {
19
21public:
22 // ScriptDebugShape inner types define
23 enum class Flags : uint {
24 Remove = 1,
25 New = 2,
26 UpdateLocation = 4,
27 UpdateScale = 8,
28 UpdateRotation = 16,
29 UpdateTimeleft = 32,
30 UpdateColor = 64,
31 UpdateText = 128,
32 UpdateBoxBound = 256,
33 UpdateLineEndLocation = 512,
34 UpdateArrowHeadLength = 1024,
35 UpdateArrowHeadRadius = 2048,
36 UpdateSegmentCount = 4096,
37 SerializeAll = 4294967294,
38 };
39
40 using FlagsStorage = uint;
41
42public:
43 // member variables
44 // NOLINTBEGIN
45 ::ll::TypedStorage<1, 1, ::ScriptModuleDebugUtilities::ScriptDebugShapeType> mShapeType;
46 ::ll::TypedStorage<4, 12, ::Vec3> mLocation;
47 ::ll::TypedStorage<4, 12, ::Vec3> mRotation;
48 ::ll::TypedStorage<4, 4, float> mScale;
49 ::ll::TypedStorage<4, 24, ::ScriptModuleMinecraft::ScriptRGB> mColor;
50 ::ll::TypedStorage<4, 8, ::std::optional<float>> mTimeLeftSec;
51 ::ll::TypedStorage<4, 8, ::std::optional<float>> mTimeLeftTotalSec;
52 ::ll::
53 TypedStorage<8, 24, ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayer>>>
54 mVisibleTo;
55 ::ll::TypedStorage<8, 8, uint64> mNetworkId;
56 ::ll::TypedStorage<4, 4, uint> mFlags;
57 ::ll::TypedStorage<1, 1, bool> mExistsInWorld;
58 // NOLINTEND
59
60public:
61 // prevent constructor by default
64
65public:
66 // virtual functions
67 // NOLINTBEGIN
68 // vIndex: 0
69 virtual ~ScriptDebugShape();
70
71 // vIndex: 1
72 virtual void populatePacketData(::ShapeDataPayload& packet) const;
73
74 // vIndex: 2
75 virtual void applyUpdatedData(::ShapeDataPayload const& packet);
76 // NOLINTEND
77
78public:
79 // member functions
80 // NOLINTBEGIN
81 MCAPI ::ScriptModuleDebugUtilities::ScriptDebugShape&
83
84 MCAPI void remove();
85 // NOLINTEND
86
87public:
88 // static functions
89 // NOLINTBEGIN
90 MCAPI static ::Scripting::ClassBinding bind();
91 // NOLINTEND
92
93public:
94 // destructor thunk
95 // NOLINTBEGIN
96 MCFOLD void $dtor();
97 // NOLINTEND
98
99public:
100 // virtual function thunks
101 // NOLINTBEGIN
102 MCAPI void $populatePacketData(::ShapeDataPayload& packet) const;
103
104 MCAPI void $applyUpdatedData(::ShapeDataPayload const& packet);
105 // NOLINTEND
106
107public:
108 // vftables
109 // NOLINTBEGIN
110 MCAPI static void** $vftable();
111 // NOLINTEND
112};
113
114} // namespace ScriptModuleDebugUtilities
Definition ScriptDebugShape.h:20
Definition ShapeDataPayload.h:22