static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <xc.AvatarProperty>(L, 2))
                {
                    xc.AvatarProperty other = (xc.AvatarProperty)translator.GetObject(L, 2, typeof(xc.AvatarProperty));

                    xc.AvatarProperty __cl_gen_ret = new xc.AvatarProperty(other);
                    translator.Push(L, __cl_gen_ret);
                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.AvatarProperty __cl_gen_ret = new xc.AvatarProperty();
                    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.AvatarProperty constructor!"));
        }
        static int _s_set_MagicalPetResPath(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.AvatarProperty __cl_gen_to_be_invoked = (xc.AvatarProperty)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.MagicalPetResPath = LuaAPI.lua_tostring(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static int _s_set_BackAttachmentID(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.AvatarProperty __cl_gen_to_be_invoked = (xc.AvatarProperty)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.BackAttachmentID = LuaAPI.xlua_touint(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static int _g_get_Vocation(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.AvatarProperty __cl_gen_to_be_invoked = (xc.AvatarProperty)translator.FastGetCSObj(L, 1);
                translator.PushActorEVocationType(L, __cl_gen_to_be_invoked.Vocation);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
        static int _s_set_SuitEffectIds(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.AvatarProperty __cl_gen_to_be_invoked = (xc.AvatarProperty)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.SuitEffectIds = (System.Collections.Generic.List <uint>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <uint>));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static int _g_get_LightWeaponId(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.AvatarProperty __cl_gen_to_be_invoked = (xc.AvatarProperty)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.LightWeaponId);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
        static int _s_set_Vocation(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.AvatarProperty   __cl_gen_to_be_invoked = (xc.AvatarProperty)translator.FastGetCSObj(L, 1);
                Actor.EVocationType __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.Vocation = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Example #8
0
        static int _m_Play(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.TimelineManager __cl_gen_to_be_invoked = (xc.TimelineManager)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Action>(L, 3) && translator.Assignable <xc.AvatarProperty>(L, 4))
                {
                    uint              id             = LuaAPI.xlua_touint(L, 2);
                    System.Action     finishCallback = translator.GetDelegate <System.Action>(L, 3);
                    xc.AvatarProperty avatarProperty = (xc.AvatarProperty)translator.GetObject(L, 4, typeof(xc.AvatarProperty));

                    __cl_gen_to_be_invoked.Play(id, finishCallback, avatarProperty);



                    return(0);
                }
                if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Action>(L, 3))
                {
                    uint          id             = LuaAPI.xlua_touint(L, 2);
                    System.Action finishCallback = translator.GetDelegate <System.Action>(L, 3);

                    __cl_gen_to_be_invoked.Play(id, finishCallback);



                    return(0);
                }
                if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    uint id = LuaAPI.xlua_touint(L, 2);

                    __cl_gen_to_be_invoked.Play(id);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.TimelineManager.Play!"));
        }
        static int _m_GetFashionModleIds(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.AvatarProperty __cl_gen_to_be_invoked = (xc.AvatarProperty)translator.FastGetCSObj(L, 1);


            try {
                {
                    System.Collections.Generic.List <uint> __cl_gen_ret = __cl_gen_to_be_invoked.GetFashionModleIds(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Example #10
0
        static int _m_Clone(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.AvatarProperty __cl_gen_to_be_invoked = (xc.AvatarProperty)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.AvatarProperty __cl_gen_ret = __cl_gen_to_be_invoked.Clone(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Example #11
0
        static int _m_RemoveSuitEffectId(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.AvatarProperty __cl_gen_to_be_invoked = (xc.AvatarProperty)translator.FastGetCSObj(L, 1);


            try {
                {
                    uint id = LuaAPI.xlua_touint(L, 2);

                    __cl_gen_to_be_invoked.RemoveSuitEffectId(id);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Example #12
0
        static int _m_SetFashionPart(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.AvatarProperty __cl_gen_to_be_invoked = (xc.AvatarProperty)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.DBAvatarPart.BODY_PART part; translator.Get(L, 2, out part);
                    uint id = LuaAPI.xlua_touint(L, 3);

                    __cl_gen_to_be_invoked.SetFashionPart(part, id);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }