feat: add signalr hub and github workflow
This commit is contained in:
14
TetrisClone.WebApi/Model/Piece.cs
Normal file
14
TetrisClone.WebApi/Model/Piece.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TetrisClone.WebApi.Model
|
||||
{
|
||||
public class Piece
|
||||
{
|
||||
public int X { get; set; }
|
||||
public int Y { get; set; }
|
||||
public PieceType Type { get; set; }
|
||||
}
|
||||
}
|
||||
18
TetrisClone.WebApi/Model/PieceType.cs
Normal file
18
TetrisClone.WebApi/Model/PieceType.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TetrisClone.WebApi.Model
|
||||
{
|
||||
public enum PieceType
|
||||
{
|
||||
I,
|
||||
J,
|
||||
L,
|
||||
O,
|
||||
S,
|
||||
T,
|
||||
Z
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user