Difference between revisions of "ClientObject:update"

(Created page with 'Connect to a server. == Function == === Synopsis === <source lang="lua"> clientobject:init( sockettype ) </source> === Arguments === {{param|SocketType|string|"tcp", "udp" or use…')
 
(Correcting the description)
 
Line 1: Line 1:
Connect to a server.
+
Update the client. Checks for ping and data the server is sending to the client.
 +
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
clientobject:init( sockettype )
+
client:update(dt)
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|SocketType|string|"tcp", "udp" or user-defined.}}
+
{{param|number|dt|Delta-time.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 12: Line 13:
 
* [[parent::ClientObject]]
 
* [[parent::ClientObject]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Connect to a server.}}
+
{{#set:Description=Update the client.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|ClientObject:init}}
 
{{i18n|ClientObject:init}}

Latest revision as of 22:27, 6 March 2011

Update the client. Checks for ping and data the server is sending to the client.

Function

Synopsis

client:update(dt)

Arguments

number dt
Delta-time.

Returns

Nothing.

See Also

Other Languages