static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); ProjectileFormation o = (ProjectileFormation)arg0; ToLua.Push(L, o); return(1); }
static int set_ProjectilesFormation(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Projectile obj = (Projectile)o; ProjectileFormation arg0 = (ProjectileFormation)ToLua.CheckObject(L, 2, typeof(ProjectileFormation)); obj.ProjectilesFormation = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index ProjectilesFormation on a nil value" : e.Message)); } }
static int get_ProjectilesFormation(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Projectile obj = (Projectile)o; ProjectileFormation ret = obj.ProjectilesFormation; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index ProjectilesFormation on a nil value" : e.Message)); } }