-
Notifications
You must be signed in to change notification settings - Fork 1
Network Messages
EntranceJew edited this page Oct 8, 2014
·
4 revisions
example_message = {
chan="example_channel", --string name of the signal "channel", directly corresponds to the callback method name.
data={ --table of all data values used by the server
item="hotdog",
x=3,
y=4,
},
client=networkclientnumber, --int reference to the sender's index in server_peerlist
}- chan is the string
-
connected is an acknowledgement to the c-s message
connectthat provides the info necessary for a client to find its place relative to the server.- Arguments
-
clientid
intis the id the client inserver_peerlist. -
inflives
boolis whether or not lives will be limited. -
sharingportals
boolis whether or not all players will share portals. -
infinitetime
boolis whether or not time will be limited. -
checkboxes
tableis a table of the server's checkbox values.
-
connect is the message sent when a client is attempting to connect to the server.
- Arguments
-
nick
stringthe name that a particular client has chosen for themselves.