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
LuaScript.__implementation
Table returned from script file, holding method implementations
  • __implementation LuaObject
LuaScript.__path
Script path, usually relative to res://
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:

Returns:

    bool
generated by LDoc 1.4.6 Last updated 2023-01-04 08:52:34