-
Notifications
You must be signed in to change notification settings - Fork 0
/
Game.cs
36 lines (29 loc) · 977 Bytes
/
Game.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using BlazorRogue.Combat.Warhammer;
namespace BlazorRogue
{
public class Game
{
const int Width = 38;
const int Height = 30;
public DungeonGenerator DungeonGenerator { get; private set; }
public Map Map { get; private set; }
public static SoundManager SoundManager { get; set; }
public FightingSystem FightingSystem { get; private set; }
public Configuration Configuration { get; private set; }
public EffectsSystem EffectsSystem { get; private set; }
public Game()
{
Configuration = new Configuration();
References.Configuration = Configuration;
// TODO pass as async
Configuration.Parse();
DungeonGenerator = new DungeonGenerator(Width, Height, this);
FightingSystem = new FightingSystem(this);
Map = DungeonGenerator.GenerateMap();
References.Map = Map;
EffectsSystem = new EffectsSystem();
References.EffectsSystem = EffectsSystem;
}
}
}