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
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::BaseError const& error, ::entt::meta_any const&) const
32 /*override*/;
33
34 // vIndex: 5
35 virtual bool
36 shouldPrintException(::Scripting::ContextId, ::Scripting::BaseError const&, ::entt::meta_any const& errorAny) const
37 /*override*/;
38
39 // vIndex: 6
40 virtual void onPromiseRejection(
42 ::Scripting::BaseError const& error,
43 ::entt::meta_any const&,
44 bool isHandled
45 ) const /*override*/;
46 // NOLINTEND
47
48public:
49 // virtual function thunks
50 // NOLINTBEGIN
51 MCAPI void $onInfo(::Scripting::ContextId, ::std::string_view message) const;
52
53 MCAPI void $onWarn(::Scripting::ContextId, ::std::string_view message) const;
54
55 MCAPI void $onError(::Scripting::ContextId, ::std::string_view message) const;
56
57 MCAPI void $onException(::Scripting::ContextId, ::Scripting::BaseError const& error, ::entt::meta_any const&) const;
58
59 MCAPI bool $shouldPrintException(
62 ::entt::meta_any const& errorAny
63 ) const;
64
65 MCAPI void $onPromiseRejection(
67 ::Scripting::BaseError const& error,
68 ::entt::meta_any const&,
69 bool isHandled
70 ) const;
71 // NOLINTEND
72
73public:
74 // vftables
75 // NOLINTBEGIN
76 MCNAPI static void** $vftable();
77 // NOLINTEND
78};
Definition ScriptPrintLogger.h:14
static MCAPI void ** $vftable()
Definition IPrinter.h:13
Definition BaseError.h:12
Definition ContextId.h:7