@wwawing/loader 3.13.0-unstable.based-on.3.12.11.p.11 → 4.0.0

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.
package/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 1996-2015 NAO
4
- Copyright (c) 2015-2023 WWA Wing Team
3
+ Copyright (c) 1996-2025 NAO
4
+ Copyright (c) 2015-2025 WWA Wing Team
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.decompressMapData = void 0;
3
+ exports.decompressMapData = decompressMapData;
4
4
  const MEM_BLOCK = 65000;
5
5
  const EXT_LAST_PADDING = 3;
6
6
  function decompressMapData(srcData) {
@@ -29,4 +29,3 @@ function decompressMapData(srcData) {
29
29
  console.log("EXTRACT DATA = " + destCounter + " " + srcCounter);
30
30
  return { byteMapData: destData, byteMapLength: destCounter, compressedEndPosition: srcCounter + EXT_LAST_PADDING };
31
31
  }
32
- exports.decompressMapData = decompressMapData;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkMapDataBroken = void 0;
3
+ exports.checkMapDataBroken = checkMapDataBroken;
4
4
  const util_1 = require("../../infra/util");
5
5
  const constants_1 = require("./constants");
6
6
  function calculateCorrectCheckSum(mapData) {
@@ -28,4 +28,3 @@ function checkMapDataBroken(mapData, dataLength) {
28
28
  "でした。");
29
29
  }
30
30
  }
31
- exports.checkMapDataBroken = checkMapDataBroken;
@@ -28,4 +28,4 @@ var BytePosition;
28
28
  BytePosition[BytePosition["ITEMBOX_TOP"] = 60] = "ITEMBOX_TOP";
29
29
  BytePosition[BytePosition["MAPDATA_TOP"] = 90] = "MAPDATA_TOP";
30
30
  BytePosition[BytePosition["OLD_MAPDATA_TOP"] = 100] = "OLD_MAPDATA_TOP";
31
- })(BytePosition = exports.BytePosition || (exports.BytePosition = {}));
31
+ })(BytePosition || (exports.BytePosition = BytePosition = {}));
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createDefaultWWAData = exports.LoadStage = exports.PartsType = exports.LoaderProgress = exports.LoaderError = exports.WWAConsts = void 0;
3
+ exports.LoadStage = exports.PartsType = exports.LoaderProgress = exports.LoaderError = exports.WWAConsts = void 0;
4
+ exports.createDefaultWWAData = createDefaultWWAData;
4
5
  class WWAConsts {
5
6
  }
7
+ exports.WWAConsts = WWAConsts;
6
8
  WWAConsts.ITEMBOX_SIZE = 12;
7
9
  WWAConsts.MAP_ATR_MAX = 60;
8
10
  WWAConsts.OBJ_ATR_MAX = 60;
@@ -54,7 +56,6 @@ WWAConsts.DEFAULT_STATUS_COLOR_B = 0x0;
54
56
  WWAConsts.DEFAULT_MOVES = 0;
55
57
  WWAConsts.DEFAULT_SPEED_INDEX = 3;
56
58
  WWAConsts.USER_VAR_NUM = 256;
57
- exports.WWAConsts = WWAConsts;
58
59
  class LoaderError {
59
60
  }
60
61
  exports.LoaderError = LoaderError;
@@ -65,7 +66,7 @@ var PartsType;
65
66
  (function (PartsType) {
66
67
  PartsType[PartsType["MAP"] = 1] = "MAP";
67
68
  PartsType[PartsType["OBJECT"] = 0] = "OBJECT";
68
- })(PartsType = exports.PartsType || (exports.PartsType = {}));
69
+ })(PartsType || (exports.PartsType = PartsType = {}));
69
70
  var LoadStage;
70
71
  (function (LoadStage) {
71
72
  LoadStage[LoadStage["INIT"] = 0] = "INIT";
@@ -75,7 +76,7 @@ var LoadStage;
75
76
  LoadStage[LoadStage["OBJ_ATTR"] = 4] = "OBJ_ATTR";
76
77
  LoadStage[LoadStage["RAND_PARTS"] = 5] = "RAND_PARTS";
77
78
  LoadStage[LoadStage["MESSAGE"] = 6] = "MESSAGE";
78
- })(LoadStage = exports.LoadStage || (exports.LoadStage = {}));
79
+ })(LoadStage || (exports.LoadStage = LoadStage = {}));
79
80
  function createDefaultWWAData() {
80
81
  return {
81
82
  version: undefined,
@@ -172,4 +173,3 @@ function createDefaultWWAData() {
172
173
  customSystemMessages: {},
173
174
  };
174
175
  }
175
- exports.createDefaultWWAData = createDefaultWWAData;
@@ -1,4 +1,4 @@
1
- class WWAConsts {
1
+ export class WWAConsts {
2
2
  }
3
3
  WWAConsts.ITEMBOX_SIZE = 12;
4
4
  WWAConsts.MAP_ATR_MAX = 60;
@@ -51,7 +51,6 @@ WWAConsts.DEFAULT_STATUS_COLOR_B = 0x0;
51
51
  WWAConsts.DEFAULT_MOVES = 0;
52
52
  WWAConsts.DEFAULT_SPEED_INDEX = 3;
53
53
  WWAConsts.USER_VAR_NUM = 256;
54
- export { WWAConsts };
55
54
  export class LoaderError {
56
55
  }
57
56
  export class LoaderProgress {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wwawing/loader",
3
- "version": "3.13.0-unstable.based-on.3.12.11.p.11",
3
+ "version": "4.0.0",
4
4
  "description": "a World Wide Adventure mapdata loader for client-side web applications",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./module/index.js",
@@ -35,7 +35,8 @@
35
35
  },
36
36
  "repository": {
37
37
  "type": "git",
38
- "url": "git+https://github.com/WWAWing/WWALoader.git"
38
+ "url": "https://github.com/WWAWing/WWAWing.git",
39
+ "directory": "packages/loader"
39
40
  },
40
41
  "author": "WWA Wing Team",
41
42
  "license": "MIT",
@@ -44,20 +45,20 @@
44
45
  },
45
46
  "homepage": "https://github.com/WWAWing/WWALoader#readme",
46
47
  "dependencies": {
47
- "@wwawing/event-emitter": "^3.13.0-unstable.based-on.3.12.11.p.11"
48
+ "@wwawing/event-emitter": "^4.0.0"
48
49
  },
49
50
  "devDependencies": {
50
- "@wwawing/common-interface": "^3.13.0-unstable.based-on.3.12.11.p.11",
51
+ "@wwawing/common-interface": "^4.0.0",
51
52
  "cross-env": "^7.0.3",
52
- "html-loader": "^4.2.0",
53
+ "html-loader": "^5.1.0",
53
54
  "html-webpack-plugin": "^5.5.0",
54
55
  "http-server": "^14.1.1",
55
- "npm-run-all": "^4.1.5",
56
- "shelljs": "^0.8.5",
57
- "shx": "^0.3.4",
58
- "ts-loader": "^9.4.3",
59
- "ts-node": "^10.9.1",
60
- "typescript": "^5.0.4",
56
+ "npm-run-all2": "^8.0.1",
57
+ "shelljs": "^0.9.2",
58
+ "shx": "^0.4.0",
59
+ "ts-loader": "^9.5.2",
60
+ "ts-node": "^10.9.2",
61
+ "typescript": "^5.8.3",
61
62
  "webpack": "^5.83.1",
62
63
  "webpack-cli": "^5.1.1"
63
64
  },
@@ -65,8 +66,8 @@
65
66
  "access": "public"
66
67
  },
67
68
  "engines": {
68
- "node": ">=18",
69
- "npm": ">=8"
69
+ "node": ">=22",
70
+ "npm": ">=11"
70
71
  },
71
- "gitHead": "9572086014540d870339dd6bd259d2240e28a062"
72
+ "gitHead": "dd1d570673a896c26cc299f68033abcc3e867e21"
72
73
  }