Struct LuaTableValue
- Namespace
- Cobilas.GodotEngine.GDLua
- Assembly
- com.cobilas.godot.lua.dll
Represents a basic Lua table element with a name and value.
public readonly struct LuaTableValue : ILuaTable
- Implements
- Inherited Members
Remarks
This structure implements ILuaTable to provide a simple key-value pair representation for Lua table elements.
Constructors
LuaTableValue(string, object)
Represents a basic Lua table element with a name and value.
public LuaTableValue(string name, object value)
Parameters
namestringThe name identifier of the table element.
valueobjectThe value stored in the table element.
Remarks
This structure implements ILuaTable to provide a simple key-value pair representation for Lua table elements.
Properties
Name
Gets the name of the Lua table element.
public string Name { get; }
Property Value
- string
The name identifier of the table element.
Value
Gets the value stored in the Lua table element.
public object Value { get; }
Property Value
- object
The value contained in the table element.
Methods
ToString()
Returns a string representation of the table element in "name = value" format.
public override string ToString()
Returns
- string
A formatted string showing the name-value pair.