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 BaseError; }
11namespace Scripting { struct ContextId; }
12// clang-format on
13
14class ScriptPrintLogger : public ::Scripting::IPrinter {
15public:
16 // virtual functions
17 // NOLINTBEGIN
18 virtual ~ScriptPrintLogger() /*override*/ = default;
19
20 virtual void onInfo(::Scripting::ContextId message, ::std::string_view) const /*override*/;
21
22 virtual void onWarn(::Scripting::ContextId message, ::std::string_view) const /*override*/;
23
24 virtual void onError(::Scripting::ContextId message, ::std::string_view) const /*override*/;
25
26 virtual void onException(::Scripting::ContextId error, ::Scripting::BaseError const&, ::entt::meta_any const&) const
27 /*override*/;
28
29 virtual bool
30 shouldPrintException(::Scripting::ContextId errorAny, ::Scripting::BaseError const&, ::entt::meta_any const&) const
31 /*override*/;
32
33 virtual void onPromiseRejection(
35 ::Scripting::BaseError const& isHandled,
36 ::entt::meta_any const&,
37 bool
38 ) const /*override*/;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI ScriptPrintLogger();
45 // NOLINTEND
46
47public:
48 // constructor thunks
49 // NOLINTBEGIN
50 MCAPI void* $ctor();
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56 MCAPI void $onInfo(::Scripting::ContextId message, ::std::string_view) const;
57
58 MCAPI void $onWarn(::Scripting::ContextId message, ::std::string_view) const;
59
60 MCAPI void $onError(::Scripting::ContextId message, ::std::string_view) const;
61
62 MCAPI void $onException(::Scripting::ContextId error, ::Scripting::BaseError const&, ::entt::meta_any const&) const;
63
64 MCAPI bool $shouldPrintException(
67 ::entt::meta_any const&
68 ) const;
69
70 MCAPI void $onPromiseRejection(
72 ::Scripting::BaseError const& isHandled,
73 ::entt::meta_any const&,
74 bool
75 ) const;
76
77
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85};
static MCAPI void ** $vftable()
Definition IPrinter.h:13
Definition BaseError.h:12
Definition ContextId.h:7