@rpgjs/server 5.0.0-alpha.11 → 5.0.0-alpha.12

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpgjs/server",
3
- "version": "5.0.0-alpha.11",
3
+ "version": "5.0.0-alpha.12",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "publishConfig": {
@@ -11,7 +11,7 @@
11
11
  "license": "MIT",
12
12
  "description": "",
13
13
  "dependencies": {
14
- "@rpgjs/common": "5.0.0-alpha.11",
14
+ "@rpgjs/common": "5.0.0-alpha.12",
15
15
  "@rpgjs/database": "^4.3.0",
16
16
  "@signe/di": "^2.4.0",
17
17
  "@signe/reactive": "^2.4.0",
@@ -18,7 +18,11 @@ export interface DialogOptions {
18
18
  autoClose?: boolean,
19
19
  tranparent?: boolean,
20
20
  typewriterEffect?: boolean,
21
- talkWith?: RpgPlayer
21
+ talkWith?: RpgPlayer,
22
+ face?: {
23
+ id: string,
24
+ expression: string
25
+ },
22
26
  }
23
27
 
24
28
  export class DialogGui extends Gui {
@@ -47,7 +51,8 @@ export class DialogGui extends Gui {
47
51
  // remove value property. It is not useful to know this on the client side.
48
52
  choices: options.choices.map(choice => ({
49
53
  text: choice.text
50
- }))
54
+ })),
55
+ face: options.face
51
56
  }
52
57
  return super.open({
53
58
  message,
package/src/Gui/index.ts CHANGED
@@ -10,4 +10,6 @@ export {
10
10
  MenuGui,
11
11
  ShopGui,
12
12
  NotificationGui
13
- }
13
+ }
14
+
15
+ export { DialogPosition } from './DialogGui'
package/src/index.ts CHANGED
@@ -7,4 +7,5 @@ export * from "./Player/Player";
7
7
  export * from "./module";
8
8
  export * from "./rooms/map";
9
9
  export * from "./presets";
10
- export * from "@signe/reactive";
10
+ export * from "@signe/reactive";
11
+ export * from "./Gui";