예제 #1
0
        static int _g_get_Desc(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.Equip.DefaultAttribute __cl_gen_to_be_invoked = (xc.Equip.DefaultAttribute)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, __cl_gen_to_be_invoked.Desc);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
예제 #2
0
        static int _s_set_Values(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.Equip.DefaultAttribute __cl_gen_to_be_invoked = (xc.Equip.DefaultAttribute)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.Values = (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);
        }
예제 #3
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Collections.Generic.List <uint> >(L, 3))
                {
                    uint equip_attr_id = LuaAPI.xlua_touint(L, 2);
                    System.Collections.Generic.List <uint> args = (System.Collections.Generic.List <uint>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <uint>));

                    xc.Equip.DefaultAttribute __cl_gen_ret = new xc.Equip.DefaultAttribute(equip_attr_id, args);
                    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.Equip.DefaultAttribute constructor!"));
        }