@wayward/types 2.12.2-beta.dev.20221125.1 → 2.12.2-beta.dev.20221130.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.
- package/definitions/cplusplus/index.d.ts +7 -7
- package/definitions/game/audio/IAudio.d.ts +1 -1
- package/definitions/game/audio/IMusic.d.ts +1 -1
- package/definitions/game/command/ICommand.d.ts +1 -1
- package/definitions/game/event/EventBuses.d.ts +1 -1
- package/definitions/game/event/EventEmitter.d.ts +9 -9
- package/definitions/game/event/EventManager.d.ts +12 -12
- package/definitions/game/game/IGame.d.ts +1 -1
- package/definitions/game/game/biome/IBiome.d.ts +2 -2
- package/definitions/game/game/doodad/IDoodad.d.ts +5 -5
- package/definitions/game/game/entity/IEntity.d.ts +3 -3
- package/definitions/game/game/entity/IHuman.d.ts +1 -1
- package/definitions/game/game/entity/IStats.d.ts +2 -2
- package/definitions/game/game/entity/action/Action.d.ts +2 -2
- package/definitions/game/game/entity/action/IAction.d.ts +11 -11
- package/definitions/game/game/entity/action/actions/Attack.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dig.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Gather.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/GatherLiquid.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/MoveItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +1 -1
- package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +5 -5
- package/definitions/game/game/entity/action/usable/UsableActionRegistrar.d.ts +1 -1
- package/definitions/game/game/entity/action/usable/UsableActionTranslator.d.ts +2 -2
- package/definitions/game/game/entity/npc/NPC.d.ts +1 -1
- package/definitions/game/game/entity/npc/npcs/IMerchant.d.ts +2 -2
- package/definitions/game/game/entity/player/IPlayer.d.ts +2 -2
- package/definitions/game/game/entity/player/note/NoteManager.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/Requirements.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/requirement/Requirement.d.ts +1 -1
- package/definitions/game/game/entity/skill/SkillManager.d.ts +1 -1
- package/definitions/game/game/entity/status/StatusEffect.d.ts +1 -1
- package/definitions/game/game/inspection/InspectionTypeMap.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/CollapsableInfoProvider.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/MagicalPropertyValue.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/ObscuredValue.d.ts +3 -3
- package/definitions/game/game/inspection/infoProviders/UnlockableRowInfoProvider.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/UseInfo.d.ts +7 -7
- package/definitions/game/game/island/IIsland.d.ts +1 -1
- package/definitions/game/game/item/IItem.d.ts +7 -7
- package/definitions/game/game/item/recipe/RecipeOutputs.d.ts +1 -1
- package/definitions/game/game/item/recipe/RecipeRequirement.d.ts +1 -1
- package/definitions/game/game/item/recipe/RecipeRequirements.d.ts +1 -1
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +12 -12
- package/definitions/game/game/mapgen/IMapGen.d.ts +5 -5
- package/definitions/game/game/mapping/Background.d.ts +1 -1
- package/definitions/game/game/mapping/SavedTilesSerializer.d.ts +1 -1
- package/definitions/game/game/meta/Loading.d.ts +3 -3
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +5 -5
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +1 -1
- package/definitions/game/game/milestones/IMilestone.d.ts +1 -1
- package/definitions/game/game/milestones/MilestoneManager.d.ts +1 -1
- package/definitions/game/game/options/IGameOptions.d.ts +1 -1
- package/definitions/game/game/options/modifiers/GameplayModifier.d.ts +3 -3
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +1 -1
- package/definitions/game/game/reference/IReferenceManager.d.ts +7 -7
- package/definitions/game/game/temperature/ITemperature.d.ts +1 -1
- package/definitions/game/game/tile/ITerrain.d.ts +2 -2
- package/definitions/game/language/DictionaryMap.d.ts +3 -3
- package/definitions/game/language/LanguageJsonSchemaGenerator.d.ts +1 -1
- package/definitions/game/language/LanguageManager.d.ts +2 -2
- package/definitions/game/language/Translation.d.ts +1 -1
- package/definitions/game/language/TranslationsProvider.d.ts +5 -5
- package/definitions/game/language/english/player/Milestones.d.ts +1 -1
- package/definitions/game/language/english/player/status/BleedLevels.d.ts +1 -1
- package/definitions/game/language/segment/LinkSegment.d.ts +1 -1
- package/definitions/game/mod/IModInfo.d.ts +1 -1
- package/definitions/game/mod/IModManager.d.ts +1 -1
- package/definitions/game/mod/ModRegistry.d.ts +1 -1
- package/definitions/game/multiplayer/IMultiplayer.d.ts +2 -2
- package/definitions/game/multiplayer/dedicatedServer/ssh/ISshCommand.d.ts +2 -2
- package/definitions/game/multiplayer/matchmaking/IMatchmaking.d.ts +1 -1
- package/definitions/game/multiplayer/packets/IPacket.d.ts +1 -1
- package/definitions/game/renderer/Decorations.d.ts +1 -1
- package/definitions/game/renderer/StatusEffectRenderer.d.ts +3 -3
- package/definitions/game/renderer/world/IWorldLayer.d.ts +3 -3
- package/definitions/game/resource/ISpriteAtlas.d.ts +1 -1
- package/definitions/game/resource/ResourcePath.d.ts +1 -1
- package/definitions/game/save/ISaveManager.d.ts +1 -1
- package/definitions/game/save/clientStore/IClientStore.d.ts +1 -1
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +3 -3
- package/definitions/game/save/datastorage/IDataStorage.d.ts +1 -1
- package/definitions/game/save/serializer/PropertiesToSerialize.d.ts +3 -3
- package/definitions/game/ui/component/ContextMenu.d.ts +4 -4
- package/definitions/game/ui/component/Dropdown.d.ts +1 -1
- package/definitions/game/ui/component/IComponent.d.ts +4 -4
- package/definitions/game/ui/component/Text.d.ts +1 -1
- package/definitions/game/ui/input/Bind.d.ts +2 -2
- package/definitions/game/ui/input/Bindings.d.ts +1 -1
- package/definitions/game/ui/input/IInput.d.ts +3 -3
- package/definitions/game/ui/input/Macros.d.ts +1 -1
- package/definitions/game/ui/screen/ScreenMap.d.ts +2 -2
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/DialogMap.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/Dialogs.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/IMessages.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/component/CanvasDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/IQuadrantComponent.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/InspectionsList.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/Item.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/TabDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/islands/IIslandsDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/MenuBar.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/MenuMap.d.ts +2 -2
- package/definitions/game/ui/screen/screens/menu/menus/character/CharacterPreview.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/main/IAbout.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/options/TabMods.d.ts +1 -1
- package/definitions/game/ui/tooltip/TooltipLocationHandler.d.ts +9 -9
- package/definitions/game/ui/util/ComponentManipulator.d.ts +3 -3
- package/definitions/game/ui/util/Draggable.d.ts +2 -2
- package/definitions/game/ui/util/IHighlight.d.ts +1 -1
- package/definitions/game/ui/util/ImagePath.d.ts +1 -1
- package/definitions/game/ui/util/Sortable.d.ts +1 -1
- package/definitions/game/utilities/class/Inject.d.ts +1 -1
- package/definitions/game/utilities/collection/sort/Sorter.d.ts +2 -2
- package/definitions/game/utilities/enum/IEnum.d.ts +1 -1
- package/definitions/game/utilities/math/Vector2.d.ts +1 -1
- package/definitions/game/utilities/memory/GarbageCollection.d.ts +1 -1
- package/definitions/game/utilities/object/Objects.d.ts +1 -1
- package/definitions/game/utilities/promise/Async.d.ts +1 -1
- package/definitions/game/utilities/promise/ResolvablePromise.d.ts +2 -2
- package/definitions/game/utilities/prototype/Define.d.ts +1 -1
- package/definitions/game/utilities/random/Random.d.ts +2 -2
- package/definitions/game/utilities/string/Interpolator.d.ts +4 -4
- package/definitions/game/utilities/types/Recursive.d.ts +1 -1
- package/definitions/game/webWorker/WebWorkerMessages.d.ts +3 -3
- package/definitions/matchmakingserver/shared.d.ts +3 -3
- package/definitions/test/index.d.ts +1 -1
- package/definitions/test/interfaces.d.ts +1 -1
- package/package.json +1 -1
|
@@ -25,7 +25,7 @@ export interface IDescribed {
|
|
|
25
25
|
island: Island;
|
|
26
26
|
description(): any;
|
|
27
27
|
}
|
|
28
|
-
export
|
|
28
|
+
export type DescribedDescription<T extends IDescribed> = Exclude<ReturnType<T["description"]>, undefined>;
|
|
29
29
|
export interface IUseInfoBase<T extends IDescribed, A extends ActionType> {
|
|
30
30
|
objectType: T["objectType"];
|
|
31
31
|
value?: T;
|
|
@@ -40,15 +40,15 @@ export interface IItemUseInfo<T extends IDescribed, A extends ActionType, M exte
|
|
|
40
40
|
context: InfoProviderContext;
|
|
41
41
|
methods: M;
|
|
42
42
|
}
|
|
43
|
-
export
|
|
43
|
+
export type InfoUnion<T extends IDescribed, ACTION extends ActionType> = {
|
|
44
44
|
[K in T["objectType"]]: IUseInfoBase<Extract<T, {
|
|
45
45
|
objectType: K;
|
|
46
46
|
}>, ACTION>;
|
|
47
47
|
}[T["objectType"]];
|
|
48
|
-
export
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
48
|
+
export type UseInfoPredicate<I extends IUseInfoBase<T, ACTION>, T extends IDescribed, ACTION extends ActionType> = (info: IUseInfoBase<T, ACTION>) => I | undefined;
|
|
49
|
+
export type UseInfoHandler<I extends IUseInfoBase<T, ACTION>, T extends IDescribed, ACTION extends ActionType> = (info: I, context: InfoProviderContext) => Array<ArrayOr<TranslationGenerator | InfoProvider> | undefined> | Translation | InfoProvider | undefined;
|
|
50
|
+
export type UseInfoDisplayLevelGetter<I extends IUseInfoBase<T, ACTION>, T extends IDescribed, ACTION extends ActionType> = (info: I, context: InfoProviderContext) => InfoDisplayLevel;
|
|
51
|
+
export type UseInfoMethod<I extends IUseInfoBase<T, ACTION>, T extends IDescribed, ACTION extends ActionType, ARGS extends any[], RETURN> = (info: I, ...args: ARGS) => RETURN;
|
|
52
52
|
export interface IUseInfoFactory<I extends IUseInfoBase<T, A>, T extends IDescribed, A extends ActionType, M extends Record<string, AnyFunction> = {}> {
|
|
53
53
|
actions<A2 extends ActionType[]>(...actions: A2): IUseInfoFactory<IUseInfoBase<T, A | A2[number]>, T, A | A2[number]>;
|
|
54
54
|
handle<I2 extends I>(predicate: UseInfoPredicate<I2, T, A>): IUseInfoFactory<I2, T, A, M>;
|
|
@@ -61,7 +61,7 @@ export interface IUseInfoFactory<I extends IUseInfoBase<T, A>, T extends IDescri
|
|
|
61
61
|
methods: M;
|
|
62
62
|
}, T, A>): UseInfo<I, A, M, T>;
|
|
63
63
|
}
|
|
64
|
-
export
|
|
64
|
+
export type IGetUseInfo<USE_INFO extends UseInfo<any, any, any>> = USE_INFO extends UseInfo<infer I extends IUseInfoBase<any, any>, any, any> ? I : never;
|
|
65
65
|
export default class UseInfo<I extends IUseInfoBase<T, A>, A extends ActionType, M extends Record<string, AnyFunction>, T extends IDescribed = any> {
|
|
66
66
|
readonly predicates: Array<UseInfoPredicate<I, T, A>>;
|
|
67
67
|
readonly handle: UseInfoHandler<I & {
|
|
@@ -15,7 +15,7 @@ import type { MultiplayerLoadingDescription } from "game/meta/Loading";
|
|
|
15
15
|
import type { ITile, TerrainType } from "game/tile/ITerrain";
|
|
16
16
|
import type World from "renderer/world/World";
|
|
17
17
|
import type { IVector2 } from "utilities/math/IVector";
|
|
18
|
-
export
|
|
18
|
+
export type IslandId = `${number},${number}`;
|
|
19
19
|
export declare module IslandPosition {
|
|
20
20
|
function toId(position: IVector2): IslandId;
|
|
21
21
|
function fromId(id: IslandId): IVector2 | undefined;
|
|
@@ -42,7 +42,7 @@ export interface IConstructedInfo {
|
|
|
42
42
|
additionalItemWeights?: IItemWeightComponent[];
|
|
43
43
|
weightTweak?: number;
|
|
44
44
|
}
|
|
45
|
-
export
|
|
45
|
+
export type IItemOld = Pick<Item, Exclude<keyof Item, "map">> & {
|
|
46
46
|
equipped?: EquipType;
|
|
47
47
|
equippedPid?: number;
|
|
48
48
|
legendary?: IMagicalPropertyOld;
|
|
@@ -259,7 +259,7 @@ export interface IItemDescription extends IObjectDescription, IModdable, ITemper
|
|
|
259
259
|
onEquip?(item: Item): void;
|
|
260
260
|
onUnequip?(item: Item): void;
|
|
261
261
|
}
|
|
262
|
-
export
|
|
262
|
+
export type ConsumeItemStatsTuple = [health: number, stamina: number, hunger: number, thirst: number];
|
|
263
263
|
export interface IItemOnUse {
|
|
264
264
|
[ActionType.Apply]?: ConsumeItemStatsTuple;
|
|
265
265
|
[ActionType.Build]?: IItemBuild;
|
|
@@ -438,7 +438,7 @@ export interface ICreateOnBreak {
|
|
|
438
438
|
aberrantCreature?: boolean;
|
|
439
439
|
tileEventType?: TileEventType;
|
|
440
440
|
}
|
|
441
|
-
export
|
|
441
|
+
export type IDismantleComponent = Record<number, number>;
|
|
442
442
|
export interface IRanged {
|
|
443
443
|
range: number;
|
|
444
444
|
attack: number;
|
|
@@ -548,7 +548,7 @@ export interface INPCInventoryContainerReference extends IBaseContainerReference
|
|
|
548
548
|
type?: ContainerReferenceType.NPCInventory;
|
|
549
549
|
id: number;
|
|
550
550
|
}
|
|
551
|
-
export
|
|
551
|
+
export type ContainerReference = IInvalidContainerReference | IWorldContainerReference | IPlayerInventoryContainerReference | ITileContainerReference | IDoodadContainerReference | IItemContainerReference | INPCInventoryContainerReference;
|
|
552
552
|
export declare enum CraftResult {
|
|
553
553
|
Fail = 0,
|
|
554
554
|
Success = 1,
|
|
@@ -567,10 +567,10 @@ interface IEquipEffects {
|
|
|
567
567
|
[EquipEffect.Telescopy]: [number, number];
|
|
568
568
|
}
|
|
569
569
|
export declare const EQUIP_EFFECTS_DEFAULT: IEquipEffects;
|
|
570
|
-
export
|
|
570
|
+
export type EquipEffects = {
|
|
571
571
|
[K in keyof IEquipEffects]: AddHead<K, Extract<IEquipEffects[K], any[]>>;
|
|
572
572
|
}[keyof IEquipEffects];
|
|
573
|
-
export
|
|
573
|
+
export type EquipEffectByType<T extends EquipEffect> = IEquipEffects[T];
|
|
574
574
|
export declare const consumables: Set<ActionType>;
|
|
575
575
|
export declare enum ItemWeightChange {
|
|
576
576
|
NewMagicProperty = 0,
|
|
@@ -1333,7 +1333,7 @@ export declare enum ItemTypeExtra {
|
|
|
1333
1333
|
TatteredMap_RolledUp = 1000,
|
|
1334
1334
|
TatteredMap_Completed = 1001
|
|
1335
1335
|
}
|
|
1336
|
-
export
|
|
1336
|
+
export type DisplayableItemType = ItemType | ItemTypeExtra;
|
|
1337
1337
|
export declare enum ItemTag {
|
|
1338
1338
|
None = 0
|
|
1339
1339
|
}
|
|
@@ -24,7 +24,7 @@ export interface RecipeInputTypeMap {
|
|
|
24
24
|
[RecipeRequirementType.Doodad]: Doodad;
|
|
25
25
|
[RecipeRequirementType.Fire]: ITile;
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export type RecipeInputType<R extends RecipeRequirementType = RecipeRequirementType> = RecipeInputTypeMap[R];
|
|
28
28
|
export interface IRecipeInputUseStrategy<R extends RecipeRequirementType> {
|
|
29
29
|
inputs: Array<RecipeInputType<R>>;
|
|
30
30
|
freeUsedInput?(api: Crafter, inputs: Array<RecipeInputType<R>>): boolean;
|
|
@@ -20,4 +20,4 @@ declare const requirements: {
|
|
|
20
20
|
3: typeof FireRequirement;
|
|
21
21
|
};
|
|
22
22
|
export default requirements;
|
|
23
|
-
export
|
|
23
|
+
export type RecipeRequirementClass<R extends RecipeRequirementType> = (typeof requirements)[R];
|
|
@@ -30,46 +30,46 @@ export interface IMagicalSubProperty<T extends number> {
|
|
|
30
30
|
value: number;
|
|
31
31
|
}>;
|
|
32
32
|
}
|
|
33
|
-
export
|
|
33
|
+
export type MagicalProperty<T extends MagicalPropertyType> = MagicalPropertyTypeSubTypeMap extends {
|
|
34
34
|
[key in T]: any;
|
|
35
35
|
} ? IMagicalSubProperty<MagicalPropertyTypeSubTypeMap[T]> : IMagicalProperty;
|
|
36
|
-
|
|
36
|
+
type MagicalNormalPropertyEntry = {
|
|
37
37
|
type: MagicalNormalPropertyTypes;
|
|
38
38
|
value: number;
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
type MagicalSubPropertyEntry = {
|
|
41
41
|
[K in MagicalSubPropertyTypes]: {
|
|
42
42
|
type: K;
|
|
43
43
|
subType: MagicalPropertyTypeSubTypeMap[K];
|
|
44
44
|
value: number;
|
|
45
45
|
};
|
|
46
46
|
}[MagicalSubPropertyTypes];
|
|
47
|
-
export
|
|
47
|
+
export type MagicalPropertyEntry = MagicalNormalPropertyEntry | MagicalSubPropertyEntry;
|
|
48
48
|
export declare module MagicalPropertyEntry {
|
|
49
49
|
function isSubType(entry: MagicalPropertyEntry): entry is MagicalSubPropertyEntry;
|
|
50
50
|
function identity(entry: MagicalPropertyEntry): MagicalPropertyIdentity<[]>;
|
|
51
51
|
}
|
|
52
|
-
export
|
|
52
|
+
export type MagicalPropertyEntryIntersection = {
|
|
53
53
|
type: MagicalPropertyType;
|
|
54
54
|
subType?: MagicalSubPropertySubTypes;
|
|
55
55
|
value: number;
|
|
56
56
|
};
|
|
57
|
-
export
|
|
57
|
+
export type AnyMagicalProperty = Partial<IMagicalProperty> & PartialValues<{
|
|
58
58
|
[K in MagicalSubPropertyTypes]: IMagicalSubProperty<MagicalPropertyTypeSubTypeMap[K]>;
|
|
59
59
|
}>;
|
|
60
|
-
export
|
|
61
|
-
export
|
|
62
|
-
export
|
|
63
|
-
|
|
60
|
+
export type MagicalSubPropertyTypes = keyof MagicalPropertyTypeSubTypeMap;
|
|
61
|
+
export type MagicalNormalPropertyTypes = Exclude<MagicalPropertyType, MagicalSubPropertyTypes>;
|
|
62
|
+
export type MagicalSubPropertySubTypes = MagicalPropertyTypeSubTypeMap[MagicalSubPropertyTypes];
|
|
63
|
+
type MagicalSubPropertyTypesResult = {
|
|
64
64
|
[K in MagicalSubPropertyTypes]: {
|
|
65
65
|
type: K;
|
|
66
66
|
subTypes: ReadonlyArray<MagicalPropertyTypeSubTypeMap[K]>;
|
|
67
67
|
};
|
|
68
68
|
}[MagicalSubPropertyTypes];
|
|
69
|
-
export
|
|
69
|
+
export type MagicalPropertyIdentity<A extends any[] = []> = [MagicalPropertyType, ...A] | {
|
|
70
70
|
[Key in MagicalSubPropertyTypes]: [Key, MagicalPropertyTypeSubTypeMap[Key], ...A];
|
|
71
71
|
}[MagicalSubPropertyTypes];
|
|
72
|
-
export
|
|
72
|
+
export type MagicalPropertyIdentityFlat = MagicalNormalPropertyTypes | MagicalSubPropertyTypes | {
|
|
73
73
|
[Key in MagicalSubPropertyTypes]: [Key, MagicalPropertyTypeSubTypeMap[Key]];
|
|
74
74
|
}[MagicalSubPropertyTypes];
|
|
75
75
|
export declare module MagicalPropertyIdentity {
|
|
@@ -15,7 +15,7 @@ import type MapGenHelpers from "game/mapgen/MapGenHelpers";
|
|
|
15
15
|
import type { Load } from "game/meta/Loading";
|
|
16
16
|
import type { TileTemplateType } from "game/tile/ITerrain";
|
|
17
17
|
import type { IVector3 } from "utilities/math/IVector";
|
|
18
|
-
export
|
|
18
|
+
export type MapGenVersions<T> = Descriptions<string, T>;
|
|
19
19
|
export interface IMapGen {
|
|
20
20
|
generateWorld(options: IMapGenOptions): void;
|
|
21
21
|
}
|
|
@@ -67,9 +67,9 @@ export interface IMapGenGenerateOutput {
|
|
|
67
67
|
waterSpawns: WaterSpawns;
|
|
68
68
|
templateSpawns: TemplateSpawns;
|
|
69
69
|
}
|
|
70
|
-
export
|
|
71
|
-
export
|
|
72
|
-
export
|
|
73
|
-
export
|
|
70
|
+
export type CaveSpawns = Array<[number, number]>;
|
|
71
|
+
export type WaterSpawns = Array<[number, number, number]>;
|
|
72
|
+
export type TemplateSpawn = [TileTemplateType, number, number, number, MapGenHelpers.ITemplateOptions?];
|
|
73
|
+
export type TemplateSpawns = TemplateSpawn[];
|
|
74
74
|
export declare const tileTypeDoodadOffset = 256;
|
|
75
75
|
export default IMapGen;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { DrawnMapTheme } from "game/mapping/IMapRender";
|
|
12
|
-
export
|
|
12
|
+
export type CanvasImage = HTMLImageElement | HTMLCanvasElement | ImageBitmap;
|
|
13
13
|
export default class MapBackground {
|
|
14
14
|
private readonly seed?;
|
|
15
15
|
private readonly canvas;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import type { MapTile } from "game/mapping/IMapTile";
|
|
12
12
|
import type { TerrainType } from "game/tile/ITerrain";
|
|
13
13
|
import type { ISerializer, ISerializable } from "save/serializer/ISerializer";
|
|
14
|
-
export
|
|
14
|
+
export type SavedMapTiles = Array<[terrain: TerrainType | undefined, decoration: MapTile | undefined, x: number, y: number]>;
|
|
15
15
|
export default class SavedTilesSerializer implements ISerializable {
|
|
16
16
|
saved: SavedMapTiles;
|
|
17
17
|
serializeObject(serializer: ISerializer): undefined;
|
|
@@ -58,7 +58,7 @@ export interface ILoadingDescription<A extends any[]> {
|
|
|
58
58
|
background?: SupplierOr<boolean | undefined, A>;
|
|
59
59
|
type?: SupplierOr<LoadType | undefined, A>;
|
|
60
60
|
}
|
|
61
|
-
export
|
|
61
|
+
export type MultiplayerLoadingDescription = [Translation, Translation, Translation];
|
|
62
62
|
export declare class LoadingDescription<A extends any[]> implements ILoadingDescription<A> {
|
|
63
63
|
canCancel?: SupplierOr<boolean | undefined, A>;
|
|
64
64
|
background?: SupplierOr<boolean | undefined, A>;
|
|
@@ -116,8 +116,8 @@ export declare const loadingDescriptions: {
|
|
|
116
116
|
39: LoadingDescription<[]>;
|
|
117
117
|
40: LoadingDescription<[]>;
|
|
118
118
|
};
|
|
119
|
-
export
|
|
120
|
-
export
|
|
119
|
+
export type LoadDescriptionOf<LOAD extends Load> = (typeof loadingDescriptions)[LOAD];
|
|
120
|
+
export type LoadArgs<LOAD extends Load> = (typeof loadingDescriptions)[LOAD] extends ILoadingDescription<infer A> ? A : never;
|
|
121
121
|
declare module Loading {
|
|
122
122
|
interface ILoadingEvents {
|
|
123
123
|
/**
|
|
@@ -136,7 +136,7 @@ export declare enum PromptPriority {
|
|
|
136
136
|
Default = 0,
|
|
137
137
|
Menu = 1
|
|
138
138
|
}
|
|
139
|
-
export
|
|
139
|
+
export type PromptDescriptionArgs<PROMPT extends IPromptDescriptionBase<any[]>> = PROMPT extends IPromptDescriptionBase<infer A> ? A : never;
|
|
140
140
|
export interface IPromptDescriptionBase<A extends any[]> {
|
|
141
141
|
type: Prompt;
|
|
142
142
|
promptType: PromptType;
|
|
@@ -145,8 +145,8 @@ export interface IPromptDescriptionBase<A extends any[]> {
|
|
|
145
145
|
description?: TranslationGenerator<UiTranslation, A>;
|
|
146
146
|
init?(...args: A): any;
|
|
147
147
|
}
|
|
148
|
-
|
|
149
|
-
export
|
|
148
|
+
type ResolvablePromptProperty<A extends any[], T> = T | ((...args: A) => T);
|
|
149
|
+
export type PromptResult<PROMPT extends IPromptDescriptionBase<any[]>> = {
|
|
150
150
|
[PromptType.Info]: void;
|
|
151
151
|
[PromptType.Confirm]: boolean;
|
|
152
152
|
[PromptType.Choice]: PROMPT extends IPromptChoiceDescription<any, infer CHOICES> ? CHOICES extends ResolvablePromptProperty<any, infer T> ? T extends Array<infer T2> ? T2 : T : never : never;
|
|
@@ -161,7 +161,7 @@ export interface IPromptConfirmDescription<A extends any[] = []> extends IPrompt
|
|
|
161
161
|
yesTranslation?: TranslationGenerator<InterruptChoice>;
|
|
162
162
|
noTranslation?: TranslationGenerator<InterruptChoice>;
|
|
163
163
|
}
|
|
164
|
-
export
|
|
164
|
+
export type PromptChoices<A extends any[]> = ResolvablePromptProperty<A, InterruptChoice[]>;
|
|
165
165
|
export interface IPromptChoiceDescription<A extends any[] = [], CHOICES extends PromptChoices<A> = PromptChoices<A>> extends IPromptDescriptionBase<A> {
|
|
166
166
|
promptType: PromptType.Choice;
|
|
167
167
|
choices: CHOICES;
|
|
@@ -176,5 +176,5 @@ export interface IPromptMenuDescription<MENU extends MenuId, A extends any[] = [
|
|
|
176
176
|
menu: MENU;
|
|
177
177
|
configure?(menu: MenuById[MENU], ...args: A): any;
|
|
178
178
|
}
|
|
179
|
-
export
|
|
179
|
+
export type PromptDescription<A extends any[] = []> = IPromptInfoDescription<A> | IPromptConfirmDescription<A> | IPromptChoiceDescription<A> | IPromptInputDescription<A> | IPromptMenuDescription<MenuId, A>;
|
|
180
180
|
export {};
|
|
@@ -15,7 +15,7 @@ import type Translation from "language/Translation";
|
|
|
15
15
|
import type Bindable from "ui/input/Bindable";
|
|
16
16
|
import { MenuId } from "ui/screen/screens/menu/component/IMenu";
|
|
17
17
|
import type { HelpArticle } from "ui/screen/screens/menu/menus/help/HelpArticleDescriptions";
|
|
18
|
-
|
|
18
|
+
type Text = Translation | ISerializedTranslation | string;
|
|
19
19
|
export declare const promptGameDialogMessagesEditFiltersSaveOverExisting: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
|
|
20
20
|
export declare const promptGameDialogMessagesEditFiltersResetConfirm: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
|
|
21
21
|
export declare const promptGameMessagesContextMenuClear: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
|
|
@@ -58,7 +58,7 @@ export declare enum Milestone {
|
|
|
58
58
|
Rouseabout = 46,
|
|
59
59
|
Murderer = 47
|
|
60
60
|
}
|
|
61
|
-
export
|
|
61
|
+
export type ExcludeInternalMilestones<MILESTONE extends Milestone> = PickValueKeys<typeof Milestone, MILESTONE> extends `Internal${string}` ? never : MILESTONE;
|
|
62
62
|
export declare enum MilestoneVisibility {
|
|
63
63
|
/**
|
|
64
64
|
* Everything about the milestone — the name, the description, the progress — is displayed to the player.
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import EventEmitter from "event/EventEmitter";
|
|
12
12
|
import { Milestone, MilestoneVisibility } from "game/milestones/IMilestone";
|
|
13
|
-
|
|
13
|
+
type IMilestoneUpdate = [Milestone, (number | string)?];
|
|
14
14
|
export interface IMilestoneEvents {
|
|
15
15
|
/**
|
|
16
16
|
* @param milestone The milestone that is being updated
|
|
@@ -256,7 +256,7 @@ export interface IGameOptionsPlayer {
|
|
|
256
256
|
/**
|
|
257
257
|
* "Partial" difficulty options; used to apply options over top base options. Milestone modifiers can never exist on partial difficulty options.
|
|
258
258
|
*/
|
|
259
|
-
export
|
|
259
|
+
export type IGameOptionsPartial = RecursivePartial<IGameOptions> & {
|
|
260
260
|
milestoneModifiers?: never;
|
|
261
261
|
};
|
|
262
262
|
export interface IGameOptionsStat {
|
|
@@ -26,9 +26,9 @@ export declare abstract class GameplayModifierInstance<ID extends number, INSTAN
|
|
|
26
26
|
protected abstract getDefaultTitle(): Translation;
|
|
27
27
|
setTitle(initializer: (defaultTitle: Translation) => Translation): this;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
29
|
+
export type GetModifierInstance<MODIFIER extends GameplayModifier<number, GameplayModifierInstance<number, any[]>, any[]>> = MODIFIER extends GameplayModifier<number, infer INSTANCE, any[]> ? INSTANCE : never;
|
|
30
|
+
export type GetModifierId<MODIFIER extends GameplayModifier<number, GameplayModifierInstance<number, any[]>, any[]>> = MODIFIER extends GameplayModifier<infer ID, any, any[]> ? ID : never;
|
|
31
|
+
export type GetModifierInstanceArgs<MODIFIER extends GameplayModifier<number, GameplayModifierInstance<number, any[]>, any[]>> = MODIFIER extends GameplayModifier<number, any, infer INSTANCE_ARGS> ? INSTANCE_ARGS : never;
|
|
32
32
|
export default abstract class GameplayModifier<ID extends number, INSTANCE extends GameplayModifierInstance<ID, any[]> = GameplayModifierInstance<ID, any[]>, INSTANCE_ARGS extends any[] = []> implements IHasImagePath {
|
|
33
33
|
readonly id: ID;
|
|
34
34
|
readonly random: RandomInstance | RandomReference;
|
|
@@ -20,7 +20,7 @@ declare class MilestoneModifiersManager extends GameplayModifiersManager<Milesto
|
|
|
20
20
|
isGlobal(milestone: Milestone): boolean;
|
|
21
21
|
isNotGlobal(milestone: Milestone): boolean;
|
|
22
22
|
getGroup(milestone: Milestone): import("game/options/modifiers/milestone/MilestoneModifier").MilestoneModifierGroup | undefined;
|
|
23
|
-
sort(a: Milestone, b: Milestone): 1 |
|
|
23
|
+
sort(a: Milestone, b: Milestone): 1 | -1 | 0;
|
|
24
24
|
}
|
|
25
25
|
declare const _default: MilestoneModifiersManager;
|
|
26
26
|
export default _default;
|
|
@@ -47,8 +47,8 @@ export declare enum ReferenceType {
|
|
|
47
47
|
EquipSlot = 15
|
|
48
48
|
}
|
|
49
49
|
export declare const enumRefTypes: Set<ReferenceType.Skill | ReferenceType.Milestone | ReferenceType.Recipe | ReferenceType.ItemType | ReferenceType.Dismantle | ReferenceType.Stat | ReferenceType.Action | ReferenceType.EquipSlot>;
|
|
50
|
-
export
|
|
51
|
-
export
|
|
50
|
+
export type EnumReferenceTypes = (typeof enumRefTypes) extends Set<infer R> ? R : never;
|
|
51
|
+
export type ReferenceableReferenceTypes = Exclude<ReferenceType, EnumReferenceTypes>;
|
|
52
52
|
export declare const referenceableRefTypes: Set<ReferenceableReferenceTypes>;
|
|
53
53
|
export interface IReferenceTypeMap {
|
|
54
54
|
[ReferenceType.Item]: Item;
|
|
@@ -68,11 +68,11 @@ export interface IReferenceTypeMap {
|
|
|
68
68
|
[ReferenceType.Action]: [ReferenceType.Action, ActionId, Item?];
|
|
69
69
|
[ReferenceType.EquipSlot]: [ReferenceType.EquipSlot, EquipType];
|
|
70
70
|
}
|
|
71
|
-
|
|
72
|
-
export
|
|
73
|
-
export
|
|
74
|
-
export
|
|
75
|
-
export
|
|
71
|
+
type ReferenceId<REFTYPE extends ReferenceType> = IReferenceTypeMap[REFTYPE] extends [REFTYPE, infer IdType, any?] ? IdType : number;
|
|
72
|
+
export type Reference<REFTYPE extends ReferenceType | undefined = ReferenceType | undefined> = REFTYPE extends ReferenceType ? [id: ReferenceId<REFTYPE>, type: REFTYPE, context?: [number, ReferenceType?]] : [number];
|
|
73
|
+
export type Referenceable = IReferenceTypeMap[ReferenceableReferenceTypes];
|
|
74
|
+
export type ResolveReference<REFTYPE extends ReferenceType> = IReferenceTypeMap[REFTYPE];
|
|
75
|
+
export type EnumReferenceResolved<REFTYPE extends EnumReferenceTypes = EnumReferenceTypes> = IReferenceTypeMap[REFTYPE];
|
|
76
76
|
export declare module Reference {
|
|
77
77
|
function setReferenceResolver(resolver: typeof ReferenceManager.get): void;
|
|
78
78
|
function create(id: number): Reference;
|
|
@@ -25,7 +25,7 @@ export declare enum Temperature {
|
|
|
25
25
|
Hot = 50,
|
|
26
26
|
Hottest = 100
|
|
27
27
|
}
|
|
28
|
-
export
|
|
28
|
+
export type TimeTemperatureModifier = ((time: TimeManager) => number) | IRange;
|
|
29
29
|
export interface ILayerTemperature {
|
|
30
30
|
/**
|
|
31
31
|
* When not provided, uses `0`
|
|
@@ -166,7 +166,7 @@ export interface ITile extends Partial<ITileContainer> {
|
|
|
166
166
|
export interface ITileOld {
|
|
167
167
|
event?: TileEvent[];
|
|
168
168
|
}
|
|
169
|
-
export
|
|
169
|
+
export type ITileContainer = IContainer & IVector3;
|
|
170
170
|
export interface ITileData {
|
|
171
171
|
type: TerrainType;
|
|
172
172
|
minDur?: number;
|
|
@@ -184,7 +184,7 @@ export interface ITileData {
|
|
|
184
184
|
renamed?: string | ISerializedTranslation | undefined;
|
|
185
185
|
tradedFrom?: string[];
|
|
186
186
|
}
|
|
187
|
-
export
|
|
187
|
+
export type ITileDataOld = Partial<ITileData> & {
|
|
188
188
|
strength?: number;
|
|
189
189
|
};
|
|
190
190
|
export declare enum TileTemplateType {
|
|
@@ -81,7 +81,7 @@ import { Responsibility } from "ui/screen/screens/menu/menus/main/IAbout";
|
|
|
81
81
|
import { ModSort } from "ui/screen/screens/menu/menus/mods/IModsMenu";
|
|
82
82
|
import { Direction } from "utilities/math/Direction";
|
|
83
83
|
import { ChangeType } from "utilities/trello/ITrello";
|
|
84
|
-
export
|
|
84
|
+
export type Enum = Record<string, number> & Record<number, string>;
|
|
85
85
|
export declare const SYMBOL_ANY_DICTIONARY: unique symbol;
|
|
86
86
|
declare const dictionaryMap: {
|
|
87
87
|
0: typeof ActionType;
|
|
@@ -287,8 +287,8 @@ export declare const strictDictionaries: {
|
|
|
287
287
|
98: typeof WeightStatus;
|
|
288
288
|
99: typeof WorldZ;
|
|
289
289
|
};
|
|
290
|
-
export
|
|
291
|
-
export
|
|
290
|
+
export type DictionaryEnum = (typeof dictionaryMap)[Dictionary];
|
|
291
|
+
export type DictionaryEntryEnums = {
|
|
292
292
|
[DICTIONARY in keyof typeof dictionaryMap]: (typeof dictionaryMap)[DICTIONARY] extends infer ENTRY_ENUM ? ENTRY_ENUM[keyof ENTRY_ENUM] : never;
|
|
293
293
|
};
|
|
294
294
|
declare function getByEnum(enumObject: DictionaryEnum): Dictionary;
|
|
@@ -12,7 +12,7 @@ interface IDictionarySchema {
|
|
|
12
12
|
type: "object";
|
|
13
13
|
properties: Record<string, any>;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
type DictionarySchemas = Record<string, IDictionarySchema>;
|
|
16
16
|
export default function generateSchema(): {
|
|
17
17
|
title: string;
|
|
18
18
|
description: string;
|
|
@@ -16,7 +16,7 @@ import Translation from "language/Translation";
|
|
|
16
16
|
import type TranslationsProvider from "language/TranslationsProvider";
|
|
17
17
|
import type { IStringSection } from "utilities/string/Interpolator";
|
|
18
18
|
import { CaseStyle } from "utilities/string/Strings";
|
|
19
|
-
|
|
19
|
+
type ArticleRules = Array<[number | {
|
|
20
20
|
min: number;
|
|
21
21
|
max?: number;
|
|
22
22
|
} | null, string, string]>;
|
|
@@ -96,5 +96,5 @@ export interface ISelector {
|
|
|
96
96
|
attribute?: string;
|
|
97
97
|
func?(translation: Translation): string;
|
|
98
98
|
}
|
|
99
|
-
export
|
|
99
|
+
export type ISelectorArray = Record<number, ISelector>;
|
|
100
100
|
export {};
|
|
@@ -25,7 +25,7 @@ import type { ISerializedTranslation } from "language/ITranslation";
|
|
|
25
25
|
import { formatList as formatListTranslation } from "language/segment/FormatListSegment";
|
|
26
26
|
import ITranslationSorter from "language/utility/TranslationSorter";
|
|
27
27
|
import type { IStringSection } from "utilities/string/Interpolator";
|
|
28
|
-
|
|
28
|
+
type Translation = TranslationImpl;
|
|
29
29
|
declare module Translation {
|
|
30
30
|
function equals(a: Translation, b: Translation): boolean;
|
|
31
31
|
const RANDOM = "random";
|
|
@@ -8,15 +8,15 @@
|
|
|
8
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
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
11
|
+
export type PluralRule = [RegExp, string];
|
|
12
|
+
export type SingularRule = [RegExp, string];
|
|
13
|
+
export type UncountableRule = RegExp;
|
|
14
14
|
export interface IrregularRule {
|
|
15
15
|
singular: [string, RegExp];
|
|
16
16
|
plural: [string, RegExp];
|
|
17
17
|
}
|
|
18
|
-
export
|
|
19
|
-
export
|
|
18
|
+
export type NameRule = [CountMatcher, RegExp, string];
|
|
19
|
+
export type CountMatcher = number | {
|
|
20
20
|
min: number;
|
|
21
21
|
max?: number;
|
|
22
22
|
} | null;
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { Milestone as Milestone } from "game/milestones/IMilestone";
|
|
12
|
-
|
|
12
|
+
type MilestoneTranslation = [string, string, string];
|
|
13
13
|
declare const _default: Record<Milestone, MilestoneTranslation>;
|
|
14
14
|
export default _default;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import type { IColorSection } from "language/segment/ColorSegment";
|
|
12
12
|
import type { IDecoratedSection } from "language/segment/TextDecorationSegments";
|
|
13
13
|
import type { ISegment } from "utilities/string/Interpolator";
|
|
14
|
-
export
|
|
14
|
+
export type Link = string | [string, string | undefined, string | undefined];
|
|
15
15
|
export interface ILinkSection extends IColorSection, IDecoratedSection {
|
|
16
16
|
link: Link;
|
|
17
17
|
}
|
|
@@ -87,7 +87,7 @@ export interface IImageOverrideDescription extends IHasImagePath {
|
|
|
87
87
|
replace: string;
|
|
88
88
|
animated?: boolean;
|
|
89
89
|
}
|
|
90
|
-
export
|
|
90
|
+
export type IImageOverrides = Array<string | IImageOverrideDescription>;
|
|
91
91
|
export interface ICustomizations {
|
|
92
92
|
hairColors: string[];
|
|
93
93
|
skinColors: string[];
|
|
@@ -8,7 +8,7 @@
|
|
|
8
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
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type ICanLoadInfo = {
|
|
12
12
|
name: string;
|
|
13
13
|
loadable: true;
|
|
14
14
|
index: number;
|
|
@@ -373,7 +373,7 @@ export interface IEntityTagRegistration extends IBaseModRegistration {
|
|
|
373
373
|
export interface IInheritsRegistrationTime {
|
|
374
374
|
useRegistrationTime: ModRegistrationType;
|
|
375
375
|
}
|
|
376
|
-
export
|
|
376
|
+
export type ModRegistration = IActionRegistration | IBindableRegistration | IBiomeRegistration | IBulkRegistration | ICommandRegistration | ICreatureRegistration | IDialogRegistration | IDictionaryRegistration | IDoodadGroupRegistration | IDoodadRegistration | IHelpArticleRegistration | IInspectionTypeRegistration | IInterModRegistration | IInterModRegistryRegistration | IInterruptChoiceRegistration | IInterruptRegistration | IItemGroupRegistration | IItemRegistration | ILanguageExtensionRegistration | ILanguageRegistration | ILoadRegistration | IMagicalPropertyRegistration | IMenuBarButtonRegistration | IMessageRegistration | IMessageSourceRegistration | IMusicTrackRegistration | INoteRegistration | INPCRegistration | IOptionsSectionRegistration | IOverlayRegistration | IPacketRegistration | IPromptRegistration | IQuadrantComponentRegistration | IQuestRegistration | IQuestRequirementRegistration | IRegistryRegistration | ISkillRegistration | ISoundEffectRegistration | IStatRegistration | IStatusEffectRegistration | ITerrainDecorationRegistration | ITerrainRegistration | ITileEventRegistration | ITileLayerTypeRegistration | IUsableActionsRegistration | IUsableActionTypePlaceholderRegistration | IUsableActionTypeRegistration | IItemTagRegistration | IDoodadTagRegistration | IEntityTagRegistration;
|
|
377
377
|
export declare const SYMBOL_SUPER_REGISTRY: unique symbol;
|
|
378
378
|
declare module Register {
|
|
379
379
|
/**
|
|
@@ -115,7 +115,7 @@ export declare const syncCheckWaitingResetTime = 5000;
|
|
|
115
115
|
export declare const defaultSyncChecks: MultiplayerSyncCheck[];
|
|
116
116
|
export declare const networkingOptions: IMultiplayerNetworkingOptions;
|
|
117
117
|
export declare function getDefaultMultiplayerOptions(): IMultiplayerOptions;
|
|
118
|
-
export
|
|
118
|
+
export type PacketTarget = Array<Player | IConnection> | Player | IConnection;
|
|
119
119
|
export interface IMultiplayerOptions {
|
|
120
120
|
lobbyType: LobbyType;
|
|
121
121
|
pvp: boolean;
|
|
@@ -152,7 +152,7 @@ export interface IMultiplayerNetworkingOptions {
|
|
|
152
152
|
steamNetworkingConnectionWebRTCFallbackDownloadingTimeout: number;
|
|
153
153
|
webSocketConnectionMaxMessageSize: number;
|
|
154
154
|
}
|
|
155
|
-
export
|
|
155
|
+
export type ServerInfo = string | IMatchmakingInfo;
|
|
156
156
|
export declare enum PacketAcceptType {
|
|
157
157
|
Serverside = 1,
|
|
158
158
|
Clientside = 2,
|
|
@@ -16,8 +16,8 @@ export interface ISshCommand {
|
|
|
16
16
|
requirements: SshCommandRequirement;
|
|
17
17
|
callback: SshCommandCallback;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
20
|
-
export
|
|
19
|
+
export type SshCommandCallback = (shell: ISshShell, args: string) => Promise<SshCommandResult>;
|
|
20
|
+
export type SshCommandResult = ISshShell | false | undefined | void;
|
|
21
21
|
export declare enum SshCommandType {
|
|
22
22
|
Help = 0,
|
|
23
23
|
Status = 1,
|
|
@@ -88,7 +88,7 @@ export interface IMatchmakingUnableToJoinGameMessageData extends IMatchmakingMes
|
|
|
88
88
|
reason: UnableToJoinReason;
|
|
89
89
|
args?: Array<number | string>;
|
|
90
90
|
}
|
|
91
|
-
export
|
|
91
|
+
export type MatchmakingMessageData = IMatchmakingCheckConnectionMessageData | IMatchmakingUpdateDirectoryMessageData | IMatchmakingIpAddressMessageData | IMatchmakingJoinChannelMessageData | IMatchmakingIceCandidateMessageData | IMatchmakingSessionDescriptionMessageData | IMatchmakingHostIpAddressMessageData | IMatchmakingConnectedMessageData | IMatchmakingUnableToJoinGameMessageData;
|
|
92
92
|
export interface IServer {
|
|
93
93
|
id: string;
|
|
94
94
|
serverDetails: IServerServerDetails;
|
|
@@ -27,7 +27,7 @@ export interface ISyncCheck {
|
|
|
27
27
|
id: MultiplayerSyncCheck;
|
|
28
28
|
value: string | number;
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export type SyncChecks = ISyncCheck[];
|
|
31
31
|
export interface IHashedSyncCheck {
|
|
32
32
|
hash: number;
|
|
33
33
|
syncCheck: SyncChecks;
|