Bogie/Assets/Model/Wall.cs
2024-12-24 07:18:26 +01:00

40 lines
629 B
C#

public enum WallOrientation
{
Horizontal,
Vertical
}
public enum WallType
{
Empty,
Full
}
public class Wall
{
public Stage Stage { get; }
public int X { get; }
public int Y { get; }
public WallOrientation Orientation { get; }
WallType _type;
public WallType Type
{
get => _type;
set
{
_type = value;
Stage.OnWallChanged?.Invoke(this);
}
}
public Wall(Stage stage, int x, int y, WallOrientation orientation)
{
Stage = stage;
X = x;
Y = y;
Orientation = orientation;
}
}