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 virtual ~ScriptPrintLogger() /*override*/ = default;
19
20 virtual void onInfo(::Scripting::ContextId, ::std::string_view message) const /*override*/;
21
22 virtual void onWarn(::Scripting::ContextId, ::std::string_view message) const /*override*/;
23
24 virtual void onError(::Scripting::ContextId, ::std::string_view message) const /*override*/;
25
26 virtual void onException(::Scripting::ContextId, ::Scripting::BaseError const& error, ::entt::meta_any const&) const
27 /*override*/;
28
29 virtual bool
30 shouldPrintException(::Scripting::ContextId, ::Scripting::BaseError const&, ::entt::meta_any const& errorAny) const
31 /*override*/;
32
33 virtual void onPromiseRejection(
35 ::Scripting::BaseError const& error,
36 ::entt::meta_any const&,
37 bool isHandled
38 ) const /*override*/;
39 // NOLINTEND
40
41public:
42 // virtual function thunks
43 // NOLINTBEGIN
44 MCAPI void $onInfo(::Scripting::ContextId, ::std::string_view message) const;
45
46 MCAPI void $onWarn(::Scripting::ContextId, ::std::string_view message) const;
47
48 MCAPI void $onError(::Scripting::ContextId, ::std::string_view message) const;
49
50 MCAPI void $onException(::Scripting::ContextId, ::Scripting::BaseError const& error, ::entt::meta_any const&) const;
51
52 MCAPI bool $shouldPrintException(
55 ::entt::meta_any const& errorAny
56 ) const;
57
58 MCAPI void $onPromiseRejection(
60 ::Scripting::BaseError const& error,
61 ::entt::meta_any const&,
62 bool isHandled
63 ) const;
64
65
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
Definition ScriptPrintLogger.h:14
static MCAPI void ** $vftable()
Definition IPrinter.h:13
Definition BaseError.h:12
Definition ContextId.h:7