Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Web / PUSG.Web / Services / IGameService.cs
blob: 0e87af68c060aadd37ec31178aa120ce9c3f49ac (plain) (blame)
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
using PUSG.Web.Models;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace PUSG.Web.Services
{
    public interface IGameService
    {
        Task CreateGameSession(string blueClientId, string redClientId);

        Task DestroyGameSession(string clientId);

        GameSession this[string clientId] { get; set; }
        
        List<string> Waiting { get; }
        
        ConcurrentDictionary<string, string> PlayerUsernames { get; }

        ConcurrentDictionary<string, string> OtherPlayer { get; }

        ConcurrentDictionary<string, string> PlayerColor { get; }

        void Shoot(string clientId);

        void MoveUp(string clientId);

        void MoveRight(string clientId);

        void MoveDown(string clientId);

        void MoveLeft(string clientId);

        void RotateLeft(string clientId);

        void RotateRight(string clientId);
    }
}