EvEmu
0.8.4
11 September 2021
|
#include "LSCService.h"
Public Member Functions | |
LSCService (PyServiceMgr *mgr, CommandDispatcher *cd) | |
~LSCService () | |
void | Init (CommandDispatcher *cd) |
PyResult | ExecuteCommand (Client *from, const char *msg) |
void | CharacterLogin (Client *pClient) |
void | SendServerMOTD (Client *pClient) |
void | CreateSystemChannel (int32 channelID) |
void | SystemUnload (uint32 systemID, uint32 constID, uint32 regionID) |
void | SendMail (uint32 sender, uint32 recipient, const std::string &subject, const std::string &content) |
void | SendMail (uint32 sender, const std::vector< int32 > &recipients, const std::string &subject, const std::string &content) |
![]() | |
PyService (PyServiceMgr *mgr, const char *serviceName) | |
virtual | ~PyService () |
virtual PyResult | Call (const std::string &method, PyCallArgs &args) |
const char * | GetName () const |
![]() | |
PyCallable () | |
virtual | ~PyCallable () |
Static Public Attributes | |
static const int32 | BASE_CHANNEL_ID = 2100000000 |
static const uint32 | MAX_CHANNEL_ID = 0xFFFFFFFF |
Protected Attributes | |
Dispatcher *const | m_dispatch |
CommandDispatcher *const | m_commandDispatch |
LSCDB * | m_db |
std::map< int32, LSCChannel * > | m_channels |
![]() | |
PyServiceMgr *const | m_manager |
Private Member Functions | |
void | CreateStaticChannels () |
LSCChannel * | GetChannelByID (int32 channelID) |
LSCChannel * | GetChannelByName (std::string channelName) |
LSCChannel * | CreateChannel (int32 channelID, uint32 ownerID, const char *name, std::string motd, const char *password, const char *compkey, LSC::Type type=LSC::Type::normal, uint32 cspa=0, int32 groupMessageID=0, int32 channelMessageID=0, bool memberless=false, bool maillist=false, bool temporary=false, bool languageRestriction=false) |
Additional Inherited Members | |
![]() | |
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 } |
![]() | |
static const char *const | s_checkTimeStrings [_checkCount] |
Definition at line 41 of file LSCService.h.
LSCService::LSCService | ( | PyServiceMgr * | mgr, |
CommandDispatcher * | cd | ||
) |
LSCService::~LSCService | ( | ) |
Definition at line 100 of file LSCService.cpp.
References m_channels, m_db, m_dispatch, and SafeDelete().
void LSCService::CharacterLogin | ( | Client * | pClient | ) |
Definition at line 907 of file LSCService.cpp.
References CreateSystemChannel(), Client::GetAllianceID(), and Client::GetCorporationID().
Referenced by Client::SelectCharacter().
|
private |
Definition at line 924 of file LSCService.cpp.
References m_channels.
Referenced by CreateStaticChannels(), and CreateSystemChannel().
|
private |
Definition at line 1034 of file LSCService.cpp.
References CreateChannel(), cspa, LSC::custom, and LSC::normal.
void LSCService::CreateSystemChannel | ( | int32 | channelID | ) |
Definition at line 951 of file LSCService.cpp.
References LSC::alliance, LSC::constellation, LSC::corp, CreateChannel(), cspa, LSC::fleet, LSCDB::GetAllianceName(), LSCDB::GetConstellationName(), LSCDB::GetCorporationName(), LSCDB::GetRegionName(), LSCDB::GetSolarSystemName(), IsAlliance, IsConstellationID, IsFleetID, IsKSpaceID, IsNPCCorp, IsPlayerCorp, IsRegionID, IsSquadID, IsWingID, IsWSpaceID, m_channels, m_db, LSC::normal, LSC::region, sFltSvc, LSC::solarsystem, LSC::solarsystem2, LSC::squad, and LSC::wing.
Referenced by SystemManager::BootSystem(), CharacterLogin(), FleetService::CreateFleet(), FleetService::CreateSquad(), and FleetService::CreateWing().
Definition at line 1304 of file LSCService.cpp.
References CommandDispatcher::Execute(), and m_commandDispatch.
|
private |
|
private |
void LSCService::Init | ( | CommandDispatcher * | cd | ) |
Definition at line 109 of file LSCService.cpp.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
Definition at line 64 of file LSCService.h.
Referenced by Client::SelfEveMail().
void LSCService::SendMail | ( | uint32 | sender, |
const std::vector< int32 > & | recipients, | ||
const std::string & | subject, | ||
const std::string & | content | ||
) |
Definition at line 1209 of file LSCService.cpp.
References _log, m_db, sEntityList, LSCDB::StoreMail(), and Win32TimeNow().
void LSCService::SendServerMOTD | ( | Client * | pClient | ) |
Definition at line 1162 of file LSCService.cpp.
References Client::GetSystemID(), and m_channels.
Referenced by Client::SelectCharacter().
Definition at line 913 of file LSCService.cpp.
References m_channels, and SafeDelete().
Referenced by SystemManager::UnloadSystem().
|
static |
to fix... channelID system more
fleet shit... BOSS/FC/WC/SC should be able to moderate text in their respective fleet chat as needed. They should have the power to dictate text color of their type, and silence people who shouldn't be talking..
Definition at line 48 of file LSCService.h.
Referenced by LSCDB::GetNextAvailableChannelID().
|
protected |
Definition at line 77 of file LSCService.h.
Referenced by CreateChannel(), CreateSystemChannel(), GetChannelByID(), GetChannelByName(), SendServerMOTD(), SystemUnload(), and ~LSCService().
|
protected |
Definition at line 73 of file LSCService.h.
Referenced by ExecuteCommand().
|
protected |
Definition at line 75 of file LSCService.h.
Referenced by CreateSystemChannel(), SendMail(), and ~LSCService().
|
protected |
Definition at line 71 of file LSCService.h.
Referenced by ~LSCService().
|
static |
Definition at line 49 of file LSCService.h.
Referenced by LSCDB::GetNextAvailableChannelID().