1 | declare module "@xmcl/common/gamesetting" {
|
2 | namespace GameSetting {
|
3 | /**
|
4 | * Parse raw game setting options.txt content
|
5 | *
|
6 | * @param str the options.txt content
|
7 | * @param strict strictly follow the current version of options format (outdate version might cause problem. If your options.txt is new one with new fields, don't turn on this)
|
8 | */
|
9 | function parse<T extends boolean>(str: string, strict?: T): T extends true ? GameSetting : GameSetting.Frame;
|
10 | /**
|
11 | * Generate text format game setting for options.txt file.
|
12 | *
|
13 | * @param setting The game setting object
|
14 | * @param original
|
15 | * @param eol The end of line character, default is `\n`
|
16 | */
|
17 | function stringify(setting: GameSetting | GameSetting.Frame | any, original?: string, eol?: string): string;
|
18 | }
|
19 | }
|
20 | export * from "@xmcl/common/gamesetting";
|