static int _s_set_Localize(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.LocalizeManager __cl_gen_to_be_invoked = (xc.LocalizeManager)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.Localize = (xc.ILocalize)translator.GetObject(L, 2, typeof(xc.ILocalize)); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.LocalizeManager __cl_gen_ret = new xc.LocalizeManager(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.LocalizeManager constructor!")); }
static int _m_Init(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.LocalizeManager __cl_gen_to_be_invoked = (xc.LocalizeManager)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.Init( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetRegionLocalizationDataPath(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.LocalizeManager __cl_gen_to_be_invoked = (xc.LocalizeManager)translator.FastGetCSObj(L, 1); try { { System.Collections.Generic.List <string> __cl_gen_ret = __cl_gen_to_be_invoked.GetRegionLocalizationDataPath( ); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ParseLocalizationData(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.LocalizeManager __cl_gen_to_be_invoked = (xc.LocalizeManager)translator.FastGetCSObj(L, 1); try { { string content = LuaAPI.lua_tostring(L, 2); __cl_gen_to_be_invoked.ParseLocalizationData(content); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_LocalizePath(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.LocalizeManager __cl_gen_to_be_invoked = (xc.LocalizeManager)translator.FastGetCSObj(L, 1); try { { string path = LuaAPI.lua_tostring(L, 2); __cl_gen_to_be_invoked.LocalizePath(ref path); LuaAPI.lua_pushstring(L, path); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetLocalizationDataPath(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.LocalizeManager __cl_gen_to_be_invoked = (xc.LocalizeManager)translator.FastGetCSObj(L, 1); try { { xc.LanguageType lang; translator.Get(L, 2, out lang); string __cl_gen_ret = __cl_gen_to_be_invoked.GetLocalizationDataPath(lang); LuaAPI.lua_pushstring(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }