mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-04 09:44:10 +00:00
Teams: Default team loot to ffa (#1224)
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
#include "TeamManager.h"
|
||||
#include "EntityManager.h"
|
||||
#include "Game.h"
|
||||
#include "dConfig.h"
|
||||
|
||||
TeamManager* TeamManager::m_Address = nullptr; //For singleton method
|
||||
|
||||
Team::Team() {
|
||||
lootOption = Game::config->GetValue("default_team_loot") == "0" ? 0 : 1;
|
||||
}
|
||||
|
||||
TeamManager::TeamManager() {
|
||||
}
|
||||
|
||||
|
@@ -2,16 +2,15 @@
|
||||
|
||||
#include "Entity.h"
|
||||
|
||||
struct Team
|
||||
{
|
||||
struct Team {
|
||||
Team();
|
||||
LWOOBJID teamID = LWOOBJID_EMPTY;
|
||||
char lootOption = 0;
|
||||
std::vector<LWOOBJID> members{};
|
||||
char lootRound = 0;
|
||||
};
|
||||
|
||||
class TeamManager
|
||||
{
|
||||
class TeamManager {
|
||||
public:
|
||||
static TeamManager* Instance() {
|
||||
if (!m_Address) {
|
||||
|
Reference in New Issue
Block a user