Skip to content

Instantly share code, notes, and snippets.

@MartinZikmund
Last active December 13, 2020 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinZikmund/5e815b8cc52043ced5ddefa7d125cf6d to your computer and use it in GitHub Desktop.
Save MartinZikmund/5e815b8cc52043ced5ddefa7d125cf6d to your computer and use it in GitHub Desktop.
private GameTheme _currentTheme = GameTheme.Classic;
public GameTheme[] Themes { get; } = new GameTheme[]
{
GameTheme.Classic,
GameTheme.Bacteria,
GameTheme.CatMouse,
GameTheme.FireWater
};
public GameTheme CurrentTheme
{
get => _currentTheme;
set
{
_currentTheme = value;
UpdateBitmaps();
RedrawBoard();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment