From 0d5769bdc469ada703b8bafae380f65cd627eb27 Mon Sep 17 00:00:00 2001 From: smiley Date: Sun, 12 Jul 2015 22:43:41 +0200 Subject: [PATCH] added v2/floors/events --- v2/floors/events-location.js | 27 +++++++++++++++++++++++++++ v2/floors/events.js | 13 +++++++++++++ v2/floors/map.js | 19 +++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 v2/floors/events-location.js create mode 100644 v2/floors/events.js diff --git a/v2/floors/events-location.js b/v2/floors/events-location.js new file mode 100644 index 00000000..3ae3c837 --- /dev/null +++ b/v2/floors/events-location.js @@ -0,0 +1,27 @@ +[ + // an events.location object may represent one of the following + { + "type": "circle", + "coords": [12058, 13661], + "radius": 250 + }, + { + "type": "polyline", + "start": [12418, 12867], + "coords": [ + [12418, 12867], + [12410, 12900], + [12410, 12934] + ] + }, + { + "type": "polygon", + "coords": [ + [11358, 13107], + [11270, 13233], + [11288, 13367], + [11424, 13407], + [11588, 13477] + ] + } +] \ No newline at end of file diff --git a/v2/floors/events.js b/v2/floors/events.js new file mode 100644 index 00000000..037c8898 --- /dev/null +++ b/v2/floors/events.js @@ -0,0 +1,13 @@ +{ + "name": "Defeat the shadow behemoth.", + "id": "31CEBA08-E44D-472F-81B0-7143D73797F5", + "level": 15, + // event type according to http://wiki.guildwars2.com/wiki/Dynamic_event#Event_indicators + "event_type": "boss", + "flags": [ + "group_event" + ], + "location": { + // location object + } +} diff --git a/v2/floors/map.js b/v2/floors/map.js index 5260c93d..ae934db2 100644 --- a/v2/floors/map.js +++ b/v2/floors/map.js @@ -57,5 +57,24 @@ "id" : 526 } }, + "events": { + "31CEBA08-E44D-472F-81B0-7143D73797F5": { + "name": "Defeat the shadow behemoth.", + "id": "31CEBA08-E44D-472F-81B0-7143D73797F5", + "level": 15, + "event_type": "boss", + "flags": [ + "group_event" + ], + "location": { + "type": "circle", + "center": [ + 12058, + 13661 + ], + "radius": 250 + } + } + }, "id" : 26 }