-
-
Notifications
You must be signed in to change notification settings - Fork 151
/
sugarcube.d.ts
42 lines (36 loc) · 1.05 KB
/
sugarcube.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { HistoryItem } from 'src/Tools/history'
import { NPC } from './lib/npc-generation/_common'
import { Town } from './lib/town/_common'
/*******************************************************************************
SugarCube overrides.
*******************************************************************************/
declare module 'twine-sugarcube' {
export interface SugarCubeSettingVariables {
silverStandard?: boolean
ignoreGender?: boolean
showBiomeGeneration?: boolean
displayTwoColumns?: boolean
hideAds?: boolean
disableAnalytics?: boolean
disableNSFW?: boolean
}
/**
* TODO: Fill in these types.
*/
export interface SugarCubeStoryVariables {
town: Town
npcs: Record<string, NPC>
[key: string]: unknown
history: HistoryItem[]
currentPassage: any
}
export interface Util {
slugify(): string
fromCssTime(): number
escape(): string
}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface SugarCubeSetupObject extends Setup {
}
}
export {}