mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 06:57:28 +00:00
d3eb5a56d9
Tested that ghosting still works and players are still firing off the OnPlayerLeave and relevant handlers.
26 lines
457 B
C++
26 lines
457 B
C++
#ifndef __PLAYERMANAGER__H__
|
|
#define __PLAYERMANAGER__H__
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
#include <string>
|
|
|
|
class Player;
|
|
struct SystemAddress;
|
|
|
|
namespace PlayerManager {
|
|
void AddPlayer(Player* player);
|
|
|
|
bool RemovePlayer(Player* player);
|
|
|
|
Player* GetPlayer(const SystemAddress& sysAddr);
|
|
|
|
Player* GetPlayer(const std::string& name);
|
|
|
|
Player* GetPlayer(LWOOBJID playerID);
|
|
|
|
const std::vector<Player*>& GetAllPlayers();
|
|
};
|
|
|
|
#endif //!__PLAYERMANAGER__H__
|