| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(CTGConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 9, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 10, 0); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "RecordID", _g_get_RecordID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Title", _g_get_Title); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "TotalBuyCount", _g_get_TotalBuyCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "DailyBuyCount", _g_get_DailyBuyCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "GainGold", _g_get_GainGold); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "GainGoldPaper", _g_get_GainGoldPaper); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_TotalBuyCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | CTGConfig gen_to_be_invoked = (CTGConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.TotalBuyCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_DailyBuyCount(RealStatePtr L) |
| | | { |
| | | try { |