@wayward/types 2.14.5-beta.dev.20250629.1 → 2.14.5-beta.dev.20250630.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.
@@ -61,9 +61,6 @@ export interface IPostSerializeCallback {
|
|
61
61
|
export interface IUnserializedCallback {
|
62
62
|
onUnserialized(serializer: ISerializer): void;
|
63
63
|
}
|
64
|
-
export interface IPropSerializable {
|
65
|
-
getSerializationProperties(version: string): string[];
|
66
|
-
}
|
67
64
|
/**
|
68
65
|
* Note 1: Do not add anything to this list unless Spacetech approves it
|
69
66
|
* Note 2: Max of 255 types before the game breaks
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2011-2025 Unlok
|
3
|
+
* https://www.unlok.ca
|
4
|
+
*
|
5
|
+
* Credits & Thanks:
|
6
|
+
* https://www.unlok.ca/credits-thanks/
|
7
|
+
*
|
8
|
+
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
9
|
+
* https://github.com/WaywardGame/types/wiki
|
10
|
+
*/
|
11
|
+
import { Types } from "@wayward/game/save/serializer/ISerializer";
|
12
|
+
import type Registrar from "@wayward/utilities/Registrar";
|
13
|
+
export declare namespace SerializerConcreteTypes {
|
14
|
+
export interface IConcerteRegistrar {
|
15
|
+
baseClass: any;
|
16
|
+
baseType?: Types;
|
17
|
+
registrar: Registrar<any>;
|
18
|
+
}
|
19
|
+
export interface IConcreteTypeItem {
|
20
|
+
type: Types;
|
21
|
+
value: IConcerteRegistrar | any;
|
22
|
+
/**
|
23
|
+
* Set to true to ensure no new saves use this type
|
24
|
+
*/
|
25
|
+
deprecated?: boolean;
|
26
|
+
/**
|
27
|
+
* Set to true if this type used to have a registrar, but no longer does
|
28
|
+
*/
|
29
|
+
legacyRegistrar?: boolean;
|
30
|
+
}
|
31
|
+
interface ITypeInfoResult {
|
32
|
+
dataType: Types;
|
33
|
+
subDataType?: number;
|
34
|
+
}
|
35
|
+
export const concreteTypesTypeMap: Map<number, IConcreteTypeItem>;
|
36
|
+
export function lookupType(value: any): ITypeInfoResult | undefined;
|
37
|
+
export {};
|
38
|
+
}
|
@@ -31,7 +31,6 @@ export default class OldUi {
|
|
31
31
|
updateCraftingDialog(craftableItemTypes: ItemType[], nonCraftableItemTypes: ItemType[]): void;
|
32
32
|
updateDismantleTab(dismantleItems: IDismantleComponent, force?: boolean): void;
|
33
33
|
shouldRefreshMods(): boolean;
|
34
|
-
getSerializationProperties(_: string): string[];
|
35
34
|
setVersionExtra(msg: string): void;
|
36
35
|
openDialogs(): void;
|
37
36
|
logErrorEvent(eventOrError: unknown, skipLog?: true): void;
|
package/package.json
CHANGED