Module net

An interface for implementing multiplayer games over the internet.

Net extends BoundObject

Instance Methods

net:authenticate () Authenticate the local player.
net:authenticate () Find matches

Hooks

authenticated (self) Called when Net authenticates successfully.
joined_match (self, match) Called when Net joins a match
find_failed (self) Called when Net fails to find a match

Globals

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:

  • self
joined_match (self, match)
Called when Net joins a match

Parameters:

  • self
  • match
find_failed (self)
Called when Net fails to find a match

Parameters:

  • self

Globals

Globals. Variables that are stored in the global namespace, usually for special purposes.
net
The "singleton" instance of Net.
generated by LDoc 1.3.12