@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.
@@ -17,6 +17,10 @@ export interface DialogOptions {
17
17
  tranparent?: boolean;
18
18
  typewriterEffect?: boolean;
19
19
  talkWith?: RpgPlayer;
20
+ face?: {
21
+ id: string;
22
+ expression: string;
23
+ };
20
24
  }
21
25
  export declare class DialogGui extends Gui {
22
26
  constructor(player: RpgPlayer);
@@ -4,3 +4,4 @@ import { MenuGui } from './MenuGui';
4
4
  import { ShopGui } from './ShopGui';
5
5
  import { NotificationGui } from './NotificationGui';
6
6
  export { Gui, DialogGui, MenuGui, ShopGui, NotificationGui };
7
+ export { DialogPosition } from './DialogGui';
package/dist/index.d.ts CHANGED
@@ -8,3 +8,4 @@ export * from './module';
8
8
  export * from './rooms/map';
9
9
  export * from './presets';
10
10
  export * from '@signe/reactive';
11
+ export * from './Gui';
package/dist/index.js CHANGED
@@ -27222,6 +27222,12 @@ function WithMoveManager(Base) {
27222
27222
  };
27223
27223
  }
27224
27224
 
27225
+ var DialogPosition = /* @__PURE__ */ ((DialogPosition2) => {
27226
+ DialogPosition2["Top"] = "top";
27227
+ DialogPosition2["Bottom"] = "bottom";
27228
+ DialogPosition2["Middle"] = "middle";
27229
+ return DialogPosition2;
27230
+ })(DialogPosition || {});
27225
27231
  class DialogGui extends Gui {
27226
27232
  constructor(player) {
27227
27233
  super(PrebuiltGui.Dialog, player);
@@ -27247,7 +27253,8 @@ class DialogGui extends Gui {
27247
27253
  // remove value property. It is not useful to know this on the client side.
27248
27254
  choices: options.choices.map((choice) => ({
27249
27255
  text: choice.text
27250
- }))
27256
+ })),
27257
+ face: options.face
27251
27258
  };
27252
27259
  return super.open({
27253
27260
  message,
@@ -30568,5 +30575,5 @@ function provideServerModules(modules) {
30568
30575
  });
30569
30576
  }
30570
30577
 
30571
- export { AGI, AGI_CURVE, ATK, ArraySubject$2 as ArraySubject, COEFFICIENT_ELEMENTS, DAMAGE_CRITICAL, DAMAGE_GUARD, DAMAGE_PHYSIC, DAMAGE_SKILL, DEX, DEX_CURVE, Frequency, INT, INT_CURVE, MAXHP, MAXHP_CURVE, MAXSP, MAXSP_CURVE, Move, ObjectSubject$2 as ObjectSubject, PDEF, RpgEvent, RpgMap, RpgPlayer, RpgServerEngine, SDEF, STR, STR_CURVE, Speed, WithMoveManager, clearInject, computed$2 as computed, context, createServer, effect$2 as effect, inject, isArraySubject$1 as isArraySubject, isComputed$2 as isComputed, isObjectSubject$1 as isObjectSubject, isSignal$2 as isSignal, provideServerModules, setInject, signal$2 as signal, untracked };
30578
+ export { AGI, AGI_CURVE, ATK, ArraySubject$2 as ArraySubject, COEFFICIENT_ELEMENTS, DAMAGE_CRITICAL, DAMAGE_GUARD, DAMAGE_PHYSIC, DAMAGE_SKILL, DEX, DEX_CURVE, DialogGui, DialogPosition, Frequency, Gui, INT, INT_CURVE, MAXHP, MAXHP_CURVE, MAXSP, MAXSP_CURVE, MenuGui, Move, NotificationGui, ObjectSubject$2 as ObjectSubject, PDEF, RpgEvent, RpgMap, RpgPlayer, RpgServerEngine, SDEF, STR, STR_CURVE, ShopGui, Speed, WithMoveManager, clearInject, computed$2 as computed, context, createServer, effect$2 as effect, inject, isArraySubject$1 as isArraySubject, isComputed$2 as isComputed, isObjectSubject$1 as isObjectSubject, isSignal$2 as isSignal, provideServerModules, setInject, signal$2 as signal, untracked };
30572
30579
  //# sourceMappingURL=index.js.map