gs2-cdk 1.0.18 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/package.json +1 -1
  2. package/script/model/Namespace.d.ts +1 -0
  3. package/script/model/Namespace.js +5 -0
  4. package/script/model/Namespace.js.map +1 -1
  5. package/script/model/Namespace.ts +7 -0
  6. package/stateMachine/index.d.ts +12 -0
  7. package/stateMachine/index.js +32 -0
  8. package/stateMachine/index.js.map +1 -0
  9. package/stateMachine/index.ts +36 -0
  10. package/stateMachine/integration/ArrayType.d.ts +8 -0
  11. package/stateMachine/integration/ArrayType.js +18 -0
  12. package/stateMachine/integration/ArrayType.js.map +1 -0
  13. package/stateMachine/integration/ArrayType.ts +36 -0
  14. package/stateMachine/integration/BoolType.d.ts +8 -0
  15. package/stateMachine/integration/BoolType.js +18 -0
  16. package/stateMachine/integration/BoolType.js.map +1 -0
  17. package/stateMachine/integration/BoolType.ts +36 -0
  18. package/stateMachine/integration/ErrorEvent.d.ts +4 -0
  19. package/stateMachine/integration/ErrorEvent.js +27 -0
  20. package/stateMachine/integration/ErrorEvent.js.map +1 -0
  21. package/stateMachine/integration/ErrorEvent.ts +24 -0
  22. package/stateMachine/integration/ErrorTask.d.ts +12 -0
  23. package/stateMachine/integration/ErrorTask.js +27 -0
  24. package/stateMachine/integration/ErrorTask.js.map +1 -0
  25. package/stateMachine/integration/ErrorTask.ts +49 -0
  26. package/stateMachine/integration/Event.d.ts +10 -0
  27. package/stateMachine/integration/Event.js +15 -0
  28. package/stateMachine/integration/Event.js.map +1 -0
  29. package/stateMachine/integration/Event.ts +35 -0
  30. package/stateMachine/integration/FloatType.d.ts +8 -0
  31. package/stateMachine/integration/FloatType.js +18 -0
  32. package/stateMachine/integration/FloatType.js.map +1 -0
  33. package/stateMachine/integration/FloatType.ts +36 -0
  34. package/stateMachine/integration/IGslElement.d.ts +3 -0
  35. package/stateMachine/integration/IGslElement.js +3 -0
  36. package/stateMachine/integration/IGslElement.js.map +1 -0
  37. package/stateMachine/integration/IGslElement.ts +18 -0
  38. package/stateMachine/integration/IMermaidElement.d.ts +3 -0
  39. package/stateMachine/integration/IMermaidElement.js +3 -0
  40. package/stateMachine/integration/IMermaidElement.js.map +1 -0
  41. package/stateMachine/integration/IMermaidElement.ts +18 -0
  42. package/stateMachine/integration/ITask.d.ts +8 -0
  43. package/stateMachine/integration/ITask.js +3 -0
  44. package/stateMachine/integration/ITask.js.map +1 -0
  45. package/stateMachine/integration/ITask.ts +24 -0
  46. package/stateMachine/integration/IVariable.d.ts +6 -0
  47. package/stateMachine/integration/IVariable.js +3 -0
  48. package/stateMachine/integration/IVariable.js.map +1 -0
  49. package/stateMachine/integration/IVariable.ts +22 -0
  50. package/stateMachine/integration/InParam.d.ts +6 -0
  51. package/stateMachine/integration/InParam.js +10 -0
  52. package/stateMachine/integration/InParam.js.map +1 -0
  53. package/stateMachine/integration/InParam.ts +26 -0
  54. package/stateMachine/integration/IntType.d.ts +8 -0
  55. package/stateMachine/integration/IntType.js +18 -0
  56. package/stateMachine/integration/IntType.js.map +1 -0
  57. package/stateMachine/integration/IntType.ts +36 -0
  58. package/stateMachine/integration/MapType.d.ts +8 -0
  59. package/stateMachine/integration/MapType.js +18 -0
  60. package/stateMachine/integration/MapType.js.map +1 -0
  61. package/stateMachine/integration/MapType.ts +36 -0
  62. package/stateMachine/integration/OutParam.d.ts +6 -0
  63. package/stateMachine/integration/OutParam.js +10 -0
  64. package/stateMachine/integration/OutParam.js.map +1 -0
  65. package/stateMachine/integration/OutParam.ts +26 -0
  66. package/stateMachine/integration/PassTask.d.ts +11 -0
  67. package/stateMachine/integration/PassTask.js +24 -0
  68. package/stateMachine/integration/PassTask.js.map +1 -0
  69. package/stateMachine/integration/PassTask.ts +45 -0
  70. package/stateMachine/integration/Result.d.ts +7 -0
  71. package/stateMachine/integration/Result.js +11 -0
  72. package/stateMachine/integration/Result.js.map +1 -0
  73. package/stateMachine/integration/Result.ts +28 -0
  74. package/stateMachine/integration/Script.d.ts +5 -0
  75. package/stateMachine/integration/Script.js +25 -0
  76. package/stateMachine/integration/Script.js.map +1 -0
  77. package/stateMachine/integration/Script.ts +24 -0
  78. package/stateMachine/integration/StateMachine.d.ts +17 -0
  79. package/stateMachine/integration/StateMachine.js +83 -0
  80. package/stateMachine/integration/StateMachine.js.map +1 -0
  81. package/stateMachine/integration/StateMachine.ts +116 -0
  82. package/stateMachine/integration/StateMachineDefinition.d.ts +40 -0
  83. package/stateMachine/integration/StateMachineDefinition.js +107 -0
  84. package/stateMachine/integration/StateMachineDefinition.js.map +1 -0
  85. package/stateMachine/integration/StateMachineDefinition.ts +146 -0
  86. package/stateMachine/integration/StringType.d.ts +8 -0
  87. package/stateMachine/integration/StringType.js +18 -0
  88. package/stateMachine/integration/StringType.js.map +1 -0
  89. package/stateMachine/integration/StringType.ts +36 -0
  90. package/stateMachine/integration/SubStateMachineTask.d.ts +17 -0
  91. package/stateMachine/integration/SubStateMachineTask.js +42 -0
  92. package/stateMachine/integration/SubStateMachineTask.js.map +1 -0
  93. package/stateMachine/integration/SubStateMachineTask.ts +71 -0
  94. package/stateMachine/integration/Task.d.ts +19 -0
  95. package/stateMachine/integration/Task.js +63 -0
  96. package/stateMachine/integration/Task.js.map +1 -0
  97. package/stateMachine/integration/Task.ts +98 -0
  98. package/stateMachine/integration/WaitTask.d.ts +15 -0
  99. package/stateMachine/integration/WaitTask.js +49 -0
  100. package/stateMachine/integration/WaitTask.js.map +1 -0
  101. package/stateMachine/integration/WaitTask.ts +75 -0
  102. package/stateMachine/integration/indent.d.ts +1 -0
  103. package/stateMachine/integration/indent.js +22 -0
  104. package/stateMachine/integration/indent.js.map +1 -0
  105. package/stateMachine/integration/indent.ts +18 -0
  106. package/stateMachine/model/Namespace.d.ts +25 -0
  107. package/stateMachine/model/Namespace.js +89 -0
  108. package/stateMachine/model/Namespace.js.map +1 -0
  109. package/stateMachine/model/Namespace.ts +140 -0
  110. package/stateMachine/model/StackEntry.d.ts +9 -0
  111. package/stateMachine/model/StackEntry.js +20 -0
  112. package/stateMachine/model/StackEntry.js.map +1 -0
  113. package/stateMachine/model/StackEntry.ts +44 -0
  114. package/stateMachine/model/StateMachineMaster.d.ts +18 -0
  115. package/stateMachine/model/StateMachineMaster.js +60 -0
  116. package/stateMachine/model/StateMachineMaster.js.map +1 -0
  117. package/stateMachine/model/StateMachineMaster.ts +97 -0
  118. package/stateMachine/model/Variable.d.ts +9 -0
  119. package/stateMachine/model/Variable.js +20 -0
  120. package/stateMachine/model/Variable.js.map +1 -0
  121. package/stateMachine/model/Variable.ts +44 -0
  122. package/stateMachine/model/index.d.ts +9 -0
  123. package/stateMachine/model/index.js +28 -0
  124. package/stateMachine/model/index.js.map +1 -0
  125. package/stateMachine/model/index.ts +34 -0
  126. package/stateMachine/model/options/NamespaceOptions.d.ts +10 -0
  127. package/stateMachine/model/options/NamespaceOptions.js +3 -0
  128. package/stateMachine/model/options/NamespaceOptions.js.map +1 -0
  129. package/stateMachine/model/options/NamespaceOptions.ts +27 -0
  130. package/stateMachine/model/options/StackEntryOptions.d.ts +2 -0
  131. package/stateMachine/model/options/StackEntryOptions.js +18 -0
  132. package/stateMachine/model/options/StackEntryOptions.js.map +1 -0
  133. package/stateMachine/model/options/StackEntryOptions.ts +19 -0
  134. package/stateMachine/model/options/StateMachineMasterOptions.d.ts +2 -0
  135. package/stateMachine/model/options/StateMachineMasterOptions.js +18 -0
  136. package/stateMachine/model/options/StateMachineMasterOptions.js.map +1 -0
  137. package/stateMachine/model/options/StateMachineMasterOptions.ts +19 -0
  138. package/stateMachine/model/options/VariableOptions.d.ts +2 -0
  139. package/stateMachine/model/options/VariableOptions.js +18 -0
  140. package/stateMachine/model/options/VariableOptions.js.map +1 -0
  141. package/stateMachine/model/options/VariableOptions.ts +19 -0
  142. package/stateMachine/ref/NamespaceRef.d.ts +7 -0
  143. package/stateMachine/ref/NamespaceRef.js +40 -0
  144. package/stateMachine/ref/NamespaceRef.js.map +1 -0
  145. package/stateMachine/ref/NamespaceRef.ts +61 -0
  146. package/stateMachine/ref/StateMachineMasterRef.d.ts +6 -0
  147. package/stateMachine/ref/StateMachineMasterRef.js +40 -0
  148. package/stateMachine/ref/StateMachineMasterRef.js.map +1 -0
  149. package/stateMachine/ref/StateMachineMasterRef.ts +54 -0
  150. package/stateMachine/ref/index.d.ts +3 -0
  151. package/stateMachine/ref/index.js +24 -0
  152. package/stateMachine/ref/index.js.map +1 -0
  153. package/stateMachine/ref/index.ts +22 -0
  154. package/stateMachine/stampSheet/StartStateMachineByUserId.d.ts +4 -0
  155. package/stateMachine/stampSheet/StartStateMachineByUserId.js +30 -0
  156. package/stateMachine/stampSheet/StartStateMachineByUserId.js.map +1 -0
  157. package/stateMachine/stampSheet/StartStateMachineByUserId.ts +39 -0
  158. package/stateMachine/stampSheet/index.d.ts +2 -0
  159. package/stateMachine/stampSheet/index.js +22 -0
  160. package/stateMachine/stampSheet/index.js.map +1 -0
  161. package/stateMachine/stampSheet/index.ts +20 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -15,4 +15,5 @@ export default class Namespace extends CdkResource {
15
15
  };
16
16
  ref(): NamespaceRef;
17
17
  getAttrNamespaceId(): GetAttr;
18
+ getName(): string;
18
19
  }
@@ -13,6 +13,8 @@
13
13
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
14
  * express or implied. See the License for the specific language governing
15
15
  * permissions and limitations under the License.
16
+ *
17
+ * deny overwrite
16
18
  */
17
19
  Object.defineProperty(exports, "__esModule", { value: true });
18
20
  const tslib_1 = require("tslib");
@@ -57,6 +59,9 @@ class Namespace extends model_1.CdkResource {
57
59
  getAttrNamespaceId() {
58
60
  return new func_1.GetAttr(null, null, "Item.NamespaceId");
59
61
  }
62
+ getName() {
63
+ return this.name;
64
+ }
60
65
  }
61
66
  exports.default = Namespace;
62
67
  //# sourceMappingURL=Namespace.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAGxC,+EAA+C;AAI/C,MAAqB,SAAU,SAAQ,mBAAW;IAM9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,mBAAmB,GAAG,IAAI,CAC7B,CAAC;QAVW,gBAAW,GAAgB,IAAI,CAAC;QAChC,eAAU,GAAoB,IAAI,CAAC;QAWhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAC9C,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAGM,aAAa;QAEhB,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,YAAY;QAEf,OAAO,wBAAwB,CAAC;IACpC,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,IAAI,EACJ,kBAAkB,CACrB,CAAC;IACN,CAAC;CACJ;AApED,4BAoEC"}
1
+ {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAGxC,+EAA+C;AAI/C,MAAqB,SAAU,SAAQ,mBAAW;IAM9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,mBAAmB,GAAG,IAAI,CAC7B,CAAC;QAVW,gBAAW,GAAgB,IAAI,CAAC;QAChC,eAAU,GAAoB,IAAI,CAAC;QAWhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAC9C,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAGM,aAAa;QAEhB,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,YAAY;QAEf,OAAO,wBAAwB,CAAC;IACpC,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,IAAI,EACJ,kBAAkB,CACrB,CAAC;IACN,CAAC;IAEM,OAAO;QAEV,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;CACJ;AAzED,4BAyEC"}
@@ -12,6 +12,8 @@
12
12
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
13
  * express or implied. See the License for the specific language governing
14
14
  * permissions and limitations under the License.
15
+ *
16
+ * deny overwrite
15
17
  */
16
18
 
17
19
  import {CdkResource, Stack} from "../../core/model";
@@ -90,4 +92,9 @@ export default class Namespace extends CdkResource {
90
92
  "Item.NamespaceId",
91
93
  );
92
94
  }
95
+
96
+ public getName(
97
+ ): string {
98
+ return this.name;
99
+ }
93
100
  }
@@ -0,0 +1,12 @@
1
+ import * as model from "./model";
2
+ import * as ref from "./ref";
3
+ import * as stampSheet from "./stampSheet";
4
+ import { NamespaceRef } from "./ref";
5
+ declare function namespace(namespaceName: string): NamespaceRef;
6
+ declare const _default: {
7
+ model: typeof model;
8
+ ref: typeof ref;
9
+ stampSheet: typeof stampSheet;
10
+ namespace: typeof namespace;
11
+ };
12
+ export default _default;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
4
+ * Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License").
7
+ * You may not use this file except in compliance with the License.
8
+ * A copy of the License is located at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed
13
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const tslib_1 = require("tslib");
19
+ const model = tslib_1.__importStar(require("./model"));
20
+ const ref = tslib_1.__importStar(require("./ref"));
21
+ const stampSheet = tslib_1.__importStar(require("./stampSheet"));
22
+ const ref_1 = require("./ref");
23
+ function namespace(namespaceName) {
24
+ return new ref_1.NamespaceRef(namespaceName);
25
+ }
26
+ exports.default = {
27
+ model,
28
+ ref,
29
+ stampSheet,
30
+ namespace,
31
+ };
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,uDAAiC;AACjC,mDAA6B;AAC7B,iEAA2C;AAC3C,+BAAqC;AAGrC,SAAS,SAAS,CACd,aAAqB;IAErB,OAAO,IAAI,kBAAY,CACnB,aAAa,CAChB,CAAC;AACN,CAAC;AAED,kBAAe;IACX,KAAK;IACL,GAAG;IACH,UAAU;IACV,SAAS;CACZ,CAAC"}
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+ import * as model from "./model";
18
+ import * as ref from "./ref";
19
+ import * as stampSheet from "./stampSheet";
20
+ import { NamespaceRef } from "./ref";
21
+
22
+
23
+ function namespace(
24
+ namespaceName: string,
25
+ ): NamespaceRef {
26
+ return new NamespaceRef(
27
+ namespaceName,
28
+ );
29
+ }
30
+
31
+ export default {
32
+ model,
33
+ ref,
34
+ stampSheet,
35
+ namespace,
36
+ };
@@ -0,0 +1,8 @@
1
+ import IVariable from "./IVariable";
2
+ export default class ArrayType implements IVariable {
3
+ private name;
4
+ constructor(name: string);
5
+ getName(): string;
6
+ getTypeName(): string;
7
+ gsl(): string;
8
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class ArrayType {
4
+ constructor(name) {
5
+ this.name = name;
6
+ }
7
+ getName() {
8
+ return this.name;
9
+ }
10
+ getTypeName() {
11
+ return "array";
12
+ }
13
+ gsl() {
14
+ return `${this.getTypeName()} ${this.getName()}`;
15
+ }
16
+ }
17
+ exports.default = ArrayType;
18
+ //# sourceMappingURL=ArrayType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArrayType.js","sourceRoot":"","sources":["ArrayType.ts"],"names":[],"mappings":";;AAiBA,MAAqB,SAAS;IAG1B,YAAY,IAAY;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,OAAO;QACH,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,WAAW;QACP,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,GAAG;QACC,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;IACrD,CAAC;CACJ;AAlBD,4BAkBC"}
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import IVariable from "./IVariable";
17
+
18
+ export default class ArrayType implements IVariable {
19
+ private name: string;
20
+
21
+ constructor(name: string) {
22
+ this.name = name;
23
+ }
24
+
25
+ getName() {
26
+ return this.name;
27
+ }
28
+
29
+ getTypeName() {
30
+ return "array";
31
+ }
32
+
33
+ gsl(): string {
34
+ return `${this.getTypeName()} ${this.getName()}`;
35
+ }
36
+ }
@@ -0,0 +1,8 @@
1
+ import IVariable from "./IVariable";
2
+ export default class BoolType implements IVariable {
3
+ private name;
4
+ constructor(name: string);
5
+ getName(): string;
6
+ getTypeName(): string;
7
+ gsl(): string;
8
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class BoolType {
4
+ constructor(name) {
5
+ this.name = name;
6
+ }
7
+ getName() {
8
+ return this.name;
9
+ }
10
+ getTypeName() {
11
+ return "bool";
12
+ }
13
+ gsl() {
14
+ return `${this.getTypeName()} ${this.getName()}`;
15
+ }
16
+ }
17
+ exports.default = BoolType;
18
+ //# sourceMappingURL=BoolType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoolType.js","sourceRoot":"","sources":["BoolType.ts"],"names":[],"mappings":";;AAiBA,MAAqB,QAAQ;IAGzB,YAAY,IAAY;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,OAAO;QACH,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,WAAW;QACP,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,GAAG;QACC,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;IACrD,CAAC;CACJ;AAlBD,2BAkBC"}
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import IVariable from "./IVariable";
17
+
18
+ export default class BoolType implements IVariable {
19
+ private name: string;
20
+
21
+ constructor(name: string) {
22
+ this.name = name;
23
+ }
24
+
25
+ getName() {
26
+ return this.name;
27
+ }
28
+
29
+ getTypeName() {
30
+ return "bool";
31
+ }
32
+
33
+ gsl(): string {
34
+ return `${this.getTypeName()} ${this.getName()}`;
35
+ }
36
+ }
@@ -0,0 +1,4 @@
1
+ import Event from "./Event";
2
+ export default class ErrorEvent extends Event {
3
+ constructor(nextTaskName: string);
4
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ /*
5
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
6
+ * Reserved.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License").
9
+ * You may not use this file except in compliance with the License.
10
+ * A copy of the License is located at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * or in the "license" file accompanying this file. This file is distributed
15
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
16
+ * express or implied. See the License for the specific language governing
17
+ * permissions and limitations under the License.
18
+ */
19
+ const Event_1 = tslib_1.__importDefault(require("./Event"));
20
+ const StringType_1 = tslib_1.__importDefault(require("./StringType"));
21
+ class ErrorEvent extends Event_1.default {
22
+ constructor(nextTaskName) {
23
+ super("Event", [new StringType_1.default("reason")], nextTaskName);
24
+ }
25
+ }
26
+ exports.default = ErrorEvent;
27
+ //# sourceMappingURL=ErrorEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorEvent.js","sourceRoot":"","sources":["ErrorEvent.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4DAA4B;AAC5B,sEAAsC;AAEtC,MAAqB,UAAW,SAAQ,eAAK;IAEzC,YAAY,YAAoB;QAC5B,KAAK,CAAC,OAAO,EAAE,CAAC,IAAI,oBAAU,CAAC,QAAQ,CAAC,CAAC,EAAE,YAAY,CAAC,CAAA;IAC5D,CAAC;CACJ;AALD,6BAKC"}
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import Event from "./Event";
17
+ import StringType from "./StringType";
18
+
19
+ export default class ErrorEvent extends Event {
20
+
21
+ constructor(nextTaskName: string) {
22
+ super("Event", [new StringType("reason")], nextTaskName)
23
+ }
24
+ }
@@ -0,0 +1,12 @@
1
+ import ITask from "./ITask";
2
+ import Event from "./Event";
3
+ export default class ErrorTask implements ITask {
4
+ private name;
5
+ private arguments;
6
+ constructor(name: string);
7
+ getName(): string;
8
+ transition(event: Event): this;
9
+ getEvents(): Event[];
10
+ gsl(): string;
11
+ mermaid(): string;
12
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const StringType_1 = tslib_1.__importDefault(require("./StringType"));
5
+ class ErrorTask {
6
+ constructor(name) {
7
+ this.name = name;
8
+ this.arguments = [new StringType_1.default("reason")];
9
+ }
10
+ getName() {
11
+ return this.name;
12
+ }
13
+ transition(event) {
14
+ return this;
15
+ }
16
+ getEvents() {
17
+ return [];
18
+ }
19
+ gsl() {
20
+ return `ErrorTask ${this.name}(string reason);\n\n`;
21
+ }
22
+ mermaid() {
23
+ return "";
24
+ }
25
+ }
26
+ exports.default = ErrorTask;
27
+ //# sourceMappingURL=ErrorTask.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorTask.js","sourceRoot":"","sources":["ErrorTask.ts"],"names":[],"mappings":";;;AAiBA,sEAAsC;AAGtC,MAAqB,SAAS;IAI1B,YAAY,IAAY;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,oBAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChD,CAAC;IAED,OAAO;QACH,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,UAAU,CAAC,KAAY;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,SAAS;QACL,OAAO,EAAE,CAAC;IACd,CAAC;IAED,GAAG;QACC,OAAO,aAAa,IAAI,CAAC,IAAI,sBAAsB,CAAC;IACxD,CAAC;IAED,OAAO;QACH,OAAO,EAAE,CAAC;IACd,CAAC;CACJ;AA5BD,4BA4BC"}
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import ITask from "./ITask";
17
+ import IVariable from "./IVariable";
18
+ import StringType from "./StringType";
19
+ import Event from "./Event";
20
+
21
+ export default class ErrorTask implements ITask {
22
+ private name: string;
23
+ private arguments: IVariable[];
24
+
25
+ constructor(name: string) {
26
+ this.name = name;
27
+ this.arguments = [new StringType("reason")];
28
+ }
29
+
30
+ getName(): string {
31
+ return this.name;
32
+ }
33
+
34
+ transition(event: Event): this {
35
+ return this;
36
+ }
37
+
38
+ getEvents(): Event[] {
39
+ return [];
40
+ }
41
+
42
+ gsl(): string {
43
+ return `ErrorTask ${this.name}(string reason);\n\n`;
44
+ }
45
+
46
+ mermaid(): string {
47
+ return "";
48
+ }
49
+ }
@@ -0,0 +1,10 @@
1
+ import IGslElement from "./IGslElement";
2
+ import IVariable from "./IVariable";
3
+ export default class Event implements IGslElement {
4
+ name: string;
5
+ arguments: IVariable[];
6
+ fromTaskName: string;
7
+ nextTaskName: string;
8
+ constructor(name: string, args: IVariable[], nextTaskName: string);
9
+ gsl(): string;
10
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class Event {
4
+ constructor(name, args, nextTaskName) {
5
+ this.name = name;
6
+ this.arguments = args;
7
+ this.nextTaskName = nextTaskName;
8
+ this.fromTaskName = "";
9
+ }
10
+ gsl() {
11
+ return `Transition ${this.fromTaskName} handling ${this.name} -> ${this.nextTaskName};\n`;
12
+ }
13
+ }
14
+ exports.default = Event;
15
+ //# sourceMappingURL=Event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Event.js","sourceRoot":"","sources":["Event.ts"],"names":[],"mappings":";;AAkBA,MAAqB,KAAK;IAMtB,YAAY,IAAY,EAAE,IAAiB,EAAE,YAAoB;QAC7D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IAC3B,CAAC;IAED,GAAG;QACC,OAAO,cAAc,IAAI,CAAC,YAAY,aAAa,IAAI,CAAC,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,CAAC;IAC9F,CAAC;CACJ;AAhBD,wBAgBC"}
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import IGslElement from "./IGslElement";
17
+ import IVariable from "./IVariable";
18
+
19
+ export default class Event implements IGslElement {
20
+ name: string;
21
+ arguments: IVariable[];
22
+ fromTaskName: string;
23
+ nextTaskName: string;
24
+
25
+ constructor(name: string, args: IVariable[], nextTaskName: string) {
26
+ this.name = name;
27
+ this.arguments = args;
28
+ this.nextTaskName = nextTaskName;
29
+ this.fromTaskName = "";
30
+ }
31
+
32
+ gsl(): string {
33
+ return `Transition ${this.fromTaskName} handling ${this.name} -> ${this.nextTaskName};\n`;
34
+ }
35
+ }
@@ -0,0 +1,8 @@
1
+ import IVariable from "./IVariable";
2
+ export default class FloatType implements IVariable {
3
+ private name;
4
+ constructor(name: string);
5
+ getName(): string;
6
+ getTypeName(): string;
7
+ gsl(): string;
8
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class FloatType {
4
+ constructor(name) {
5
+ this.name = name;
6
+ }
7
+ getName() {
8
+ return this.name;
9
+ }
10
+ getTypeName() {
11
+ return "float";
12
+ }
13
+ gsl() {
14
+ return `${this.getTypeName()} ${this.getName()}`;
15
+ }
16
+ }
17
+ exports.default = FloatType;
18
+ //# sourceMappingURL=FloatType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FloatType.js","sourceRoot":"","sources":["FloatType.ts"],"names":[],"mappings":";;AAiBA,MAAqB,SAAS;IAG1B,YAAY,IAAY;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,OAAO;QACH,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,WAAW;QACP,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,GAAG;QACC,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;IACrD,CAAC;CACJ;AAlBD,4BAkBC"}
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import IVariable from "./IVariable";
17
+
18
+ export default class FloatType implements IVariable {
19
+ private name: string;
20
+
21
+ constructor(name: string) {
22
+ this.name = name;
23
+ }
24
+
25
+ getName() {
26
+ return this.name;
27
+ }
28
+
29
+ getTypeName() {
30
+ return "float";
31
+ }
32
+
33
+ gsl(): string {
34
+ return `${this.getTypeName()} ${this.getName()}`;
35
+ }
36
+ }
@@ -0,0 +1,3 @@
1
+ export default interface IGslElement {
2
+ gsl(): string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IGslElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IGslElement.js","sourceRoot":"","sources":["IGslElement.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ export default interface IGslElement {
17
+ gsl(): string;
18
+ }
@@ -0,0 +1,3 @@
1
+ export default interface IMermaidElement {
2
+ mermaid(): string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IMermaidElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMermaidElement.js","sourceRoot":"","sources":["IMermaidElement.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ export default interface IMermaidElement {
17
+ mermaid(): string;
18
+ }