@rpgjs/tiledmap 5.0.0-alpha.5 → 5.0.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import client from "./index2.js";
2
2
  import { createModule } from "@rpgjs/common";
3
3
  import { provideLoadMap } from "@rpgjs/client";
4
- import { TiledParser } from "@rpgjs/tiled";
5
- import component from "./index3.js";
4
+ import { TiledParser } from "./index3.js";
5
+ import component from "./index4.js";
6
6
  const server = null;
7
7
  function provideTiledMap(options) {
8
8
  var _a;
@@ -34,18 +34,10 @@ function provideTiledMap(options) {
34
34
  });
35
35
  }
36
36
  parsedMap.tilesets = tilesets;
37
- const events = [
38
- {
39
- "event": eval("function Event(options = {}) {\n return {\n async onInit() {\n this.setGraphic('male')\n //new BattleAi(this)\n },\n \n async onAction(player) {\n await player.showText('Comment vas tu ?')\n },\n\n async onChanges(player) {\n },\n\n async onPlayerTouch(player) {\n }\n }\n}"),
40
- "x": 200,
41
- "y": 200
42
- }
43
- ];
44
37
  const obj = {
45
38
  data: mapData,
46
39
  component,
47
40
  parsedMap,
48
- events,
49
41
  id: map
50
42
  };
51
43
  if (options.onLoadMap) {