mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-04-11 00:30:19 +02:00
Server heavy refactoring 2 (not functionnal)
This commit is contained in:
13
server/traque-back/src/config/zone.js
Normal file
13
server/traque-back/src/config/zone.js
Normal file
@@ -0,0 +1,13 @@
|
||||
export const ZONE_TYPES = {
|
||||
CIRCLE: "circle",
|
||||
POLYGON: "polygon"
|
||||
}
|
||||
|
||||
export const DEFAULT_ZONES_SETTINGS = {
|
||||
CIRCLE: { type: ZONE_TYPES.CIRCLE, min: null, max: null, reductionCount: 5, duration: 20 * 60 * 1000 },
|
||||
POLYGON: { type: ZONE_TYPES.POLYGON, polygons: [] },
|
||||
};
|
||||
|
||||
export const TURF_DISTANCE_UNIT = 'meters';
|
||||
export const TURF_CIRCLE_STEPS = 32;
|
||||
export const TURF_BUFFER_SIZE = 1;
|
||||
Reference in New Issue
Block a user