Plasma Engine  2.0
Loading...
Searching...
No Matches
DuktapeFunction.h
1#pragma once
2
3#include <Core/CoreDLL.h>
4#include <Core/Scripting/DuktapeHelper.h>
5
6#ifdef BUILDSYSTEM_ENABLE_DUKTAPE_SUPPORT
7
8class PL_CORE_DLL plDuktapeFunction final : public plDuktapeHelper
9{
10public:
11 plDuktapeFunction(duk_context* pExistingContext);
12 ~plDuktapeFunction();
13
16
18 plUInt32 GetNumVarArgFunctionParameters() const;
19
20 plInt16 GetFunctionMagicValue() const;
21
23
26
27 plInt32 ReturnVoid();
28 plInt32 ReturnNull();
29 plInt32 ReturnUndefined();
30 plInt32 ReturnBool(bool value);
31 plInt32 ReturnInt(plInt32 value);
32 plInt32 ReturnUInt(plUInt32 value);
33 plInt32 ReturnFloat(float value);
34 plInt32 ReturnNumber(double value);
35 plInt32 ReturnString(plStringView value);
36 plInt32 ReturnCustom();
37
39
40private:
41 bool m_bDidReturnValue = false;
42};
43
44#endif
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34