|
@@ -24,6 +24,7 @@ declare module "twine-sugarcube" {
|
|
};
|
|
};
|
|
QuestsDict: { new(): QuestsDict };
|
|
QuestsDict: { new(): QuestsDict };
|
|
Skill: { new(): Skill };
|
|
Skill: { new(): Skill };
|
|
|
|
+ UserStyle: {new(): UserStyle};
|
|
VersionControl: { new(): VersionControl };
|
|
VersionControl: { new(): VersionControl };
|
|
|
|
|
|
|
|
|
|
@@ -91,6 +92,7 @@ declare module "twine-sugarcube" {
|
|
makeSVG: (tag:string, attrs:any,innerHTML?:string|number|undefined) => SVGElement;
|
|
makeSVG: (tag:string, attrs:any,innerHTML?:string|number|undefined) => SVGElement;
|
|
mediaPath(rawPath:string):string;
|
|
mediaPath(rawPath:string):string;
|
|
mediaPathImage(rawPath:string):string;
|
|
mediaPathImage(rawPath:string):string;
|
|
|
|
+ mediaPathRawToString(rawPath:ImagePath):string;
|
|
mergeDeep: (target:any, ...sources:any) => any;
|
|
mergeDeep: (target:any, ...sources:any) => any;
|
|
|
|
|
|
npcDescription:(npcIdOrObject:string|NPC)=>string;
|
|
npcDescription:(npcIdOrObject:string|NPC)=>string;
|
|
@@ -807,6 +809,8 @@ declare global {
|
|
priority: number, weight: number, contents: string
|
|
priority: number, weight: number, contents: string
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ type ImagePath = string|(string|number)[];
|
|
|
|
+
|
|
export interface ImageRand{
|
|
export interface ImageRand{
|
|
|
|
|
|
}
|
|
}
|
|
@@ -868,9 +872,29 @@ declare global {
|
|
}
|
|
}
|
|
|
|
|
|
export interface LocationDefinition{
|
|
export interface LocationDefinition{
|
|
|
|
+ image:ImagePath|LocationImageDefinition;
|
|
openTimes?:TimespanIdentifier;
|
|
openTimes?:TimespanIdentifier;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ export interface LocationImageDefinition{
|
|
|
|
+ day: ImagePath;
|
|
|
|
+ /**
|
|
|
|
+ * Defaults to day.
|
|
|
|
+ * @type {?ImagePath}
|
|
|
|
+ */
|
|
|
|
+ night?:ImagePath;
|
|
|
|
+ /**
|
|
|
|
+ * Defaults to day.
|
|
|
|
+ * @type {?ImagePath}
|
|
|
|
+ */
|
|
|
|
+ winterDay?:ImagePath;
|
|
|
|
+ /**
|
|
|
|
+ * Defaults to night.
|
|
|
|
+ * @type {?ImagePath}
|
|
|
|
+ */
|
|
|
|
+ winterNight?:ImagePath;
|
|
|
|
+ }
|
|
|
|
+
|
|
export type NPC = NPCAccessor & Character & {[key:string]:any};
|
|
export type NPC = NPCAccessor & Character & {[key:string]:any};
|
|
|
|
|
|
export interface NPCActivity{
|
|
export interface NPCActivity{
|