workadventure/front/src/Enum/EnvironmentVariable.ts
2020-06-25 10:32:47 +02:00

16 lines
529 B
TypeScript

const DEBUG_MODE: boolean = process.env.DEBUG_MODE == "true";
const API_URL = window.location.protocol + '//' + process.env.API_URL || "http://api.workadventure.localhost";
const RESOLUTION = 3;
const ZOOM_LEVEL = 1/*3/4*/;
const POSITION_DELAY = 200; // Wait 200ms between sending position events
const MAX_EXTRAPOLATION_TIME = 250; // Extrapolate a maximum of 250ms if no new movement is sent by the player
export {
DEBUG_MODE,
API_URL,
RESOLUTION,
ZOOM_LEVEL,
POSITION_DELAY,
MAX_EXTRAPOLATION_TIME
}