private void Initialize() { _positions = new MultiplePositions(); _graphic = new BeadGraphic(); _window = new Window(Color.Black); _freeSpots = new List<GridPoint>(); _requiredComponents = new List<Component>(); _requiredComponents.Add(_positions); _requiredComponents.Add(_graphic); _requiredComponents.Add(_window); }
public override void Initialize() { var bgGraphic = new BeadGraphic(Color.Black); var bgPositions = new MultiplePositions(); for (var i = 0; i < _width; i++) { for (var j = 0; j < _height; j++) { bgPositions.AddPosition(_start.X + i, _start.Y + j); } } var bg = new Window(); var bgComps = new List<Component> { bgPositions, bgGraphic, bg }; new Entity("Menu Background", bgComps); }