@scml-dol-maplebirch/types 4.4.0 → 4.4.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/maplebirch.d.ts +104 -105
- package/package.json +1 -1
package/maplebirch.d.ts
CHANGED
|
@@ -3227,111 +3227,6 @@ declare class NPCSidebarArt {
|
|
|
3227
3227
|
//#region src/modules/NamedNPCAddon/NPCClothes/Condition.d.ts
|
|
3228
3228
|
type Condition = boolean | string | (() => boolean) | Condition[];
|
|
3229
3229
|
//#endregion
|
|
3230
|
-
//#region src/modules/NamedNPCAddon/NPCClothes/NPCSidebarWardrobe.d.ts
|
|
3231
|
-
interface WardrobeItem {
|
|
3232
|
-
[part: string]: any;
|
|
3233
|
-
}
|
|
3234
|
-
type WardrobeWetness = 'dry' | 'damp' | 'wet' | 'soaked';
|
|
3235
|
-
type WardrobeWetnessResolver = WardrobeWetness | (() => WardrobeWetness);
|
|
3236
|
-
interface WardrobeWearOptions {
|
|
3237
|
-
when?: Condition;
|
|
3238
|
-
wetness?: WardrobeWetnessResolver;
|
|
3239
|
-
}
|
|
3240
|
-
type WardrobeWeightedChoice = readonly [key: string, weight: number];
|
|
3241
|
-
type WardrobeChoice = string | readonly WardrobeWeightedChoice[];
|
|
3242
|
-
type WardrobeLayerResolver = string | (() => string);
|
|
3243
|
-
interface WardrobeContext {
|
|
3244
|
-
npcName: string;
|
|
3245
|
-
location: string;
|
|
3246
|
-
key: string;
|
|
3247
|
-
wetness: WardrobeWetness;
|
|
3248
|
-
}
|
|
3249
|
-
type WardrobeModifier = (clothes: WardrobeItem, context: WardrobeContext) => void;
|
|
3250
|
-
declare class NPCSidebarWardrobe {
|
|
3251
|
-
private readonly manager;
|
|
3252
|
-
private readonly templates;
|
|
3253
|
-
private readonly profiles;
|
|
3254
|
-
constructor(manager: NPCManager);
|
|
3255
|
-
init(): void;
|
|
3256
|
-
load(modName: string, filePath: string): Promise<void>;
|
|
3257
|
-
get(key: string): WardrobeItem | undefined;
|
|
3258
|
-
set(key: string, template: WardrobeItem): void;
|
|
3259
|
-
has(key: string): boolean;
|
|
3260
|
-
wear(npcName: string, location: string | readonly string[], choice: WardrobeChoice, options?: Condition | WardrobeWearOptions): void;
|
|
3261
|
-
wet(npcName: string, wetness: WardrobeWetnessResolver, cond?: Condition): void;
|
|
3262
|
-
layer(npcName: string, source: WardrobeLayerResolver, cond?: Condition): void;
|
|
3263
|
-
put(clothes: WardrobeItem, key: string): void;
|
|
3264
|
-
strip(clothes: WardrobeItem, slot: string | readonly string[]): void;
|
|
3265
|
-
base(npcName: string, modifier: WardrobeModifier): void;
|
|
3266
|
-
modify(npcName: string, modifier: WardrobeModifier): void;
|
|
3267
|
-
worn(npcName: string): WardrobeItem;
|
|
3268
|
-
private run;
|
|
3269
|
-
private add;
|
|
3270
|
-
private merge;
|
|
3271
|
-
private select;
|
|
3272
|
-
private find;
|
|
3273
|
-
private choose;
|
|
3274
|
-
private findWet;
|
|
3275
|
-
private resolveWet;
|
|
3276
|
-
private applyWet;
|
|
3277
|
-
private profile;
|
|
3278
|
-
private location;
|
|
3279
|
-
}
|
|
3280
|
-
//#endregion
|
|
3281
|
-
//#region src/modules/NamedNPCAddon/NPCClothes.d.ts
|
|
3282
|
-
declare class NPCClothes {
|
|
3283
|
-
readonly outfitSets: NPCOutfitSets;
|
|
3284
|
-
readonly art: NPCSidebarArt;
|
|
3285
|
-
readonly wardrobe: NPCSidebarWardrobe;
|
|
3286
|
-
constructor(manager: NPCManager);
|
|
3287
|
-
init(): void;
|
|
3288
|
-
}
|
|
3289
|
-
//#endregion
|
|
3290
|
-
//#region src/modules/NamedNPCAddon/NPCSidebar.d.ts
|
|
3291
|
-
interface NPCSidebarBootConfig {
|
|
3292
|
-
clothes?: string[];
|
|
3293
|
-
image?: string[];
|
|
3294
|
-
config?: string[];
|
|
3295
|
-
}
|
|
3296
|
-
declare function config(manager: NPCManager, modName: string, modZip: ModZipReader, config: NPCSidebarBootConfig): Promise<void>;
|
|
3297
|
-
declare function loadFromMod(modZip: ModZipReader, npc_names: string[]): string[];
|
|
3298
|
-
declare class NPCPet {
|
|
3299
|
-
private readonly pets;
|
|
3300
|
-
private frame;
|
|
3301
|
-
private syncing;
|
|
3302
|
-
sync(): boolean;
|
|
3303
|
-
private render;
|
|
3304
|
-
reset(): void;
|
|
3305
|
-
private cancel;
|
|
3306
|
-
}
|
|
3307
|
-
declare const NPCSidebar: {
|
|
3308
|
-
new (): {};
|
|
3309
|
-
readonly pet: NPCPet;
|
|
3310
|
-
get display(): Map<string, Set<string>>;
|
|
3311
|
-
config: typeof config;
|
|
3312
|
-
loadFromMod: typeof loadFromMod;
|
|
3313
|
-
hair_type(type: 'sides' | 'fringe'): Record<string, string>;
|
|
3314
|
-
init(manager: NPCManager): void;
|
|
3315
|
-
};
|
|
3316
|
-
//#endregion
|
|
3317
|
-
//#region src/modules/NamedNPCAddon/NPCFluids.d.ts
|
|
3318
|
-
type NPCFluidPart = 'vagina' | 'vaginaoutside' | 'anus' | 'mouth' | 'penis' | 'chest' | 'face' | 'hair' | 'bottom' | 'feet' | 'leftarm' | 'rightarm' | 'neck' | 'thigh' | 'tummy';
|
|
3319
|
-
type NPCFluidType = 'goo' | 'semen';
|
|
3320
|
-
type NPCFluidAmount = [goo: number, semen: number];
|
|
3321
|
-
type NPCFluidData = Record<NPCFluidPart, NPCFluidAmount>;
|
|
3322
|
-
declare class NPCFluids {
|
|
3323
|
-
readonly parts: NPCFluidPart[];
|
|
3324
|
-
ensure(npcName: string): NPCFluidData;
|
|
3325
|
-
get(npcName: string): NPCFluidData;
|
|
3326
|
-
combined(npcName: string, part: NPCFluidPart): number;
|
|
3327
|
-
set(npcName: string, part: NPCFluidPart, value: number, type?: NPCFluidType): NPCFluidData;
|
|
3328
|
-
add(npcName: string, part: NPCFluidPart, value?: number, type?: NPCFluidType): NPCFluidData;
|
|
3329
|
-
reduce(npcName: string, part: NPCFluidPart, value?: number, type?: NPCFluidType): NPCFluidData;
|
|
3330
|
-
clear(npcName: string, part?: NPCFluidPart, type?: NPCFluidType): NPCFluidData;
|
|
3331
|
-
decay(value?: number): void;
|
|
3332
|
-
apply(nnpc: Record<string, any>, npcData: any): void;
|
|
3333
|
-
}
|
|
3334
|
-
//#endregion
|
|
3335
3230
|
//#region src/modules/NamedNPCAddon/NPCSidebarConfig/transformation_layers.d.ts
|
|
3336
3231
|
declare const transformationDefaults: {
|
|
3337
3232
|
show_tf: boolean;
|
|
@@ -3522,6 +3417,110 @@ interface NPCSidebarState extends Partial<typeof transformationDefaults> {
|
|
|
3522
3417
|
[key: string]: unknown;
|
|
3523
3418
|
}
|
|
3524
3419
|
//#endregion
|
|
3420
|
+
//#region src/modules/NamedNPCAddon/NPCClothes/NPCSidebarWardrobe.d.ts
|
|
3421
|
+
type WardrobeClothing = Partial<NPCSidebarClothing>;
|
|
3422
|
+
type WardrobeItem = Partial<Record<NPCClothesSlot, WardrobeClothing>>;
|
|
3423
|
+
type WardrobeWetness = 'dry' | 'damp' | 'wet' | 'soaked';
|
|
3424
|
+
type WardrobeWetnessResolver = WardrobeWetness | (() => WardrobeWetness);
|
|
3425
|
+
interface WardrobeWearOptions {
|
|
3426
|
+
when?: Condition;
|
|
3427
|
+
wetness?: WardrobeWetnessResolver;
|
|
3428
|
+
}
|
|
3429
|
+
type WardrobeWeightedChoice = readonly [key: string, weight: number];
|
|
3430
|
+
type WardrobeChoice = string | readonly WardrobeWeightedChoice[];
|
|
3431
|
+
type WardrobeLayerResolver = string | (() => string);
|
|
3432
|
+
interface WardrobeContext {
|
|
3433
|
+
npcName: string;
|
|
3434
|
+
location: string;
|
|
3435
|
+
key: string;
|
|
3436
|
+
wetness: WardrobeWetness;
|
|
3437
|
+
}
|
|
3438
|
+
type WardrobeModifier = (clothes: WardrobeItem, context: WardrobeContext) => void;
|
|
3439
|
+
declare class NPCSidebarWardrobe {
|
|
3440
|
+
private readonly manager;
|
|
3441
|
+
private readonly templates;
|
|
3442
|
+
private readonly profiles;
|
|
3443
|
+
constructor(manager: NPCManager);
|
|
3444
|
+
init(): void;
|
|
3445
|
+
load(modName: string, filePath: string): Promise<void>;
|
|
3446
|
+
get(key: string): WardrobeItem | undefined;
|
|
3447
|
+
set(key: string, template: WardrobeItem): void;
|
|
3448
|
+
has(key: string): boolean;
|
|
3449
|
+
wear(npcName: string, location: string | readonly string[], choice: WardrobeChoice, options?: Condition | WardrobeWearOptions): void;
|
|
3450
|
+
wet(npcName: string, wetness: WardrobeWetnessResolver, cond?: Condition): void;
|
|
3451
|
+
layer(npcName: string, source: WardrobeLayerResolver, cond?: Condition): void;
|
|
3452
|
+
put(clothes: WardrobeItem, key: string): void;
|
|
3453
|
+
strip(clothes: WardrobeItem, slot: NPCClothesSlot | readonly NPCClothesSlot[]): void;
|
|
3454
|
+
base(npcName: string, modifier: WardrobeModifier): void;
|
|
3455
|
+
modify(npcName: string, modifier: WardrobeModifier): void;
|
|
3456
|
+
worn(npcName: string): WardrobeItem;
|
|
3457
|
+
private run;
|
|
3458
|
+
private add;
|
|
3459
|
+
private merge;
|
|
3460
|
+
private select;
|
|
3461
|
+
private find;
|
|
3462
|
+
private choose;
|
|
3463
|
+
private findWet;
|
|
3464
|
+
private resolveWet;
|
|
3465
|
+
private applyWet;
|
|
3466
|
+
private profile;
|
|
3467
|
+
private location;
|
|
3468
|
+
}
|
|
3469
|
+
//#endregion
|
|
3470
|
+
//#region src/modules/NamedNPCAddon/NPCClothes.d.ts
|
|
3471
|
+
declare class NPCClothes {
|
|
3472
|
+
readonly outfitSets: NPCOutfitSets;
|
|
3473
|
+
readonly art: NPCSidebarArt;
|
|
3474
|
+
readonly wardrobe: NPCSidebarWardrobe;
|
|
3475
|
+
constructor(manager: NPCManager);
|
|
3476
|
+
init(): void;
|
|
3477
|
+
}
|
|
3478
|
+
//#endregion
|
|
3479
|
+
//#region src/modules/NamedNPCAddon/NPCSidebar.d.ts
|
|
3480
|
+
interface NPCSidebarBootConfig {
|
|
3481
|
+
clothes?: string[];
|
|
3482
|
+
image?: string[];
|
|
3483
|
+
config?: string[];
|
|
3484
|
+
}
|
|
3485
|
+
declare function config(manager: NPCManager, modName: string, modZip: ModZipReader, config: NPCSidebarBootConfig): Promise<void>;
|
|
3486
|
+
declare function loadFromMod(modZip: ModZipReader, npc_names: string[]): string[];
|
|
3487
|
+
declare class NPCPet {
|
|
3488
|
+
private readonly pets;
|
|
3489
|
+
private frame;
|
|
3490
|
+
private syncing;
|
|
3491
|
+
sync(): boolean;
|
|
3492
|
+
private render;
|
|
3493
|
+
reset(): void;
|
|
3494
|
+
private cancel;
|
|
3495
|
+
}
|
|
3496
|
+
declare const NPCSidebar: {
|
|
3497
|
+
new (): {};
|
|
3498
|
+
readonly pet: NPCPet;
|
|
3499
|
+
get display(): Map<string, Set<string>>;
|
|
3500
|
+
config: typeof config;
|
|
3501
|
+
loadFromMod: typeof loadFromMod;
|
|
3502
|
+
hair_type(type: 'sides' | 'fringe'): Record<string, string>;
|
|
3503
|
+
init(manager: NPCManager): void;
|
|
3504
|
+
};
|
|
3505
|
+
//#endregion
|
|
3506
|
+
//#region src/modules/NamedNPCAddon/NPCFluids.d.ts
|
|
3507
|
+
type NPCFluidPart = 'vagina' | 'vaginaoutside' | 'anus' | 'mouth' | 'penis' | 'chest' | 'face' | 'hair' | 'bottom' | 'feet' | 'leftarm' | 'rightarm' | 'neck' | 'thigh' | 'tummy';
|
|
3508
|
+
type NPCFluidType = 'goo' | 'semen';
|
|
3509
|
+
type NPCFluidAmount = [goo: number, semen: number];
|
|
3510
|
+
type NPCFluidData = Record<NPCFluidPart, NPCFluidAmount>;
|
|
3511
|
+
declare class NPCFluids {
|
|
3512
|
+
readonly parts: NPCFluidPart[];
|
|
3513
|
+
ensure(npcName: string): NPCFluidData;
|
|
3514
|
+
get(npcName: string): NPCFluidData;
|
|
3515
|
+
combined(npcName: string, part: NPCFluidPart): number;
|
|
3516
|
+
set(npcName: string, part: NPCFluidPart, value: number, type?: NPCFluidType): NPCFluidData;
|
|
3517
|
+
add(npcName: string, part: NPCFluidPart, value?: number, type?: NPCFluidType): NPCFluidData;
|
|
3518
|
+
reduce(npcName: string, part: NPCFluidPart, value?: number, type?: NPCFluidType): NPCFluidData;
|
|
3519
|
+
clear(npcName: string, part?: NPCFluidPart, type?: NPCFluidType): NPCFluidData;
|
|
3520
|
+
decay(value?: number): void;
|
|
3521
|
+
apply(nnpc: Record<string, any>, npcData: any): void;
|
|
3522
|
+
}
|
|
3523
|
+
//#endregion
|
|
3525
3524
|
//#region src/modules/NamedNPCAddon/NPCTransformation.d.ts
|
|
3526
3525
|
interface NPCTransformationState {
|
|
3527
3526
|
build: number;
|