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 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
58 $onException(::Scripting::ContextId, ::Scripting::BaseError const& error, ::entt::meta_any const&) const;
59
63 ::entt::meta_any const& errorAny
64 ) const;
65
68 ::Scripting::BaseError const& error,
69 ::entt::meta_any const&,
70 bool isHandled
71 ) const;
72 // NOLINTEND
73
74public:
75 // vftables
76 // NOLINTBEGIN
77 MCNAPI static void** $vftable();
78 // NOLINTEND
79};
Definition ScriptPrintLogger.h:14
MCAPI bool $shouldPrintException(::Scripting::ContextId, ::Scripting::BaseError const &, ::entt::meta_any const &errorAny) const
MCAPI void $onError(::Scripting::ContextId, ::std::string_view message) const
MCAPI void $onInfo(::Scripting::ContextId, ::std::string_view message) const
MCAPI void $onException(::Scripting::ContextId, ::Scripting::BaseError const &error, ::entt::meta_any const &) const
MCAPI void $onWarn(::Scripting::ContextId, ::std::string_view message) const
MCAPI void $onPromiseRejection(::Scripting::ContextId, ::Scripting::BaseError const &error, ::entt::meta_any const &, bool isHandled) const
static MCAPI void ** $vftable()
Definition IPrinter.h:13
Definition BaseError.h:12
Definition ContextId.h:7