static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <XLua.HotfixFlag>(L, 2)) { XLua.HotfixFlag _e; translator.Get(L, 2, out _e); XLua.HotfixAttribute gen_ret = new XLua.HotfixAttribute(_e); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { XLua.HotfixAttribute gen_ret = new XLua.HotfixAttribute(); translator.Push(L, 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 XLua.HotfixAttribute constructor!")); }
static int _g_get_Flag(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XLua.HotfixAttribute gen_to_be_invoked = (XLua.HotfixAttribute)translator.FastGetCSObj(L, 1); translator.PushXLuaHotfixFlag(L, gen_to_be_invoked.Flag); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }