bwmodel
A modeling environment for Minecraft Bedwars
Loading...
Searching...
No Matches
src
game
player.h
1
// Copyright (C) 2024 Ethan Uppal. All rights reserved.
2
3
#pragma once
4
5
#include <string>
6
7
namespace
bwmodel {
13
enum class
PlayerColor {
14
RED,
15
BLUE,
16
GREEN,
17
AQUA,
18
YELLOW,
19
WHITE,
20
BLACK,
21
PINK,
22
_PLAYER_COUNT
23
};
24
25
// likely not idiomatic/very hacky/bad practice
27
constexpr
int
operator*(PlayerColor color) {
28
return
static_cast<
int
>
(color);
29
}
30
32
constexpr
int
PLAYER_COUNT = *PlayerColor::_PLAYER_COUNT;
33
34
namespace
PlayerColorHelper {
36
std::string name(PlayerColor color);
37
}
38
}
Generated by
1.10.0