#include "ServerScript.h"
◆ ServerScript()
ServerScript::ServerScript |
( |
const char * |
name | ) |
|
|
protected |
◆ CanPacketReceive()
Called when a (valid) packet is received by a client. The packet object is a copy of the original packet, so reading and modifying it is safe. Make sure to check WorldSession pointer before usage, it might be null in case of auth packets.
- Parameters
-
- Returns
- True if you want to continue receive the packet, false if you want to disallow receive the packet
Referenced by ScriptMgr::CanPacketReceive().
◆ CanPacketSend()
This hook called when a packet is sent to a client. The packet object is a copy of the original packet, so reading and modifying it is safe.
- Parameters
-
- Returns
- True if you want to continue sending the packet, false if you want to disallow sending the packet
Referenced by ScriptMgr::CanPacketSend().
◆ OnNetworkStart()
virtual void ServerScript::OnNetworkStart |
( |
| ) |
|
|
inlinevirtual |
◆ OnNetworkStop()
virtual void ServerScript::OnNetworkStop |
( |
| ) |
|
|
inlinevirtual |
◆ OnSocketClose()
virtual void ServerScript::OnSocketClose |
( |
std::shared_ptr< WorldSocket > |
| ) |
|
|
inlinevirtual |
◆ OnSocketOpen()
virtual void ServerScript::OnSocketOpen |
( |
std::shared_ptr< WorldSocket > |
| ) |
|
|
inlinevirtual |