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

Simple container class holding a dataNode with convenient Get and Set functions. More...

Inheritance diagram for TNet.DataNodeContainer:
TNet.Channel TNet.Player TNet.TcpProtocol TNet.TcpPlayer

Public Member Functions

DataNode Set (string path, object val)
 Set the specified value. Note that on the client side only the player's owner should be setting the values. More...
 
DataNode Get (string path)
 Get the specified child within the DataNode. More...
 
Get< T > (string path)
 Get the specified value from the DataNode. More...
 
Get< T > (string path, T defaultVal)
 Get the specified value from the DataNode. More...
 

Public Attributes

DataNode dataNode
 Custom data easily accessible via Get and Set functions. More...
 

Detailed Description

Simple container class holding a dataNode with convenient Get and Set functions.

Member Function Documentation

DataNode TNet.DataNodeContainer.Get ( string  path)

Get the specified child within the DataNode.

T TNet.DataNodeContainer.Get< T > ( string  path)

Get the specified value from the DataNode.

T TNet.DataNodeContainer.Get< T > ( string  path,
defaultVal 
)

Get the specified value from the DataNode.

DataNode TNet.DataNodeContainer.Set ( string  path,
object  val 
)

Set the specified value. Note that on the client side only the player's owner should be setting the values.

Member Data Documentation

DataNode TNet.DataNodeContainer.dataNode

Custom data easily accessible via Get and Set functions.


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