#include <clientiface.h>
◆ RemoteClient()
RemoteClient::RemoteClient |
( |
| ) |
|
◆ ~RemoteClient()
RemoteClient::~RemoteClient |
( |
| ) |
|
|
default |
◆ confirmSerializationVersion()
void RemoteClient::confirmSerializationVersion |
( |
| ) |
|
|
inline |
◆ getAddress()
const Address & RemoteClient::getAddress |
( |
| ) |
const |
|
inline |
◆ getDynamicInfo()
◆ getFullVer()
const std::string & RemoteClient::getFullVer |
( |
| ) |
const |
|
inline |
◆ getLangCode()
const std::string & RemoteClient::getLangCode |
( |
| ) |
const |
|
inline |
◆ getMajor()
u8 RemoteClient::getMajor |
( |
| ) |
const |
|
inline |
◆ getMinor()
u8 RemoteClient::getMinor |
( |
| ) |
const |
|
inline |
◆ getName()
const std::string & RemoteClient::getName |
( |
| ) |
const |
|
inline |
◆ GetNextBlocks()
References adjustDist(), BLOCK_SEND_DISABLE_LIMITS_MAX_D, blockpos_over_max_limit(), BS, EmergeManager::enqueueBlockEmerge(), floatToInt(), SkyboxParams::fog_distance, g_settings, getAttachedObject(), ServerActiveObject::getBasePosition(), Map::getBlockNoCreateNoEx(), PlayerSAO::getCameraInverted(), PlayerSAO::getEyePosition(), FacePositionCache::getFacePositions(), Settings::getFloat(), PlayerSAO::getFov(), PlayerSAO::getLookPitch(), ServerEnvironment::getMap(), getNodeBlockPos(), PlayerSAO::getPlayer(), ServerEnvironment::getPlayer(), RemotePlayer::getPlayerSAO(), UnitSAO::getRotation(), RemotePlayer::getSkyParams(), Player::getSpeed(), LuaEntitySAO::getVelocity(), PlayerSAO::getWantedRange(), PlayerSAO::getZoomFOV(), infostream, MapBlock::isAir(), isBlockInSight(), Map::isBlockOccluded(), MapBlock::isGenerated(), LIMITED_MAX_SIMULTANEOUS_BLOCK_SENDS, m_block_cull_optimize_distance, m_block_optimize_distance, m_blocks_modified, m_blocks_occ, m_blocks_sending, m_blocks_sent, m_last_camera_dir, m_last_center, m_map_send_completion_timer, m_max_gen_distance, m_max_send_distance, m_max_simul_sends, m_min_time_from_building, m_name, m_nearest_unsent_d, m_nothing_to_send_pause_timer, m_occ_cull, m_time_from_building, MAP_BLOCKSIZE, p(), peer_id, rangelim, and MapBlock::resetUsageTimer().
◆ getPatch()
u8 RemoteClient::getPatch |
( |
| ) |
const |
|
inline |
◆ getSendingCount()
u32 RemoteClient::getSendingCount |
( |
| ) |
const |
|
inline |
◆ getState()
◆ GotBlock()
void RemoteClient::GotBlock |
( |
v3s16 | p | ) |
|
◆ isBlockSent()
bool RemoteClient::isBlockSent |
( |
v3s16 | p | ) |
const |
|
inline |
◆ isMechAllowed()
◆ markMediaSent()
bool RemoteClient::markMediaSent |
( |
const std::string & | name | ) |
|
|
inline |
◆ notifyEvent()
References confirmSerializationVersion(), CS_Active, CS_AwaitingInit2, CS_Created, CS_DefinitionsSent, CS_Denied, CS_Disconnecting, CS_HelloSent, CS_InitDone, CS_Invalid, CS_SudoMode, CSE_AuthAccept, CSE_Disconnect, CSE_GotInit2, CSE_Hello, CSE_SetClientReady, CSE_SetDefinitionsSent, CSE_SetDenied, CSE_SudoLeave, CSE_SudoSuccess, m_state, and resetChosenMech().
◆ PrintInfo()
void RemoteClient::PrintInfo |
( |
std::ostream & | o | ) |
|
|
inline |
◆ ResendBlockIfOnWire()
void RemoteClient::ResendBlockIfOnWire |
( |
v3s16 | p | ) |
|
tell client about this block being modified right now.
this information is required to requeue the block in case it's "on wire" while modification is processed by server
- Parameters
-
p | position of modified block |
References m_blocks_sending, p(), and SetBlockNotSent().
◆ resetChosenMech()
void RemoteClient::resetChosenMech |
( |
| ) |
|
◆ SentBlock()
void RemoteClient::SentBlock |
( |
v3s16 | p | ) |
|
◆ SetBlockNotSent()
void RemoteClient::SetBlockNotSent |
( |
v3s16 | p | ) |
|
◆ SetBlocksNotSent()
void RemoteClient::SetBlocksNotSent |
( |
const std::vector< v3s16 > & | blocks | ) |
|
◆ setCachedAddress()
void RemoteClient::setCachedAddress |
( |
const Address & | addr | ) |
|
|
inline |
◆ setDynamicInfo()
◆ setEncryptedPassword()
void RemoteClient::setEncryptedPassword |
( |
const std::string & | pwd | ) |
|
◆ setLangCode()
void RemoteClient::setLangCode |
( |
const std::string & | code | ) |
|
◆ setName()
void RemoteClient::setName |
( |
const std::string & | name | ) |
|
|
inline |
◆ setPendingSerializationVersion()
void RemoteClient::setPendingSerializationVersion |
( |
u8 | version | ) |
|
|
inline |
◆ setVersionInfo()
void RemoteClient::setVersionInfo |
( |
u8 | major, |
|
|
u8 | minor, |
|
|
u8 | patch, |
|
|
const std::string & | full ) |
◆ uptime()
u64 RemoteClient::uptime |
( |
| ) |
const |
|
inline |
◆ allowed_auth_mechs
u32 RemoteClient::allowed_auth_mechs = 0 |
◆ auth_data
void* RemoteClient::auth_data = nullptr |
◆ chosen_mech
◆ create_player_on_auth_success
bool RemoteClient::create_player_on_auth_success = false |
◆ enc_pwd
std::string RemoteClient::enc_pwd = "" |
◆ m_addr
◆ m_block_cull_optimize_distance
const s16 RemoteClient::m_block_cull_optimize_distance |
|
private |
◆ m_block_optimize_distance
const s16 RemoteClient::m_block_optimize_distance |
|
private |
◆ m_blocks_modified
std::unordered_set<v3s16> RemoteClient::m_blocks_modified |
|
private |
◆ m_blocks_occ
std::unordered_set<v3s16> RemoteClient::m_blocks_occ |
|
private |
◆ m_blocks_sending
std::unordered_map<v3s16, float> RemoteClient::m_blocks_sending |
|
private |
◆ m_blocks_sent
std::unordered_set<v3s16> RemoteClient::m_blocks_sent |
|
private |
◆ m_connection_time
◆ m_dynamic_info
◆ m_excess_gotblocks
u32 RemoteClient::m_excess_gotblocks = 0 |
|
private |
◆ m_full_version
std::string RemoteClient::m_full_version = "unknown" |
|
private |
◆ m_known_objects
std::set<u16> RemoteClient::m_known_objects |
◆ m_lang_code
std::string RemoteClient::m_lang_code |
|
private |
◆ m_last_camera_dir
v3f RemoteClient::m_last_camera_dir |
|
private |
◆ m_last_center
v3s16 RemoteClient::m_last_center |
|
private |
◆ m_map_send_completion_timer
float RemoteClient::m_map_send_completion_timer = 0.0f |
|
private |
◆ m_max_gen_distance
const s16 RemoteClient::m_max_gen_distance |
|
private |
◆ m_max_send_distance
const s16 RemoteClient::m_max_send_distance |
|
private |
◆ m_max_simul_sends
const u16 RemoteClient::m_max_simul_sends |
|
private |
◆ m_media_sent
std::unordered_set<std::string> RemoteClient::m_media_sent |
|
private |
◆ m_min_time_from_building
const float RemoteClient::m_min_time_from_building |
|
private |
◆ m_name
std::string RemoteClient::m_name = "" |
|
private |
◆ m_nearest_unsent_d
s16 RemoteClient::m_nearest_unsent_d = 0 |
|
private |
◆ m_nothing_to_send_pause_timer
float RemoteClient::m_nothing_to_send_pause_timer = 0.0f |
|
private |
◆ m_occ_cull
const bool RemoteClient::m_occ_cull |
|
private |
◆ m_pending_serialization_version
u8 RemoteClient::m_pending_serialization_version |
|
private |
◆ m_state
◆ m_time_from_building
float RemoteClient::m_time_from_building = 9999 |
◆ m_version_major
u8 RemoteClient::m_version_major = 0 |
|
private |
◆ m_version_minor
u8 RemoteClient::m_version_minor = 0 |
|
private |
◆ m_version_patch
u8 RemoteClient::m_version_patch = 0 |
|
private |
◆ net_proto_version
u16 RemoteClient::net_proto_version = 0 |
◆ peer_id
◆ serialization_version
u8 RemoteClient::serialization_version |
The documentation for this class was generated from the following files: