@akashic/akashic-engine
Advanced tools
Comparing version 3.20.0 to 3.20.1
@@ -74,3 +74,3 @@ "use strict"; | ||
var patternSpecialsTable = { | ||
"": "", | ||
"": "", // 入力末尾で parserRe の B 部分が $ にマッチして空文字列になることに対応 | ||
"\\*": "\\*", | ||
@@ -77,0 +77,0 @@ "\\?": "\\?", |
@@ -144,7 +144,7 @@ "use strict"; | ||
var ts = e; | ||
playerId = preservePlayer ? (_a = ts.player.id) !== null && _a !== void 0 ? _a : null : this._playerId; | ||
playerId = preservePlayer ? ((_a = ts.player.id) !== null && _a !== void 0 ? _a : null) : this._playerId; | ||
return [ | ||
2 /* pl.EventCode.Timestamp */, | ||
ts.eventFlags, | ||
playerId, | ||
2 /* pl.EventCode.Timestamp */, // 0: イベントコード | ||
ts.eventFlags, // 1: イベントフラグ値 | ||
playerId, // 2: プレイヤーID | ||
ts.timestamp // 3: タイムスタンプ | ||
@@ -154,8 +154,8 @@ ]; | ||
var playerInfo = e; | ||
playerId = preservePlayer ? (_b = playerInfo.player.id) !== null && _b !== void 0 ? _b : null : this._playerId; | ||
playerId = preservePlayer ? ((_b = playerInfo.player.id) !== null && _b !== void 0 ? _b : null) : this._playerId; | ||
return [ | ||
3 /* pl.EventCode.PlayerInfo */, | ||
playerInfo.eventFlags, | ||
playerId, | ||
playerInfo.player.name, | ||
3 /* pl.EventCode.PlayerInfo */, // 0: イベントコード | ||
playerInfo.eventFlags, // 1: イベントフラグ値 | ||
playerId, // 2: プレイヤーID | ||
playerInfo.player.name, // 3: プレイヤー名 | ||
playerInfo.player.userData // 4: ユーザデータ | ||
@@ -166,12 +166,12 @@ ]; | ||
targetId = pointDown.target ? pointDown.target.id : null; | ||
playerId = preservePlayer && pointDown.player ? (_c = pointDown.player.id) !== null && _c !== void 0 ? _c : null : this._playerId; | ||
playerId = preservePlayer && pointDown.player ? ((_c = pointDown.player.id) !== null && _c !== void 0 ? _c : null) : this._playerId; | ||
return [ | ||
33 /* pl.EventCode.PointDown */, | ||
pointDown.eventFlags, | ||
playerId, | ||
pointDown.pointerId, | ||
pointDown.point.x, | ||
pointDown.point.y, | ||
targetId, | ||
pointDown.button, | ||
33 /* pl.EventCode.PointDown */, // 0: イベントコード | ||
pointDown.eventFlags, // 1: イベントフラグ値 | ||
playerId, // 2: プレイヤーID | ||
pointDown.pointerId, // 3: ポインターID | ||
pointDown.point.x, // 4: X座標 | ||
pointDown.point.y, // 5: Y座標 | ||
targetId, // 6?: エンティティID | ||
pointDown.button, // 7?: ボタンの種類 | ||
!!pointDown.local // 8?: ローカルイベントかどうか | ||
@@ -182,16 +182,16 @@ ]; | ||
targetId = pointMove.target ? pointMove.target.id : null; | ||
playerId = preservePlayer && pointMove.player ? (_d = pointMove.player.id) !== null && _d !== void 0 ? _d : null : this._playerId; | ||
playerId = preservePlayer && pointMove.player ? ((_d = pointMove.player.id) !== null && _d !== void 0 ? _d : null) : this._playerId; | ||
return [ | ||
34 /* pl.EventCode.PointMove */, | ||
pointMove.eventFlags, | ||
playerId, | ||
pointMove.pointerId, | ||
pointMove.point.x, | ||
pointMove.point.y, | ||
pointMove.startDelta.x, | ||
pointMove.startDelta.y, | ||
pointMove.prevDelta.x, | ||
pointMove.prevDelta.y, | ||
targetId, | ||
pointMove.button, | ||
34 /* pl.EventCode.PointMove */, // 0: イベントコード | ||
pointMove.eventFlags, // 1: イベントフラグ値 | ||
playerId, // 2: プレイヤーID | ||
pointMove.pointerId, // 3: ポインターID | ||
pointMove.point.x, // 4: X座標 | ||
pointMove.point.y, // 5: Y座標 | ||
pointMove.startDelta.x, // 6: ポイントダウンイベントからのX座標の差 | ||
pointMove.startDelta.y, // 7: ポイントダウンイベントからのY座標の差 | ||
pointMove.prevDelta.x, // 8: 直前のポイントムーブイベントからのX座標の差 | ||
pointMove.prevDelta.y, // 9: 直前のポイントムーブイベントからのY座標の差 | ||
targetId, // 10?: エンティティID | ||
pointMove.button, // 11?: | ||
!!pointMove.local // 12?: ローカルイベントかどうか | ||
@@ -202,16 +202,16 @@ ]; | ||
targetId = pointUp.target ? pointUp.target.id : null; | ||
playerId = preservePlayer && pointUp.player ? (_e = pointUp.player.id) !== null && _e !== void 0 ? _e : null : this._playerId; | ||
playerId = preservePlayer && pointUp.player ? ((_e = pointUp.player.id) !== null && _e !== void 0 ? _e : null) : this._playerId; | ||
return [ | ||
35 /* pl.EventCode.PointUp */, | ||
pointUp.eventFlags, | ||
playerId, | ||
pointUp.pointerId, | ||
pointUp.point.x, | ||
pointUp.point.y, | ||
pointUp.startDelta.x, | ||
pointUp.startDelta.y, | ||
pointUp.prevDelta.x, | ||
pointUp.prevDelta.y, | ||
targetId, | ||
pointUp.button, | ||
35 /* pl.EventCode.PointUp */, // 0: イベントコード | ||
pointUp.eventFlags, // 1: イベントフラグ値 | ||
playerId, // 2: プレイヤーID | ||
pointUp.pointerId, // 3: ポインターID | ||
pointUp.point.x, // 4: X座標 | ||
pointUp.point.y, // 5: Y座標 | ||
pointUp.startDelta.x, // 6: ポイントダウンイベントからのX座標の差 | ||
pointUp.startDelta.y, // 7: ポイントダウンイベントからのY座標の差 | ||
pointUp.prevDelta.x, // 8: 直前のポイントムーブイベントからのX座標の差 | ||
pointUp.prevDelta.y, // 9: 直前のポイントムーブイベントからのY座標の差 | ||
targetId, // 10?: エンティティID | ||
pointUp.button, // 11?: | ||
!!pointUp.local // 12?: ローカルイベントかどうか | ||
@@ -221,8 +221,8 @@ ]; | ||
var message = e; | ||
playerId = preservePlayer && message.player ? (_f = message.player.id) !== null && _f !== void 0 ? _f : null : this._playerId; | ||
playerId = preservePlayer && message.player ? ((_f = message.player.id) !== null && _f !== void 0 ? _f : null) : this._playerId; | ||
return [ | ||
32 /* pl.EventCode.Message */, | ||
message.eventFlags, | ||
playerId, | ||
message.data, | ||
32 /* pl.EventCode.Message */, // 0: イベントコード | ||
message.eventFlags, // 1: イベントフラグ値 | ||
playerId, // 2: プレイヤーID | ||
message.data, // 3: 汎用的なデータ | ||
!!message.local // 4?: ローカル | ||
@@ -232,9 +232,9 @@ ]; | ||
var op = e; | ||
playerId = preservePlayer && op.player ? (_g = op.player.id) !== null && _g !== void 0 ? _g : null : this._playerId; | ||
playerId = preservePlayer && op.player ? ((_g = op.player.id) !== null && _g !== void 0 ? _g : null) : this._playerId; | ||
return [ | ||
64 /* pl.EventCode.Operation */, | ||
op.eventFlags, | ||
playerId, | ||
op.code, | ||
op.data, | ||
64 /* pl.EventCode.Operation */, // 0: イベントコード | ||
op.eventFlags, // 1: イベントフラグ値 | ||
playerId, // 2: プレイヤーID | ||
op.code, // 3: 操作プラグインコード | ||
op.data, // 4: 操作プラグインデータ | ||
!!op.local // 5?: ローカル | ||
@@ -250,7 +250,7 @@ ]; | ||
return [ | ||
64 /* pl.EventCode.Operation */, | ||
eventFlags, | ||
playerId, | ||
op._code, | ||
op.data, | ||
64 /* pl.EventCode.Operation */, // 0: イベントコード | ||
eventFlags, // 1: イベントフラグ値 | ||
playerId, // 2: プレイヤーID | ||
op._code, // 3: 操作プラグインコード | ||
op.data, // 4: 操作プラグインデータ | ||
!!op.local // 5: ローカル | ||
@@ -257,0 +257,0 @@ ]; |
@@ -33,3 +33,3 @@ /** | ||
PlayerName = 3, | ||
StorageData = 4, | ||
StorageData = 4,// TODO: 削除 | ||
Local = 5 | ||
@@ -36,0 +36,0 @@ } |
@@ -31,3 +31,3 @@ "use strict"; | ||
} | ||
catch (ex) { | ||
catch (_ex) { | ||
// メッセージ取得時に例外が発生したらactualの型情報出力はあきらめる | ||
@@ -34,0 +34,0 @@ } |
@@ -1109,3 +1109,3 @@ "use strict"; | ||
? this._createPreparingLoadingScene(nextScene, nextScene._waitingPrepare, "akashic:preparing-".concat(nextScene.name)) | ||
: (_a = this.loadingScene) !== null && _a !== void 0 ? _a : this._defaultLoadingScene; | ||
: ((_a = this.loadingScene) !== null && _a !== void 0 ? _a : this._defaultLoadingScene); | ||
this._doPushScene(loadingScene, true, this._defaultLoadingScene); | ||
@@ -1112,0 +1112,0 @@ loadingScene.reset(nextScene); |
@@ -47,9 +47,9 @@ "use strict"; | ||
var ret = [ | ||
33 /* pl.EventCode.PointDown */, | ||
2 /* EventPriority.Joined */, | ||
this._playerId, | ||
e.identifier, | ||
point.x, | ||
point.y, | ||
targetId, | ||
33 /* pl.EventCode.PointDown */, // 0: イベントコード | ||
2 /* EventPriority.Joined */, // 1: 優先度 | ||
this._playerId, // 2: プレイヤーID | ||
e.identifier, // 3: ポインターID | ||
point.x, // 4: X座標 | ||
point.y, // 5: Y座標 | ||
targetId, // 6?: エンティティID | ||
e.button // 7?: ボタンの種類 | ||
@@ -69,13 +69,13 @@ ]; | ||
var ret = [ | ||
34 /* pl.EventCode.PointMove */, | ||
2 /* EventPriority.Joined */, | ||
this._playerId, | ||
e.identifier, | ||
holder.point.x, | ||
holder.point.y, | ||
start.x, | ||
start.y, | ||
prev.x, | ||
prev.y, | ||
holder.targetId, | ||
34 /* pl.EventCode.PointMove */, // 0: イベントコード | ||
2 /* EventPriority.Joined */, // 1: 優先度 | ||
this._playerId, // 2: プレイヤーID | ||
e.identifier, // 3: ポインターID | ||
holder.point.x, // 4: X座標 | ||
holder.point.y, // 5: Y座標 | ||
start.x, // 6: ポイントダウンイベントからのX座標の差 | ||
start.y, // 7: ポイントダウンイベントからのY座標の差 | ||
prev.x, // 8: 直前のポイントムーブイベントからのX座標の差 | ||
prev.y, // 9: 直前のポイントムーブイベントからのY座標の差 | ||
holder.targetId, // 10?: エンティティID | ||
e.button // 11?: ボタンの種類 | ||
@@ -97,13 +97,13 @@ ]; | ||
var ret = [ | ||
35 /* pl.EventCode.PointUp */, | ||
2 /* EventPriority.Joined */, | ||
this._playerId, | ||
e.identifier, | ||
holder.point.x, | ||
holder.point.y, | ||
start.x, | ||
start.y, | ||
prev.x, | ||
prev.y, | ||
holder.targetId, | ||
35 /* pl.EventCode.PointUp */, // 0: イベントコード | ||
2 /* EventPriority.Joined */, // 1: 優先度 | ||
this._playerId, // 2: プレイヤーID | ||
e.identifier, // 3: ポインターID | ||
holder.point.x, // 4: X座標 | ||
holder.point.y, // 5: Y座標 | ||
start.x, // 6: ポイントダウンイベントからのX座標の差 | ||
start.y, // 7: ポイントダウンイベントからのY座標の差 | ||
prev.x, // 8: 直前のポイントムーブイベントからのX座標の差 | ||
prev.y, // 9: 直前のポイントムーブイベントからのY座標の差 | ||
holder.targetId, // 10?: エンティティID | ||
e.button // 11?: ボタンの種類 | ||
@@ -110,0 +110,0 @@ ]; |
{ | ||
"name": "@akashic/akashic-engine", | ||
"version": "3.20.0", | ||
"version": "3.20.1", | ||
"description": "The core library of Akashic Engine", | ||
@@ -13,11 +13,6 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@akashic/eslint-config": "2.1.0", | ||
"@akashic/eslint-config": "3.0.1", | ||
"@akashic/pdi-common-impl": "^1.4.0", | ||
"@types/jest": "^29.0.0", | ||
"@typescript-eslint/eslint-plugin": "^6.7.5", | ||
"eslint": "^8.51.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-import": "^2.28.1", | ||
"eslint-plugin-jest": "^27.4.2", | ||
"eslint-plugin-prettier": "^5.0.1", | ||
"eslint-config-prettier": "^10.0.0", | ||
"jest": "^29.0.0", | ||
@@ -47,7 +42,7 @@ "prettier": "^3.0.3", | ||
"lint": "npm run lint:eslint && npm run lint:textlint", | ||
"lint:eslint": "eslint -c .eslintrc \"src/**/*.ts\"", | ||
"lint:eslint": "eslint \"src/**/*.ts\"", | ||
"lint:textlint": "textlint -f pretty-error doc/ && textlint -f pretty-error unreleased-changes/", | ||
"format": "npm run format:prettier && npm run format:eslint", | ||
"format:prettier": "prettier --write \"src/**/*.ts\" --config prettier.config.json", | ||
"format:eslint": "eslint -c .eslintrc \"src/**/*.ts\" --fix", | ||
"format:eslint": "eslint \"src/**/*.ts\" --fix", | ||
"doc": "typedoc --out doc/html/ --name \"Akashic Engine\" src/index.ts" | ||
@@ -54,0 +49,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1632106
19
27980