Networked

Bluespess.Component. Networked

Used for components that are sent to the client.

Constructor

new Networked()

Source:

Extends

Members

a

Source:
Inherited From:

atom :Bluespess.Atom

Source:
Inherited From:
The atom this component belongs to
Type:

Methods

add_networked_var(name, on_set)

Source:
Makes the property with the specified name networked.
Parameters:
Name Type Description
name string
on_set function A function that is called when this property gets changed. If it returns falsish, the property does not get set.

(abstract) destroy()

Source:
Inherited From:
Called when the atom this component belongs to is destroyed.

get_networked_vars() → {Object}

Source:
Returns an object with all the networked vars on this component
Returns:
Type
Object