msgba-web/js-src/constants.ts

17 lines
693 B
TypeScript
Raw Normal View History

2023-03-19 20:05:33 +01:00
export const MIN_WIDTH = 240;
export const MIN_HEIGHT = 160;
export const PACKET_ID_HELLO = 0n;
export const PACKET_ID_SEND_FRAME = 1n;
2023-03-25 15:20:18 +01:00
export const PACKET_ID_KEY_DOWN = 2n;
export const CLOSE_BUTTON_IMAGE: string = "/img/close.png";
export const HOME_BUTTON_IMAGE: string = "/img/home.png";
2023-03-19 20:05:33 +01:00
export default class Constants {
2023-03-22 13:53:16 +01:00
public static MIN_WIDTH: number = MIN_WIDTH;
public static MIN_HEIGHT: number = MIN_HEIGHT;
public static PACKET_ID_HELLO: bigint = PACKET_ID_HELLO;
public static PACKET_ID_SEND_FRAME: bigint = PACKET_ID_SEND_FRAME;
public static CLOSE_BUTTON_IMAGE: string = CLOSE_BUTTON_IMAGE;
public static HOME_BUTTON_IMAGE: string = HOME_BUTTON_IMAGE;
2023-03-19 20:05:33 +01:00
};