LeviLamina
Loading...
Searching...
No Matches
WorldClockRegistryServer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/SubClientId.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/world/level/clock/WorldClockRegistry.h"
9
10// auto generated forward declare list
11// clang-format off
12class LevelData;
13class LevelStorage;
15class PacketSender;
16class WorldClock;
17namespace cereal { struct ReflectionCtx; }
18// clang-format on
19
20class WorldClockRegistryServer : public ::WorldClockRegistry {
21public:
22 // WorldClockRegistryServer inner types declare
23 // clang-format off
25 // clang-format on
26
27 // WorldClockRegistryServer inner types define
29 public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 24, ::std::vector<::WorldClock>> mClocks;
33 // NOLINTEND
34 };
35
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::cereal::ReflectionCtx>> mCerealContext;
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
44 WorldClockRegistryServer();
45
46public:
47 // virtual functions
48 // NOLINTBEGIN
49 virtual ~WorldClockRegistryServer() /*override*/ = default;
50
51 virtual void tick(::PacketSender& packetSender, ::LevelData const& levelData) /*override*/;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI explicit WorldClockRegistryServer(::cereal::ReflectionCtx& cerealContext);
58
59 MCAPI bool loadData(::LevelStorage const& levelStorage);
60
61 MCAPI void saveData(::LevelStorage& levelStorage) const;
62
63 MCAPI void sendInitializationToClient(
64 ::NetworkIdentifier const& source,
65 ::SubClientId subClientId,
66 ::PacketSender& packetSender
67 ) const;
68
69 MCAPI void syncClocksWithClients(::PacketSender& packetSender) const;
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCAPI void* $ctor(::cereal::ReflectionCtx& cerealContext);
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCAPI void $tick(::PacketSender& packetSender, ::LevelData const& levelData);
82
83
84 // NOLINTEND
85
86public:
87 // vftables
88 // NOLINTBEGIN
89 MCNAPI static void** $vftable();
90 // NOLINTEND
91};
Definition LevelData.h:55
Definition LevelStorage.h:25
Definition NetworkIdentifier.h:10
Definition PacketSender.h:17
static MCAPI void ** $vftable()
Definition WorldClockRegistry.h:19
Definition WorldClock.h:22
Definition WorldClockRegistryServer.h:28
Definition ReflectionCtx.h:11