a munch adventure
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

168 行
3.2 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) => {",
  26. "",
  27. " },",
  28. " \"enter\": (room) => {",
  29. "",
  30. " },",
  31. " \"exit\": (room) => {",
  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) => {",
  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) => {",
  94. " return ${1:true}",
  95. "}",
  96. ""
  97. ],
  98. "description": "Condition"
  99. },
  100. "Hook": {
  101. "prefix": "hook",
  102. "body": [
  103. "(room, exit) => {",
  104. " return ${1:true}",
  105. "}",
  106. ""
  107. ],
  108. "description": "Condition"
  109. },
  110. "Stat": {
  111. "prefix": "stat",
  112. "body": [
  113. "{\"name\": \"$1\", \"type\": \"${2|foo,bar|}\", \"value\": $3, \"max\": $4, \"color\": \"rgb(0,0,0)\" }"
  114. ],
  115. "description": "Stat"
  116. },
  117. "Timer": {
  118. "prefix": "timer",
  119. "body": [
  120. "startTimer({",
  121. " id: \"$1\",",
  122. " func: () => {",
  123. " return true;",
  124. " },",
  125. " delay: $2,",
  126. " loop: $3,",
  127. " classes: [",
  128. "",
  129. " ]",
  130. "});",
  131. ""
  132. ],
  133. "description": "Timer"
  134. },
  135. "Story": {
  136. "prefix": "story",
  137. "body": [
  138. "stories.push({",
  139. " \"id\": \"$1\",",
  140. " \"name\": \"$2\",",
  141. " \"tags\": [",
  142. "",
  143. " ],",
  144. " \"intro\": {",
  145. " \"start\": \"$3\",",
  146. " \"setup\": () => {",
  147. "",
  148. " },",
  149. " \"intro\": () => {",
  150. "",
  151. " }",
  152. " },",
  153. " \"sounds\": [",
  154. "",
  155. " ],",
  156. " \"preload\": [",
  157. "",
  158. " ],",
  159. " \"world\": {",
  160. " ",
  161. " }",
  162. "});",
  163. ""
  164. ],
  165. "description": "Story"
  166. }
  167. }