LeviLamina
Loading...
Searching...
No Matches
ObjectInspector.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/script_engine/IObjectInspector.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Scripting { class ResultAny; }
11namespace Scripting { struct ObjectHandle; }
12// clang-format on
13
14namespace Scripting::QuickJS {
15
17public:
18 // member variables
19 // NOLINTBEGIN
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 ObjectInspector& operator=(ObjectInspector const&);
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 // vIndex: 0
34 virtual ~ObjectInspector() /*override*/ = default;
35
36 // vIndex: 1
37 virtual bool isSameObject(::Scripting::ObjectHandle handleA, ::Scripting::ObjectHandle handleB) const /*override*/;
38
39 // vIndex: 2
40 virtual bool hasBooleanPropertyValue(::Scripting::ObjectHandle handle, char const* name, bool expectedValue) const
41 /*override*/;
42
43 // vIndex: 3
44 virtual ::std::optional<::Scripting::ResultAny>
45 getPropertyValue(::Scripting::ObjectHandle handle, char const* name, ::entt::meta_type const& expectedType) const
46 /*override*/;
47
48 // vIndex: 4
49 virtual uint getDataBufferLength(::Scripting::ObjectHandle handle) const /*override*/;
50
51 // vIndex: 5
52 virtual uint getDataBufferByteLength(::Scripting::ObjectHandle handle) const /*override*/;
53
54 // vIndex: 6
55 virtual uchar* getDataBufferBytes(::Scripting::ObjectHandle handle) const /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI uint _getPropertyAsSize(::Scripting::ObjectHandle handle, char const* propertyName) const;
62 // NOLINTEND
63
64public:
65 // destructor thunk
66 // NOLINTBEGIN
67
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73 MCAPI bool $isSameObject(::Scripting::ObjectHandle handleA, ::Scripting::ObjectHandle handleB) const;
74
75 MCAPI bool $hasBooleanPropertyValue(::Scripting::ObjectHandle handle, char const* name, bool expectedValue) const;
76
77 MCAPI ::std::optional<::Scripting::ResultAny>
78 $getPropertyValue(::Scripting::ObjectHandle handle, char const* name, ::entt::meta_type const& expectedType) const;
79
80 MCAPI uint $getDataBufferLength(::Scripting::ObjectHandle handle) const;
81
82 MCAPI uint $getDataBufferByteLength(::Scripting::ObjectHandle handle) const;
83
84 MCAPI uchar* $getDataBufferBytes(::Scripting::ObjectHandle handle) const;
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCAPI static void** $vftable();
91 // NOLINTEND
92};
93
94} // namespace Scripting::QuickJS
Definition IObjectInspector.h:13
Definition ObjectInspector.h:16
Definition ObjectHandle.h:7
Definition Alias.h:14