using System;
using System.Collections.Generic;
using MoonSharp.Interpreter;
namespace RynthCore.Plugin.RynthLua;
///
/// WorldObject properties (UtilityBelt's WorldObject): WrapObject makes the table, World gives
/// it one shared metatable per script whose __index reads every property live through
/// the SDK, plus __tostring and __eq (same Id). Methods (IntValue, DistanceTo,
/// Items, ...) are bound on first use and stored on the object, so wrapping hundreds of
/// objects in GetAll costs one table each. Action methods (Use, Give, ...) are Actions'.
///
public sealed partial class RynthLuaPlugin
{
/// The WorldObject metatable of each running script's Lua state.
private readonly Dictionary