|
| | MockServer (const std::string &path_world="fakepath") |
| |
| void | createScripting () |
| |
| void | start ()=delete |
| |
| void | stop ()=delete |
| |
| | Server (const std::string &path_world, const SubgameSpec &gamespec, bool simple_singleplayer_mode, Address bind_addr, bool dedicated, ChatInterface *iface=nullptr, std::string *shutdown_errmsg=nullptr) |
| |
| | ~Server () |
| |
| | DISABLE_CLASS_COPY (Server) |
| |
| void | start () |
| |
| void | stop () |
| |
| void | step () |
| |
| void | AsyncRunStep (float dtime, bool initial_step=false) |
| |
| void | Receive (float min_time) |
| | Receive and process all incoming packets.
|
| |
| void | yieldToOtherThreads (float dtime) |
| |
| PlayerSAO * | StageTwoClientInit (session_t peer_id) |
| |
| void | handleCommand (NetworkPacket *pkt) |
| |
| void | handleCommand_Null (NetworkPacket *pkt) |
| |
| void | handleCommand_Deprecated (NetworkPacket *pkt) |
| |
| void | handleCommand_Init (NetworkPacket *pkt) |
| |
| void | handleCommand_Init2 (NetworkPacket *pkt) |
| |
| void | handleCommand_ModChannelJoin (NetworkPacket *pkt) |
| |
| void | handleCommand_ModChannelLeave (NetworkPacket *pkt) |
| |
| void | handleCommand_ModChannelMsg (NetworkPacket *pkt) |
| |
| void | handleCommand_RequestMedia (NetworkPacket *pkt) |
| |
| void | handleCommand_ClientReady (NetworkPacket *pkt) |
| |
| void | handleCommand_GotBlocks (NetworkPacket *pkt) |
| |
| void | handleCommand_PlayerPos (NetworkPacket *pkt) |
| |
| void | handleCommand_DeletedBlocks (NetworkPacket *pkt) |
| |
| void | handleCommand_InventoryAction (NetworkPacket *pkt) |
| |
| void | handleCommand_ChatMessage (NetworkPacket *pkt) |
| |
| void | handleCommand_Damage (NetworkPacket *pkt) |
| |
| void | handleCommand_PlayerItem (NetworkPacket *pkt) |
| |
| void | handleCommand_Interact (NetworkPacket *pkt) |
| |
| void | handleCommand_RemovedSounds (NetworkPacket *pkt) |
| |
| void | handleCommand_NodeMetaFields (NetworkPacket *pkt) |
| |
| void | handleCommand_InventoryFields (NetworkPacket *pkt) |
| |
| void | handleCommand_FirstSrp (NetworkPacket *pkt) |
| |
| void | handleCommand_SrpBytesA (NetworkPacket *pkt) |
| |
| void | handleCommand_SrpBytesM (NetworkPacket *pkt) |
| |
| void | handleCommand_HaveMedia (NetworkPacket *pkt) |
| |
| void | handleCommand_UpdateClientInfo (NetworkPacket *pkt) |
| |
| void | ProcessData (NetworkPacket *pkt) |
| |
| void | Send (NetworkPacket *pkt) |
| |
| void | Send (session_t peer_id, NetworkPacket *pkt) |
| |
| void | process_PlayerPos (RemotePlayer *player, PlayerSAO *playersao, NetworkPacket *pkt) |
| |
| void | setTimeOfDay (u32 time) |
| |
| void | onMapEditEvent (const MapEditEvent &event) |
| |
| std::string | getStatusString () |
| |
| double | getUptime () const |
| |
| bool | isShutdownRequested () const |
| |
| void | requestShutdown (const std::string &msg, bool reconnect, float delay=0.0f) |
| |
| s32 | playSound (ServerPlayingSound ¶ms, bool ephemeral=false) |
| |
| void | stopSound (s32 handle) |
| |
| void | fadeSound (s32 handle, float step, float gain) |
| |
| std::set< std::string > | getPlayerEffectivePrivs (const std::string &name) |
| |
| bool | checkPriv (const std::string &name, const std::string &priv) |
| |
| void | reportPrivsModified (const std::string &name="") |
| |
| void | reportInventoryFormspecModified (const std::string &name) |
| |
| void | reportFormspecPrependModified (const std::string &name) |
| |
| void | setIpBanned (const std::string &ip, const std::string &name) |
| |
| void | unsetIpBanned (const std::string &ip_or_name) |
| |
| std::string | getBanDescription (const std::string &ip_or_name) |
| |
| bool | denyIfBanned (session_t peer_id) |
| |
| void | notifyPlayer (const char *name, const std::wstring &msg) |
| |
| void | notifyPlayers (const std::wstring &msg) |
| |
| void | spawnParticle (const std::string &playername, const ParticleParameters &p) |
| |
| u32 | addParticleSpawner (const ParticleSpawnerParameters &p, ServerActiveObject *attached, const std::string &playername) |
| |
| void | deleteParticleSpawner (const std::string &playername, u32 id) |
| |
| bool | dynamicAddMedia (const DynamicMediaArgs &args) |
| |
| ServerInventoryManager * | getInventoryMgr () const |
| |
| void | sendDetachedInventory (Inventory *inventory, const std::string &name, session_t peer_id) |
| |
| ServerScripting * | getScriptIface () |
| |
| bool | rollbackRevertActions (const std::list< RollbackAction > &actions, std::list< std::string > *log) |
| |
| virtual IItemDefManager * | getItemDefManager () |
| |
| virtual const NodeDefManager * | getNodeDefManager () |
| |
| virtual ICraftDefManager * | getCraftDefManager () |
| |
| virtual u16 | allocateUnknownNodeId (const std::string &name) |
| |
| IRollbackManager * | getRollbackManager () |
| |
| virtual EmergeManager * | getEmergeManager () |
| |
| virtual ModStorageDatabase * | getModStorageDatabase () |
| |
| IWritableItemDefManager * | getWritableItemDefManager () |
| |
| NodeDefManager * | getWritableNodeDefManager () |
| |
| IWritableCraftDefManager * | getWritableCraftDefManager () |
| |
| virtual const std::vector< ModSpec > & | getMods () const |
| |
| virtual const ModSpec * | getModSpec (const std::string &modname) const |
| |
| virtual const SubgameSpec * | getGameSpec () const |
| |
| virtual std::string | getWorldPath () const |
| |
| virtual std::string | getModDataPath () const |
| |
| virtual ModIPCStore * | getModIPCStore () |
| |
| bool | isSingleplayer () const |
| |
| void | setStepSettings (StepSettings spdata) |
| |
| StepSettings | getStepSettings () |
| |
| void | setAsyncFatalError (const std::string &error) |
| |
| void | setAsyncFatalError (const LuaError &e) |
| |
| void | addShutdownError (const ModError &e) |
| |
| bool | showFormspec (const char *name, const std::string &formspec, const std::string &formname) |
| |
| Map & | getMap () |
| |
| ServerEnvironment & | getEnv () |
| |
| v3f | findSpawnPos () |
| |
| u32 | hudAdd (RemotePlayer *player, HudElement *element) |
| |
| bool | hudRemove (RemotePlayer *player, u32 id) |
| |
| bool | hudChange (RemotePlayer *player, u32 id, HudElementStat stat, void *value) |
| |
| bool | hudSetFlags (RemotePlayer *player, u32 flags, u32 mask) |
| |
| bool | hudSetHotbarItemcount (RemotePlayer *player, s32 hotbar_itemcount) |
| |
| void | hudSetHotbarImage (RemotePlayer *player, const std::string &name) |
| |
| void | hudSetHotbarSelectedImage (RemotePlayer *player, const std::string &name) |
| |
| Address | getPeerAddress (session_t peer_id) |
| |
| void | setLocalPlayerAnimations (RemotePlayer *player, v2f animation_frames[4], f32 frame_speed) |
| |
| void | setPlayerEyeOffset (RemotePlayer *player, v3f first, v3f third, v3f third_front) |
| |
| void | setSky (RemotePlayer *player, const SkyboxParams ¶ms) |
| |
| void | setSun (RemotePlayer *player, const SunParams ¶ms) |
| |
| void | setMoon (RemotePlayer *player, const MoonParams ¶ms) |
| |
| void | setStars (RemotePlayer *player, const StarParams ¶ms) |
| |
| void | setClouds (RemotePlayer *player, const CloudParams ¶ms) |
| |
| void | overrideDayNightRatio (RemotePlayer *player, bool do_override, float brightness) |
| |
| void | setLighting (RemotePlayer *player, const Lighting &lighting) |
| |
| void | peerAdded (con::IPeer *peer) |
| |
| void | deletingPeer (con::IPeer *peer, bool timeout) |
| |
| void | DenySudoAccess (session_t peer_id) |
| |
| void | DenyAccess (session_t peer_id, AccessDeniedCode reason, std::string_view custom_reason="", bool reconnect=false) |
| |
| void | kickAllPlayers (AccessDeniedCode reason, const std::string &str_reason, bool reconnect) |
| |
| void | acceptAuth (session_t peer_id, bool forSudoMode) |
| |
| void | DisconnectPeer (session_t peer_id) |
| |
| bool | getClientConInfo (session_t peer_id, con::rtt_stat_type type, float *retval) |
| |
| bool | getClientInfo (session_t peer_id, ClientInfo &ret) |
| |
| const ClientDynamicInfo * | getClientDynamicInfo (session_t peer_id) |
| |
| void | printToConsoleOnly (const std::string &text) |
| |
| void | HandlePlayerHPChange (PlayerSAO *sao, const PlayerHPChangeReason &reason) |
| |
| void | SendPlayerHP (PlayerSAO *sao, bool effect) |
| |
| void | SendPlayerBreath (PlayerSAO *sao) |
| |
| void | SendInventory (RemotePlayer *player, bool incremental) |
| |
| void | SendMovePlayer (PlayerSAO *sao) |
| |
| void | SendMovePlayerRel (session_t peer_id, const v3f &added_pos) |
| |
| void | SendPlayerSpeed (session_t peer_id, const v3f &added_vel) |
| |
| void | SendPlayerFov (session_t peer_id) |
| |
| void | SendMinimapModes (session_t peer_id, std::vector< MinimapMode > &modes, size_t wanted_mode) |
| |
| void | sendDetachedInventories (session_t peer_id, bool incremental) |
| |
| bool | joinModChannel (const std::string &channel) |
| |
| bool | leaveModChannel (const std::string &channel) |
| |
| bool | sendModChannelMessage (const std::string &channel, const std::string &message) |
| |
| ModChannel * | getModChannel (const std::string &channel) |
| |
| bool | SendBlock (session_t peer_id, const v3s16 &blockpos) |
| |
| Translations * | getTranslationLanguage (const std::string &lang_code) |
| |
| std::unordered_map< std::string, std::string > | getMediaList () |
| |
Public Member Functions inherited from con::PeerHandler |
| | PeerHandler ()=default |
| |
| virtual | ~PeerHandler ()=default |
| |
| IItemDefManager * | idef () |
| |
| const NodeDefManager * | ndef () |
| |
| ICraftDefManager * | cdef () |
| |
| IRollbackManager * | rollback () |
| |