Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
Handler Struct Reference
+ Inheritance diagram for Handler:
+ Collaboration diagram for Handler:

Public Member Functions

 Handler (const char *a_name)
 
void peerAdded (con::IPeer *peer)
 
void deletingPeer (con::IPeer *peer, bool timeout)
 
- Public Member Functions inherited from con::PeerHandler
 PeerHandler ()=default
 
virtual ~PeerHandler ()=default
 

Public Attributes

s32 count = 0
 
u16 last_id = 0
 
const char * name
 

Constructor & Destructor Documentation

◆ Handler()

Handler::Handler ( const char * a_name)
inline

Member Function Documentation

◆ deletingPeer()

void Handler::deletingPeer ( con::IPeer * peer,
bool timeout )
inlinevirtual

Implements con::PeerHandler.

References count, con::IPeer::id, infostream, last_id, and name.

◆ peerAdded()

void Handler::peerAdded ( con::IPeer * peer)
inlinevirtual

Implements con::PeerHandler.

References count, con::IPeer::id, infostream, last_id, and name.

Member Data Documentation

◆ count

s32 Handler::count = 0

◆ last_id

u16 Handler::last_id = 0

◆ name

const char* Handler::name

Referenced by deletingPeer(), and peerAdded().


The documentation for this struct was generated from the following file: