Module LuaScript
Internal struct that wrap scripts with metadata.
typedef struct { godot_string_name __path; godot_string_name __base; lps_lua_object __properties; lps_lua_object __implementation; } lps_lua_script;
Class LuaScript
LuaScript.__base | Base class name |
LuaScript.__implementation | Table returned from script file, holding method implementations |
LuaScript.__path | Script path, usually relative to res:// |
LuaScript.__properties | Table of known properties |
LuaScript:__index (index) | Forwards indexing to script implementation |
LuaScript:has_property (name) | Returns whether this script or its base class has a property named name . |
Class LuaScript
- LuaScript.__base
-
Base class name
- __base StringName
- LuaScript.__implementation
-
Table returned from script file, holding method implementations
- __implementation LuaObject
- LuaScript.__path
-
Script path, usually relative to
res://
- __path StringName
- LuaScript.__properties
-
Table of known properties
- __properties LuaObject
- LuaScript:__index (index)
-
Forwards indexing to script implementation
Parameters:
- index
Returns:
-
Value
- LuaScript:has_property (name)
-
Returns whether this script or its base class has a property named
name
.Parameters:
- name string Property name
Returns:
-
bool