Skip to content
LeviMC
English
AutoLightDark
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
59 ::cereal::ReflectionCtx& cerealContext,
61 );
62
63 MCNAPI bool loadData(::LevelStorage const& levelStorage);
64
65 MCNAPI void saveData(::LevelStorage& levelStorage) const;
66
68 ::NetworkIdentifier const& source,
69 ::SubClientId subClientId,
70 ::PacketSender& packetSender
71 ) const;
72
73 MCNAPI void syncClocksWithClients(::PacketSender& packetSender) const;
74 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
79 MCNAPI void*
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86 MCNAPI void $tick(::PacketSender& packetSender, ::LevelData const& levelData);
87
88
89 // NOLINTEND
90};
Definition NonOwnerPointer.h:9
Definition LevelData.h:57
Definition LevelEventCoordinator.h:22
Definition LevelStorage.h:26
Definition NetworkIdentifier.h:10
Definition PacketSender.h:17
MCAPI WorldClockRegistryServer(::cereal::ReflectionCtx &cerealContext, ::Bedrock::NonOwnerPointer<::LevelEventCoordinator > eventCoordinator)
MCAPI void $tick(::PacketSender &packetSender, ::LevelData const &levelData)
MCAPI bool loadData(::LevelStorage const &levelStorage)
MCAPI void saveData(::LevelStorage &levelStorage) const
MCAPI void syncClocksWithClients(::PacketSender &packetSender) const
MCAPI void * $ctor(::cereal::ReflectionCtx &cerealContext, ::Bedrock::NonOwnerPointer<::LevelEventCoordinator > eventCoordinator)
MCAPI void sendInitializationToClient(::NetworkIdentifier const &source, ::SubClientId subClientId, ::PacketSender &packetSender) const
Definition WorldClockRegistry.h:22
Definition WorldClock.h:23
Definition WorldClockRegistryServer.h:29
Definition ReflectionCtx.h:11