a munch adventure
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

158 lignes
3.1 KiB

  1. {
  2. // Place your satiate workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
  3. // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
  4. // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
  5. // used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
  6. // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
  7. // Placeholders with the same ids are connected.
  8. // Example:
  9. // "Print to console": {
  10. // "scope": "javascript,typescript",
  11. // "prefix": "log",
  12. // "body": [
  13. // "console.log('$1');",
  14. // "$2"
  15. // ],
  16. // "description": "Log output to console"
  17. // }
  18. "Room": {
  19. "prefix": "room",
  20. "body": [
  21. "\"$1\": {",
  22. " \"id\": \"$1\",",
  23. " \"name\": \"$2\",",
  24. " \"desc\": \"$3\",",
  25. " \"move\": (room, state) => {",
  26. "",
  27. " },",
  28. " \"enter\": (room, state) => {",
  29. "",
  30. " },",
  31. " \"exit\": (room, state) => {",
  32. "",
  33. " },",
  34. " \"actions\": [",
  35. "",
  36. " ],",
  37. " \"exits\": {",
  38. "",
  39. " },",
  40. " \"hooks\": [",
  41. "",
  42. " ],",
  43. " \"data\": {",
  44. " \"stats\": {",
  45. " ",
  46. " }",
  47. " }",
  48. "},"
  49. ],
  50. "description": "Room"
  51. },
  52. "Action": {
  53. "prefix": "action",
  54. "body": [
  55. "{",
  56. " name: \"$1\",",
  57. " desc: \"$2\",",
  58. " execute: (room, state) => {",
  59. "",
  60. " },",
  61. " show: [",
  62. "",
  63. " ],",
  64. " conditions: [",
  65. "",
  66. " ]",
  67. "},"
  68. ],
  69. "description": "Action"
  70. },
  71. "Exit": {
  72. "prefix": "exit",
  73. "body": [
  74. "\"$1\": {",
  75. " \"target\": \"$2\",",
  76. " \"desc\": \"$3\",",
  77. " \"show\": [",
  78. " ",
  79. " ],",
  80. " \"conditions\": [",
  81. "",
  82. " ],",
  83. " \"hooks\" [",
  84. " ",
  85. " ]",
  86. "},"
  87. ],
  88. "description": "Exit"
  89. },
  90. "Condition": {
  91. "prefix": "cond",
  92. "body": [
  93. "(room, state) => {",
  94. " return ${1:true}",
  95. "}",
  96. ""
  97. ],
  98. "description": "Condition"
  99. },
  100. "Stat": {
  101. "prefix": "stat",
  102. "body": [
  103. "{\"name\": \"$1\", \"type\": \"${2|foo,bar|}\", \"value\": $3, \"max\": $4, \"color\": \"rgb(0,0,0)\" }"
  104. ],
  105. "description": "Stat"
  106. },
  107. "Timer": {
  108. "prefix": "timer",
  109. "body": [
  110. "startTimer({",
  111. " id: \"$1\",",
  112. " func: state => {",
  113. " return true;",
  114. " },",
  115. " delay: $2,",
  116. " loop: $3,",
  117. " classes: [",
  118. "",
  119. " ]",
  120. "}, state);",
  121. ""
  122. ],
  123. "description": "Timer"
  124. },
  125. "Story": {
  126. "prefix": "story",
  127. "body": [
  128. "stories.push({",
  129. " \"id\": \"$1\",",
  130. " \"name\": \"$2\",",
  131. " \"tags\": [",
  132. "",
  133. " ],",
  134. " \"intro\": {",
  135. " \"start\": \"$3\",",
  136. " \"setup\": state => {",
  137. "",
  138. " },",
  139. " \"intro\": state => {",
  140. "",
  141. " }",
  142. " },",
  143. " \"sounds\": [",
  144. "",
  145. " ],",
  146. " \"preload\": [",
  147. "",
  148. " ],",
  149. " \"world\": {",
  150. " s",
  151. " }",
  152. "});",
  153. ""
  154. ],
  155. "description": "Story"
  156. }
  157. }