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;
14class LevelStorage;
16class PacketSender;
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
37public:
38 // member variables
39 // NOLINTBEGIN
40 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::cereal::ReflectionCtx>> mCerealContext;
41 // NOLINTEND
42
43public:
44 // prevent constructor by default
45 WorldClockRegistryServer();
46
47public:
48 // virtual functions
49 // NOLINTBEGIN
50 virtual ~WorldClockRegistryServer() /*override*/ = default;
51
52 virtual void tick(::PacketSender& packetSender, ::LevelData const& levelData) /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI WorldClockRegistryServer(
59 ::cereal::ReflectionCtx& cerealContext,
60 ::Bedrock::NotNullNonOwnerPtr<::LevelEventCoordinator> const& levelEventCoordinator
61 );
62
63 MCAPI bool loadData(::LevelStorage const& levelStorage);
64
65 MCAPI void saveData(::LevelStorage& levelStorage) const;
66
67 MCAPI void sendInitializationToClient(
68 ::NetworkIdentifier const& source,
69 ::SubClientId subClientId,
70 ::PacketSender& packetSender
71 ) const;
72
73 MCAPI void syncClocksWithClients(::PacketSender& packetSender) const;
74 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
79 MCAPI void* $ctor(
80 ::cereal::ReflectionCtx& cerealContext,
81 ::Bedrock::NotNullNonOwnerPtr<::LevelEventCoordinator> const& levelEventCoordinator
82 );
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88 MCAPI void $tick(::PacketSender& packetSender, ::LevelData const& levelData);
89
90
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCNAPI static void** $vftable();
97 // NOLINTEND
98};
Definition LevelData.h:55
Definition LevelEventCoordinator.h:26
Definition LevelStorage.h:25
Definition NetworkIdentifier.h:10
Definition PacketSender.h:17
static MCAPI void ** $vftable()
Definition WorldClockRegistry.h:23
Definition WorldClock.h:23
Definition WorldClockRegistryServer.h:29
Definition ReflectionCtx.h:11