修复game.checkFileList在手机端的问题,类型修复

This commit is contained in:
nonameShijian 2024-04-14 01:26:46 +08:00
parent fe0a8a7e62
commit 18a546f2e0
2 changed files with 13 additions and 2 deletions

View File

@ -901,6 +901,7 @@ export class Game {
if (!err) {
let stat = lib.node.fs.statSync(__dirname + '/' + entry);
if (stat.size == 0) {
// @ts-ignore
err = true;
}
}
@ -921,7 +922,7 @@ export class Game {
}(updates[i])));
}
else {
resolveLocalFileSystemURL(lib.assetURL + updates[i], (function (name) {
window.resolveLocalFileSystemURL(nonameInitialized + updates[i], (function (name) {
return function (entry) {
n--;
updates.remove(name);
@ -939,7 +940,12 @@ export class Game {
}
}
/**
* @param {...(Player[] | Player)} args
* @overload
* @param {[Player[]]} args
*/
/**
* @overload
* @param {Player[]} args
*/
replaceHandcards(...args) {
var next = game.createEvent('replaceHandcards');

View File

@ -74,6 +74,11 @@ export class GameEvent {
*/
// @ts-ignore
player;
/**
* @type { Player[] }
*/
// @ts-ignore
players;
/**
* @type { Player }
*/