|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Namespaces | |
| namespace | Achievements |
| namespace | AreaTable |
| namespace | Asio |
| namespace | Auth |
| namespace | BattlePetPackets |
| namespace | CombatPackets |
| namespace | Containers |
| namespace | Currency |
| namespace | Database |
| namespace | Diagnostics |
| namespace | GameObjects |
| namespace | Honor |
| namespace | Maps |
| namespace | Net |
| namespace | ObjectAccess |
| namespace | PetTransport |
| namespace | PlayerDump |
| namespace | PlayerPackets |
| namespace | Rest |
| namespace | ServerRestartSchedule |
| namespace | SpellBook |
| namespace | Spells |
| namespace | WorldShutdown |
| namespace | XP |
Typedefs | |
| using | RecursiveMutex = std::recursive_mutex |
| using | SharedMutex = std::shared_mutex |
Enumerations | |
| enum | PacketLogServerDirection { PACKET_LOG_CLIENT_TO_SERVER , PACKET_LOG_SERVER_TO_CLIENT } |
| enum | Priority { Idle , Lowest , Low , Normal , High , Highest , Realtime } |
Functions | |
| void | Assert (char const *file, int line, char const *function, char const *message) |
| template<class RET_TYPE, int CENTER_VAL> | |
| RET_TYPE | Compute (float x, float y, float center_offset, float size) |
| CellCoord | ComputeCellCoord (float x, float y) |
| CellCoord | ComputeCellCoord (float x, float y, float &x_off, float &y_off) |
| GridCoord | ComputeGridCoord (float x, float y) |
| template<class SPECIFIC_TYPE> | |
| size_t | Count (const ContainerMapList< SPECIFIC_TYPE > &elements, SPECIFIC_TYPE *) |
| template<class SPECIFIC_TYPE, class T> | |
| size_t | Count (const ContainerMapList< T > &, SPECIFIC_TYPE *) |
| template<class SPECIFIC_TYPE, class H, class T> | |
| size_t | Count (const ContainerMapList< TypeList< H, T > > &elements, SPECIFIC_TYPE *fake) |
| template<class SPECIFIC_TYPE, class T> | |
| size_t | Count (const ContainerMapList< TypeList< SPECIFIC_TYPE, T > > &elements, SPECIFIC_TYPE *fake) |
| template<class SPECIFIC_TYPE> | |
| size_t | Count (const ContainerMapList< TypeNull > &, SPECIFIC_TYPE *) |
| void | Error (char const *file, int line, char const *function, char const *message) |
| void | Fatal (char const *file, int line, char const *function, char const *message) |
| std::string | FormatGMNoteLocation (GMNoteLocation const &location) |
| std::string | FormatMemorySize (uint64 bytes) |
| std::string | FormatMemoryUsageSummary (ProcessMemoryUsage const &processUsage, SystemMemoryUsage const &systemUsage) |
| std::string | FormatProcessMemoryUsage (ProcessMemoryUsage const &usage) |
| std::string | FormatSystemMemoryUsage (SystemMemoryUsage const &usage) |
| uint32 | GetMSTime () |
| uint32 | GetMSTimeDiff (uint32 oldMSTime, uint32 newMSTime) |
| uint32 | GetMSTimeDiffToNow (uint32 oldMSTime) |
| bool | GetProcessMemoryUsage (ProcessMemoryUsage &usage) |
| bool | GetSystemMemoryUsage (SystemMemoryUsage &usage) |
| template<class SPECIFIC_TYPE> | |
| SPECIFIC_TYPE * | Insert (ContainerMapList< SPECIFIC_TYPE > &elements, SPECIFIC_TYPE *obj) |
| template<class SPECIFIC_TYPE, class T> | |
| SPECIFIC_TYPE * | Insert (ContainerMapList< T > &, SPECIFIC_TYPE *) |
| template<class SPECIFIC_TYPE, class H, class T> | |
| SPECIFIC_TYPE * | Insert (ContainerMapList< TypeList< H, T > > &elements, SPECIFIC_TYPE *obj) |
| template<class SPECIFIC_TYPE> | |
| SPECIFIC_TYPE * | Insert (ContainerMapList< TypeNull > &, SPECIFIC_TYPE *) |
| bool | IsValidMapCoord (float c) |
| bool | IsValidMapCoord (float x, float y) |
| bool | IsValidMapCoord (float x, float y, float z) |
| bool | IsValidMapCoord (float x, float y, float z, float o) |
| bool | LoadOpenSSLProviders (char const *logFilter) |
| bool | LocalTime (time_t const &time, tm &result) |
| void | NormalizeMapCoord (float &c) |
| void | SleepFor (uint32 milliseconds) |
| void | SleepForMicroseconds (uint32 microseconds) |
| void | SleepForMilliseconds (uint32 milliseconds) |
| void | SleepForSeconds (uint32 seconds) |
| GMNoteValidation | ValidateGMNoteText (std::string const ¬e) |
| void | Warning (char const *file, int line, char const *function, char const *message) |
Variables | |
| constexpr size_t | GMNoteMaxLength = 255 |
| using Skyfire::RecursiveMutex = std::recursive_mutex |
Definition at line 14 of file Threading.h.
| using Skyfire::SharedMutex = std::shared_mutex |
Definition at line 15 of file Threading.h.
| Enumerator | |
|---|---|
| PACKET_LOG_CLIENT_TO_SERVER | |
| PACKET_LOG_SERVER_TO_CLIENT | |
Definition at line 21 of file PacketLogServer.h.
| enum Skyfire::Priority |
| Enumerator | |
|---|---|
| Idle | |
| Lowest | |
| Low | |
| Normal | |
| High | |
| Highest | |
| Realtime | |
Definition at line 34 of file Threading.h.
| DECLSPEC_NORETURN void Skyfire::Assert | ( | char const * | file, |
| int | line, | ||
| char const * | function, | ||
| char const * | message ) |
Definition at line 13 of file Errors.cpp.
|
inline |
Definition at line 163 of file GridDefines.h.
Referenced by ComputeCellCoord(), and ComputeGridCoord().
|
inline |
Definition at line 179 of file GridDefines.h.
References CENTER_GRID_CELL_OFFSET, Compute(), and SIZE_OF_GRID_CELL.
Referenced by Map::_FindGameObject(), Map::ActiveObjectsNearGrid(), ObjectAccessor::AddCorpse(), ObjectMgr::AddCreatureToGrid(), ObjectMgr::AddGameobjectToGrid(), Map::AddPlayerToMap(), Map::AddToMap(), Map::AddToMap(), WorldObject::BuildUpdate(), Cell::CalculateCellArea(), Creature::CallAssistance(), Creature::CallForHelp(), Cell::Cell(), boss_felmyst::boss_felmystAI::DespawnSummons(), SmartScript::DoFindFriendlyCC(), SmartScript::DoFindFriendlyMissingBuff(), Creature::DoFleeToGetAssistance(), hyjalAI::DoOverrun(), SmartScript::DoSelectLowestHpFriendly(), SmartScript::FindCreatureNear(), SmartScript::FindGameObjectNear(), Unit::GetAttackableUnitListInRange(), WorldObject::GetCreatureListWithEntryInGrid(), WorldObject::GetGameObjectListWithEntryInGrid(), ChatHandler::GetObjectGlobalyWithGuidOrNearWithDbGuid(), ObjectAccessor::GetObjectInWorld(), ScriptedAI::GetPlayerAtMinimumRange(), misc_commandscript::HandleGPSCommand(), mmaps_commandscript::HandleMmapTestArea(), AuraEffect::HandlePeriodicDummyAuraTick(), misc_commandscript::HandleRespawnCommand(), WorldSession::HandleTextEmoteOpcode(), hyjalAI::HideNearPos(), GameObject::LookupFishingHoleAround(), WorldObject::MonsterSay(), WorldObject::MonsterSay(), WorldObject::MonsterTextEmote(), WorldObject::MonsterYell(), WorldObject::MonsterYell(), ObjectAccessor::RemoveCorpse(), ObjectMgr::RemoveCreatureFromGrid(), ObjectMgr::RemoveGameobjectFromGrid(), hyjalAI::RespawnNearPos(), Map::ScriptsProcess(), Spell::SearchTargets(), Creature::SelectNearestTarget(), Creature::SelectNearestTargetInAttackDistance(), AchievementMgr< T >::SendAchievementEarned(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), GameObject::TriggeringLinkedGameObject(), Skyfire::DelayedUnitRelocation::Visit(), Map::VisitAll(), Map::VisitFirstFound(), Map::VisitGrid(), Map::VisitWorld(), and hyjalAI::WaypointReached().
|
inline |
Definition at line 184 of file GridDefines.h.
References CENTER_GRID_CELL_ID, CENTER_GRID_CELL_OFFSET, and SIZE_OF_GRID_CELL.
|
inline |
Definition at line 174 of file GridDefines.h.
References CENTER_GRID_OFFSET, Compute(), and SIZE_OF_GRIDS.
Referenced by Map::AddToActive(), Corpse::Create(), MapManager::ExistMapAndVMap(), Map::GetGrid(), misc_commandscript::HandleGPSCommand(), Map::IsGridLoaded(), Map::IsRemovalGrid(), Corpse::LoadCorpseFromDB(), and Map::RemoveFromActive().
| size_t Skyfire::Count | ( | const ContainerMapList< SPECIFIC_TYPE > & | elements, |
| SPECIFIC_TYPE * | ) |
Definition at line 23 of file TypeContainerFunctions.h.
References ContainerMapList< OBJECT >::_element.
Referenced by Count(), Count(), and TypeMapContainer< AllGridObjectTypes >::Count().
| size_t Skyfire::Count | ( | const ContainerMapList< T > & | , |
| SPECIFIC_TYPE * | ) |
Definition at line 33 of file TypeContainerFunctions.h.
| size_t Skyfire::Count | ( | const ContainerMapList< TypeList< H, T > > & | elements, |
| SPECIFIC_TYPE * | fake ) |
Definition at line 43 of file TypeContainerFunctions.h.
References Count().
| size_t Skyfire::Count | ( | const ContainerMapList< TypeList< SPECIFIC_TYPE, T > > & | elements, |
| SPECIFIC_TYPE * | fake ) |
Definition at line 38 of file TypeContainerFunctions.h.
References Count().
| size_t Skyfire::Count | ( | const ContainerMapList< TypeNull > & | , |
| SPECIFIC_TYPE * | ) |
Definition at line 28 of file TypeContainerFunctions.h.
| DECLSPEC_NORETURN void Skyfire::Error | ( | char const * | file, |
| int | line, | ||
| char const * | function, | ||
| char const * | message ) |
Definition at line 30 of file Errors.cpp.
| DECLSPEC_NORETURN void Skyfire::Fatal | ( | char const * | file, |
| int | line, | ||
| char const * | function, | ||
| char const * | message ) |
Definition at line 21 of file Errors.cpp.
References SleepForSeconds().
| std::string Skyfire::FormatGMNoteLocation | ( | GMNoteLocation const & | location | ) |
Definition at line 22 of file GMNoteUtils.cpp.
References Skyfire::GMNoteLocation::AreaId, Skyfire::GMNoteLocation::MapId, Skyfire::GMNoteLocation::Orientation, Skyfire::GMNoteLocation::X, Skyfire::GMNoteLocation::Y, Skyfire::GMNoteLocation::Z, and Skyfire::GMNoteLocation::ZoneId.
Referenced by gm_commandscript::HandleGMNoteCommand().
| std::string Skyfire::FormatMemorySize | ( | uint64 | bytes | ) |
Definition at line 265 of file MemoryUsage.cpp.
Referenced by FormatMemoryUsageSummary().
| std::string Skyfire::FormatMemoryUsageSummary | ( | ProcessMemoryUsage const & | processUsage, |
| SystemMemoryUsage const & | systemUsage ) |
Definition at line 354 of file MemoryUsage.cpp.
References FormatMemorySize(), FormatProcessMemoryUsage(), Skyfire::SystemMemoryUsage::hasValidData, Skyfire::SystemMemoryUsage::physicalUsagePercent, Skyfire::SystemMemoryUsage::totalPhysicalBytes, Skyfire::SystemMemoryUsage::totalSwapBytes, Skyfire::SystemMemoryUsage::usedPhysicalBytes, and Skyfire::SystemMemoryUsage::usedSwapBytes.
Referenced by server_commandscript::HandleServerInfoCommand().
| std::string Skyfire::FormatProcessMemoryUsage | ( | ProcessMemoryUsage const & | usage | ) |
Definition at line 286 of file MemoryUsage.cpp.
References usage().
Referenced by FormatMemoryUsageSummary().
| std::string Skyfire::FormatSystemMemoryUsage | ( | SystemMemoryUsage const & | usage | ) |
Definition at line 317 of file MemoryUsage.cpp.
References usage().
|
inline |
Definition at line 17 of file TimeUtils.h.
Referenced by getMSTime(), and GetMSTimeDiffToNow().
Definition at line 24 of file TimeUtils.h.
Referenced by getMSTimeDiff(), and GetMSTimeDiffToNow().
Definition at line 32 of file TimeUtils.h.
References GetMSTime(), and GetMSTimeDiff().
Referenced by GetMSTimeDiffToNow().
| bool Skyfire::GetProcessMemoryUsage | ( | ProcessMemoryUsage & | usage | ) |
Definition at line 49 of file MemoryUsage.cpp.
References usage().
Referenced by server_commandscript::HandleServerInfoCommand().
| bool Skyfire::GetSystemMemoryUsage | ( | SystemMemoryUsage & | usage | ) |
Definition at line 108 of file MemoryUsage.cpp.
References usage().
Referenced by server_commandscript::HandleServerInfoCommand().
| SPECIFIC_TYPE * Skyfire::Insert | ( | ContainerMapList< SPECIFIC_TYPE > & | elements, |
| SPECIFIC_TYPE * | obj ) |
Definition at line 49 of file TypeContainerFunctions.h.
References ContainerMapList< OBJECT >::_element.
Referenced by Insert(), and TypeMapContainer< AllGridObjectTypes >::insert().
| SPECIFIC_TYPE * Skyfire::Insert | ( | ContainerMapList< T > & | , |
| SPECIFIC_TYPE * | ) |
Definition at line 62 of file TypeContainerFunctions.h.
| SPECIFIC_TYPE * Skyfire::Insert | ( | ContainerMapList< TypeList< H, T > > & | elements, |
| SPECIFIC_TYPE * | obj ) |
Definition at line 68 of file TypeContainerFunctions.h.
References Insert().
| SPECIFIC_TYPE * Skyfire::Insert | ( | ContainerMapList< TypeNull > & | , |
| SPECIFIC_TYPE * | ) |
Definition at line 56 of file TypeContainerFunctions.h.
|
inline |
Definition at line 204 of file GridDefines.h.
References finite, and MAP_HALFSIZE.
Referenced by PathGenerator::CalculatePath(), Player::GetCinematicPosition(), Map::GetGrid(), Position::IsPositionValid(), MapManager::IsValidMapCoord(), MapManager::IsValidMapCoord(), MapManager::IsValidMapCoord(), IsValidMapCoord(), IsValidMapCoord(), IsValidMapCoord(), Player::LoadFromDB(), ObjectMgr::LoadPointsOfInterest(), ObjectMgr::LoadScripts(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), Creature::SetPosition(), and Unit::UpdatePosition().
|
inline |
Definition at line 209 of file GridDefines.h.
References IsValidMapCoord().
|
inline |
Definition at line 214 of file GridDefines.h.
References finite, and IsValidMapCoord().
|
inline |
Definition at line 219 of file GridDefines.h.
References finite, and IsValidMapCoord().
| bool Skyfire::LoadOpenSSLProviders | ( | char const * | logFilter | ) |
|
inline |
Definition at line 57 of file TimeUtils.h.
Referenced by Player::AddSpellAndCategoryCooldowns(), ByteBuffer::AppendPackedTime(), Skyfire::ServerRestartSchedule::CalculateRestartDelay(), Log::GetTimestampStr(), LogMessage::getTimeStr(), ban_commandscript::HandleBanListCharacterCommand(), ban_commandscript::HandleBanListHelper(), ban_commandscript::HandleBanListIPCommand(), World::InitDailyQuestResetTime(), World::InitGuildResetTime(), World::InitRandomBGResetTime(), Weather::ReGenerate(), World::ResetMonthlyQuests(), ObjectMgr::ReturnOrDeleteOldMails(), World::SetInitialWorldSettings(), and TimeToTimestampStr().
|
inline |
Definition at line 196 of file GridDefines.h.
References MAP_HALFSIZE.
Referenced by RandomMovementGenerator< T >::_setRandomLocation(), WorldObject::GetNearPoint2D(), WorldObject::GetRandomPoint(), CreatureGroup::LeaderMoveTo(), WaypointMgr::Load(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), and WaypointMgr::ReloadPath().
|
inline |
Definition at line 52 of file TimeUtils.h.
References SleepForMilliseconds().
|
inline |
Definition at line 37 of file TimeUtils.h.
Referenced by WorldSocket::HandleAuthSession().
|
inline |
Definition at line 42 of file TimeUtils.h.
Referenced by main(), WorldRunnable::Run(), Skyfire::Thread::Sleep(), and SleepFor().
|
inline |
Definition at line 47 of file TimeUtils.h.
Referenced by Fatal(), and FreezeDetectorRunnable::Run().
| Skyfire::GMNoteValidation Skyfire::ValidateGMNoteText | ( | std::string const & | note | ) |
Definition at line 11 of file GMNoteUtils.cpp.
References GMNoteMaxLength.
Referenced by gm_commandscript::HandleGMNoteCommand().
| void Skyfire::Warning | ( | char const * | file, |
| int | line, | ||
| char const * | function, | ||
| char const * | message ) |
Definition at line 38 of file Errors.cpp.
|
constexpr |
Definition at line 32 of file GMNoteUtils.h.
Referenced by ValidateGMNoteText().