static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *__ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = new UnityEngine.AvatarMask(); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
public override void ReadFrom(object obj) { base.ReadFrom(obj); if (obj == null) { return; } UnityEngine.AvatarMask o = (UnityEngine.AvatarMask)obj; transformCount = o.transformCount; }
public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects) { obj = base.WriteTo(obj, objects); if (obj == null) { return(null); } UnityEngine.AvatarMask o = (UnityEngine.AvatarMask)obj; o.transformCount = transformCount; return(o); }
static int _s_set_transformCount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); gen_to_be_invoked.transformCount = LuaAPI.xlua_tointeger(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_transformCount(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.AvatarMask __cl_gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.transformCount); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { var gen_ret = new UnityEngine.AvatarMask(); 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 UnityEngine.AvatarMask constructor!")); }
static int _m_RemoveTransformPath(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <UnityEngine.Transform>(L, 2)) { UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); gen_to_be_invoked.RemoveTransformPath(_transform); return(0); } if (gen_param_count == 3 && translator.Assignable <UnityEngine.Transform>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); bool _recursive = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.RemoveTransformPath(_transform, _recursive); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AvatarMask.RemoveTransformPath!")); }
static int _m_SetHumanoidBodyPartActive(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AvatarMask __cl_gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); try { { UnityEngine.AvatarMaskBodyPart index; translator.Get(L, 2, out index); bool value = LuaAPI.lua_toboolean(L, 3); __cl_gen_to_be_invoked.SetHumanoidBodyPartActive(index, value); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetTransformActive(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AvatarMask __cl_gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); try { { int index = LuaAPI.xlua_tointeger(L, 2); bool __cl_gen_ret = __cl_gen_to_be_invoked.GetTransformActive(index); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SetTransformPath(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AvatarMask __cl_gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); try { { int index = LuaAPI.xlua_tointeger(L, 2); string path = LuaAPI.lua_tostring(L, 3); __cl_gen_to_be_invoked.SetTransformPath(index, path); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetHumanoidBodyPartActive(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); { UnityEngine.AvatarMaskBodyPart _index; translator.Get(L, 2, out _index); var gen_ret = gen_to_be_invoked.GetHumanoidBodyPartActive(_index); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetTransformActive(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); { int _index = LuaAPI.xlua_tointeger(L, 2); bool _value = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.SetTransformActive(_index, _value); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetTransformPath(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); { int _index = LuaAPI.xlua_tointeger(L, 2); var gen_ret = gen_to_be_invoked.GetTransformPath(_index); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }