@wayward/types 2.14.0-beta.dev.20241205.1 → 2.14.0-beta.dev.20241208.1
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.
|
@@ -49,6 +49,10 @@ export interface IObjectDescription extends IHasImagePath {
|
|
|
49
49
|
* - Prevents picking up the doodad when items are inside via `preventPickingUpDoodadWhenItemsAreInside`
|
|
50
50
|
*/
|
|
51
51
|
containerOptions?: IContainerOptions;
|
|
52
|
+
/**
|
|
53
|
+
* If set to true, this item will not tryRestoreCreature() when breaking (the difference between golems and full cages)
|
|
54
|
+
*/
|
|
55
|
+
disableRestoreCreature?: boolean;
|
|
52
56
|
}
|
|
53
57
|
export interface IHasImagePath<ImagePathType = string> {
|
|
54
58
|
/**
|
|
@@ -43,7 +43,7 @@ export interface IBiomeMapGen<BiomeOptionsType = unknown> {
|
|
|
43
43
|
* Generated the world tiles
|
|
44
44
|
* Called within a WebWorker
|
|
45
45
|
*/
|
|
46
|
-
generate(input: IMapGenGenerateInput<BiomeOptionsType>): IMapGenGenerateOutput
|
|
46
|
+
generate(input: IMapGenGenerateInput<BiomeOptionsType>): IMapGenGenerateOutput | Promise<IMapGenGenerateOutput>;
|
|
47
47
|
/**
|
|
48
48
|
* Called after generating the world for the first time
|
|
49
49
|
*/
|
|
@@ -57,6 +57,11 @@ export default class TileEventManager extends EntityManager<TileEvent> {
|
|
|
57
57
|
*/
|
|
58
58
|
createBlood(origin: IVector3): boolean;
|
|
59
59
|
containsDamagingTileEvents(events: TileEvent[] | undefined): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Removes all tile events from the tile
|
|
62
|
+
* @param tile The tile to remove all tile events from
|
|
63
|
+
*/
|
|
64
|
+
removeAll(tile: Tile): void;
|
|
60
65
|
getName(typeOrEvent: CreatureType | TileEvent, article?: Article, count?: number, showCount?: boolean): TranslationImpl;
|
|
61
66
|
getEventTranslations(events: TileEvent[], article?: Article, context?: TextContext): Stream<TranslationImpl>;
|
|
62
67
|
getEventListTranslation(events: TileEvent[], article?: Article, context?: TextContext): TranslationImpl;
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
export type WorkerFunction<RequestType, ResultType> = (data: RequestType) => ({
|
|
12
12
|
message: ResultType;
|
|
13
13
|
transfer?: Transferable[];
|
|
14
|
-
} |
|
|
14
|
+
} | Promise<{
|
|
15
|
+
message: ResultType;
|
|
16
|
+
transfer?: Transferable[];
|
|
17
|
+
}> | undefined);
|
|
15
18
|
export declare class WebWorker<RequestType, ResultType> {
|
|
16
19
|
private worker;
|
|
17
20
|
private blobUrl;
|
package/package.json
CHANGED