public MainWindow() { InitializeComponent(); MevoUniverseConfig conf = new MevoUniverseConfig(); conf.CircleChance = .5f; conf.TriangleChance = .35f; conf.SquareChance = .15f; conf.SpawnRadiusInit = 50; conf.InitHeight = 300; conf.InitWidth = 500; MevoUniverse uni = new MevoUniverse(); uni.Initialize(conf); foreach (MevoElement elem in uni.Elements) { _Viewer.AddElement(MevoUiElement.CreateElement(elem)); } }
public void AddElement(MevoUiElement elem) { _Cnvs.Children.Add(elem.Element); }