public static int GetCustomData(IntPtr L) { int count = LuaDLL.lua_gettop(L); const int nRet = 1; if (count == 1 && LuaScriptMgr.CheckTypes(L, 1, typeof(string))) { string key = LuaScriptMgr.GetString(L, 1); string data = PlatformControl.GetCustomData(key); LuaScriptMgr.Push(L, data); } else { LogParamError("GetCustomData", count); LuaScriptMgr.Push(L, string.Empty); } return(GameUtilWrap.CheckReturnNum(L, count, nRet)); }