forked from greenheartgames/greenworks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgreenworks.d.ts
29 lines (26 loc) · 944 Bytes
/
greenworks.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
declare module "greenworks" {
type TDefaultErrorCallback = (error: any) => void;
type TGetCloudQuotaSuccessCallback = (
total_bytes: number,
available_bytes: number
) => void;
const greenworks: {
init: () => boolean;
getCloudQuota: (
success_callback: TGetCloudQuotaSuccessCallback,
error_callback: TDefaultErrorCallback
) => void;
// TODO: steamId obj https://github.com/greenheartgames/greenworks/blob/master/docs/friends.md#steamid
getSteamId: () => unknown;
// TODO: https://github.com/greenheartgames/greenworks/blob/master/docs/setting.md#greenworksgetappinstalldirapp_id-buffer-buffer_size
getAppInstallDir: (
app_id: number,
buffer?: any,
buffer_size?: any
) => string;
getCurrentGameLanguage: () => string;
getCurrentUILanguage: () => string;
};
export default greenworks;
export { TGetCloudQuotaSuccessCallback, TDefaultErrorCallback };
}