#include <client.h>
Inheritance diagram for Client:
Collaboration diagram for Client:Static Public Member Functions | |
| static const std::string & | getBuiltinLuaPath () |
| static const std::string & | getClientModsLuaPath () |
Public Attributes | |
| bool | m_simple_singleplayer_mode |
| bool | m_internal_server |
| bool | inhibit_inventory_revert = false |
Private Member Functions | |
| void | loadMods () |
| void | peerAdded (con::IPeer *peer) override |
| void | deletingPeer (con::IPeer *peer, bool timeout) override |
| void | initLocalMapSaving (const Address &address, const std::string &hostname) |
| void | ReceiveAll () |
| void | sendPlayerPos () |
| void | deleteAuthData () |
| void | sendInit (const std::string &playerName) |
| void | startAuth (AuthMechanism chosen_auth_mechanism) |
| void | sendDeletedBlocks (std::vector< v3s16 > &blocks) |
| void | sendGotBlocks (const std::vector< v3s16 > &blocks) |
| void | sendRemovedSounds (const std::vector< s32 > &soundList) |
| bool | canSendChatMessage () const |
Static Private Member Functions | |
| static AuthMechanism | choseAuthMech (const u32 mechs) |
| Client::Client | ( | const char * | playername, |
| const std::string & | password, | ||
| MapDrawControl & | control, | ||
| IWritableTextureSource * | tsrc, | ||
| IWritableShaderSource * | shsrc, | ||
| IWritableItemDefManager * | itemdef, | ||
| NodeDefManager * | nodedef, | ||
| ISoundManager * | sound, | ||
| MtEventManager * | event, | ||
| RenderingEngine * | rendering_engine, | ||
| ItemVisualsManager * | item_visuals, | ||
| ELoginRegister | allow_login_or_register ) |
References Database::beginSave(), SSCSMController::create(), DIR_DELIM, g_settings, Settings::get(), Settings::getBool(), getBuiltinLuaPath(), Settings::getU16(), m_cache_save_interval, m_env, m_mesh_grid, m_minimap, m_mod_storage_database, m_sscsm_controller, ModVFS::m_vfs, p(), porting::path_user, SSCSMController::runEvent(), ModVFS::scanModIntoMemory(), and ClientEnvironment::setLocalPlayer().
Here is the call graph for this function:| Client::~Client | ( | ) |
References Database::endSave(), infostream, and m_localdb.
Here is the call graph for this function:
|
inline |
References m_access_denied.
|
inline |
References m_access_denied_reason.
|
inline |
References m_activeobjects_received.
| void Client::addUpdateMeshTask | ( | v3s16 | blockpos, |
| bool | ack_to_server = false, | ||
| bool | urgent = false ) |
| void Client::addUpdateMeshTaskForNode | ( | v3s16 | nodepos, |
| bool | ack_to_server = false, | ||
| bool | urgent = false ) |
| void Client::addUpdateMeshTaskWithEdge | ( | v3s16 | blockpos, |
| bool | ack_to_server = false, | ||
| bool | urgent = false ) |
| void Client::afterContentReceived | ( | ) |
|
overridevirtual |
Implements IGameDef.
|
private |
References NetworkPacket::putRawString(), Send(), InventoryAction::serialize(), and TOSERVER_INVENTORY_ACTION.
Here is the call graph for this function:
|
inline |
References m_csm_restriction_flags.
|
inline |
References checkPrivilege().
Referenced by LocalPlayer::applyControl(), LocalPlayer::move(), LocalPlayer::old_move(), ClientEnvironment::step(), GenericCAO::step(), and Camera::update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_privileges.
Referenced by checkLocalPrivilege(), and GUIFormSpecMenu::OnEvent().
Here is the caller graph for this function:
|
staticprivate |
References AUTH_MECHANISM_FIRST_SRP, AUTH_MECHANISM_LEGACY_PASSWORD, AUTH_MECHANISM_NONE, AUTH_MECHANISM_SRP, m_auth_data, and srp_user_delete().
Referenced by handleCommand_Hello().
Here is the call graph for this function:
Here is the caller graph for this function:| void Client::clearOutChatQueue | ( | ) |
| void Client::connect | ( | const Address & | address, |
| const std::string & | address_name ) |
| int Client::CSMClampRadius | ( | v3s16 | pos, |
| int | radius ) |
Helper function for Client Side Modding CSM restrictions are applied there, this should not be used for core engine.
| p | |
| is_valid_position |
|
private |
Referenced by handleCommand_AcceptSudoMode(), handleCommand_AuthAccept(), and handleCommand_DenySudoMode().
Here is the caller graph for this function:
|
overrideprivatevirtual |
Implements con::PeerHandler.
| Client::DISABLE_CLASS_COPY | ( | Client | ) |
| void Client::drawLoadScreen | ( | const std::wstring & | text, |
| float | dtime, | ||
| int | percent ) |
|
inline |
References m_address_name.
Referenced by GameFormSpec::showPauseMenu().
Here is the caller graph for this function:
|
inline |
References m_animation_time.
Referenced by GenericCAO::setNodeLight(), Camera::step(), Camera::update(), and GenericCAO::updateTextureAnim().
Here is the caller graph for this function:
|
static |
Referenced by Client(), PauseMenuScripting::checkPathInternal(), and PauseMenuScripting::loadBuiltin().
Here is the caller graph for this function:
|
inline |
References m_camera.
Referenced by GameGlobalShaderUniformSetter::onSetUniforms(), GenericCAO::removeFromScene(), OffsetCameraStep::reset(), DrawHUD::run(), DrawWield::run(), MapPostFxStep::run(), OffsetCameraStep::run(), GenericCAO::setAttachment(), ClientMap::updateDrawList(), GenericCAO::updateMeshCulling(), and GenericCAO::updateNametag().
Here is the caller graph for this function:| bool Client::getChatMessage | ( | std::wstring & | message | ) |
| ClientEvent * Client::getClientEvent | ( | ) |
References addUpdateMeshTask(), ClientEnvironment::getMap(), getNodeBlockPos(), infostream, m_env, m_mesh_update_manager, MAP_BLOCKSIZE, and MeshUpdateManager::updateBlock().
Here is the call graph for this function:
|
static |
|
inline |
References ClientEnvironment::getPlayerNames(), and m_env.
Referenced by GUIChatConsole::OnEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| int Client::getCrackLevel | ( | ) |
References sendInventoryAction().
Referenced by MeshUpdateQueue::addBlock().
Here is the call graph for this function:
Here is the caller graph for this function:| v3s16 Client::getCrackPos | ( | ) |
|
overridevirtual |
Implements IGameDef.
References m_client_event_queue.
|
inline |
References m_csm_restriction_flags.
| float Client::getCurRate | ( | ) |
|
inline |
References m_env.
Referenced by PlayerInventoryFormSource::getForm(), Camera::notifyFovChange(), GameGlobalShaderUniformSetter::onSetUniforms(), ShadowRenderer::renderShadowMap(), MapPostFxStep::run(), GameFormSpec::showNodeFormspec(), GameFormSpec::showPlayerInventory(), Camera::update(), and GameFormSpec::update().
Here is the caller graph for this function:| MtEventManager * Client::getEventManager | ( | ) |
Referenced by LocalPlayer::applyControl(), LocalPlayer::move(), LocalPlayer::old_move(), Camera::step(), and ClientEnvironment::step().
Here is the caller graph for this function:| const std::string & Client::getFormspecPrepend | ( | ) | const |
Referenced by GameFormSpec::showCSMFormSpec(), GameFormSpec::showDeathFormspecLegacy(), GameFormSpec::showFormSpec(), GameFormSpec::showNodeFormspec(), GameFormSpec::showPauseMenu(), and GameFormSpec::showPlayerInventory().
Here is the caller graph for this function:| u16 Client::getHP | ( | ) |
|
overridevirtual |
Reimplemented from InventoryManager.
Referenced by GameFormSpec::showPlayerInventory().
Here is the caller graph for this function:
|
overridevirtual |
Implements IGameDef.
References CHATMESSAGE_TYPE_SYSTEM, fmtgettext(), and pushToChatQueue().
Here is the call graph for this function:
|
inline |
References m_item_visuals_manager.
|
inline |
References m_map_seed.
|
virtual |
Referenced by GenericCAO::addToScene(), and GUIFormSpecMenu::parseModel().
Here is the caller graph for this function:
|
inline |
References m_mesh_grid.
Referenced by MeshUpdateQueue::addBlock(), MeshUpdateQueue::fillDataFromMapBlocks(), and ClientMap::updateDrawList().
Here is the caller graph for this function:
|
inline |
References m_minimap.
Referenced by MeshUpdateQueue::fillDataFromMapBlocks(), GameGlobalShaderUniformSetter::onSetUniforms(), GenericCAO::removeFromScene(), and GenericCAO::updateMarker().
Here is the caller graph for this function:
|
overridevirtual |
Implements IGameDef.
References STRING_MAX_LEN, and warningstream.
|
overridevirtual |
Implements IGameDef.
|
inlineoverridevirtual |
Implements IGameDef.
References m_mod_storage_database.
|
overridevirtual |
|
virtual |
|
inline |
References m_privileges.
|
inline |
References m_proto_ver.
Referenced by handleCommand_LocalPlayerAnimations(), and hasServerReplied().
Here is the caller graph for this function:| float Client::getRTT | ( | ) |
| scene::ISceneManager * Client::getSceneManager | ( | ) |
Referenced by ClientEnvironment::addActiveObject(), and GUIFormSpecMenu::parseModel().
Here is the caller graph for this function:
|
inline |
References m_script.
Referenced by GameFormSpec::showCSMFormSpec(), and GameFormSpec::showPlayerInventory().
Here is the caller graph for this function:| const Address Client::getServerAddress | ( | ) |
References FATAL_ERROR_IF, and m_client_event_queue.
|
virtual |
Referenced by Minimap::Minimap(), GenericCAO::addToScene(), ShadowRenderer::createShaders(), and PostProcessingStep::run().
Here is the caller graph for this function:
|
virtual |
Referenced by GameFormSpec::showCSMFormSpec(), GameFormSpec::showDeathFormspecLegacy(), GameFormSpec::showFormSpec(), GameFormSpec::showNodeFormspec(), GameFormSpec::showPauseMenu(), GameFormSpec::showPauseMenuFormSpec(), GameFormSpec::showPlayerInventory(), and sound().
Here is the caller graph for this function:
|
inline |
References m_state.
| ITextureSource * Client::getTextureSource | ( | ) |
Referenced by Minimap::Minimap(), GameFormSpec::handleCallbacks(), and tsrc().
Here is the caller graph for this function:
|
inline |
| void Client::handleCommand_AcceptSudoMode | ( | NetworkPacket * | pkt | ) |
References AUTH_MECHANISM_FIRST_SRP, AUTH_MECHANISM_NONE, deleteAuthData(), m_chosen_auth_mech, m_new_password, m_password, startAuth(), and verbosestream.
Here is the call graph for this function:| void Client::handleCommand_AccessDenied | ( | NetworkPacket * | pkt | ) |
References accessDeniedStrings, NetworkPacket::getCommand(), NetworkPacket::getSize(), NetworkPacket::hasRemainingBytes(), m_access_denied, m_access_denied_reason, m_access_denied_reconnect, SERVER_ACCESSDENIED_CUSTOM_STRING, SERVER_ACCESSDENIED_MAX, SERVER_ACCESSDENIED_TOO_MANY_USERS, TOCLIENT_ACCESS_DENIED, and wide_to_utf8().
Here is the call graph for this function:| void Client::handleCommand_ActiveObjectMessages | ( | NetworkPacket * | pkt | ) |
References canRead(), deSerializeString16(), NetworkPacket::getSize(), NetworkPacket::getString(), m_env, ClientEnvironment::processActiveObjectMessage(), and readU16().
Here is the call graph for this function:| void Client::handleCommand_ActiveObjectRemoveAdd | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::addActiveObject(), m_activeobjects_received, m_env, NetworkPacket::readLongString(), and ClientEnvironment::removeActiveObject().
Here is the call graph for this function:| void Client::handleCommand_AddNode | ( | NetworkPacket * | pkt | ) |
References addNode(), MapNode::deSerialize(), NetworkPacket::getRemainingString(), m_server_ser_ver, p(), MapNode::serializedLength(), and NetworkPacket::skip().
Here is the call graph for this function:| void Client::handleCommand_AddParticleSpawner | ( | NetworkPacket * | pkt | ) |
References canRead(), CE_ADD_PARTICLESPAWNER, ServerParticleTexture::deSerialize(), ParticleParamTypes::deSerializeParameterValue(), deSerializeString32(), NetworkPacket::getSize(), NetworkPacket::getString(), m_client_event_queue, m_proto_ver, p(), readF32(), readU16(), readU32(), and readU8().
Here is the call graph for this function:| void Client::handleCommand_AnnounceMedia | ( | NetworkPacket * | pkt | ) |
References ClientMediaDownloader::addFile(), ClientMediaDownloader::addRemoteServer(), BasicStrfnd< T >::at_end(), base64_decode(), decompressZstd(), deserializeString16Array(), errorstream, NetworkPacket::getSize(), infostream, MeshUpdateManager::isRunning(), ClientMediaDownloader::isStarted(), m_media_downloader, m_mesh_update_manager, m_proto_ver, m_remote_media_servers, BasicStrfnd< T >::next(), NetworkPacket::readLongString(), NetworkPacket::readRawString(), sanity_check, ClientMediaDownloader::step(), and trim().
Here is the call graph for this function:| void Client::handleCommand_AuthAccept | ( | NetworkPacket * | pkt | ) |
References actionstream, deleteAuthData(), con::IConnection::GetPeerAddress(), infostream, LC_Init, m_address_name, m_con, m_internal_server, m_map_seed, m_recommended_send_interval, m_state, m_sudo_auth_methods, PEER_ID_SERVER, Address::print(), Send(), and TOSERVER_INIT2.
Here is the call graph for this function:| void Client::handleCommand_BlockData | ( | NetworkPacket * | pkt | ) |
References addUpdateMeshTaskWithEdge(), MapSector::createBlankBlock(), MapBlock::deSerialize(), MapBlock::deSerializeNetworkSpecific(), Map::emergeSector(), MapSector::getBlockNoCreateNoEx(), ClientEnvironment::getMap(), MapSector::getPos(), NetworkPacket::getRemainingBytes(), NetworkPacket::getRemainingString(), NetworkPacket::getSize(), m_env, m_localdb, m_server_ser_ver, p(), and ServerMap::saveBlock().
Here is the call graph for this function:| void Client::handleCommand_Breath | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::getLocalPlayer(), m_env, and LocalPlayer::setBreath().
Here is the call graph for this function:| void Client::handleCommand_Camera | ( | NetworkPacket * | pkt | ) |
References Player::allowed_camera_mode, CE_UPDATE_CAMERA, ClientEnvironment::getLocalPlayer(), m_client_event_queue, and m_env.
Here is the call graph for this function:| void Client::handleCommand_ChatMessage | ( | NetworkPacket * | pkt | ) |
References actionstream, CHATMESSAGE_TYPE_MAX, m_script, ChatMessage::message, modsLoaded(), ScriptApiClient::on_receiving_message(), pushToChatQueue(), ChatMessage::sender, ChatMessage::timestamp, ChatMessage::type, unescape_enriched(), and wide_to_utf8().
Here is the call graph for this function:| void Client::handleCommand_CloudParams | ( | NetworkPacket * | pkt | ) |
References CE_CLOUD_PARAMS, NetworkPacket::hasRemainingBytes(), and m_client_event_queue.
Here is the call graph for this function:| void Client::handleCommand_CSMRestrictionFlags | ( | NetworkPacket * | pkt | ) |
References loadMods(), m_csm_restriction_flags, and m_csm_restriction_noderange.
Here is the call graph for this function:| void Client::handleCommand_DeathScreenLegacy | ( | NetworkPacket * | pkt | ) |
References CE_DEATHSCREEN_LEGACY, and m_client_event_queue.
| void Client::handleCommand_DeleteParticleSpawner | ( | NetworkPacket * | pkt | ) |
References CE_DELETE_PARTICLESPAWNER, and m_client_event_queue.
| void Client::handleCommand_DenySudoMode | ( | NetworkPacket * | pkt | ) |
References CHATMESSAGE_TYPE_SYSTEM, deleteAuthData(), and pushToChatQueue().
Here is the call graph for this function:| void Client::handleCommand_Deprecated | ( | NetworkPacket * | pkt | ) |
References NetworkPacket::getCommand(), NetworkPacket::getPeerId(), infostream, ToClientCommandHandler::name, and toClientCommandTable.
Here is the call graph for this function:| void Client::handleCommand_DetachedInventory | ( | NetworkPacket * | pkt | ) |
References Inventory::deSerialize(), NetworkPacket::getRemainingBytes(), NetworkPacket::getRemainingString(), infostream, m_detached_inventories, m_itemdef, and NetworkPacket::skip().
Here is the call graph for this function:| void Client::handleCommand_EyeOffset | ( | NetworkPacket * | pkt | ) |
References Player::eye_offset_first, Player::eye_offset_third, Player::eye_offset_third_front, ClientEnvironment::getLocalPlayer(), NetworkPacket::hasRemainingBytes(), and m_env.
Here is the call graph for this function:| void Client::handleCommand_FadeSound | ( | NetworkPacket * | pkt | ) |
References ISoundManager::fadeSound(), m_sound, m_sounds_server_to_client, and step().
Here is the call graph for this function:| void Client::handleCommand_FormspecPrepend | ( | NetworkPacket * | pkt | ) |
References Player::formspec_prepend, ClientEnvironment::getLocalPlayer(), and m_env.
Here is the call graph for this function:| void Client::handleCommand_Fov | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::getLocalPlayer(), NetworkPacket::hasRemainingBytes(), m_camera, m_env, Camera::notifyFovChange(), and Player::setFov().
Here is the call graph for this function:| void Client::handleCommand_Hello | ( | NetworkPacket * | pkt | ) |
References Any, AUTH_MECHANISM_FIRST_SRP, AUTH_MECHANISM_LEGACY_PASSWORD, AUTH_MECHANISM_NONE, AUTH_MECHANISM_SRP, choseAuthMech(), con::IConnection::Disconnect(), errorstream, NetworkPacket::getSize(), infostream, Login, m_access_denied, m_access_denied_reason, m_allow_login_or_register, m_auth_data, m_chosen_auth_mech, m_con, m_proto_ver, m_server_ser_ver, Register, ser_ver_supported_read(), srp_user_delete(), and startAuth().
Here is the call graph for this function:| void Client::handleCommand_HP | ( | NetworkPacket * | pkt | ) |
References CE_PLAYER_DAMAGE, ClientEnvironment::getLocalPlayer(), NetworkPacket::hasRemainingBytes(), LocalPlayer::hp, m_client_event_queue, m_env, m_script, modsLoaded(), and ScriptApiClient::on_hp_modification().
Here is the call graph for this function:| void Client::handleCommand_HudAdd | ( | NetworkPacket * | pkt | ) |
References CE_HUDADD, dir(), NetworkPacket::hasRemainingBytes(), and m_client_event_queue.
Here is the call graph for this function:| void Client::handleCommand_HudChange | ( | NetworkPacket * | pkt | ) |
| void Client::handleCommand_HudRemove | ( | NetworkPacket * | pkt | ) |
References CE_HUDRM, and m_client_event_queue.
| void Client::handleCommand_HudSetFlags | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::getLocalPlayer(), Minimap::getModeDef(), Minimap::getModeIndex(), HUD_FLAG_MINIMAP_RADAR_VISIBLE, Player::hud_flags, m_env, m_minimap, MINIMAP_TYPE_RADAR, Minimap::nextMode(), and MinimapModeDef::type.
Here is the call graph for this function:| void Client::handleCommand_HudSetMoon | ( | NetworkPacket * | pkt | ) |
| void Client::handleCommand_HudSetParam | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::getLocalPlayer(), LocalPlayer::hotbar_image, LocalPlayer::hotbar_selected_image, Player::hud_hotbar_itemcount, HUD_HOTBAR_ITEMCOUNT_MAX, HUD_PARAM_HOTBAR_IMAGE, HUD_PARAM_HOTBAR_ITEMCOUNT, HUD_PARAM_HOTBAR_SELECTED_IMAGE, m_env, and readS32().
Here is the call graph for this function:| void Client::handleCommand_HudSetSky | ( | NetworkPacket * | pkt | ) |
References SkyboxParams::bgcolor, SkyboxParams::body_orbit_tilt, CE_SET_MOON, CE_SET_SKY, CE_SET_STARS, CE_SET_SUN, SkyboxParams::clouds, deSerializeString16(), SkyboxParams::fog_color, SkyboxParams::fog_distance, SkyboxParams::fog_moon_tint, SkyboxParams::fog_start, SkyboxParams::fog_sun_tint, SkyboxParams::fog_tint_type, SkyboxDefaults::getMoonDefaults(), NetworkPacket::getSize(), SkyboxDefaults::getSkyColorDefaults(), SkyboxDefaults::getStarDefaults(), NetworkPacket::getString(), SkyboxDefaults::getSunDefaults(), NetworkPacket::hasRemainingBytes(), m_client_event_queue, m_proto_ver, ClientEvent::moon_params, readARGB8(), readU16(), readU8(), ClientEvent::set_sky, SkyboxParams::sky_color, ClientEvent::star_params, ClientEvent::sun_params, SunParams::sunrise_visible, SkyboxParams::textures, ClientEvent::type, SkyboxParams::type, MoonParams::visible, StarParams::visible, and SunParams::visible.
Here is the call graph for this function:| void Client::handleCommand_HudSetStars | ( | NetworkPacket * | pkt | ) |
References CE_SET_STARS, StarParams::count, StarParams::day_opacity, SkyboxDefaults::getStarDefaults(), NetworkPacket::hasRemainingBytes(), m_client_event_queue, StarParams::scale, StarParams::star_seed, StarParams::starcolor, and StarParams::visible.
Here is the call graph for this function:| void Client::handleCommand_HudSetSun | ( | NetworkPacket * | pkt | ) |
| void Client::handleCommand_Inventory | ( | NetworkPacket * | pkt | ) |
References Inventory::deSerialize(), ClientEnvironment::getLocalPlayer(), NetworkPacket::getSize(), NetworkPacket::getString(), Player::inventory, m_env, m_inventory_from_server, m_inventory_from_server_age, and m_update_wielded_item.
Here is the call graph for this function:| void Client::handleCommand_InventoryFormSpec | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::getLocalPlayer(), Player::inventory_formspec, LocalPlayer::inventory_formspec_override, m_env, and NetworkPacket::readLongString().
Here is the call graph for this function:| void Client::handleCommand_ItemDef | ( | NetworkPacket * | pkt | ) |
References decompressZlib(), decompressZstd(), IWritableItemDefManager::deSerialize(), NetworkPacket::getSize(), infostream, MeshUpdateManager::isRunning(), m_itemdef, m_itemdef_received, m_mesh_update_manager, m_proto_ver, NetworkPacket::readLongString(), and sanity_check.
Here is the call graph for this function:| void Client::handleCommand_LocalPlayerAnimations | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::getLocalPlayer(), getProtoVersion(), LocalPlayer::last_animation, Player::local_animation_speed, Player::local_animations, m_env, and NO_ANIM.
Here is the call graph for this function:| void Client::handleCommand_Media | ( | NetworkPacket * | pkt | ) |
References ClientMediaDownloader::conventionalTransferDone(), decompressZstd(), errorstream, NetworkPacket::getSize(), infostream, MeshUpdateManager::isRunning(), ClientMediaDownloader::isStarted(), m_media_downloader, m_mesh_update_manager, m_pending_media_downloads, m_proto_ver, NetworkPacket::readLongString(), and sanity_check.
Here is the call graph for this function:| void Client::handleCommand_MediaPush | ( | NetworkPacket * | pkt | ) |
References clientMediaUpdateCache(), loadMedia(), m_pending_media_downloads, m_proto_ver, m_remote_media_servers, NetworkPacket::readLongString(), hashing::sha1(), string_allowed(), TEXTURENAME_ALLOWED_CHARS, and verbosestream.
Here is the call graph for this function:| void Client::handleCommand_MinimapModes | ( | NetworkPacket * | pkt | ) |
References Minimap::addMode(), Minimap::clearModes(), m_minimap, and Minimap::setModeIndex().
Here is the call graph for this function:| void Client::handleCommand_ModChannelMsg | ( | NetworkPacket * | pkt | ) |
References ModChannelMgr::channelRegistered(), NetworkPacket::getPeerId(), m_modchannel_mgr, m_script, ScriptApiModChannels::on_modchannel_message(), and verbosestream.
Here is the call graph for this function:| void Client::handleCommand_ModChannelSignal | ( | NetworkPacket * | pkt | ) |
References infostream, ModChannelMgr::leaveChannel(), m_modchannel_mgr, m_script, MODCHANNEL_SIGNAL_CHANNEL_NOT_REGISTERED, MODCHANNEL_SIGNAL_JOIN_FAILURE, MODCHANNEL_SIGNAL_JOIN_OK, MODCHANNEL_SIGNAL_LEAVE_FAILURE, MODCHANNEL_SIGNAL_LEAVE_OK, MODCHANNEL_SIGNAL_SET_STATE, MODCHANNEL_STATE_INIT, MODCHANNEL_STATE_MAX, MODCHANNEL_STATE_READ_WRITE, ScriptApiModChannels::on_modchannel_signal(), ModChannelMgr::setChannelState(), and warningstream.
Here is the call graph for this function:| void Client::handleCommand_Movement | ( | NetworkPacket * | pkt | ) |
References BS, ClientEnvironment::getLocalPlayer(), m_env, Player::movement_acceleration_air, Player::movement_acceleration_default, Player::movement_acceleration_fast, Player::movement_gravity, Player::movement_liquid_fluidity, Player::movement_liquid_fluidity_smooth, Player::movement_liquid_sink, Player::movement_speed_climb, Player::movement_speed_crouch, Player::movement_speed_fast, Player::movement_speed_jump, and Player::movement_speed_walk.
Here is the call graph for this function:| void Client::handleCommand_MovePlayer | ( | NetworkPacket * | pkt | ) |
References CE_PLAYER_FORCE_MOVE, ClientEnvironment::getLocalPlayer(), infostream, m_client_event_queue, m_env, and LocalPlayer::setPosition().
Here is the call graph for this function:| void Client::handleCommand_MovePlayerRel | ( | NetworkPacket * | pkt | ) |
References LocalPlayer::addPosition(), ClientEnvironment::getLocalPlayer(), and m_env.
Here is the call graph for this function:| void Client::handleCommand_NodeDef | ( | NetworkPacket * | pkt | ) |
References decompressZlib(), decompressZstd(), NodeDefManager::deSerialize(), NetworkPacket::getSize(), infostream, MeshUpdateManager::isRunning(), m_mesh_update_manager, m_nodedef, m_nodedef_received, m_proto_ver, NetworkPacket::readLongString(), and sanity_check.
Here is the call graph for this function:| void Client::handleCommand_NodemetaChanged | ( | NetworkPacket * | pkt | ) |
References NodeMetadataList::begin(), decompressZlib(), NodeMetadataList::deSerialize(), NodeMetadataList::end(), ClientEnvironment::getMap(), NetworkPacket::getSize(), Map::isValidPosition(), m_env, m_itemdef, NetworkPacket::readLongString(), and Map::setNodeMetadata().
Here is the call graph for this function:
|
inline |
| void Client::handleCommand_OverrideDayNightRatio | ( | NetworkPacket * | pkt | ) |
References CE_OVERRIDE_DAY_NIGHT_RATIO, and m_client_event_queue.
| void Client::handleCommand_PlayerSpeed | ( | NetworkPacket * | pkt | ) |
References LocalPlayer::addVelocity(), ClientEnvironment::getLocalPlayer(), and m_env.
Here is the call graph for this function:| void Client::handleCommand_PlaySound | ( | NetworkPacket * | pkt | ) |
References ISoundManager::allocateId(), BS, SoundSpec::fade, ISoundManager::freeId(), SoundSpec::gain, ClientEnvironment::getActiveObject(), ClientActiveObject::getPosition(), ClientActiveObject::getVelocity(), NetworkPacket::hasRemainingBytes(), Local, SoundSpec::loop, m_env, m_sound, m_sounds_client_to_server, m_sounds_server_to_client, m_sounds_to_objects, SoundSpec::name, Object, SoundSpec::pitch, ISoundManager::playSound(), ISoundManager::playSoundAt(), Position, sendRemovedSounds(), and SoundSpec::start_time.
Here is the call graph for this function:| void Client::handleCommand_Privileges | ( | NetworkPacket * | pkt | ) |
References infostream, and m_privileges.
| void Client::handleCommand_RemoveNode | ( | NetworkPacket * | pkt | ) |
| void Client::handleCommand_SetLighting | ( | NetworkPacket * | pkt | ) |
References Lighting::bloom_intensity, Lighting::bloom_radius, Lighting::bloom_strength_factor, AutoExposure::center_weight_power, Lighting::exposure, AutoExposure::exposure_correction, LocalPlayer::getLighting(), ClientEnvironment::getLocalPlayer(), NetworkPacket::hasRemainingBytes(), AutoExposure::luminance_max, AutoExposure::luminance_min, m_env, Lighting::saturation, Lighting::shadow_intensity, Lighting::shadow_tint, AutoExposure::speed_bright_dark, AutoExposure::speed_dark_bright, and Lighting::volumetric_light_strength.
Here is the call graph for this function:| void Client::handleCommand_ShowFormSpec | ( | NetworkPacket * | pkt | ) |
References CE_SHOW_FORMSPEC, m_client_event_queue, and NetworkPacket::readLongString().
Here is the call graph for this function:| void Client::handleCommand_SpawnParticle | ( | NetworkPacket * | pkt | ) |
References CE_SPAWN_PARTICLE, NetworkPacket::getSize(), NetworkPacket::getString(), m_client_event_queue, m_proto_ver, and p().
Here is the call graph for this function:| void Client::handleCommand_SpawnParticleBatch | ( | NetworkPacket * | pkt | ) |
References canRead(), CE_SPAWN_PARTICLE, decompressZstd(), deSerializeString32(), m_client_event_queue, m_proto_ver, p(), and NetworkPacket::readLongString().
Here is the call graph for this function:| void Client::handleCommand_SrpBytesSandB | ( | NetworkPacket * | pkt | ) |
References AUTH_MECHANISM_LEGACY_PASSWORD, AUTH_MECHANISM_SRP, errorstream, infostream, m_auth_data, m_chosen_auth_mech, Send(), srp_user_process_challenge(), and TOSERVER_SRP_BYTES_M.
Here is the call graph for this function:| void Client::handleCommand_StopSound | ( | NetworkPacket * | pkt | ) |
References m_sound, m_sounds_server_to_client, and ISoundManager::stopSound().
Here is the call graph for this function:| void Client::handleCommand_TimeOfDay | ( | NetworkPacket * | pkt | ) |
References NetworkPacket::getSize(), m_env, Environment::setTimeOfDay(), and Environment::setTimeOfDaySpeed().
Here is the call graph for this function:| void Client::handleCommand_UpdatePlayerList | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::addPlayerName(), m_env, PLAYER_LIST_ADD, PLAYER_LIST_INIT, PLAYER_LIST_REMOVE, and ClientEnvironment::removePlayerName().
Here is the call graph for this function:
|
inline |
References m_client_event_queue.
|
inline |
|
private |
| void Client::interact | ( | InteractAction | action, |
| const PointedThing & | pointed ) |
|
overridevirtual |
Reimplemented from InventoryManager.
References m_detached_inventories, and InventoryLocation::name.
|
inlineoverridevirtual |
Implements IGameDef.
| bool Client::isShutdown | ( | ) |
|
inline |
References m_itemdef_received.
|
overridevirtual |
Implements IGameDef.
|
overridevirtual |
Implements IGameDef.
References ModChannelMgr::channelRegistered(), ModChannelMgr::joinChannel(), m_modchannel_mgr, Send(), and TOSERVER_MODCHANNEL_JOIN.
Here is the call graph for this function:| bool Client::loadMedia | ( | const std::string & | data, |
| const std::string & | filename, | ||
| bool | from_media_push = false ) |
References Database::beginSave(), Database::endSave(), g_settings, Settings::getFloat(), m_mod_storage_database, and m_mod_storage_save_timer.
Referenced by handleCommand_MediaPush().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References m_mod_storage_database, and ModStorageDatabase::setModEntry().
Referenced by handleCommand_CSMRestrictionFlags().
Here is the call graph for this function:
Here is the caller graph for this function:| void Client::makeScreenshot | ( | ) |
|
inline |
References m_media_downloader.
| float Client::mediaReceiveProgress | ( | ) |
| void Client::migrateModStorage | ( | ) |
|
inline |
References m_mods_loaded.
Referenced by handleCommand_ChatMessage(), handleCommand_HP(), GameFormSpec::showPlayerInventory(), and ClientEnvironment::step().
Here is the caller graph for this function:
|
inline |
References m_nodedef_received.
|
overrideprivatevirtual |
Implements con::PeerHandler.
| void Client::ProcessData | ( | NetworkPacket * | pkt | ) |
|
inline |
References m_chat_queue.
Referenced by getItemDefManager(), handleCommand_ChatMessage(), and handleCommand_DenySudoMode().
Here is the caller graph for this function:| void Client::pushToEventQueue | ( | ClientEvent * | event | ) |
|
private |
|
inline |
References m_access_denied_reconnect.
| void Client::removeNode | ( | v3s16 | p | ) |
| void Client::request_media | ( | const std::vector< std::string > & | file_requests | ) |
| void Client::Send | ( | NetworkPacket * | pkt | ) |
References handleCommand().
Referenced by canSendChatMessage(), handleCommand_AuthAccept(), handleCommand_SrpBytesSandB(), leaveModChannel(), sendNodemetaFields(), and sendReady().
Here is the call graph for this function:
Here is the caller graph for this function:| void Client::sendChangePassword | ( | const std::string & | oldpassword, |
| const std::string & | newpassword ) |
| void Client::sendChatMessage | ( | const std::wstring & | message | ) |
| void Client::sendDamage | ( | u16 | damage | ) |
References ClientEnvironment::getLocalPlayer(), and m_env.
Here is the call graph for this function:
|
private |
|
private |
| void Client::sendHaveMedia | ( | const std::vector< u32 > & | tokens | ) |
|
private |
References AUTH_MECHANISM_FIRST_SRP, AUTH_MECHANISM_LEGACY_PASSWORD, and AUTH_MECHANISM_SRP.
| void Client::sendInventoryAction | ( | InventoryAction * | a | ) |
| void Client::sendInventoryFields | ( | const std::string & | formname, |
| const StringMap & | fields ) |
|
overridevirtual |
Implements IGameDef.
References Send(), and TOSERVER_REMOVED_SOUNDS.
Referenced by TextDestNodeMetadata::gotText().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| void Client::sendReady | ( | ) |
|
private |
| void Client::sendRespawnLegacy | ( | ) |
| void Client::sendUpdateClientInfo | ( | const ClientDynamicInfo & | info | ) |
| void Client::setCrack | ( | int | level, |
| v3s16 | pos ) |
| void Client::setFatalError | ( | const LuaError & | e | ) |
|
inline |
References m_access_denied, and m_access_denied_reason.
| void Client::setPlayerControl | ( | PlayerControl & | control | ) |
References Map::addNodeAndUpdate(), ClientEnvironment::getMap(), m_env, and p().
Here is the call graph for this function:| void Client::setPlayerItem | ( | u16 | item | ) |
| void Client::showUpdateProgressTexture | ( | void * | args, |
| float | progress ) |
|
inline |
References getSoundManager().
Referenced by GenericCAO::step().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Referenced by handleCommand_AcceptSudoMode(), and handleCommand_Hello().
Here is the caller graph for this function:| void Client::step | ( | float | dtime | ) |
| void Client::Stop | ( | ) |
|
inline |
References getTextureSource().
Referenced by SmokePuffCSO::SmokePuffCSO(), GenericCAO::step(), and GenericCAO::updateTextures().
Here is the call graph for this function:
Here is the caller graph for this function:| void Client::typeChatMessage | ( | const std::wstring & | message | ) |
References ChatMessage::message, and ChatMessage::sender.
Referenced by GUIChatConsole::OnEvent().
Here is the caller graph for this function:| bool Client::updateWieldedItem | ( | ) |
| bool Client::inhibit_inventory_revert = false |
Referenced by GUIFormSpecMenu::OnEvent().
|
private |
Referenced by accessDenied(), handleCommand_AccessDenied(), handleCommand_Hello(), and setFatalError().
|
private |
Referenced by accessDeniedReason(), handleCommand_AccessDenied(), handleCommand_Hello(), and setFatalError().
|
private |
Referenced by handleCommand_AccessDenied(), and reconnectRequested().
|
private |
Referenced by activeObjectsReceived(), and handleCommand_ActiveObjectRemoveAdd().
|
private |
Referenced by getAddressName(), and handleCommand_AuthAccept().
|
private |
Referenced by handleCommand_Hello().
|
private |
Referenced by getAnimationTime().
|
private |
Referenced by choseAuthMech(), handleCommand_Hello(), and handleCommand_SrpBytesSandB().
|
private |
|
private |
Referenced by Client().
|
private |
Referenced by getCamera(), handleCommand_Fov(), and setCamera().
|
private |
Referenced by sendChatMessage().
|
private |
Referenced by pushToChatQueue().
|
private |
Referenced by handleCommand_AcceptSudoMode(), handleCommand_Hello(), and handleCommand_SrpBytesSandB().
|
private |
Referenced by getCraftDefManager(), getServerAddress(), handleCommand_AddParticleSpawner(), handleCommand_Camera(), handleCommand_CloudParams(), handleCommand_DeathScreenLegacy(), handleCommand_DeleteParticleSpawner(), handleCommand_HP(), handleCommand_HudAdd(), handleCommand_HudChange(), handleCommand_HudRemove(), handleCommand_HudSetMoon(), handleCommand_HudSetSky(), handleCommand_HudSetStars(), handleCommand_HudSetSun(), handleCommand_MovePlayer(), handleCommand_OverrideDayNightRatio(), handleCommand_ShowFormSpec(), handleCommand_SpawnParticle(), handleCommand_SpawnParticleBatch(), and hasClientEvents().
|
private |
Referenced by handleCommand_AuthAccept(), and handleCommand_Hello().
|
private |
|
private |
|
private |
|
private |
Referenced by checkCSMRestrictionFlag(), getCSMRestrictionFlags(), and handleCommand_CSMRestrictionFlags().
|
private |
Referenced by handleCommand_CSMRestrictionFlags().
|
private |
Referenced by handleCommand_DetachedInventory(), and inventoryAction().
|
private |
Referenced by Client(), getClientEvent(), getConnectedPlayerNames(), getEnv(), handleCommand_ActiveObjectMessages(), handleCommand_ActiveObjectRemoveAdd(), handleCommand_BlockData(), handleCommand_Breath(), handleCommand_Camera(), handleCommand_EyeOffset(), handleCommand_FormspecPrepend(), handleCommand_Fov(), handleCommand_HP(), handleCommand_HudSetFlags(), handleCommand_HudSetParam(), handleCommand_Inventory(), handleCommand_InventoryFormSpec(), handleCommand_LocalPlayerAnimations(), handleCommand_Movement(), handleCommand_MovePlayer(), handleCommand_MovePlayerRel(), handleCommand_NodemetaChanged(), handleCommand_PlayerSpeed(), handleCommand_PlaySound(), handleCommand_SetLighting(), handleCommand_TimeOfDay(), handleCommand_UpdatePlayerList(), sendDamage(), and setPlayerControl().
|
private |
| bool Client::m_internal_server |
Referenced by handleCommand_AuthAccept().
|
private |
Referenced by handleCommand_Inventory().
|
private |
Referenced by handleCommand_Inventory().
|
private |
Referenced by getItemVisualsManager().
|
private |
Referenced by handleCommand_DetachedInventory(), handleCommand_ItemDef(), and handleCommand_NodemetaChanged().
|
private |
Referenced by handleCommand_ItemDef(), and itemdefReceived().
|
private |
Referenced by sendChatMessage().
|
private |
Referenced by ~Client(), and handleCommand_BlockData().
|
private |
|
private |
Referenced by getMapSeed(), and handleCommand_AuthAccept().
|
private |
|
private |
|
private |
Referenced by handleCommand_AnnounceMedia(), handleCommand_Media(), and mediaReceived().
|
private |
|
private |
Referenced by Client(), and getMeshGrid().
|
private |
|
private |
Referenced by Client(), getMinimap(), handleCommand_HudSetFlags(), and handleCommand_MinimapModes().
|
private |
Referenced by Client(), getModStorageDatabase(), loadMedia(), and loadMods().
|
private |
Referenced by loadMedia().
|
private |
Referenced by getModVFS().
|
private |
Referenced by handleCommand_ModChannelMsg(), handleCommand_ModChannelSignal(), and leaveModChannel().
|
private |
|
private |
Referenced by modsLoaded().
|
private |
Referenced by handleCommand_AcceptSudoMode().
|
private |
Referenced by handleCommand_NodeDef().
|
private |
Referenced by handleCommand_NodeDef(), and nodedefReceived().
|
private |
|
private |
|
private |
|
private |
|
private |
Referenced by handleCommand_AcceptSudoMode().
|
private |
Referenced by handleCommand_Media(), and handleCommand_MediaPush().
|
private |
|
private |
|
private |
|
private |
Referenced by checkPrivilege(), getPrivilegeList(), and handleCommand_Privileges().
|
private |
Referenced by getProtoVersion(), handleCommand_AddParticleSpawner(), handleCommand_AnnounceMedia(), handleCommand_Hello(), handleCommand_HudSetSky(), handleCommand_ItemDef(), handleCommand_Media(), handleCommand_MediaPush(), handleCommand_NodeDef(), handleCommand_SpawnParticle(), and handleCommand_SpawnParticleBatch().
|
private |
Referenced by handleCommand_AuthAccept().
|
private |
Referenced by handleCommand_AnnounceMedia(), and handleCommand_MediaPush().
|
private |
|
private |
|
private |
|
private |
Referenced by handleCommand_AddNode(), handleCommand_BlockData(), and handleCommand_Hello().
|
private |
|
private |
| bool Client::m_simple_singleplayer_mode |
Referenced by GameFormSpec::showPauseMenu().
|
private |
Referenced by handleCommand_FadeSound(), handleCommand_PlaySound(), and handleCommand_StopSound().
|
private |
Referenced by handleCommand_PlaySound().
|
private |
Referenced by handleCommand_FadeSound(), handleCommand_PlaySound(), and handleCommand_StopSound().
|
private |
Referenced by handleCommand_PlaySound().
|
private |
Referenced by Client().
|
private |
Referenced by getState(), and handleCommand_AuthAccept().
|
private |
Referenced by handleCommand_AuthAccept().
|
private |
|
private |
Referenced by handleCommand_Inventory().