TNet 3  3.0.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
TNet.TNEvents Class Reference

Container class with all the possible notification delegates used by TNet's GameClient. More...

Inheritance diagram for TNet.TNEvents:
TNet.GameClient

Public Member Functions

delegate void OnPing (IPEndPoint ip, int ping)
 
delegate void OnError (string msg)
 
delegate void OnConnect (bool success, string message)
 
delegate void OnDisconnect ()
 
delegate void OnJoinChannel (int channelID, bool success, string message)
 
delegate void OnLeaveChannel (int channelID)
 
delegate void OnLoadLevel (int channelID, string levelName)
 
delegate void OnPlayerJoin (int channelID, Player p)
 
delegate void OnPlayerLeave (int channelID, Player p)
 
delegate void OnRenamePlayer (Player p, string previous)
 
delegate void OnHostChanged (Channel ch)
 
delegate void OnSetServerData (string path, DataNode node)
 
delegate void OnSetChannelData (Channel ch, string path, DataNode node)
 
delegate void OnSetPlayerData (Player p, string path, DataNode node)
 
delegate void OnCreate (int channelID, int creator, uint objID, BinaryReader reader)
 
delegate void OnDestroy (int channelID, uint objID)
 
delegate void OnTransfer (int oldChannelID, int newChannelID, uint oldObjectID, uint newObjectID)
 
delegate void OnLockChannel (int channelID, bool locked)
 
delegate void OnSetAdmin (Player p)
 
delegate void OnForwardedPacket (int channelID, BinaryReader reader)
 

Public Attributes

OnPing onPing
 Ping notification. More...
 
OnError onError
 Error notification. More...
 
OnConnect onConnect
 Connection attempt result indicating success or failure. More...
 
OnDisconnect onDisconnect
 Notification sent after the connection terminates for any reason. More...
 
OnJoinChannel onJoinChannel
 Notification sent when attempting to join a channel, indicating a success or failure. More...
 
OnLeaveChannel onLeaveChannel
 Notification sent when leaving a channel. Also sent just before a disconnect (if inside a channel when it happens). More...
 
OnLoadLevel onLoadLevel
 Notification sent when changing levels. More...
 
OnPlayerJoin onPlayerJoin
 Notification sent when a new player joins the channel. More...
 
OnPlayerLeave onPlayerLeave
 Notification sent when a player leaves the channel. More...
 
OnRenamePlayer onRenamePlayer
 Notification of some player changing their name. More...
 
OnHostChanged onHostChanged
 Notification sent when the channel's host changes. More...
 
OnSetServerData onSetServerData
 Notification sent when the server's data gets changed. More...
 
OnSetChannelData onSetChannelData
 Notification sent when the channel's data gets changed. More...
 
OnSetPlayerData onSetPlayerData
 Notification sent when player data gets changed. More...
 
OnCreate onCreate
 Notification of a new object being created. More...
 
OnDestroy onDestroy
 Notification of the specified object being destroyed. More...
 
OnTransfer onTransfer
 Notification of the specified object being transferred to another channel. More...
 
OnLockChannel onLockChannel
 Callback triggered when the channel becomes locked or unlocked. More...
 
OnSetAdmin onSetAdmin
 Callback triggered when the player gets verified as an administrator. More...
 
OnForwardedPacket onForwardedPacket
 Notification of a client packet arriving. More...
 

Detailed Description

Container class with all the possible notification delegates used by TNet's GameClient.

Member Function Documentation

delegate void TNet.TNEvents.OnConnect ( bool  success,
string  message 
)
delegate void TNet.TNEvents.OnCreate ( int  channelID,
int  creator,
uint  objID,
BinaryReader  reader 
)
delegate void TNet.TNEvents.OnDestroy ( int  channelID,
uint  objID 
)
delegate void TNet.TNEvents.OnDisconnect ( )
delegate void TNet.TNEvents.OnError ( string  msg)
delegate void TNet.TNEvents.OnForwardedPacket ( int  channelID,
BinaryReader  reader 
)
delegate void TNet.TNEvents.OnHostChanged ( Channel  ch)
delegate void TNet.TNEvents.OnJoinChannel ( int  channelID,
bool  success,
string  message 
)
delegate void TNet.TNEvents.OnLeaveChannel ( int  channelID)
delegate void TNet.TNEvents.OnLoadLevel ( int  channelID,
string  levelName 
)
delegate void TNet.TNEvents.OnLockChannel ( int  channelID,
bool  locked 
)
delegate void TNet.TNEvents.OnPing ( IPEndPoint  ip,
int  ping 
)
delegate void TNet.TNEvents.OnPlayerJoin ( int  channelID,
Player  p 
)
delegate void TNet.TNEvents.OnPlayerLeave ( int  channelID,
Player  p 
)
delegate void TNet.TNEvents.OnRenamePlayer ( Player  p,
string  previous 
)
delegate void TNet.TNEvents.OnSetAdmin ( Player  p)
delegate void TNet.TNEvents.OnSetChannelData ( Channel  ch,
string  path,
DataNode  node 
)
delegate void TNet.TNEvents.OnSetPlayerData ( Player  p,
string  path,
DataNode  node 
)
delegate void TNet.TNEvents.OnSetServerData ( string  path,
DataNode  node 
)
delegate void TNet.TNEvents.OnTransfer ( int  oldChannelID,
int  newChannelID,
uint  oldObjectID,
uint  newObjectID 
)

Member Data Documentation

OnConnect TNet.TNEvents.onConnect

Connection attempt result indicating success or failure.

OnCreate TNet.TNEvents.onCreate

Notification of a new object being created.

OnDestroy TNet.TNEvents.onDestroy

Notification of the specified object being destroyed.

OnDisconnect TNet.TNEvents.onDisconnect

Notification sent after the connection terminates for any reason.

OnError TNet.TNEvents.onError

Error notification.

OnForwardedPacket TNet.TNEvents.onForwardedPacket

Notification of a client packet arriving.

OnHostChanged TNet.TNEvents.onHostChanged

Notification sent when the channel's host changes.

OnJoinChannel TNet.TNEvents.onJoinChannel

Notification sent when attempting to join a channel, indicating a success or failure.

OnLeaveChannel TNet.TNEvents.onLeaveChannel

Notification sent when leaving a channel. Also sent just before a disconnect (if inside a channel when it happens).

OnLoadLevel TNet.TNEvents.onLoadLevel

Notification sent when changing levels.

OnLockChannel TNet.TNEvents.onLockChannel

Callback triggered when the channel becomes locked or unlocked.

OnPing TNet.TNEvents.onPing

Ping notification.

OnPlayerJoin TNet.TNEvents.onPlayerJoin

Notification sent when a new player joins the channel.

OnPlayerLeave TNet.TNEvents.onPlayerLeave

Notification sent when a player leaves the channel.

OnRenamePlayer TNet.TNEvents.onRenamePlayer

Notification of some player changing their name.

OnSetAdmin TNet.TNEvents.onSetAdmin

Callback triggered when the player gets verified as an administrator.

OnSetChannelData TNet.TNEvents.onSetChannelData

Notification sent when the channel's data gets changed.

OnSetPlayerData TNet.TNEvents.onSetPlayerData

Notification sent when player data gets changed.

OnSetServerData TNet.TNEvents.onSetServerData

Notification sent when the server's data gets changed.

OnTransfer TNet.TNEvents.onTransfer

Notification of the specified object being transferred to another channel.


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