level01.json 879 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {
  2. devices:[
  3. {
  4. id:"Alice",
  5. ports:1,
  6. x:0.33,
  7. y:0.33,
  8. },
  9. {
  10. id:"Bob",
  11. image:"iphone-1",
  12. ports:1,
  13. x:0.67,
  14. y:0.33
  15. },
  16. {
  17. id:"Carol",
  18. image:"macbook",
  19. ports:1,
  20. x:0.33,
  21. y:0.67,
  22. player:"true"
  23. },
  24. {
  25. id:"Doug",
  26. image:"monitor",
  27. ports:1,
  28. x:0.67,
  29. y:0.67
  30. }
  31. ],
  32. links:[
  33. {
  34. src:"Alice", srcport:0,
  35. dst:"Bob", dstport:0
  36. },
  37. {
  38. src:"Carol", srcport:0,
  39. dst:"Doug", srcport:0
  40. }
  41. ],
  42. timeline:[
  43. {
  44. type:"packet",
  45. at:50,
  46. from:"Bob",
  47. payload:{
  48. network:{srcip:"Bob",dstip:"Alice"}
  49. }
  50. },
  51. {
  52. type:"packet",
  53. at:1050,
  54. from:"Alice",
  55. payload:{
  56. network:{srcip:"Alice",dstip:"Bob"}
  57. }
  58. },
  59. {
  60. type:"packet",
  61. at:2050,
  62. from:"Bob",
  63. payload:{
  64. network:{srcip:"Bob",dstip:"Alice"}
  65. }
  66. }
  67. ],
  68. triggers:[
  69. {
  70. type:"packet",
  71. device:"Doug"
  72. }
  73. ],
  74. nextLevel:2
  75. }