DDraceNetwork Docs
CSaveTeam Class Reference

#include <save.h>

Collaboration diagram for CSaveTeam:
[legend]

Classes

struct  SSimpleSwitchers
 

Public Member Functions

 CSaveTeam ()
 
 ~CSaveTeam ()
 
char * GetString ()
 
int GetMembersCount () const
 
int FromString (const char *pString)
 
bool MatchPlayers (const char(*paNames)[MAX_NAME_LENGTH], const int *pClientId, int NumPlayer, char *pMessage, int MessageLen) const
 
ESaveResult Save (CGameContext *pGameServer, int Team, bool Dry=false, bool Force=false)
 
bool Load (CGameContext *pGameServer, int Team, bool KeepCurrentWeakStrong, bool IgnorePlayers=false)
 

Static Public Member Functions

static bool HandleSaveError (ESaveResult Result, int ClientId, CGameContext *pGameContext)
 

Public Attributes

CSaveTeem_pSavedTees = nullptr
 

Private Member Functions

CCharacterMatchCharacter (CGameContext *pGameServer, int ClientId, int SaveId, bool KeepCurrentCharacter) const
 

Private Attributes

char m_aString [65536]
 
SSimpleSwitchersm_pSwitchers = nullptr
 
int m_TeamState = 0
 
int m_MembersCount = 0
 
int m_HighestSwitchNumber = 0
 
int m_TeamLocked = 0
 
int m_Practice = 0
 

Constructor & Destructor Documentation

◆ CSaveTeam()

CSaveTeam::CSaveTeam ( )

◆ ~CSaveTeam()

CSaveTeam::~CSaveTeam ( )

Member Function Documentation

◆ FromString()

int CSaveTeam::FromString ( const char *  pString)

◆ GetMembersCount()

int CSaveTeam::GetMembersCount ( ) const
inline

◆ GetString()

char * CSaveTeam::GetString ( )

◆ HandleSaveError()

bool CSaveTeam::HandleSaveError ( ESaveResult  Result,
int  ClientId,
CGameContext pGameContext 
)
static

◆ Load()

bool CSaveTeam::Load ( CGameContext pGameServer,
int  Team,
bool  KeepCurrentWeakStrong,
bool  IgnorePlayers = false 
)

◆ MatchCharacter()

CCharacter * CSaveTeam::MatchCharacter ( CGameContext pGameServer,
int  ClientId,
int  SaveId,
bool  KeepCurrentCharacter 
) const
private

◆ MatchPlayers()

bool CSaveTeam::MatchPlayers ( const char(*)  paNames[MAX_NAME_LENGTH],
const int *  pClientId,
int  NumPlayer,
char *  pMessage,
int  MessageLen 
) const

◆ Save()

ESaveResult CSaveTeam::Save ( CGameContext pGameServer,
int  Team,
bool  Dry = false,
bool  Force = false 
)

Member Data Documentation

◆ m_aString

char CSaveTeam::m_aString[65536]
private

◆ m_HighestSwitchNumber

int CSaveTeam::m_HighestSwitchNumber = 0
private

◆ m_MembersCount

int CSaveTeam::m_MembersCount = 0
private

◆ m_Practice

int CSaveTeam::m_Practice = 0
private

◆ m_pSavedTees

CSaveTee* CSaveTeam::m_pSavedTees = nullptr

◆ m_pSwitchers

SSimpleSwitchers* CSaveTeam::m_pSwitchers = nullptr
private

◆ m_TeamLocked

int CSaveTeam::m_TeamLocked = 0
private

◆ m_TeamState

int CSaveTeam::m_TeamState = 0
private

The documentation for this class was generated from the following files: