added some base types
This commit is contained in:
@@ -5,4 +5,8 @@
|
|||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="View\" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
14
CoopSweeper/GameTypes/Field.cs
Normal file
14
CoopSweeper/GameTypes/Field.cs
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace CoopSweeper.GameTypes
|
||||||
|
{
|
||||||
|
|
||||||
|
class Field : IField
|
||||||
|
{
|
||||||
|
public bool ContainsBomb { get; set; }
|
||||||
|
|
||||||
|
public FieldState State { get; set;}
|
||||||
|
}
|
||||||
|
}
|
||||||
10
CoopSweeper/GameTypes/Game.cs
Normal file
10
CoopSweeper/GameTypes/Game.cs
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace CoopSweeper.GameTypes
|
||||||
|
{
|
||||||
|
class Game
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
18
CoopSweeper/GameTypes/IField.cs
Normal file
18
CoopSweeper/GameTypes/IField.cs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace CoopSweeper.GameTypes
|
||||||
|
{
|
||||||
|
enum FieldState
|
||||||
|
{
|
||||||
|
NONE,
|
||||||
|
REVEALED,
|
||||||
|
QUESTIONMARK,
|
||||||
|
FLAG
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface IField
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
10
CoopSweeper/GameTypes/IGame.cs
Normal file
10
CoopSweeper/GameTypes/IGame.cs
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace CoopSweeper.GameTypes
|
||||||
|
{
|
||||||
|
interface IGame
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user