static int get_roleType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Logic.Character.Model.CharacterBaseInfo obj = (Logic.Character.Model.CharacterBaseInfo)o; Logic.Enums.RoleType ret = obj.roleType; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index roleType on a nil value" : e.Message)); } }
static int set_roleType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Logic.Character.Model.CharacterBaseInfo obj = (Logic.Character.Model.CharacterBaseInfo)o; Logic.Enums.RoleType arg0 = (Logic.Enums.RoleType)ToLua.CheckObject(L, 2, typeof(Logic.Enums.RoleType)); obj.roleType = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index roleType on a nil value" : e.Message)); } }