point-click-components 0.2.2 → 0.2.3

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.
@@ -127,13 +127,14 @@ getImageAsset: GetImageAsset;
127
127
  getSoundAsset: GetSoundAsset;
128
128
  SoundHandler?: SoundPlayerComponent;
129
129
  allowLocalSaves?: boolean;
130
+ SpeechBubbleComponent?: FunctionComponent<SpeechBubbleProps>;
130
131
  }>;
131
132
 
132
133
  export declare const GameMetaControls: () => JSX.Element;
133
134
 
134
135
  export declare const GameRoom: FunctionComponent<Props_2>;
135
136
 
136
- export declare const GameRunner: ({ gameDesign, Layout, getImageAsset, getSoundAsset, SoundHandler, initialRoomSize, options }: Props_3) => JSX.Element;
137
+ export declare const GameRunner: ({ gameDesign, Layout, getImageAsset, getSoundAsset, SoundHandler, initialRoomSize, options, SpeechBubbleComponent, }: Props_3) => JSX.Element;
137
138
 
138
139
  declare type GameRunnerOptions = Partial<GameRuntimeOptions> & {
139
140
  eventReporter?: InGameEventReporter;
@@ -208,6 +209,8 @@ export declare function locateClickInWorld(clickXPosition: number, clickYpositio
208
209
  y: number;
209
210
  };
210
211
 
212
+ export declare function locateRoomXOnFrame(roomX: number, viewAngleX: number, roomData: RoomData): number;
213
+
211
214
  export declare const makeReducer: (gameDesign: GameDesign, options?: GameRunnerOptions) => Reducer<GameData, GameAction>;
212
215
 
213
216
  export declare const makeUiReducer: () => Reducer<UiState, UiAction>;
@@ -251,6 +254,7 @@ declare type Props_2 = {
251
254
  declare interface Props_3 {
252
255
  gameDesign: GameDesign;
253
256
  Layout?: FunctionComponent;
257
+ SpeechBubbleComponent?: FunctionComponent<SpeechBubbleProps>;
254
258
  getImageAsset: GetImageAsset;
255
259
  getSoundAsset: GetSoundAsset;
256
260
  SoundHandler?: SoundPlayerComponent;
@@ -335,7 +339,6 @@ export declare interface RoomProps {
335
339
  orderedActors?: ActorWithOrdersAndClickHandlers[];
336
340
  noSound?: boolean;
337
341
  noMargin?: boolean;
338
- fontFamily?: string;
339
342
  parallaxContent?: ReactNode;
340
343
  surfaceContent?: ReactNode;
341
344
  orderSpeed?: number;
@@ -343,6 +346,7 @@ export declare interface RoomProps {
343
346
  getImageAsset: GetImageAsset;
344
347
  getSoundAsset: GetSoundAsset;
345
348
  SoundHandler?: SoundPlayerComponent;
349
+ SpeechBubbleComponent?: FunctionComponent<SpeechBubbleProps>;
346
350
  }
347
351
 
348
352
  export declare const RoomRenderContext: Context< {
@@ -366,6 +370,15 @@ declare type SoundPlayerComponent = FunctionComponent<{
366
370
  getSoundAsset: GetSoundAsset;
367
371
  }>;
368
372
 
373
+ declare type SpeechBubbleProps = {
374
+ actorData: ActorData;
375
+ text: string;
376
+ fromTextBoxLeftToActor: number;
377
+ fontSize: number;
378
+ atLeftEdge: boolean;
379
+ atRightEdge: boolean;
380
+ };
381
+
369
382
  export declare const StoryBoardPlayer: React.FunctionComponent<Props_8>;
370
383
 
371
384
  export declare const StoryPageDisplay: FunctionComponent<Props_9>;