mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-12 19:28:21 +00:00
30 lines
570 B
C++
30 lines
570 B
C++
#ifndef __PLAYERMANAGER__H__
|
|
#define __PLAYERMANAGER__H__
|
|
|
|
#include "dCommonVars.h"
|
|
#include "Observable.h"
|
|
|
|
#include <string>
|
|
|
|
class Entity;
|
|
struct SystemAddress;
|
|
|
|
namespace PlayerManager {
|
|
void AddPlayer(Entity* player);
|
|
|
|
bool RemovePlayer(Entity* player);
|
|
|
|
Entity* GetPlayer(const SystemAddress& sysAddr);
|
|
|
|
Entity* GetPlayer(const std::string& name);
|
|
|
|
Entity* GetPlayer(LWOOBJID playerID);
|
|
|
|
const std::vector<Entity*>& GetAllPlayers();
|
|
|
|
static Observable<Entity*> OnPlayerAdded;
|
|
static Observable<Entity*> OnPlayerRemoved;
|
|
};
|
|
|
|
#endif //!__PLAYERMANAGER__H__
|