commands.lua 509 B

12345678910111213141516171819202122232425262728
  1. -- List of all possible internal commands.
  2. -- EVERY message is lead by a command byte from to following list.
  3. -- If it's not on this list then it's considered a user command and will be
  4. -- send to the client:receive and server:receive callbacks.
  5. local CMD =
  6. {
  7. -- Connection process:
  8. PLAYERNAME = 1,
  9. PLAYER_AUTHORIZED = 2,
  10. NEW_PLAYER = 3,
  11. AUTHORIZED = 4,
  12. -- Other
  13. USER_VALUE = 5,
  14. PLAYER_LEFT = 6,
  15. KICKED = 7,
  16. AUTHORIZATION_REQUREST = 8,
  17. PING = 9,
  18. PONG = 11,
  19. USER_PINGTIME = 12,
  20. }
  21. return CMD