static int GetValue(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LuaPerfect.ObjectItem obj = (LuaPerfect.ObjectItem)ToLua.CheckObject <LuaPerfect.ObjectItem>(L, 1); string o = obj.GetValue(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public static string StaticGetValue(ObjectItem objectItem) { return(objectItem.GetValue()); }