point-click-components 0.1.1 → 0.2.0

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.
@@ -82,6 +82,9 @@ export declare type GameAction = {
82
82
  } | {
83
83
  type: 'SEND-COMMAND';
84
84
  command: Command;
85
+ } | {
86
+ type: 'SWITCH-PLAYER';
87
+ actorId: string;
85
88
  } | {
86
89
  type: 'CONVERSATION-CHOICE';
87
90
  choice: ConversationChoice;
@@ -93,6 +96,7 @@ export declare type GameAction = {
93
96
  isSoundDisabled: boolean;
94
97
  } | {
95
98
  type: 'RESET';
99
+ reason: 'game-end' | 'restart';
96
100
  } | {
97
101
  type: 'CLEAR-STORYBOARD';
98
102
  } | {
@@ -125,8 +129,6 @@ declare type GetImageAsset = {
125
129
  (id: string): ImageAsset | undefined;
126
130
  };
127
131
 
128
- export declare const getInitialState: (gameDesign: GameDesign, cellSize?: number, startPaused?: boolean) => GameData;
129
-
130
132
  export declare const getIntialUi: (gameDesign: GameDesign, size?: {
131
133
  roomWidth?: number;
132
134
  roomHeight?: number;