| | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 42, 0, 0); |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 45, 0, 0); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSuitNameByName", _m_GetSuitNameByName_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSurplusSeconds", _m_GetSurplusSeconds_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTime", _m_GetTime_xlua_st_); |
| | |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "ServerStringTrim", _m_ServerStringTrim_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetIntervalAward", _m_GetIntervalAward_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGrade", _m_GetGrade_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "TrimContentToServer", _m_TrimContentToServer_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "SatisfyNameLength", _m_SatisfyNameLength_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetChsCount", _m_GetChsCount_xlua_st_); |
| | | |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "s_BrightPinkColor", UIHelper.s_BrightPinkColor); |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TrimContentToServer_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string _content = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | string gen_ret = UIHelper.TrimContentToServer( _content ); |
| | | LuaAPI.lua_pushstring(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SatisfyNameLength_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string _name = LuaAPI.lua_tostring(L, 1); |
| | | int _error; |
| | | |
| | | bool gen_ret = UIHelper.SatisfyNameLength( _name, out _error ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | LuaAPI.xlua_pushinteger(L, _error); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetChsCount_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string _name = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | int gen_ret = UIHelper.GetChsCount( _name ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |