LeviLamina
Loading...
Searching...
No Matches
ServerWaypoint.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Color.h"
7#include "mc/legacy/ActorUniqueID.h"
8#include "mc/world/Waypoint.h"
9#include "mc/world/level/WorldPosition.h"
10
11// auto generated forward declare list
12// clang-format off
13class Player;
14// clang-format on
15
16class ServerWaypoint : public ::Waypoint {
17public:
18 // ServerWaypoint inner types declare
19 // clang-format off
20 struct Payload;
21 struct Texture;
22 struct TextureSelector;
23 // clang-format on
24
25 // ServerWaypoint inner types define
26 enum class UpdateFlags : uint {
27 // bitfield representation
28 Position = 1u << 0,
29 Visibility = 1u << 1,
30 TextureId = 1u << 2,
31 Color = 1u << 3,
32 ClientPositionAuthority = 1u << 4,
33 All = Position | Visibility | TextureId | Color | ClientPositionAuthority,
34 };
35
36 struct Payload {
37 public:
38 // member variables
39 // NOLINTBEGIN
40 ::ll::TypedStorage<4, 4, uint> mUpdateFlag;
41 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mIsVisible;
42 ::ll::TypedStorage<4, 20, ::std::optional<::WorldPosition>> mWorldPosition;
43 ::ll::TypedStorage<4, 8, ::std::optional<uint>> mTextureId;
44 ::ll::TypedStorage<4, 20, ::std::optional<::mce::Color>> mColor;
45 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mClientPositionAuthority;
46 ::ll::TypedStorage<8, 16, ::std::optional<::ActorUniqueID>> mActorID;
47 // NOLINTEND
48
49 public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI bool operator==(::ServerWaypoint::Payload const&) const;
53 // NOLINTEND
54 };
55
56 struct Texture {
57 public:
58 // member variables
59 // NOLINTBEGIN
60 ::ll::TypedStorage<4, 4, int> mLowerBound;
61 ::ll::TypedStorage<4, 8, ::std::optional<int>> mUpperBound;
62 ::ll::TypedStorage<4, 4, uint> mTextureId;
63 // NOLINTEND
64 };
65
67 public:
68 // member variables
69 // NOLINTBEGIN
70 ::ll::TypedStorage<8, 24, ::std::vector<::ServerWaypoint::Texture>> mTextures;
71 // NOLINTEND
72
73 public:
74 // member functions
75 // NOLINTBEGIN
76 MCAPI ~TextureSelector();
77 // NOLINTEND
78
79 public:
80 // destructor thunk
81 // NOLINTBEGIN
82 MCFOLD void $dtor();
83 // NOLINTEND
84 };
85
86public:
87 // member variables
88 // NOLINTBEGIN
89 ::ll::TypedStorage<1, 1, bool> mIsEnabled;
90 ::ll::TypedStorage<8, 24, ::ServerWaypoint::TextureSelector> mTextureSelector;
91 ::ll::TypedStorage<4, 4, uint> mUpdateFlags;
92 // NOLINTEND
93
94public:
95 // prevent constructor by default
96 ServerWaypoint();
97
98public:
99 // virtual functions
100 // NOLINTBEGIN
101 virtual void setWorldPosition(::WorldPosition const& worldPosition) /*override*/;
102
103 virtual void setColor(::std::optional<::mce::Color> const& color) /*override*/;
104
105 virtual void setIsVisible(bool isVisible) /*override*/;
106
107 virtual void setClientPositionAuthority(bool clientPositionAuthority) /*override*/;
108
109 virtual void setTextureId(::std::optional<uint> const& textureId) /*override*/;
110
111 virtual bool isValid() const;
112
113 virtual bool calculateIsVisible(::Player const& viewingPlayer) const;
114
115 virtual void update(::Player const& viewingPlayer) /*override*/;
116
117 virtual ~ServerWaypoint() /*override*/ = default;
118 // NOLINTEND
119
120public:
121 // member functions
122 // NOLINTBEGIN
123 MCAPI ServerWaypoint(
124 ::ServerWaypoint::TextureSelector const& textureSelector,
125 ::std::optional<::mce::Color> const& color,
126 ::WorldPosition worldPosition
127 );
128 // NOLINTEND
129
130public:
131 // constructor thunks
132 // NOLINTBEGIN
133 MCAPI void* $ctor(
134 ::ServerWaypoint::TextureSelector const& textureSelector,
135 ::std::optional<::mce::Color> const& color,
136 ::WorldPosition worldPosition
137 );
138 // NOLINTEND
139
140public:
141 // virtual function thunks
142 // NOLINTBEGIN
143 MCAPI void $setWorldPosition(::WorldPosition const& worldPosition);
144
145 MCAPI void $setColor(::std::optional<::mce::Color> const& color);
146
147 MCAPI void $setIsVisible(bool isVisible);
148
149 MCAPI void $setClientPositionAuthority(bool clientPositionAuthority);
150
151 MCAPI void $setTextureId(::std::optional<uint> const& textureId);
152
153 MCFOLD bool $isValid() const;
154
155 MCAPI bool $calculateIsVisible(::Player const& viewingPlayer) const;
156
157 MCAPI void $update(::Player const& viewingPlayer);
158
159
160 // NOLINTEND
161
162public:
163 // vftables
164 // NOLINTBEGIN
165 MCNAPI static void** $vftable();
166 // NOLINTEND
167};
Definition Player.h:129
static MCAPI void ** $vftable()
Definition Waypoint.h:15
Definition ServerWaypoint.h:36
Definition ServerWaypoint.h:66
Definition ServerWaypoint.h:56
Definition WorldPosition.h:5