2022-12-31 10:15:23 +00:00
|
|
|
export {};
|
|
|
|
|
|
|
|
declare global {
|
|
|
|
interface Window {
|
|
|
|
game_data: {
|
|
|
|
group_id: number;
|
|
|
|
player: {
|
|
|
|
id: number;
|
2023-01-26 06:30:21 +00:00
|
|
|
name: string;
|
2022-12-31 10:15:23 +00:00
|
|
|
};
|
|
|
|
village: {
|
|
|
|
id: number;
|
2023-02-04 11:40:38 +00:00
|
|
|
x: number;
|
|
|
|
y: number;
|
2022-12-31 10:15:23 +00:00
|
|
|
};
|
2023-01-26 06:30:21 +00:00
|
|
|
market: string;
|
2022-12-31 10:15:23 +00:00
|
|
|
locale: string;
|
|
|
|
screen: string;
|
|
|
|
mode: string | null;
|
2023-01-26 06:30:21 +00:00
|
|
|
world: string;
|
2023-02-05 07:00:32 +00:00
|
|
|
features: {
|
|
|
|
Premium: {
|
|
|
|
active: boolean;
|
|
|
|
};
|
|
|
|
};
|
2022-12-31 10:15:23 +00:00
|
|
|
};
|
|
|
|
TribalWars: {
|
|
|
|
redirect: (queryParams: Record<string, string>) => void;
|
2023-01-26 06:30:21 +00:00
|
|
|
buildURL: (
|
|
|
|
method: string,
|
|
|
|
screen: string,
|
|
|
|
params: Record<string, string>
|
|
|
|
) => string;
|
2022-12-31 10:15:23 +00:00
|
|
|
};
|
|
|
|
UI: {
|
|
|
|
InfoMessage: (s: string) => void;
|
|
|
|
ErrorMessage: (s: string) => void;
|
|
|
|
};
|
2023-01-26 06:30:21 +00:00
|
|
|
Dialog: {
|
|
|
|
show: (id: string, html: string) => void;
|
|
|
|
close: () => void;
|
|
|
|
};
|
2023-02-04 11:40:38 +00:00
|
|
|
Timing: {
|
|
|
|
getCurrentServerTime: () => number;
|
|
|
|
};
|
2022-12-31 10:15:23 +00:00
|
|
|
}
|
|
|
|
}
|