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

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

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

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

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.BagItemInfo __cl_gen_ret = new xc.BagItemInfo();
                    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.BagItemInfo constructor!"));
        }