point-click-components 0.2.3 → 0.2.4
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/dist/point-click-components.d.ts +14 -14
- package/package.json +1 -1
|
@@ -46,7 +46,7 @@ export declare type ActorPreviewProps = {
|
|
|
46
46
|
sprites: SpriteData[];
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
declare type ActorWithOrdersAndClickHandlers = {
|
|
49
|
+
export declare type ActorWithOrdersAndClickHandlers = {
|
|
50
50
|
data: ActorData;
|
|
51
51
|
orders?: Order[];
|
|
52
52
|
clickHandler?: HandleClickFunction<ActorData>;
|
|
@@ -76,7 +76,7 @@ export declare const ConversationChoices: () => JSX.Element | null;
|
|
|
76
76
|
|
|
77
77
|
export declare const DefaultLayout: () => JSX.Element;
|
|
78
78
|
|
|
79
|
-
declare type FileAsset = {
|
|
79
|
+
export declare type FileAsset = {
|
|
80
80
|
id: string;
|
|
81
81
|
href: string;
|
|
82
82
|
originalFileName?: string;
|
|
@@ -136,14 +136,14 @@ export declare const GameRoom: FunctionComponent<Props_2>;
|
|
|
136
136
|
|
|
137
137
|
export declare const GameRunner: ({ gameDesign, Layout, getImageAsset, getSoundAsset, SoundHandler, initialRoomSize, options, SpeechBubbleComponent, }: Props_3) => JSX.Element;
|
|
138
138
|
|
|
139
|
-
declare type GameRunnerOptions = Partial<GameRuntimeOptions> & {
|
|
139
|
+
export declare type GameRunnerOptions = Partial<GameRuntimeOptions> & {
|
|
140
140
|
eventReporter?: InGameEventReporter;
|
|
141
141
|
debugLogger?: LogToDebug;
|
|
142
142
|
allowLocalSaves?: boolean;
|
|
143
143
|
maxCameraMove?: number;
|
|
144
144
|
};
|
|
145
145
|
|
|
146
|
-
declare type GetImageAsset = {
|
|
146
|
+
export declare type GetImageAsset = {
|
|
147
147
|
(id: string): ImageAsset | undefined;
|
|
148
148
|
};
|
|
149
149
|
|
|
@@ -156,7 +156,7 @@ export declare function getLayerHeight(parallax: number, roomData: RoomData): nu
|
|
|
156
156
|
|
|
157
157
|
export declare function getLayerWidth(parallax: number, roomData: RoomData): number;
|
|
158
158
|
|
|
159
|
-
declare type GetSoundAsset = {
|
|
159
|
+
export declare type GetSoundAsset = {
|
|
160
160
|
(id: string): SoundAsset | undefined;
|
|
161
161
|
};
|
|
162
162
|
|
|
@@ -164,11 +164,11 @@ export declare function getXShift(viewAngleX: number, parallax: number, roomData
|
|
|
164
164
|
|
|
165
165
|
export declare function getYShift(viewAngleY: number, parallax: number, roomData: RoomData): number;
|
|
166
166
|
|
|
167
|
-
declare type HandleClickFunction<T extends CommandTarget> = {
|
|
167
|
+
export declare type HandleClickFunction<T extends CommandTarget> = {
|
|
168
168
|
(target: T, event: PointerEvent): void;
|
|
169
169
|
};
|
|
170
170
|
|
|
171
|
-
declare type HandleHoverFunction = {
|
|
171
|
+
export declare type HandleHoverFunction = {
|
|
172
172
|
(target: CommandTarget, event: 'enter' | 'leave'): void;
|
|
173
173
|
};
|
|
174
174
|
|
|
@@ -176,7 +176,7 @@ export declare const HorizontalLine: FunctionComponent<Props_4>;
|
|
|
176
176
|
|
|
177
177
|
export declare const Hotspot: FunctionComponent<Props_5>;
|
|
178
178
|
|
|
179
|
-
declare type ImageAsset = FileAsset & {
|
|
179
|
+
export declare type ImageAsset = FileAsset & {
|
|
180
180
|
category: ImageAssetCategory;
|
|
181
181
|
rows?: number;
|
|
182
182
|
cols?: number;
|
|
@@ -185,7 +185,7 @@ declare type ImageAsset = FileAsset & {
|
|
|
185
185
|
img?: HTMLImageElement;
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
declare type ImageAssetCategory = 'background' | 'item' | 'spriteSheet' | 'any';
|
|
188
|
+
export declare type ImageAssetCategory = 'background' | 'item' | 'spriteSheet' | 'any';
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
191
|
* Renders a figure with the aspect ratio scaled to be contained by its parent, with the sprite
|
|
@@ -357,20 +357,20 @@ scale: number;
|
|
|
357
357
|
orderSpeed: number;
|
|
358
358
|
}>;
|
|
359
359
|
|
|
360
|
-
declare type SoundAsset = FileAsset & {
|
|
360
|
+
export declare type SoundAsset = FileAsset & {
|
|
361
361
|
category: SoundAssetCategory;
|
|
362
362
|
};
|
|
363
363
|
|
|
364
|
-
declare type SoundAssetCategory = 'sfx' | 'music';
|
|
364
|
+
export declare type SoundAssetCategory = 'sfx' | 'music';
|
|
365
365
|
|
|
366
|
-
declare type SoundPlayerComponent = FunctionComponent<{
|
|
366
|
+
export declare type SoundPlayerComponent = FunctionComponent<{
|
|
367
367
|
soundValues: SoundValue[];
|
|
368
368
|
isPaused: boolean;
|
|
369
369
|
frameIndex?: number;
|
|
370
370
|
getSoundAsset: GetSoundAsset;
|
|
371
371
|
}>;
|
|
372
372
|
|
|
373
|
-
declare type SpeechBubbleProps = {
|
|
373
|
+
export declare type SpeechBubbleProps = {
|
|
374
374
|
actorData: ActorData;
|
|
375
375
|
text: string;
|
|
376
376
|
fromTextBoxLeftToActor: number;
|
|
@@ -529,7 +529,7 @@ export declare const VerbRadioButton: () => JSX.Element;
|
|
|
529
529
|
|
|
530
530
|
export declare const WalkableOrObstacle: ({ zone, markVertices, zoneType, zoneOptions }: Props_7) => JSX.Element;
|
|
531
531
|
|
|
532
|
-
declare type XY = {
|
|
532
|
+
export declare type XY = {
|
|
533
533
|
x: number;
|
|
534
534
|
y: number;
|
|
535
535
|
};
|