forked from Yekaterina999/Kate-GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyrogenesis.d.ts
70 lines (59 loc) · 1.72 KB
/
pyrogenesis.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
declare namespace Engine
{
/**
* Flags the start of a profiling with the indentifier "name"
*/
function ProfileStart(name: string): void;
/**
* Ends the more recent ProfileStart flag started
*/
function ProfileStop(): void;
/**
* Flag to call in between ProfileEnd and ProfileEnd calls.
* Can be called zero or more times.
*/
function ProfileAttribute(name: string): void;
/**
* Return an array of pathname strings, one for each matching entry
* in the specified directory.
* @param path - Path base directory. Empty string means root dir.
* @param filterStr - Default: "" - String match; see vfs_next_dirent for syntax
* @param recurse - Default: false - Make search recursive
*/
function ListDirectoryFiles(path: string, filterStr?: string, recurse?: boolean): string[];
/**
* @returns true if the file exits
*/
function FileExists(filePath: string): boolean;
/**
* @returns JSON as an javascirpt object.
*/
function ReadJSONFile(filePath: string): object | null;
}
/**
* Prints to stdout if in debug mode
*/
declare function print(...text: string[]): void;
/**
* Prints to internal console and to mainlog.html
*/
declare function log(text: string): void;
/**
* Prints to internal console, mainlog.html and interestinglog.html
* Prefixed with "WARNING:"
*/
declare function warn(text: string): void;
/**
* Prints to internal console, mainlog.html and interestinglog.html
* Prefixed with "ERROR:"" and color red
*/
declare function error(text: string): void;
/**
* Deep copy (recursive copy)
*/
declare function clone(data: any): any | undefined;
/**
* Deep freeez object (recusive freezed)
* @returns deep freezed object
*/
declare function deepfreeze(object: object): object | undefined;