// Outputters are never open tiles. public Outputter(Vector2 position, Directions direction, LaserColours colour) : base(position, false) { OutputDirection = direction; OutputColour = colour; TileSprite = new Sprite(Assets.Level.Images.Outputter); TileSprite.CenterOn(Center); TileSprite.Rotation = Math.Atan2(OutputDirection.Y, OutputDirection.X); TileSprite.Tint = OutputColour.Color * 3f; }
// Receivers are never open tiles. public Receiver(Vector2 position, Directions direction, LaserColours colour) : base(position, false) { InputDirection = direction; InputColour = colour; TileSprite = new Sprite(Assets.Level.Images.Receiver); TileSprite.CenterOn(Center); TileSprite.Rotation = Math.Atan2(InputDirection.Y, -InputDirection.X); TileSprite.Tint = InputColour.Color * 3f; }