mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-09 01:38:20 +00:00
f0b6ad89d9
* SystemAddress and destructor * move respawn logic to character comp Tested that respawn pos and rot can be set as per previously by crossing a respawn point and smashing to see if I would respawn at the new place. * Move loot cheat checking * Remove GetParentUser overload Tested completing missions control behaviors collecting life crate completing a bunch of missions using macros loading into worlds brick-by-brick placing models digging the x spot in gnarled forest can still ban and mute players cheat detection is still doing its thing flags are still set (checked with flag 45) claim codes still work (created new char, checked the lego club mail was there) * Move player constructor logic Its now at the bottom of Entity constructor. Time to remove Player * Remove Player class Removes the Player class. Tested that I can still login and see another player in Venture Explorer and logging out a few times still works as well as smashing enemies * store ptr * Update SlashCommandHandler.cpp
26 lines
457 B
C++
26 lines
457 B
C++
#ifndef __PLAYERMANAGER__H__
|
|
#define __PLAYERMANAGER__H__
|
|
|
|
#include "dCommonVars.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();
|
|
};
|
|
|
|
#endif //!__PLAYERMANAGER__H__
|