@wayward/types 2.15.0-beta.dev.20251003.1 → 2.15.0-beta.dev.20251004.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/game/game/Game.d.ts +3 -1
- package/definitions/game/game/IGame.d.ts +0 -6
- package/definitions/game/game/curse/Curse.d.ts +27 -8
- package/definitions/game/game/curse/CurseEvent.d.ts +15 -11
- package/definitions/game/game/curse/ICurse.d.ts +24 -1
- package/definitions/game/game/entity/Human.d.ts +4 -1
- package/definitions/game/game/island/Island.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Exsanguinated.d.ts +1 -1
- package/definitions/game/language/Dictionary.d.ts +1 -1
- package/definitions/game/language/DictionaryMap.d.ts +3 -3
- package/definitions/game/language/dictionary/Message.d.ts +873 -872
- package/definitions/game/language/english/game/{CurseEventCategories.d.ts → CurseEventGroups.d.ts} +3 -3
- package/definitions/game/resource/IResourceLoader.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/static/stats/component/Statuses.d.ts +1 -0
- package/definitions/{utilities/class → game/utilities}/Inject.d.ts +2 -1
- package/definitions/utilities/event/EventBusManager.d.ts +4 -3
- package/package.json +1 -1
package/definitions/game/language/english/game/{CurseEventCategories.d.ts → CurseEventGroups.d.ts}
RENAMED
|
@@ -8,6 +8,6 @@
|
|
|
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
|
-
import {
|
|
12
|
-
declare const
|
|
13
|
-
export default
|
|
11
|
+
import { CurseGroup } from "@wayward/game/game/curse/ICurse";
|
|
12
|
+
declare const curseEventGroups: Record<CurseGroup, string>;
|
|
13
|
+
export default curseEventGroups;
|
|
@@ -29,6 +29,7 @@ export default class Statuses extends Component {
|
|
|
29
29
|
* Event handler for the status effects of this entity changing
|
|
30
30
|
*/
|
|
31
31
|
onStatusChange(_: any, type: StatusType, level: number): void;
|
|
32
|
+
private removeStatusIcons;
|
|
32
33
|
protected updateStatusScale(): void;
|
|
33
34
|
private initializeTooltipLocation;
|
|
34
35
|
}
|
|
@@ -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
|
-
import "@wayward/
|
|
11
|
+
import { EventBus, type EventBuses } from "@wayward/game/event/EventBuses";
|
|
12
12
|
export interface IInjectionApi<T, K extends keyof T> {
|
|
13
13
|
/**
|
|
14
14
|
* The instance that the injected method was called on.
|
|
@@ -44,6 +44,7 @@ export declare enum InjectionPosition {
|
|
|
44
44
|
}
|
|
45
45
|
export declare function InjectObject<T, K extends keyof T>(injectInto: T, property: K, position: InjectionPosition, priority?: number): T extends Partial<Record<K, AnyFunction>> ? (host: any, property2: string | number | symbol, descriptor: TypedPropertyDescriptor<InjectionMethod<T, K>>) => any : never;
|
|
46
46
|
export declare function Inject<T extends Record<K, AnyFunction>, K extends keyof T>(injectInto: AnyClass<T>, property: K, position: InjectionPosition, priority?: number): (host: any, property2: string | number | symbol, descriptor: TypedPropertyDescriptor<InjectionMethod<T, K>>) => any;
|
|
47
|
+
export declare function Inject<E extends EventBus, I extends ReturnType<EventBuses[E]>, K extends keyof I>(injectInto: E, property: K, position: InjectionPosition, priority?: number): (host: any, property2: string | number | symbol, descriptor: TypedPropertyDescriptor<InjectionMethod<I, K>>) => any;
|
|
47
48
|
export declare namespace Inject {
|
|
48
49
|
function makeInjectableClass<T extends AbstractNullaryClass<any>, O>(cls: T): Class<Merge<InstanceOf<T>, O>>;
|
|
49
50
|
}
|
|
@@ -8,17 +8,18 @@
|
|
|
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 interface
|
|
11
|
+
export interface IEventBusRegistrationHandler {
|
|
12
12
|
subscribe: NullaryFunction;
|
|
13
13
|
unsubscribe: NullaryFunction;
|
|
14
14
|
}
|
|
15
15
|
export declare class EventBusManager<EventBus extends number, EventBuses extends Record<EventBus, any>> {
|
|
16
16
|
readonly eventBuses: EventBuses;
|
|
17
|
-
eventBusRegistrationHandlers: Map<EventBus,
|
|
17
|
+
eventBusRegistrationHandlers: Map<EventBus, IEventBusRegistrationHandler[]>;
|
|
18
18
|
constructor(eventBuses: EventBuses);
|
|
19
|
+
getClass<CLASS>(eventBus: EventBus): CLASS | undefined;
|
|
19
20
|
register<E extends EventBus>(eventBus: E, classOrHost: ReturnType<EventBuses[E]>): void;
|
|
20
21
|
register(eventBus: EventBus): (constructor: AbstractNullaryClass<any>) => any;
|
|
21
22
|
unregister(eventBus: EventBus): boolean;
|
|
22
23
|
private handleEventBusRegistration;
|
|
23
|
-
onEventBusRegistration(eventBus: EventBus, registration:
|
|
24
|
+
onEventBusRegistration(eventBus: EventBus, registration: IEventBusRegistrationHandler): () => void;
|
|
24
25
|
}
|
package/package.json
CHANGED