signatures.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. local signatures = {}
  2. signatures.client = {
  3. [app.net.messages.join] = {{'username', 'string'}, important = true},
  4. [app.net.messages.leave] = {important = true},
  5. [app.net.messages.class] = {{'class', '4bits'}, {'team', '1bit'}, important = true},
  6. [app.net.messages.input] = {
  7. {'tick', '16bits'},
  8. {'w', 'bool'}, {'a', 'bool'}, {'s', 'bool'}, {'d', 'bool'},
  9. {'x', '12bits'}, {'y', '12bits'}, {'l', 'bool'}, {'r', 'bool'},
  10. {'slot', '3bits'}, {'reload', 'bool'},
  11. delta = {{'w', 'a', 's', 'd'}, {'x', 'y'}, 'l', 'r', 'slot', 'reload'}
  12. },
  13. [app.net.messages.chat] = {{'message', 'string'}, important = true}
  14. }
  15. signatures.server = {
  16. [app.net.events.join] = {{'id', '4bits'}, {'username', 'string'}, important = true},
  17. [app.net.events.leave] = {{'id', '4bits'}, {'reason', 'string'}, important = true},
  18. [app.net.events.class] = {{'id', '4bits'}, {'class', '4bits'}, {'team', '1bit'}, important = true},
  19. [app.net.events.sync] = {
  20. {'id', '4bits'},
  21. {'tick', '16bits'},
  22. {'ack', '16bits'},
  23. {'x', '16bits'}, {'y', '16bits'}, {'z', '8bits'},
  24. {'angle', '10bits'},
  25. {'health', '10bits'}, {'shield', '10bits'},
  26. {'weapon', '3bits'}, {'skill', '3bits'},
  27. delta = {'x', 'y', 'z', 'angle', 'health', 'shield', 'weapon', 'skill'}
  28. },
  29. [app.net.events.fire] = {
  30. {'id', '4bits'}, {'slot', '3bits'}, {'mx', '12bits'}, {'my', '12bits'},
  31. delta = {{'mx', 'my'}}
  32. },
  33. [app.net.events.damage] = {{'id', '4bits'}, {'amount', 'string'}, {'from', '4bits'}},
  34. [app.net.events.dead] = {{'id', '4bits'}, {'kill', '4bits'}, {'assists', {{'id', '4bits'}}}, important = true},
  35. [app.net.events.spawn] = {{'id', '4bits'}, important = true},
  36. [app.net.events.chat] = {{'message', 'string'}, important = true},
  37. [app.net.events.prop] = {{'id', '16bits'}, {'x', '16bits'}, {'y', '16bits'}},
  38. [app.net.messages.join] = {{'id', '4bits'}, important = true},
  39. [app.net.messages.snapshot] = {
  40. {'tick', '16bits'},
  41. {'map', 'string'},
  42. {'players', {{'id', '4bits'}, {'username', 'string'}, {'class', '4bits'}, {'team', '1bit'}}},
  43. important = true
  44. }
  45. }
  46. return signatures