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


            UnityEngine.BillboardAsset __cl_gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 2 && translator.Assignable <System.Collections.Generic.List <ushort> >(L, 2))
                {
                    System.Collections.Generic.List <ushort> indices = (System.Collections.Generic.List <ushort>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <ushort>));

                    __cl_gen_to_be_invoked.SetIndices(indices);



                    return(0);
                }
                if (__gen_param_count == 2 && translator.Assignable <ushort[]>(L, 2))
                {
                    ushort[] indices = (ushort[])translator.GetObject(L, 2, typeof(ushort[]));

                    __cl_gen_to_be_invoked.SetIndices(indices);



                    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.BillboardAsset.SetIndices!"));
        }
Ejemplo n.º 2
0
        static StackObject *SetIndices_22(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.UInt16[] @indices = (System.UInt16[]) typeof(System.UInt16[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.BillboardAsset instance_of_this_method = (UnityEngine.BillboardAsset) typeof(UnityEngine.BillboardAsset).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetIndices(@indices);

            return(__ret);
        }