public Monster(int id) { Entities entity = new Entities(); GetsEffect = new Effect(); #region Mapping BasicMonster basic = (from p in entity.BasicMonsters where p.Id == id select p).Single(); Health = basic.Health; Armor = basic.Armor; Speed = (float)basic.Speed; Skill = basic.Skill; Model = basic.Model; Texture = basic.Texture; Money = basic.Money; Lvl = basic.Lvl; Name = basic.Name; Id = basic.Id; #endregion }
public List<Wave> GetLevelWaves(int id) { Entities entity = new Entities(); return (from p in entity.Waves where p.LevelId == id select p).ToList(); }