LeviLamina
Loading...
Searching...
No Matches
SubChunkPacketHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/network/packet/SubChunkPacketPayload.h"
7#include "mc/world/level/ChunkPos.h"
8#include "mc/world/level/SubChunkPos.h"
9#include "mc/world/level/chunk/DeserializationChanges.h"
10#include "mc/world/level/chunk/LevelChunkBlockActorStorage.h"
11#include "mc/world/level/dimension/DimensionType.h"
12
13// auto generated forward declare list
14// clang-format off
16namespace ClientBlobCache { class Cache; }
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 8, ::ChunkPos> mChunkPos;
24 ::ll::TypedStorage<4, 12, ::SubChunkPos> mSubChunkPos;
25 ::ll::TypedStorage<4, 4, ::DimensionType> mDimensionType;
26 ::ll::TypedStorage<8, 584, ::SubChunkPacketPayload::SubChunkPacketData const> mPacketData;
27 ::ll::TypedStorage<1, 1, bool> mHasSetRequestTime;
28 ::ll::TypedStorage<1, 1, bool> mHasDoneInsertionTask;
29 ::ll::TypedStorage<8, 184, ::LevelChunkBlockActorStorage> mBlockEntitiesMap;
30 ::ll::TypedStorage<4, 4, float> mCacheRequestAbortTime;
31 ::ll::TypedStorage<1, 1, bool const> mCacheEnabled;
32 ::ll::TypedStorage<1, 1, bool> mHasSetAbortTimer;
33 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mStartCacheRequestTime;
34 ::ll::TypedStorage<8, 8, ::std::chrono::nanoseconds> mCacheCheckAccumulatedTime;
35 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ClientBlobCache::Cache> const> mCache;
36 ::ll::TypedStorage<8, 32, ::std::string> mCacheBuffer;
37 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mStartTime;
38 ::ll::TypedStorage<1, 1, bool> mSubChunkCheckSumMismatch;
39 ::ll::TypedStorage<8, 88, ::DeserializationChanges> mDeserializationChanges;
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
44 SubChunkPacketHandler();
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI SubChunkPacketHandler(
50 ::SubChunkPacketPayload::SubChunkPacketData const& packetData,
51 ::std::shared_ptr<::ClientBlobCache::Cache> cache,
52 ::DimensionType dimension,
53 ::SubChunkPos const& packetCenter
54 );
55
56 MCAPI void _compareHeightMapsForLightingFixup(
57 ::std::array<::ChunkLocalHeight, 256>& oldHeights,
58 ::std::array<::ChunkLocalHeight, 256>& newHeights
59 );
60
61 MCAPI ~SubChunkPacketHandler();
62 // NOLINTEND
63
64public:
65 // constructor thunks
66 // NOLINTBEGIN
67 MCAPI void* $ctor(
68 ::SubChunkPacketPayload::SubChunkPacketData const& packetData,
69 ::std::shared_ptr<::ClientBlobCache::Cache> cache,
70 ::DimensionType dimension,
71 ::SubChunkPos const& packetCenter
72 );
73 // NOLINTEND
74
75public:
76 // destructor thunk
77 // NOLINTBEGIN
78 MCAPI void $dtor();
79 // NOLINTEND
80};
Definition ChunkLocalHeight.h:5
Definition Cache.h:7
Definition SubChunkPacketHandler.h:5