Module net
An interface for implementing multiplayer games over the internet.
Net extends BoundObject
| net |
The "singleton" instance of Net. |
Instance Methods
Instance Methods.
Must be called on an instance of
Class.
e.g.
instance:method("foo")
-
net:authenticate ()
-
Authenticate the local player.
-
net:authenticate ()
-
Find matches
Hooks
Hooks.
Callbacks implemented in subclasses to customize behavior. Hooks are called
on individual instances.
-
authenticated (self)
-
Called when
Net authenticates successfully.
Parameters:
-
joined_match (self, match)
-
Called when
Net joins a match
Parameters:
-
find_failed (self)
-
Called when
Net fails to find a match
Parameters:
Globals
Globals.
Variables that are stored in the global namespace, usually for special
purposes.
-
net
-
The "singleton" instance of
Net.