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
10
namespace
Scripting {
struct
BaseError
; }
11
namespace
Scripting {
struct
ContextId
; }
12
// clang-format on
13
14
class
ScriptPrintLogger
:
public
::Scripting::IPrinter
{
15
public
:
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(
34
::Scripting::ContextId
,
35
::Scripting::BaseError
const
& error,
36
::entt::meta_any
const
&,
37
bool
isHandled
38
)
const
/*override*/
;
39
// NOLINTEND
40
41
public
:
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(
53
::Scripting::ContextId
,
54
::Scripting::BaseError
const
&,
55
::entt::meta_any
const
& errorAny
56
)
const
;
57
58
MCAPI
void
$onPromiseRejection(
59
::Scripting::ContextId
,
60
::Scripting::BaseError
const
& error,
61
::entt::meta_any
const
&,
62
bool
isHandled
63
)
const
;
64
65
66
// NOLINTEND
67
68
public
:
69
// vftables
70
// NOLINTBEGIN
71
MCNAPI
static
void
**
$vftable
();
72
// NOLINTEND
73
};
ScriptPrintLogger
Definition
ScriptPrintLogger.h:14
ScriptPrintLogger::$vftable
static MCAPI void ** $vftable()
Scripting::IPrinter
Definition
IPrinter.h:13
Scripting::BaseError
Definition
BaseError.h:12
Scripting::ContextId
Definition
ContextId.h:7
src
mc
scripting
ScriptPrintLogger.h
Generated on
for LeviLamina by
1.16.1