LeviLamina
Loading...
Searching...
No Matches
EditorReplicationServiceProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/ReplicationPolicy.h"
7#include "mc/deps/game_refs/WeakRef.h"
8
9// auto generated forward declare list
10// clang-format off
11class HashedString;
12namespace Editor { class IReplicatedObjectBase; }
13namespace Editor::Services { struct ReplicationTypeInfo; }
14namespace cereal { struct ReflectionCtx; }
15// clang-format on
16
17namespace Editor::Services {
18
20public:
21 // virtual functions
22 // NOLINTBEGIN
23 virtual ~EditorReplicationServiceProvider() = default;
24
25 virtual bool isServer() const = 0;
26
27 virtual void _registerType(uint typeHash, ::Editor::Services::ReplicationTypeInfo typeInfo) = 0;
28
29 virtual ::WeakRef<::Editor::IReplicatedObjectBase> _create(::HashedString const& id, uint typeHash) = 0;
30
31 virtual ::WeakRef<::Editor::IReplicatedObjectBase>
32 _getObjectById(::HashedString const& id, uint typeHash) const = 0;
33
34 virtual void _remove(::HashedString const& id, uint typeHash) = 0;
35
36 virtual ::cereal::ReflectionCtx& _getReflectionContext() const = 0;
37
38 virtual ::Editor::ReplicationPolicy _getReplicationPolicyForTypeHash(uint typeHash) const = 0;
39
40 virtual bool _canSyncOrModifyType(uint typeHash) const = 0;
41
42 virtual bool _canApplyPayload(uint typeHash) const = 0;
43 // NOLINTEND
44
45public:
46 // virtual function thunks
47 // NOLINTBEGIN
48
49 // NOLINTEND
50};
51
52} // namespace Editor::Services
Definition IReplicatedObjectBase.h:10
Definition EditorReplicationServiceProvider.h:19
Definition HashedString.h:5
Definition ReplicationTypeInfo.h:17
Definition ReflectionCtx.h:11