-
Notifications
You must be signed in to change notification settings - Fork 16
/
EmptyControlSet.cs
39 lines (32 loc) · 1.08 KB
/
EmptyControlSet.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
37
38
39
using System.Collections.Generic;
using System.Linq;
using EndlessClient.Content;
using EndlessClient.GameExecution;
using EOLib.Graphics;
using Microsoft.Xna.Framework;
using XNAControls;
namespace EndlessClient.ControlSets
{
/// <summary>
/// An empty control set that represents the initial state of the game with no controls
/// </summary>
public class EmptyControlSet : IControlSet
{
public GameStates GameState => GameStates.None;
public IReadOnlyList<IGameComponent> AllComponents => Enumerable.Empty<IGameComponent>().ToList();
public IReadOnlyList<IXNAControl> XNAControlComponents => AllComponents.OfType<IXNAControl>().ToList();
public void InitializeResources(INativeGraphicsManager gfxManager, IContentProvider contentProvider)
{
}
public void InitializeControls(IControlSet currentControlSet)
{
}
public IGameComponent FindComponentByControlIdentifier(GameControlIdentifier control)
{
return null;
}
public void Dispose()
{
}
}
}