EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CharUnboundMgrService Class Reference

Handles everything related to creating, deleting and selecting a character. More...

#include "CharUnboundMgrService.h"

Inheritance diagram for CharUnboundMgrService:
Collaboration diagram for CharUnboundMgrService:

Public Member Functions

 CharUnboundMgrService (PyServiceMgr *mgr)
 
 ~CharUnboundMgrService ()
 
void GetCharacterData (uint32 characterID, std::map< std::string, int64 > &characterDataMap)
 
- Public Member Functions inherited from PyService
 PyService (PyServiceMgr *mgr, const char *serviceName)
 
virtual ~PyService ()
 
virtual PyResult Call (const std::string &method, PyCallArgs &args)
 
const char * GetName () const
 
- Public Member Functions inherited from PyCallable
 PyCallable ()
 
virtual ~PyCallable ()
 

Private Member Functions

 PyCallable_DECL_CALL (SelectCharacterID)
 
 PyCallable_DECL_CALL (GetCharacterToSelect)
 Get details on a character id. More...
 
 PyCallable_DECL_CALL (GetCharactersToSelect)
 Get a list of characters on this account. More...
 
 PyCallable_DECL_CALL (GetCharacterInfo)
 Get a lightweight list of characters on this account. More...
 
 PyCallable_DECL_CALL (IsUserReceivingCharacter)
 Client check if this account is currently receiving a character from an character transfer. More...
 
 PyCallable_DECL_CALL (DeleteCharacter)
 
 PyCallable_DECL_CALL (PrepareCharacterForDelete)
 
 PyCallable_DECL_CALL (CancelCharacterDeletePrepare)
 
 PyCallable_DECL_CALL (ValidateNameEx)
 Client check to see if a name may be used for a new character. More...
 
 PyCallable_DECL_CALL (GetCharCreationInfo)
 
 PyCallable_DECL_CALL (GetCharNewExtraCreationInfo)
 
 PyCallable_DECL_CALL (CreateCharacterWithDoll)
 

Private Attributes

Dispatcher *const m_dispatch
 
CharacterDB m_db
 

Additional Inherited Members

- Protected Types inherited from PyService
enum  CacheCheckTime {
  check_Always = 0, check_Never, check_in_year, check_in_6_months,
  check_in_3_months, check_in_1_month, check_in_1_week, check_in_1_day,
  check_in_12_hours, check_in_6_hours, check_in_3_hours, check_in_2_hours,
  check_in_1_hour, check_in_30_minutes, check_in_15_minutes, check_in_5_minutes,
  check_in_1_minute, check_in_30_seconds, check_in_15_seconds, check_in_5_seconds,
  check_in_1_second, _checkCount
}
 
- Protected Member Functions inherited from PyService
PyObject_BuildCachedReturn (PySubStream **result, const char *sessionInfo, CacheCheckTime check)
 
virtual PyBoundObjectCreateBoundObject (Client *pClient, const PyRep *bind_args)
 
virtual PyResult Handle_MachoResolveObject (PyCallArgs &call)
 
virtual PyResult Handle_MachoBindObject (PyCallArgs &call)
 
- Protected Member Functions inherited from PyCallable
void _SetCallDispatcher (CallDispatcher *d)
 
- Protected Attributes inherited from PyService
PyServiceMgr *const m_manager
 
- Static Protected Attributes inherited from PyService
static const char *const s_checkTimeStrings [_checkCount]
 

Detailed Description

Handles everything related to creating, deleting and selecting a character.

This has officially replaced the old CharacterService; as of Incursion, there is no longer any reference to a character remote service.

Author
caytchen
Date
April 2011

Definition at line 42 of file CharUnboundMgrService.h.

Constructor & Destructor Documentation

CharUnboundMgrService::CharUnboundMgrService ( PyServiceMgr mgr)
CharUnboundMgrService::~CharUnboundMgrService ( )

Definition at line 60 of file CharUnboundMgrService.cpp.

References m_dispatch.

60  {
61  delete m_dispatch;
62 }
Dispatcher *const m_dispatch

Member Function Documentation

void CharUnboundMgrService::GetCharacterData ( uint32  characterID,
std::map< std::string, int64 > &  characterDataMap 
)

Definition at line 64 of file CharUnboundMgrService.cpp.

References CharacterDB::GetCharacterData(), and m_db.

65 {
66  m_db.GetCharacterData(characterID, characterDataMap);
67 }
static void GetCharacterData(uint32 charID, std::map< std::string, int64 > &characterDataMap)

Here is the call graph for this function:

CharUnboundMgrService::PyCallable_DECL_CALL ( SelectCharacterID  )
private
CharUnboundMgrService::PyCallable_DECL_CALL ( GetCharacterToSelect  )
private

Get details on a character id.

Get details on a character ud

Parameters
[in]callcharacter id
Returns
PyResult character details
CharUnboundMgrService::PyCallable_DECL_CALL ( GetCharactersToSelect  )
private

Get a list of characters on this account.

This is the real deal and cached in the central 'cc' service in the game.

Parameters
[in]callempty
Returns
PyResult list of characters
CharUnboundMgrService::PyCallable_DECL_CALL ( GetCharacterInfo  )
private

Get a lightweight list of characters on this account.

Only used when creating a petition and not ingame. This is basically a lightweight GetCharactersToSelect in that it only sends characterID and characterName.

Parameters
[in]callempty
Returns
PyResult list of characters with characterID and characterName
CharUnboundMgrService::PyCallable_DECL_CALL ( IsUserReceivingCharacter  )
private

Client check if this account is currently receiving a character from an character transfer.

Since we have no infrastructure for character transfer, this is not implemented and will always return false

Parameters
[in]callempty
Returns
PyResult true if there is a character transfer queued for this account, false if not
CharUnboundMgrService::PyCallable_DECL_CALL ( DeleteCharacter  )
private
CharUnboundMgrService::PyCallable_DECL_CALL ( PrepareCharacterForDelete  )
private
CharUnboundMgrService::PyCallable_DECL_CALL ( CancelCharacterDeletePrepare  )
private
CharUnboundMgrService::PyCallable_DECL_CALL ( ValidateNameEx  )
private

Client check to see if a name may be used for a new character.

Validates a name by checking if it confirms to naming standards and if it doesn't exist. No idea as to how this differs from ValidateName.

Parameters
[in]callname to check
Returns
PyResult true if the name may be used
CharUnboundMgrService::PyCallable_DECL_CALL ( GetCharCreationInfo  )
private
CharUnboundMgrService::PyCallable_DECL_CALL ( GetCharNewExtraCreationInfo  )
private
CharUnboundMgrService::PyCallable_DECL_CALL ( CreateCharacterWithDoll  )
private

Member Data Documentation

CharacterDB CharUnboundMgrService::m_db
private

Definition at line 53 of file CharUnboundMgrService.h.

Referenced by GetCharacterData().

Dispatcher* const CharUnboundMgrService::m_dispatch
private

Definition at line 50 of file CharUnboundMgrService.h.

Referenced by ~CharUnboundMgrService().


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