LeviLamina
Loading...
Searching...
No Matches
IPrinter.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Scripting { struct ContextId; }
8namespace Scripting { struct Error; }
9// clang-format on
10
11namespace Scripting {
12
13class IPrinter {
14public:
15 // virtual functions
16 // NOLINTBEGIN
17 // vIndex: 0
18 virtual ~IPrinter() = default;
19
20 // vIndex: 1
21 virtual void onInfo(::Scripting::ContextId, ::std::string_view) const;
22
23 // vIndex: 2
24 virtual void onWarn(::Scripting::ContextId, ::std::string_view) const;
25
26 // vIndex: 3
27 virtual void onError(::Scripting::ContextId, ::std::string_view) const;
28
29 // vIndex: 4
30 virtual void onException(::Scripting::ContextId, ::Scripting::Error const&, ::entt::meta_any const&) const;
31
32 // vIndex: 5
33 virtual bool shouldPrintException(::Scripting::ContextId, ::Scripting::Error const&, ::entt::meta_any const&) const;
34
35 // vIndex: 6
36 virtual void
37 onPromiseRejection(::Scripting::ContextId, ::Scripting::Error const&, ::entt::meta_any const&, bool) const;
38 // NOLINTEND
39
40public:
41 // virtual function thunks
42 // NOLINTBEGIN
43 MCNAPI void $onInfo(::Scripting::ContextId, ::std::string_view) const;
44
45 MCNAPI void $onWarn(::Scripting::ContextId, ::std::string_view) const;
46
47 MCNAPI void $onError(::Scripting::ContextId, ::std::string_view) const;
48
49 MCNAPI bool $shouldPrintException(::Scripting::ContextId, ::Scripting::Error const&, ::entt::meta_any const&) const;
50 // NOLINTEND
51};
52
53} // namespace Scripting
Definition IPrinter.h:13
MCAPI bool $shouldPrintException(::Scripting::ContextId, ::Scripting::Error const &, ::entt::meta_any const &) const
MCAPI void $onWarn(::Scripting::ContextId, ::std::string_view) const
MCAPI void $onError(::Scripting::ContextId, ::std::string_view) const
MCAPI void $onInfo(::Scripting::ContextId, ::std::string_view) const
Definition ContextId.h:7
Definition Error.h:7