LeviLamina
Loading...
Searching...
No Matches
PrefabDBServiceProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/WeakRef.h"
7
8// auto generated forward declare list
9// clang-format off
10class WeakEntityRef;
11namespace Editor::Prefabs { class PrefabDBTemplate; }
12namespace mce { class UUID; }
13// clang-format on
14
15namespace Editor::Prefabs {
16
18public:
19 // virtual functions
20 // NOLINTBEGIN
21 virtual ~PrefabDBServiceProvider() = default;
22
23 virtual ::WeakRef<::Editor::Prefabs::PrefabDBTemplate const> getTemplate(::mce::UUID const& templateId) const = 0;
24
25 virtual ::WeakRef<::Editor::Prefabs::PrefabDBTemplate> getTemplate(::mce::UUID const& templateId) = 0;
26
27 virtual void bake(
28 ::WeakEntityRef weakPlayerRef,
29 ::std::function<void(bool)> completionCallback,
30 ::std::function<void(::std::string_view)> logger,
31 bool deleteInstancesAfterBake
32 ) = 0;
33
34 virtual void unbake(
35 ::WeakEntityRef weakPlayerRef,
36 ::std::function<void(bool)> completionCallback,
37 ::std::function<void(::std::string_view)> logger
38 ) = 0;
39 // NOLINTEND
40};
41
42} // namespace Editor::Prefabs
Definition PrefabDBServiceProvider.h:17
Definition PrefabDBTemplate.h:24
Definition WeakEntityRef.h:14
Definition UUID.h:8