static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); Logic.Enums.SkillType o = (Logic.Enums.SkillType)arg0; ToLua.Push(L, o); return(1); }
static int set_skillType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Logic.Skill.Model.SkillData obj = (Logic.Skill.Model.SkillData)o; Logic.Enums.SkillType arg0 = (Logic.Enums.SkillType)ToLua.CheckObject(L, 2, typeof(Logic.Enums.SkillType)); obj.skillType = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index skillType on a nil value" : e.Message)); } }
static int get_skillType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Logic.Skill.Model.SkillData obj = (Logic.Skill.Model.SkillData)o; Logic.Enums.SkillType ret = obj.skillType; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index skillType on a nil value" : e.Message)); } }