Remove replay timer argument to CreateExpedition

Breaking change to the current API

has_replay_timer column removed from expedition_details table

This argument is unnecessary and just creates confusion. Expedition
replay timers use a hardcoded name precisely for this purpose and
those lockouts are already being checked on creation requests.
This commit is contained in:
hg
2020-06-17 22:15:46 -04:00
parent 10b544c814
commit a8af2a0216
11 changed files with 34 additions and 62 deletions
+1 -2
View File
@@ -68,7 +68,7 @@ public:
Expedition() = delete;
Expedition(
uint32_t id, const DynamicZone& dz, std::string expedition_name, const ExpeditionMember& leader,
uint32_t min_players, uint32_t max_players, bool replay_timer);
uint32_t min_players, uint32_t max_players);
static Expedition* TryCreate(Client* requester, DynamicZone& dynamiczone, ExpeditionRequest& request);
@@ -178,7 +178,6 @@ private:
uint32_t m_min_players = 0;
uint32_t m_max_players = 0;
bool m_is_locked = false;
bool m_has_replay_timer = false;
bool m_add_replay_on_join = true;
std::string m_expedition_name;
DynamicZone m_dynamiczone { DynamicZoneType::Expedition };