LeviLamina
Loading...
Searching...
No Matches
ScriptPrintLogger.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/runtime/IPrinter.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Scripting { struct ContextId; }
11namespace Scripting { struct Error; }
12// clang-format on
13
15public:
16 // virtual functions
17 // NOLINTBEGIN
18 // vIndex: 0
19 virtual ~ScriptPrintLogger() /*override*/ = default;
20
21 // vIndex: 1
22 virtual void onInfo(::Scripting::ContextId, ::std::string_view message) const /*override*/;
23
24 // vIndex: 2
25 virtual void onWarn(::Scripting::ContextId, ::std::string_view message) const /*override*/;
26
27 // vIndex: 3
28 virtual void onError(::Scripting::ContextId, ::std::string_view message) const /*override*/;
29
30 // vIndex: 4
31 virtual void onException(::Scripting::ContextId, ::Scripting::Error const& error, ::entt::meta_any const&) const
32 /*override*/;
33
34 // vIndex: 5
35 virtual bool
36 shouldPrintException(::Scripting::ContextId, ::Scripting::Error const&, ::entt::meta_any const& errorAny) const
37 /*override*/;
38
39 // vIndex: 6
40 virtual void onPromiseRejection(
42 ::Scripting::Error const& error,
43 ::entt::meta_any const&,
44 bool isHandled
45 ) const /*override*/;
46 // NOLINTEND
47
48public:
49 // virtual function thunks
50 // NOLINTBEGIN
51 MCNAPI void $onInfo(::Scripting::ContextId, ::std::string_view message) const;
52
53 MCNAPI void $onWarn(::Scripting::ContextId, ::std::string_view message) const;
54
55 MCNAPI void $onError(::Scripting::ContextId, ::std::string_view message) const;
56
57 MCNAPI void $onException(::Scripting::ContextId, ::Scripting::Error const& error, ::entt::meta_any const&) const;
58
59 MCNAPI bool
60 $shouldPrintException(::Scripting::ContextId, ::Scripting::Error const&, ::entt::meta_any const& errorAny) const;
61
64 ::Scripting::Error const& error,
65 ::entt::meta_any const&,
66 bool isHandled
67 ) const;
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75};
Definition ScriptPrintLogger.h:14
MCAPI void $onError(::Scripting::ContextId, ::std::string_view message) const
MCAPI void $onException(::Scripting::ContextId, ::Scripting::Error const &error, ::entt::meta_any const &) const
MCAPI void $onInfo(::Scripting::ContextId, ::std::string_view message) const
MCAPI void $onWarn(::Scripting::ContextId, ::std::string_view message) const
MCAPI bool $shouldPrintException(::Scripting::ContextId, ::Scripting::Error const &, ::entt::meta_any const &errorAny) const
static MCAPI void ** $vftable()
MCAPI void $onPromiseRejection(::Scripting::ContextId, ::Scripting::Error const &error, ::entt::meta_any const &, bool isHandled) const
Definition IPrinter.h:13
Definition ContextId.h:7
Definition Error.h:7