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 HashedString;
13class LevelStorage;
15class PacketSender;
16class TimeMarker;
17class WorldClock;
18namespace cereal { struct ReflectionCtx; }
19// clang-format on
20
21class WorldClockRegistryServer : public ::WorldClockRegistry {
22public:
23 // WorldClockRegistryServer inner types declare
24 // clang-format off
26 // clang-format on
27
28 // WorldClockRegistryServer inner types define
30 public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 24, ::std::vector<::WorldClock>> mClocks;
34 // NOLINTEND
35
36 public:
37 // member functions
38 // NOLINTBEGIN
40 // NOLINTEND
41
42 public:
43 // destructor thunk
44 // NOLINTBEGIN
45 MCAPI void $dtor();
46 // NOLINTEND
47 };
48
49public:
50 // member variables
51 // NOLINTBEGIN
52 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::cereal::ReflectionCtx>> mCerealContext;
53 // NOLINTEND
54
55public:
56 // prevent constructor by default
57 WorldClockRegistryServer();
58
59public:
60 // virtual functions
61 // NOLINTBEGIN
62 virtual ~WorldClockRegistryServer() /*override*/;
63
64 virtual void tick(::PacketSender&) /*override*/;
65 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
70 MCAPI explicit WorldClockRegistryServer(::cereal::ReflectionCtx& cerealContext);
71
72 MCAPI bool loadData(::LevelStorage const& levelStorage);
73
74 MCAPI ::Bedrock::NonOwnerPointer<::WorldClock> const
75 registerClock(::HashedString const& name, ::std::initializer_list<::TimeMarker> timeMarkers);
76
77 MCAPI void saveData(::LevelStorage& levelStorage) const;
78
79 MCFOLD void sendInitializationToClient(
80 ::NetworkIdentifier const& source,
81 ::SubClientId subClientId,
82 ::PacketSender& packetSender
83 ) const;
84
85 MCFOLD void syncClocksWithClients(::PacketSender& packetSender) const;
86
87 MCFOLD ::Bedrock::NonOwnerPointer<::WorldClock> const tryGetClock(uint64 clockId);
88 // NOLINTEND
89
90public:
91 // static functions
92 // NOLINTBEGIN
93 MCAPI static void bindType(::cereal::ReflectionCtx& ctx);
94 // NOLINTEND
95
96public:
97 // static variables
98 // NOLINTBEGIN
99 MCAPI static uint const& MAX_CLOCKS_CAPACITY();
100 // NOLINTEND
101
102public:
103 // constructor thunks
104 // NOLINTBEGIN
105 MCAPI void* $ctor(::cereal::ReflectionCtx& cerealContext);
106 // NOLINTEND
107
108public:
109 // destructor thunk
110 // NOLINTBEGIN
111 MCAPI void $dtor();
112 // NOLINTEND
113
114public:
115 // virtual function thunks
116 // NOLINTBEGIN
117 MCAPI void $tick(::PacketSender&);
118
119
120 // NOLINTEND
121
122public:
123 // vftables
124 // NOLINTBEGIN
125 MCNAPI static void** $vftable();
126 // NOLINTEND
127};
Definition HashedString.h:5
Definition LevelStorage.h:26
Definition NetworkIdentifier.h:10
Definition PacketSender.h:17
Definition TimeMarker.h:8
static MCAPI void ** $vftable()
Definition WorldClockRegistry.h:17
Definition WorldClock.h:21
Definition WorldClockRegistryServer.h:29
Definition ReflectionCtx.h:11
Definition ctx.h:5