networking

From Teverse


Properties

className [readonly]

Type: string

ping [readonly]

Type: number

connectionStatus [readonly]

Type: number

me [readonly]

Type: boolean

name [readonly]

Type: string

serverId [readonly]

Type: string

Inherited from baseClass:

name

Type: string
A none unique identifier

className [readonly]

Type: string
The name of the object's class

Methods

toServer

nil networking:toServer()

bind

nil networking:bind()

toAllClients

nil networking:toAllClients()

toClient

nil networking:toClient()

Inherited from baseClass:

getDescendants

table networking:getDescendants()
Returns a table of all descended objects

isContainer

boolean networking:isContainer()

isA

boolean networking:isA(string className)
Returns true if this object is derived from the className given.

destroy

nil networking:destroy()
Locks the object before removing it from the hierarchy. Children will also be destroyed.

getFullName

string networking:getFullName()
Returns a string including ancestor names

constructor

nil networking:constructor()

destroyAllChildren

nil networking:destroyAllChildren()
Invokes the destroy method on each child of this instance.

hasChild

boolean networking:hasChild(string name)
Returns true if this object has a child with the name given

isDescendantOf

boolean networking:isDescendantOf(baseClass ancestor)
Returns true if this object is a descendant of the ancestor object given

describe

nil networking:describe()

clone

variant networking:clone()
Creates and returns a copy of this object

Events

connected

eventListener networking:connected(function())

pingUpdate

eventListener networking:pingUpdate(function())

disconnected

eventListener networking:disconnected(function())

Inherited from baseClass:

changed

eventListener networking:changed(function(string propertyName, variant newValuevariant))
Fired when a property changes

childAdded

eventListener networking:childAdded(function(baseClass child))
Fired when a child is added

childRemoved

eventListener networking:childRemoved(function(baseClass child))
Fired when a child is removed

destroying

eventListener networking:destroying(function())
Fired just before an object is destroyed.

Sub classes

Category derivedFromnetworking not found