testing-spring-2024/src/modules/player.cc
2024-03-14 01:43:19 +02:00

17 lines
314 B
C++

#include "./player.hh"
#include "./role.hh"
#include <string>
Player::Player(uint32_t id, std::string username, Role role, player::Status status):
id(id),
username(username),
role(role),
status(status) {
}
bool Player::operator==(const Player &other) const {
return this->id == other.id;
}