LeviLamina
Loading...
Searching...
No Matches
GameEventDynamicRegistration.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/ChunkPos.h"
7#include "mc/world/level/dimension/DimensionType.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockSource;
13// clang-format on
14
15class GameEventDynamicRegistration {
16public:
17 // GameEventDynamicRegistration inner types declare
18 // clang-format off
20 // clang-format on
21
22 // GameEventDynamicRegistration inner types define
24 public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 8, ::ChunkPos> mChunkPos;
28 ::ll::TypedStorage<4, 4, ::DimensionType> mDimensionId;
29 // NOLINTEND
30 };
31
32public:
33 // member variables
34 // NOLINTBEGIN
35 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::GameEventListener>> mListener;
36 ::ll::TypedStorage<8, 80, ::std::optional<::gsl::final_action<::std::function<void()>>>> mRegistration;
37 ::ll::TypedStorage<8, 24, ::std::optional<::GameEventDynamicRegistration::RegistrationLocation>>
38 mRegistrationLocation;
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 GameEventDynamicRegistration();
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI explicit GameEventDynamicRegistration(::std::shared_ptr<::GameEventListener> listener);
49
50 MCAPI void _onActorChangedChunk(::BlockSource const& region, ::ChunkPos toChunkPos, ::DimensionType toDimensionId);
51
52 MCAPI void onActorLoadedIntoChunk(::BlockSource const& region, ::ChunkPos chunkPos, ::DimensionType dimensionId);
53
54 MCAPI void
55 onActorMovedBetweenChunks(::BlockSource const& region, ::ChunkPos toChunkPos, ::DimensionType toDimensionId);
56
57 MCAPI void onActorRemoved();
58 // NOLINTEND
59
60public:
61 // constructor thunks
62 // NOLINTBEGIN
63 MCAPI void* $ctor(::std::shared_ptr<::GameEventListener> listener);
64 // NOLINTEND
65};
Definition BlockSource.h:73
Definition ChunkPos.h:11
Definition GameEventListener.h:13
Definition DimensionType.h:5
Definition GameEventDynamicRegistration.h:23