LeviLamina
Loading...
Searching...
No Matches
LoggingServiceProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/runtime/Result_deprecated.h"
7#include "mc/editor/LogChannel.h"
8#include "mc/editor/logging/LogLevel.h"
9
10// auto generated forward declare list
11// clang-format off
12class HashedString;
13class Player;
14namespace Bedrock::PubSub { class Subscription; }
15namespace Editor { class LogMessage; }
16// clang-format on
17
18namespace Editor::Services {
19
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 // vIndex: 0
25 virtual ~LoggingServiceProvider() = default;
26
27 // vIndex: 1
28 virtual void
29 log(::std::string&&,
30 ::Player*,
31 ::Editor::LogLevel,
32 ::std::vector<::HashedString>&&,
33 ::Editor::LogChannel,
34 ::std::string) = 0;
35
36 // vIndex: 2
37 virtual void flush() = 0;
38
39 // vIndex: 3
40 virtual ::std::vector<::Editor::LogMessage> const& getMessages() const = 0;
41
42 // vIndex: 4
43 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
44 listenForLogMessage(::std::function<void(::Editor::LogMessage const&)>) = 0;
45 // NOLINTEND
46
47public:
48 // virtual function thunks
49 // NOLINTBEGIN
50
51 // NOLINTEND
52};
53
54} // namespace Editor::Services
Definition LogMessage.h:12
Definition LoggingServiceProvider.h:20
Definition HashedString.h:5
Definition Player.h:123