Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
GameSession.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/deps/ecs/gamerefs_entity/EntityContext.h"
9#include "mc/deps/game_refs/OwnerPtr.h"
10#include "mc/network/ClientOrServerNetworkSystemRef.h"
11
12// auto generated forward declare list
13// clang-format off
15class Level;
20// clang-format on
21
22class GameSession {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 16, ::ClientOrServerNetworkSystemRef> mNetwork;
27 ::ll::TypedStorage<8, 32, ::OwnerPtr<::EntityContext>> mLevelEntity;
28 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::Level>> mLevel;
29 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ServerNetworkHandler>> mServerNetworkHandler;
30 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::NetEventCallback>> mLegacyClientNetworkHandler;
31 ::ll::TypedStorage<8, 8, ::LoopbackPacketSender&> mLoopbackPacketSender;
32 ::ll::TypedStorage<1, 1, ::SubClientId> mClientSubId;
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
37 GameSession& operator=(GameSession const&);
38 GameSession(GameSession const&);
39 GameSession();
40
41public:
42 // member functions
43 // NOLINTBEGIN
44#ifdef LL_PLAT_C
45 MCNAPI GameSession(
46 ::ClientNetworkSystem& network,
47 ::std::unique_ptr<::NetEventCallback> legacyClientNetworkHandler,
48 ::LoopbackPacketSender& loopbackPacketSender,
49 ::SubClientId subid
50 );
51#endif
52
53#ifdef LL_PLAT_S
54 MCNAPI GameSession(
55 ::ServerNetworkSystem& network,
56 ::std::unique_ptr<::ServerNetworkHandler> serverNetworkHandler,
57 ::LoopbackPacketSender& loopbackPacketSender,
58 ::std::pair<::std::unique_ptr<::Level>, ::OwnerPtr<::EntityContext>> levelEntity,
59 ::SubClientId subid
60 );
61#endif
62
63#ifdef LL_PLAT_C
64 MCNAPI ::Bedrock::NonOwnerPointer<::NetEventCallback> getNetEventCallback();
65#endif
66
67 MCNAPI void setLevel(::std::pair<::std::unique_ptr<::Level>, ::OwnerPtr<::EntityContext>> levelEntity);
68
69 MCNAPI ~GameSession();
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75#ifdef LL_PLAT_C
76 MCNAPI void* $ctor(
77 ::ClientNetworkSystem& network,
78 ::std::unique_ptr<::NetEventCallback> legacyClientNetworkHandler,
79 ::LoopbackPacketSender& loopbackPacketSender,
80 ::SubClientId subid
81 );
82#endif
83
84#ifdef LL_PLAT_S
85 MCNAPI void* $ctor(
86 ::ServerNetworkSystem& network,
87 ::std::unique_ptr<::ServerNetworkHandler> serverNetworkHandler,
88 ::LoopbackPacketSender& loopbackPacketSender,
89 ::std::pair<::std::unique_ptr<::Level>, ::OwnerPtr<::EntityContext>> levelEntity,
90 ::SubClientId subid
91 );
92#endif
93 // NOLINTEND
94
95public:
96 // destructor thunk
97 // NOLINTBEGIN
98 MCNAPI void $dtor();
99 // NOLINTEND
100};
Definition ClientNetworkSystem.h:46
MCAPI ~GameSession()
MCAPI void setLevel(::std::pair<::std::unique_ptr<::Level >, ::OwnerPtr<::EntityContext > > levelEntity)
MCAPI void $dtor()
Definition Level.h:255
Definition LoopbackPacketSender.h:21
Definition NetEventCallback.h:273
Definition OwnerPtr.h:7
Definition ServerNetworkHandler.h:191
Definition ServerNetworkSystem.h:34