mirror of
https://github.com/ProgramSnail/rts_game_backend.git
synced 2026-01-11 14:07:16 +00:00
27 lines
478 B
C++
27 lines
478 B
C++
#pragma once
|
|
|
|
namespace map {
|
|
enum class CellType {
|
|
none,
|
|
unit,
|
|
weapon,
|
|
forest,
|
|
moutain
|
|
};
|
|
|
|
enum class CellPlayer {
|
|
none,
|
|
player0,
|
|
player1,
|
|
player2,
|
|
player3
|
|
};
|
|
|
|
struct Cell {
|
|
CellType type;
|
|
CellPlayer player;
|
|
Cell(CellType type = CellType::none,
|
|
CellPlayer player = CellPlayer::none)
|
|
: type(type), player(player) {}
|
|
};
|
|
}
|