Started working on receiving information about other players

This commit is contained in:
Kayne Ruse
2013-05-24 19:21:50 +10:00
parent 0d3a69106f
commit 4c228e0e36
8 changed files with 112 additions and 13 deletions
+22
View File
@@ -50,3 +50,25 @@ Receive:
player update:
PlayerManager.Update(message)
end
-------------------------
--send info about the specified client to all clients
--use this for new connections, movement, etc.
SendClientData(int playerID):
for (clientMap):
Send(it.channel, clientMap[playerID])
end
end
NewClientData := SendClientData
--send all info about the server to the specified client
--send this to new connections
SynchronizeClient(int playerID):
for (clientMap):
Send(clientMap[playerID].channel, it)
end
end