static int _g_get_AnimatorCtrl(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Asset.ModelAsset __cl_gen_to_be_invoked = (JW.Framework.Asset.ModelAsset)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.AnimatorCtrl); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_AnimatorCtrl(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Asset.ModelAsset __cl_gen_to_be_invoked = (JW.Framework.Asset.ModelAsset)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.AnimatorCtrl = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator)); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { JW.Framework.Asset.ModelAsset __cl_gen_ret = new JW.Framework.Asset.ModelAsset(); 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 JW.Framework.Asset.ModelAsset constructor!")); }
static int _m_LoadModelAsset(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { string filename = LuaAPI.lua_tostring(L, 2); int lifeType = LuaAPI.xlua_tointeger(L, 3); JW.Framework.Asset.ModelAsset __cl_gen_ret = __cl_gen_to_be_invoked.LoadModelAsset(filename, lifeType); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string filename = LuaAPI.lua_tostring(L, 2); JW.Framework.Asset.ModelAsset __cl_gen_ret = __cl_gen_to_be_invoked.LoadModelAsset(filename); 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 JW.Framework.Asset.AssetService.LoadModelAsset!")); }