LeviLamina
Loading...
Searching...
No Matches
ServerLoggingService.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/LogChannel.h"
7#include "mc/editor/logging/LogLevel.h"
8#include "mc/editor/logging/LoggingService.h"
9
10// auto generated forward declare list
11// clang-format off
12class HashedString;
13class Player;
14namespace Editor { class IEditorPlayer; }
15namespace Editor { class LogMessage; }
16namespace Editor { struct LogContent; }
17// clang-format on
18
19namespace Editor::Services {
20
21class ServerLoggingService : public ::Editor::Services::LoggingService {
22public:
23 // member variables
24 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 ServerLoggingService& operator=(ServerLoggingService const&);
32 ServerLoggingService(ServerLoggingService const&);
33 ServerLoggingService();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ::std::string_view getServiceName() const /*override*/;
39
40 virtual void
41 log(::Editor::LogContent content,
42 ::Player* player,
43 ::Editor::LogLevel level,
44 ::std::vector<::HashedString>&& areaTags,
45 ::Editor::LogChannel logChannelMask) /*override*/;
46
47 virtual void flush() /*override*/;
48
49 virtual ::std::vector<::Editor::LogMessage> const& getMessages() const /*override*/;
50
51 virtual ~ServerLoggingService() /*override*/ = default;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
58 // NOLINTEND
59
60public:
61 // virtual function thunks
62 // NOLINTBEGIN
63 MCNAPI ::std::string_view $getServiceName() const;
64
65 MCNAPI void $log(
67 ::Player* player,
68 ::Editor::LogLevel level,
69 ::std::vector<::HashedString>&& areaTags,
70 ::Editor::LogChannel logChannelMask
71 );
72
73 MCNAPI void $flush();
74
75 MCNAPI ::std::vector<::Editor::LogMessage> const& $getMessages() const;
76
77
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftableForLoggingServiceProvider();
84
85 MCNAPI static void** $vftableForIEditorService();
86 // NOLINTEND
87};
88
89} // namespace Editor::Services
Definition IEditorPlayer.h:16
Definition LogMessage.h:12
Definition LoggingService.h:18
MCAPI ::std::vector<::Editor::LogMessage > const & $getMessages() const
MCAPI void $log(::Editor::LogContent content, ::Player *player, ::Editor::LogLevel level, ::std::vector<::HashedString > &&areaTags, ::Editor::LogChannel logChannelMask)
static MCAPI void ** $vftableForIEditorService()
MCAPI void _dispatchLogMessagePayload(::Editor::LogMessage message, ::Editor::IEditorPlayer *editorPlayer)
MCAPI::std::string_view $getServiceName() const
static MCAPI void ** $vftableForLoggingServiceProvider()
Definition HashedString.h:5
Definition Player.h:125
Definition LogContent.h:7
Definition Alias.h:14