build typings
This commit is contained in:
parent
72481e7193
commit
68bf106ad3
|
@ -1,8 +1,8 @@
|
|||
export { GNC, gnc, setGNC } from './noname/gnc/index.js';
|
||||
export { AI, ai, setAI } from './noname/ai/index.js';
|
||||
export { Game, game, setGame } from './noname/game/index.js';
|
||||
export { Get, get, setGet } from './noname/get/index.js';
|
||||
export { Library, lib, setLibrary } from './noname/library/index.js';
|
||||
export { status, _status, setStatus } from './noname/status/index.js';
|
||||
export { UI, ui, setUI } from './noname/ui/index.js';
|
||||
export { boot } from './noname/init/index.js';
|
||||
export { boot } from "./noname/init/index.js";
|
||||
export { GNC, gnc, setGNC } from "./noname/gnc/index.js";
|
||||
export { AI, ai, setAI } from "./noname/ai/index.js";
|
||||
export { Game, game, setGame } from "./noname/game/index.js";
|
||||
export { Get, get, setGet } from "./noname/get/index.js";
|
||||
export { Library, lib, setLibrary } from "./noname/library/index.js";
|
||||
export { status, _status, setStatus } from "./noname/status/index.js";
|
||||
export { UI, ui, setUI } from "./noname/ui/index.js";
|
||||
|
|
|
@ -5,7 +5,7 @@ export class Basic {
|
|||
* buttons?: Button[]
|
||||
* ) => number } check
|
||||
*/
|
||||
chooseButton(check: (button: any, buttons?: Button[]) => number): boolean | undefined;
|
||||
chooseButton(check: (button: Button, buttons?: Button[]) => number): boolean | undefined;
|
||||
/**
|
||||
* @param { (
|
||||
* card?: Card,
|
||||
|
@ -13,12 +13,12 @@ export class Basic {
|
|||
* ) => number } check
|
||||
* @returns { boolean | undefined }
|
||||
*/
|
||||
chooseCard(check: (card?: any, cards?: Card[]) => number): boolean | undefined;
|
||||
chooseCard(check: (card?: Card, cards?: Card[]) => number): boolean | undefined;
|
||||
/**
|
||||
* @param { (
|
||||
* target?: Player,
|
||||
* targets?: Player[]
|
||||
* ) => number } check
|
||||
*/
|
||||
chooseTarget(check: (target?: any, targets?: Player[]) => number): boolean | undefined;
|
||||
chooseTarget(check: (target?: Player, targets?: Player[]) => number): boolean | undefined;
|
||||
}
|
||||
|
|
|
@ -5,4 +5,4 @@ export class AI {
|
|||
export let ai: AI;
|
||||
export function setAI(instance?: AI | undefined): void;
|
||||
export { Basic };
|
||||
import { Basic } from './basic.js';
|
||||
import { Basic } from "./basic.js";
|
||||
|
|
|
@ -15,7 +15,7 @@ export class Game {
|
|||
* @type { { [key: string]: Player } }
|
||||
*/
|
||||
playerMap: {
|
||||
[key: string]: any;
|
||||
[key: string]: import("noname-typings/nonameModules/noname/library/element/player.js").Player;
|
||||
};
|
||||
phaseNumber: number;
|
||||
roundNumber: number;
|
||||
|
@ -28,7 +28,7 @@ export class Game {
|
|||
/**
|
||||
* @type { Player }
|
||||
*/
|
||||
me: any;
|
||||
me: Player;
|
||||
/**
|
||||
* @type { boolean }
|
||||
*/
|
||||
|
@ -173,19 +173,19 @@ export class Game {
|
|||
/**
|
||||
* @template { keyof GameHistory } T
|
||||
* @param { T } key
|
||||
* @param { (event: import('../library/index.js').GameEventPromise) => boolean } filter
|
||||
* @param { import('../library/index.js').GameEventPromise } [last]
|
||||
* @param { (event: GameEventPromise) => boolean } filter
|
||||
* @param { GameEventPromise } [last]
|
||||
* @returns { boolean }
|
||||
*/
|
||||
hasGlobalHistory<T extends keyof GameHistory>(key: T, filter: (event: import('../library/index.js').GameEventPromise) => boolean, last?: import("../library/index.js").GameEventPromise | undefined): boolean;
|
||||
hasGlobalHistory<T extends keyof GameHistory>(key: T, filter: (event: GameEventPromise) => boolean, last?: import("noname-typings/nonameModules/noname/library/index.js").GameEventPromise | undefined): boolean;
|
||||
/**
|
||||
* @template { keyof GameHistory } T
|
||||
* @param { T } key
|
||||
* @param { (event: import('../library/index.js').GameEventPromise) => boolean } filter
|
||||
* @param { import('../library/index.js').GameEventPromise } [last]
|
||||
* @param { (event: GameEventPromise) => boolean } filter
|
||||
* @param { GameEventPromise } [last]
|
||||
* @returns { void }
|
||||
*/
|
||||
checkGlobalHistory<T_1 extends keyof GameHistory>(key: T_1, filter: (event: import('../library/index.js').GameEventPromise) => boolean, last?: import("../library/index.js").GameEventPromise | undefined): void;
|
||||
checkGlobalHistory<T_1 extends keyof GameHistory>(key: T_1, filter: (event: GameEventPromise) => boolean, last?: import("noname-typings/nonameModules/noname/library/index.js").GameEventPromise | undefined): void;
|
||||
/**
|
||||
* @overload
|
||||
* @returns { GameHistory }
|
||||
|
@ -195,27 +195,27 @@ export class Game {
|
|||
* @template { keyof GameHistory } T
|
||||
* @overload
|
||||
* @param { T } key
|
||||
* @param { (event: import('../library/index.js').GameEventPromise) => boolean } [filter]
|
||||
* @param { import('../library/index.js').GameEventPromise } [last]
|
||||
* @param { (event: GameEventPromise) => boolean } [filter]
|
||||
* @param { GameEventPromise } [last]
|
||||
* @returns { GameHistory[T] }
|
||||
*/
|
||||
getGlobalHistory<T_2 extends keyof GameHistory>(key: T_2, filter?: ((event: import('../library/index.js').GameEventPromise) => boolean) | undefined, last?: import("../library/index.js").GameEventPromise | undefined): GameHistory[T_2];
|
||||
getGlobalHistory<T_2 extends keyof GameHistory>(key: T_2, filter?: ((event: GameEventPromise) => boolean) | undefined, last?: import("noname-typings/nonameModules/noname/library/index.js").GameEventPromise | undefined): GameHistory[T_2];
|
||||
/**
|
||||
* @template { keyof GameHistory } T
|
||||
* @param { T } key
|
||||
* @param { (event: import('../library/index.js').GameEventPromise) => boolean } filter
|
||||
* @param { import('../library/index.js').GameEventPromise } [last]
|
||||
* @param { (event: GameEventPromise) => boolean } filter
|
||||
* @param { GameEventPromise } [last]
|
||||
* @returns { boolean }
|
||||
*/
|
||||
hasAllGlobalHistory<T_3 extends keyof GameHistory>(key: T_3, filter: (event: import('../library/index.js').GameEventPromise) => boolean, last?: import("../library/index.js").GameEventPromise | undefined): boolean;
|
||||
hasAllGlobalHistory<T_3 extends keyof GameHistory>(key: T_3, filter: (event: GameEventPromise) => boolean, last?: import("noname-typings/nonameModules/noname/library/index.js").GameEventPromise | undefined): boolean;
|
||||
/**
|
||||
* @template { keyof GameHistory } T
|
||||
* @param { T } key
|
||||
* @param { (event: import('../library/index.js').GameEventPromise) => boolean } filter
|
||||
* @param { import('../library/index.js').GameEventPromise } [last]
|
||||
* @param { (event: GameEventPromise) => boolean } filter
|
||||
* @param { GameEventPromise } [last]
|
||||
* @returns { void }
|
||||
*/
|
||||
checkAllGlobalHistory<T_4 extends keyof GameHistory>(key: T_4, filter: (event: import('../library/index.js').GameEventPromise) => boolean, last?: import("../library/index.js").GameEventPromise | undefined): void;
|
||||
checkAllGlobalHistory<T_4 extends keyof GameHistory>(key: T_4, filter: (event: GameEventPromise) => boolean, last?: import("noname-typings/nonameModules/noname/library/index.js").GameEventPromise | undefined): void;
|
||||
/**
|
||||
* @overload
|
||||
* @returns { GameHistory[] }
|
||||
|
@ -225,11 +225,11 @@ export class Game {
|
|||
* @template { keyof GameHistory } T
|
||||
* @overload
|
||||
* @param { T } key
|
||||
* @param { (event: import('../library/index.js').GameEventPromise) => boolean } [filter]
|
||||
* @param { import('../library/index.js').GameEventPromise } [last]
|
||||
* @param { (event: GameEventPromise) => boolean } [filter]
|
||||
* @param { GameEventPromise } [last]
|
||||
* @returns { GameHistory[T] }
|
||||
*/
|
||||
getAllGlobalHistory<T_5 extends keyof GameHistory>(key: T_5, filter?: ((event: import('../library/index.js').GameEventPromise) => boolean) | undefined, last?: import("../library/index.js").GameEventPromise | undefined): GameHistory[T_5];
|
||||
getAllGlobalHistory<T_5 extends keyof GameHistory>(key: T_5, filter?: ((event: GameEventPromise) => boolean) | undefined, last?: import("noname-typings/nonameModules/noname/library/index.js").GameEventPromise | undefined): GameHistory[T_5];
|
||||
/**
|
||||
* @overload
|
||||
* @returns { void }
|
||||
|
@ -238,15 +238,15 @@ export class Game {
|
|||
/**
|
||||
* @overload
|
||||
* @param { Card } cards
|
||||
* @returns { import('../library/index.js').GameEventPromise }
|
||||
* @returns { GameEventPromise }
|
||||
*/
|
||||
cardsDiscard(cards: any): import('../library/index.js').GameEventPromise;
|
||||
cardsDiscard(cards: Card): GameEventPromise;
|
||||
/**
|
||||
* @overload
|
||||
* @param {Card[]} cards
|
||||
* @returns { import('../library/index.js').GameEventPromise }
|
||||
* @returns { GameEventPromise }
|
||||
*/
|
||||
cardsDiscard(cards: Card[]): import('../library/index.js').GameEventPromise;
|
||||
cardsDiscard(cards: Card[]): GameEventPromise;
|
||||
/**
|
||||
* @overload
|
||||
* @returns { void }
|
||||
|
@ -255,15 +255,15 @@ export class Game {
|
|||
/**
|
||||
* @overload
|
||||
* @param { Card } cards
|
||||
* @returns { import('../library/index.js').GameEventPromise }
|
||||
* @returns { GameEventPromise }
|
||||
*/
|
||||
cardsGotoOrdering(cards: any): import('../library/index.js').GameEventPromise;
|
||||
cardsGotoOrdering(cards: Card): GameEventPromise;
|
||||
/**
|
||||
* @overload
|
||||
* @param {Card[]} cards
|
||||
* @returns { import('../library/index.js').GameEventPromise }
|
||||
* @returns { GameEventPromise }
|
||||
*/
|
||||
cardsGotoOrdering(cards: Card[]): import('../library/index.js').GameEventPromise;
|
||||
cardsGotoOrdering(cards: Card[]): GameEventPromise;
|
||||
/**
|
||||
* @overload
|
||||
* @returns { void }
|
||||
|
@ -273,16 +273,16 @@ export class Game {
|
|||
* @overload
|
||||
* @param { Card } cards
|
||||
* @param { 'toRenku' | false } [bool] 为false时不触发trigger,为'toRenku'时牌放到仁库
|
||||
* @returns { import('../library/index.js').GameEventPromise }
|
||||
* @returns { GameEventPromise }
|
||||
*/
|
||||
cardsGotoSpecial(cards: any, bool?: false | "toRenku" | undefined): import('../library/index.js').GameEventPromise;
|
||||
cardsGotoSpecial(cards: Card, bool?: false | "toRenku" | undefined): GameEventPromise;
|
||||
/**
|
||||
* @overload
|
||||
* @param {Card[]} cards
|
||||
* @param { 'toRenku' | false } [bool] 为false时不触发trigger,为'toRenku'时牌放到仁库
|
||||
* @returns { import('../library/index.js').GameEventPromise }
|
||||
* @returns { GameEventPromise }
|
||||
*/
|
||||
cardsGotoSpecial(cards: Card[], bool?: false | "toRenku" | undefined): import('../library/index.js').GameEventPromise;
|
||||
cardsGotoSpecial(cards: Card[], bool?: false | "toRenku" | undefined): GameEventPromise;
|
||||
/**
|
||||
*
|
||||
* @param {...(
|
||||
|
@ -299,9 +299,9 @@ export class Game {
|
|||
any
|
||||
])[]): import("../library/element/gameEvent.js").GameEvent & import("../library/element/gameEventPromise.js").GameEventPromise;
|
||||
/**
|
||||
* @param { import('../library/index.js').GameEventPromise } event
|
||||
* @param { GameEventPromise } event
|
||||
*/
|
||||
$cardsGotoPile(event: import('../library/index.js').GameEventPromise): void;
|
||||
$cardsGotoPile(event: GameEventPromise): void;
|
||||
/**
|
||||
* @param { false } [pause]
|
||||
*/
|
||||
|
@ -316,16 +316,22 @@ export class Game {
|
|||
* @param { string } url
|
||||
* @param { Player } [player]
|
||||
*/
|
||||
changeLand(url: string, player?: any): void;
|
||||
changeLand(url: string, player?: import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): void;
|
||||
/**
|
||||
* @param { string[] } updates
|
||||
* @param { Function } proceed
|
||||
*/
|
||||
checkFileList(updates: string[], proceed: Function): void;
|
||||
/**
|
||||
* @param {...(Player[] | Player)} args
|
||||
* @overload
|
||||
* @param {[Player[]]} args
|
||||
*/
|
||||
replaceHandcards(...args: (Player[] | Player)[]): void;
|
||||
replaceHandcards(args: [Player[]]): any;
|
||||
/**
|
||||
* @overload
|
||||
* @param {Player[]} args
|
||||
*/
|
||||
replaceHandcards(args: Player[]): any;
|
||||
/**
|
||||
* @param { string } name
|
||||
*/
|
||||
|
@ -447,44 +453,44 @@ export class Game {
|
|||
*/
|
||||
playAudio(...args: any[]): HTMLAudioElement;
|
||||
/**
|
||||
* 根据skill中的audio,audioname,audioname2和player来获取音频地址列表
|
||||
* @typedef {[string,number]|string|number|boolean} audioInfo
|
||||
* @typedef {{audio: audioInfo, audioname?:string[], audioname2?:{[playerName: string]: audioInfo}}} skillInfo
|
||||
* @param { string } skill 技能名
|
||||
* @param { Player | string } [player] 角色/角色名
|
||||
* @param { skillInfo | audioInfo } [skillInfo] 预设的skillInfo/audioInfo(转为skillInfo),覆盖lib.skill[skill]
|
||||
* @returns { string[] } 语音地址列表
|
||||
* @example
|
||||
* ```js
|
||||
* const info=lib.skill['skillname'];
|
||||
* info.audio=undefined //默认值[true,2]
|
||||
* info.audio=false // 不播放语音
|
||||
* info.audio=true // [skill/skillname.mp3]
|
||||
* info.audio=3 // [skill/skillname1.mp3,skill/skillname2.mp3,skill/skillname3.mp3](项数为数字大小)
|
||||
* info.audio="(ext:extName|db:extension-extName)(/anyPath):true|number(:format)" //间接路径
|
||||
* // 同上,只是将目录改为(ext:extName|db:extension-extName)(/anyPath),且可以指定格式(默认mp3)
|
||||
* info.audio="(ext:extName|db:extension-extName/)(anyPath/)filename(.format)" //直接路径
|
||||
* //path和format至少有一个,否则会识别为引用技能
|
||||
* //起始位置为audio/(若无anyPath则为audio/skill/),若没有format默认mp3
|
||||
* info.audio="otherSkillname" //引用技能
|
||||
* //引用一个其他技能的语音,若lib.skill["otherSkillname"]不存在则读取"otherSkillname"的audio为默认值[true,2]
|
||||
* info.audio=["otherSkillname", number] //带fixedNum的引用技能
|
||||
* //同样引用一个其他技能的语音,若lib.skill["otherSkillname"]不存在则读取"otherSkillname"的audio为number
|
||||
* //若"otherSkillname"的语音数超过number,则只取前number个
|
||||
* info.audio=[true,2,"otherSkillname1",["otherSkillname2",2]] //任意元素拼接
|
||||
* //数组里可以放任何以上的格式,结果为分析完的结果合并
|
||||
*
|
||||
* info.audioname=['player1','player2']
|
||||
* //audioname里可以放任意角色名。
|
||||
* //如果其中包含发动技能的角色名"player",且info.audio不是直接路径"(anyPath/)filename(.format)"的形式
|
||||
* //则在"skill"和number中插入"_player",形如
|
||||
*
|
||||
* info.audioname2={'player1':audioInfo1,'player2':audioInfo2}
|
||||
* //audioname2是一个对象,其中key为角色名,value的类型和info.audio一样
|
||||
* //如果key中包含发动技能的角色名player,则直接改用info.audioname2[player]来播放语音
|
||||
* ```
|
||||
*/
|
||||
parseSkillAudio(skill: string, player?: Player | string, skillInfo?: {
|
||||
* 根据skill中的audio,audioname,audioname2和player来获取音频地址列表
|
||||
* @typedef {[string,number]|string|number|boolean} audioInfo
|
||||
* @typedef {{audio: audioInfo, audioname?:string[], audioname2?:{[playerName: string]: audioInfo}}} skillInfo
|
||||
* @param { string } skill 技能名
|
||||
* @param { Player | string } [player] 角色/角色名
|
||||
* @param { skillInfo | audioInfo } [skillInfo] 预设的skillInfo/audioInfo(转为skillInfo),覆盖lib.skill[skill]
|
||||
* @returns { string[] } 语音地址列表
|
||||
* @example
|
||||
* ```js
|
||||
* const info=lib.skill['skillname'];
|
||||
* info.audio=undefined //默认值[true,2]
|
||||
* info.audio=false // 不播放语音
|
||||
* info.audio=true // [skill/skillname.mp3]
|
||||
* info.audio=3 // [skill/skillname1.mp3,skill/skillname2.mp3,skill/skillname3.mp3](项数为数字大小)
|
||||
* info.audio="(ext:extName|db:extension-extName)(/anyPath):true|number(:format)" //间接路径
|
||||
* // 同上,只是将目录改为(ext:extName|db:extension-extName)(/anyPath),且可以指定格式(默认mp3)
|
||||
* info.audio="(ext:extName|db:extension-extName/)(anyPath/)filename(.format)" //直接路径
|
||||
* //path和format至少有一个,否则会识别为引用技能
|
||||
* //起始位置为audio/(若无anyPath则为audio/skill/),若没有format默认mp3
|
||||
* info.audio="otherSkillname" //引用技能
|
||||
* //引用一个其他技能的语音,若lib.skill["otherSkillname"]不存在则读取"otherSkillname"的audio为默认值[true,2]
|
||||
* info.audio=["otherSkillname", number] //带fixedNum的引用技能
|
||||
* //同样引用一个其他技能的语音,若lib.skill["otherSkillname"]不存在则读取"otherSkillname"的audio为number
|
||||
* //若"otherSkillname"的语音数超过number,则只取前number个
|
||||
* info.audio=[true,2,"otherSkillname1",["otherSkillname2",2]] //任意元素拼接
|
||||
* //数组里可以放任何以上的格式,结果为分析完的结果合并
|
||||
*
|
||||
* info.audioname=['player1','player2']
|
||||
* //audioname里可以放任意角色名。
|
||||
* //如果其中包含发动技能的角色名"player",且info.audio不是直接路径"(anyPath/)filename(.format)"的形式
|
||||
* //则在"skill"和number中插入"_player",形如
|
||||
*
|
||||
* info.audioname2={'player1':audioInfo1,'player2':audioInfo2}
|
||||
* //audioname2是一个对象,其中key为角色名,value的类型和info.audio一样
|
||||
* //如果key中包含发动技能的角色名player,则直接改用info.audioname2[player]来播放语音
|
||||
* ```
|
||||
*/
|
||||
parseSkillAudio(skill: string, player?: string | import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined, skillInfo?: {
|
||||
audio: string | number | boolean | [string, number];
|
||||
audioname?: string[] | undefined;
|
||||
audioname2?: {
|
||||
|
@ -838,7 +844,7 @@ export class Game {
|
|||
* @param { any } [content]
|
||||
* @returns
|
||||
*/
|
||||
addVideo(type: string, player: any, content?: any): void;
|
||||
addVideo(type: string, player: Player, content?: any): void;
|
||||
/**
|
||||
* @param { Function } func
|
||||
*/
|
||||
|
@ -876,18 +882,18 @@ export class Game {
|
|||
* @param { string } name
|
||||
* @param { string } skill
|
||||
* @param { Player } player
|
||||
* @param { import('../library/index.js').GameEventPromise } event
|
||||
* @returns { import('../library/index.js').GameEventPromise }
|
||||
* @param { GameEventPromise } event
|
||||
* @returns { GameEventPromise }
|
||||
*/
|
||||
createTrigger(name: string, skill: string, player: any, event: import('../library/index.js').GameEventPromise, indexedData: any): import('../library/index.js').GameEventPromise;
|
||||
createTrigger(name: string, skill: string, player: Player, event: GameEventPromise, indexedData: any): GameEventPromise;
|
||||
/**
|
||||
* @legacy Use {@link lib.element.GameEvent.constructor} instead.
|
||||
*
|
||||
* @param { string } name
|
||||
* @param { false } [trigger]
|
||||
* @param { import('../library/index.js').GameEventPromise } [triggerEvent]
|
||||
* @param { GameEventPromise } [triggerEvent]
|
||||
*/
|
||||
createEvent(name: string, trigger?: false | undefined, triggerEvent?: import("../library/index.js").GameEventPromise | undefined): import("../library/element/gameEvent.js").GameEvent & import("../library/element/gameEventPromise.js").GameEventPromise;
|
||||
createEvent(name: string, trigger?: false | undefined, triggerEvent?: import("noname-typings/nonameModules/noname/library/index.js").GameEventPromise | undefined): import("../library/element/gameEvent.js").GameEvent & import("../library/element/gameEventPromise.js").GameEventPromise;
|
||||
/**
|
||||
* @param { string } name
|
||||
* @param { { extension: string, sex: Sex, group: string, hp: string | number, skills?: string[], tags?: any[], translate: string } } information
|
||||
|
@ -921,7 +927,7 @@ export class Game {
|
|||
* @param { Card } info
|
||||
* @param { { extension: string, translate: string, description: string, number?: number, color?: string } } info2
|
||||
*/
|
||||
addCard(name: string, info: any, info2: {
|
||||
addCard(name: string, info: Card, info2: {
|
||||
extension: string;
|
||||
translate: string;
|
||||
description: string;
|
||||
|
@ -938,7 +944,7 @@ export class Game {
|
|||
forbid?: string[] | undefined;
|
||||
list: any[];
|
||||
card: {
|
||||
[key: string]: any;
|
||||
[key: string]: import("noname-typings/nonameModules/noname/library/element/card.js").Card;
|
||||
};
|
||||
skill: {
|
||||
[key: string]: any;
|
||||
|
@ -970,7 +976,7 @@ export class Game {
|
|||
* @param { string } skill
|
||||
* @param { Player } [player]
|
||||
*/
|
||||
addGlobalSkill(skill: string, player?: any): boolean;
|
||||
addGlobalSkill(skill: string, player?: import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): boolean;
|
||||
/**
|
||||
* @param { string } skill
|
||||
* @param { lib.element.Player } player
|
||||
|
@ -980,7 +986,7 @@ export class Game {
|
|||
/**
|
||||
* @param { string } extensionName
|
||||
*/
|
||||
hasExtension(extensionName: string): any;
|
||||
hasExtension(extensionName: string): boolean;
|
||||
/**
|
||||
* @param { string } extensionName
|
||||
*/
|
||||
|
@ -988,7 +994,7 @@ export class Game {
|
|||
/**
|
||||
* @param { string } extensionName
|
||||
*/
|
||||
hasExtensionLoaded(extensionName: string): any;
|
||||
hasExtensionLoaded(extensionName: string): boolean;
|
||||
/**
|
||||
* @param { string } extensionName
|
||||
* @param { Function } runnable
|
||||
|
@ -1004,7 +1010,7 @@ export class Game {
|
|||
* @overload
|
||||
* @returns { Card }
|
||||
*/
|
||||
createCard(): any;
|
||||
createCard(): Card;
|
||||
/**
|
||||
* @overload
|
||||
* @param { Card | string } name
|
||||
|
@ -1017,7 +1023,7 @@ export class Game {
|
|||
* @overload
|
||||
* @returns { Card }
|
||||
*/
|
||||
createCard2(): any;
|
||||
createCard2(): Card;
|
||||
/**
|
||||
* @overload
|
||||
* @param { Card | string } name
|
||||
|
@ -1046,17 +1052,17 @@ export class Game {
|
|||
*/
|
||||
executingAsyncEventMap: Map<GameEvent, Promise<any>>;
|
||||
/**
|
||||
* @type { import('../library/index.js').GameEventPromise[] }
|
||||
* @type { GameEventPromise[] }
|
||||
*/
|
||||
belongAsyncEventList: import('../library/index.js').GameEventPromise[];
|
||||
belongAsyncEventList: GameEventPromise[];
|
||||
/**
|
||||
* @param { import('../library/index.js').GameEventPromise } [belongAsyncEvent]
|
||||
* @param { GameEventPromise } [belongAsyncEvent]
|
||||
*/
|
||||
loop(belongAsyncEvent?: import("../library/index.js").GameEventPromise | undefined): Promise<void>;
|
||||
loop(belongAsyncEvent?: import("noname-typings/nonameModules/noname/library/index.js").GameEventPromise | undefined): Promise<void>;
|
||||
/**
|
||||
* @param { import('../library/index.js').GameEventPromise } [belongAsyncEvent]
|
||||
* @param { GameEventPromise } [belongAsyncEvent]
|
||||
*/
|
||||
runContent(belongAsyncEvent?: import("../library/index.js").GameEventPromise | undefined): Promise<any>;
|
||||
runContent(belongAsyncEvent?: import("noname-typings/nonameModules/noname/library/index.js").GameEventPromise | undefined): Promise<any>;
|
||||
pause(): void;
|
||||
pause2(): void;
|
||||
resume(): void;
|
||||
|
@ -1092,9 +1098,9 @@ export class Game {
|
|||
*/
|
||||
asyncDelayx(time?: number | undefined, time2?: number | undefined): Promise<void>;
|
||||
/**
|
||||
* @param { import('../library/index.js').GameEventPromise } [event]
|
||||
* @param { GameEventPromise } [event]
|
||||
*/
|
||||
check(event?: import("../library/index.js").GameEventPromise | undefined): boolean;
|
||||
check(event?: import("noname-typings/nonameModules/noname/library/index.js").GameEventPromise | undefined): boolean;
|
||||
Check: Check;
|
||||
uncheck(...args: any[]): void;
|
||||
/**
|
||||
|
@ -1104,21 +1110,21 @@ export class Game {
|
|||
* @param { boolean } [behind]
|
||||
* @param { boolean } [noanimate]
|
||||
*/
|
||||
swapSeat(player1: any, player2: any, prompt?: boolean | undefined, behind?: boolean | undefined, noanimate?: boolean | undefined): void;
|
||||
swapSeat(player1: Player, player2: Player, prompt?: boolean | undefined, behind?: boolean | undefined, noanimate?: boolean | undefined): void;
|
||||
/**
|
||||
* @param { Player } player1
|
||||
* @param { Player } [player2]
|
||||
*/
|
||||
swapPlayer(player: any, player2?: any): void;
|
||||
swapPlayer(player: any, player2?: import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): void;
|
||||
/**
|
||||
* @param { Player } player
|
||||
*/
|
||||
swapControl(player: any): void;
|
||||
swapControl(player: Player): void;
|
||||
swapPlayerAuto(player: any): void;
|
||||
/**
|
||||
* @param { Player } player
|
||||
*/
|
||||
findNext(player: any): any;
|
||||
findNext(player: Player): import("noname-typings/nonameModules/noname/library/element/player.js").Player;
|
||||
/**
|
||||
* @param { string } name
|
||||
* @param { Function } callback
|
||||
|
@ -1140,11 +1146,11 @@ export class Game {
|
|||
/**
|
||||
* @param { Player } player
|
||||
*/
|
||||
phaseLoop(player: any): void;
|
||||
phaseLoop(player: Player): void;
|
||||
/**
|
||||
* @param { Player } [player]
|
||||
*/
|
||||
gameDraw(player?: any, num?: number): import("../library/element/gameEvent.js").GameEvent & import("../library/element/gameEventPromise.js").GameEventPromise;
|
||||
gameDraw(player?: import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined, num?: number): import("../library/element/gameEvent.js").GameEvent & import("../library/element/gameEventPromise.js").GameEventPromise;
|
||||
chooseCharacterDouble(...args: any[]): void;
|
||||
updateRoundNumber(): void;
|
||||
/**
|
||||
|
@ -1153,7 +1159,7 @@ export class Game {
|
|||
* @param { { drawDeck: boolean } } [drawDeck]
|
||||
* @param { boolean } [bottom]
|
||||
*/
|
||||
asyncDraw(players: Player[], num: number | number[] | ((player: any) => number), drawDeck?: {
|
||||
asyncDraw(players: Player[], num: number | number[] | ((player: Player) => number), drawDeck?: {
|
||||
drawDeck: boolean;
|
||||
} | undefined, bottom?: boolean | undefined): void;
|
||||
/**
|
||||
|
@ -1161,7 +1167,7 @@ export class Game {
|
|||
* @param { number | number[] | (player: Player) => number } num
|
||||
* @param { { drawDeck: boolean } } [drawDeck]
|
||||
*/
|
||||
asyncDrawAuto(players: Player[], num: number | number[] | ((player: any) => number), drawDeck?: {
|
||||
asyncDrawAuto(players: Player[], num: number | number[] | ((player: Player) => number), drawDeck?: {
|
||||
drawDeck: boolean;
|
||||
} | undefined, ...args: any[]): void;
|
||||
finishSkill(i: any, sub: any): void;
|
||||
|
@ -1181,11 +1187,11 @@ export class Game {
|
|||
* @param { Player } player
|
||||
* @param { string | Card[] } card
|
||||
* @param { Player[] } [targets]
|
||||
* @param { import('../library/index.js').GameEventPromise } [event]
|
||||
* @param { GameEventPromise } [event]
|
||||
* @param { boolean } [forced]
|
||||
* @param { string } [logvid]
|
||||
*/
|
||||
logv(player: any, card: string | Card[], targets?: any[] | undefined, event?: import("../library/index.js").GameEventPromise | undefined, forced?: boolean | undefined, logvid?: string | undefined): HTMLDivElement | undefined;
|
||||
logv(player: Player, card: string | Card[], targets?: import("noname-typings/nonameModules/noname/library/element/player.js").Player[] | undefined, event?: import("noname-typings/nonameModules/noname/library/index.js").GameEventPromise | undefined, forced?: boolean | undefined, logvid?: string | undefined): HTMLDivElement | undefined;
|
||||
/**
|
||||
* @param { string } storeName
|
||||
* @param { string } idbValidKey
|
||||
|
@ -1267,28 +1273,28 @@ export class Game {
|
|||
/**
|
||||
* @param { Player } player
|
||||
*/
|
||||
triggerEnter(player: any): import("../library/element/gameEvent.js").GameEvent & import("../library/element/gameEventPromise.js").GameEventPromise;
|
||||
triggerEnter(player: Player): import("../library/element/gameEvent.js").GameEvent & import("../library/element/gameEventPromise.js").GameEventPromise;
|
||||
/**
|
||||
* @param { Player } player
|
||||
*/
|
||||
restorePlayer(player: any): any;
|
||||
restorePlayer(player: Player): import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined;
|
||||
/**
|
||||
* @param { Player } player
|
||||
*/
|
||||
removePlayer(player: any): any;
|
||||
removePlayer(player: Player): import("noname-typings/nonameModules/noname/library/element/player.js").Player;
|
||||
/**
|
||||
* @param { Player } player
|
||||
* @param { string } [character]
|
||||
* @param { string } [character2]
|
||||
*/
|
||||
replacePlayer(player: any, character?: string | undefined, character2?: string | undefined): import("../library/element/player.js").Player;
|
||||
replacePlayer(player: Player, character?: string | undefined, character2?: string | undefined): import("../library/element/player.js").Player;
|
||||
arrangePlayers(): void;
|
||||
/**
|
||||
* @param { string[] } skills
|
||||
* @param { Player } player
|
||||
* @param { string[] } exclude
|
||||
*/
|
||||
filterSkills(skills: string[], player: any, exclude: string[]): string[];
|
||||
filterSkills(skills: string[], player: Player, exclude: string[]): string[];
|
||||
/**
|
||||
* @param { string[] } skills
|
||||
*/
|
||||
|
@ -1303,22 +1309,22 @@ export class Game {
|
|||
* @param { (player: Player) => boolean } func
|
||||
* @param { boolean } [includeOut]
|
||||
*/
|
||||
hasPlayer(func: (player: any) => boolean, includeOut?: boolean | undefined): boolean;
|
||||
hasPlayer(func: (player: Player) => boolean, includeOut?: boolean | undefined): boolean;
|
||||
/**
|
||||
* @param { (player: Player) => boolean } func
|
||||
* @param { boolean } [includeOut]
|
||||
*/
|
||||
hasPlayer2(func: (player: any) => boolean, includeOut?: boolean | undefined): boolean;
|
||||
hasPlayer2(func: (player: Player) => boolean, includeOut?: boolean | undefined): boolean;
|
||||
/**
|
||||
* @param { (player: Player) => boolean } func
|
||||
* @param { boolean } [includeOut]
|
||||
*/
|
||||
countPlayer(func: (player: any) => boolean, includeOut?: boolean | undefined): any;
|
||||
countPlayer(func: (player: Player) => boolean, includeOut?: boolean | undefined): number;
|
||||
/**
|
||||
* @param { (player: Player) => boolean } func
|
||||
* @param { boolean } [includeOut]
|
||||
*/
|
||||
countPlayer2(func: (player: any) => boolean, includeOut?: boolean | undefined): any;
|
||||
countPlayer2(func: (player: Player) => boolean, includeOut?: boolean | undefined): number;
|
||||
/**
|
||||
* @overload
|
||||
* @returns { Player[] }
|
||||
|
@ -1331,7 +1337,7 @@ export class Game {
|
|||
* @param { boolean } [includeOut]
|
||||
* @returns { Player[] }
|
||||
*/
|
||||
filterPlayer(func: (player: any) => boolean, list?: any[] | undefined, includeOut?: boolean | undefined): Player[];
|
||||
filterPlayer(func: (player: Player) => boolean, list?: import("noname-typings/nonameModules/noname/library/element/player.js").Player[] | undefined, includeOut?: boolean | undefined): Player[];
|
||||
/**
|
||||
* @overload
|
||||
* @returns { Player[] }
|
||||
|
@ -1344,23 +1350,23 @@ export class Game {
|
|||
* @param { boolean } [includeOut]
|
||||
* @returns { Player[] }
|
||||
*/
|
||||
filterPlayer2(func: (player: any) => boolean, list?: any[] | undefined, includeOut?: boolean | undefined): Player[];
|
||||
filterPlayer2(func: (player: Player) => boolean, list?: import("noname-typings/nonameModules/noname/library/element/player.js").Player[] | undefined, includeOut?: boolean | undefined): Player[];
|
||||
/**
|
||||
* @param { (player: Player) => boolean } func
|
||||
* @param { boolean } [includeOut]
|
||||
*/
|
||||
findPlayer(func: (player: any) => boolean, includeOut?: boolean | undefined): any;
|
||||
findPlayer(func: (player: Player) => boolean, includeOut?: boolean | undefined): import("noname-typings/nonameModules/noname/library/element/player.js").Player | null;
|
||||
/**
|
||||
* @param { (player: Player) => boolean } func
|
||||
* @param { boolean } [includeOut]
|
||||
*/
|
||||
findPlayer2(func: (player: any) => boolean, includeOut?: boolean | undefined): any;
|
||||
findPlayer2(func: (player: Player) => boolean, includeOut?: boolean | undefined): import("noname-typings/nonameModules/noname/library/element/player.js").Player | null;
|
||||
/**
|
||||
* @param { (player: Player) => boolean } func
|
||||
* @param { boolean } [all]
|
||||
*/
|
||||
findCards(func: (player: any) => boolean, all?: boolean | undefined): string[];
|
||||
countGroup(): any;
|
||||
findCards(func: (player: Player) => boolean, all?: boolean | undefined): string[];
|
||||
countGroup(): number;
|
||||
/**
|
||||
* 此函数用于计算函数的时间消耗。
|
||||
* @param {function} 测试的函数
|
||||
|
@ -1374,7 +1380,7 @@ export class Game {
|
|||
* @param { (player: Player, i: number) => Promise<any | void> } asyncFunc 需要执行的async方法
|
||||
* @param { (a: Player, b: Player) => number } sort 排序器,默认为lib.sort.seat
|
||||
*/
|
||||
doAsyncInOrder(targets: Player[], asyncFunc: (player: any, i: number) => Promise<any | void>, sort: (a: any, b: any) => number): Promise<void>;
|
||||
doAsyncInOrder(targets: Player[], asyncFunc: (player: Player, i: number) => Promise<any | void>, sort: (a: Player, b: Player) => number): Promise<void>;
|
||||
}
|
||||
export let game: Game;
|
||||
export function setGame(instance?: Game | undefined): void;
|
||||
|
@ -1403,6 +1409,6 @@ export type Videos = {
|
|||
};
|
||||
import { GamePromises } from "./promises.js";
|
||||
import { DynamicStyle } from "./dynamic-style/index.js";
|
||||
import { lib } from '../library/index.js';
|
||||
import { lib } from "../library/index.js";
|
||||
import { Check } from "./check.js";
|
||||
import { delay } from "../util/index.js";
|
||||
|
|
|
@ -25,7 +25,11 @@ export class GamePromises {
|
|||
*/
|
||||
alert(title: string): Promise<true>;
|
||||
download(url: any, folder: any, dev: any, onprogress: any): Promise<any>;
|
||||
readFile(filename: any): Promise<any>;
|
||||
/**
|
||||
* @param {string} filename
|
||||
* @returns {Promise<ArrayBuffer | Buffer>}
|
||||
*/
|
||||
readFile(filename: string): Promise<ArrayBuffer | Buffer>;
|
||||
readFileAsText(filename: any): Promise<any>;
|
||||
writeFile(data: any, path: any, name: any): Promise<any>;
|
||||
ensureDirectory(list: any, callback: any, file: any): Promise<any>;
|
||||
|
|
|
@ -74,7 +74,7 @@ export class Get {
|
|||
* @param { false | Player } [player]
|
||||
* @returns { string[] }
|
||||
*/
|
||||
subtypes(obj: string | Card | VCard | CardBaseUIData, player?: false | Player): string[];
|
||||
subtypes(obj: string | Card | VCard | CardBaseUIData, player?: false | import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): string[];
|
||||
/**
|
||||
* @returns { string[] }
|
||||
*/
|
||||
|
@ -90,7 +90,7 @@ export class Get {
|
|||
* @param { Player } player
|
||||
* @returns { string[] }
|
||||
*/
|
||||
skillCategoriesOf(skill: string, player: any): string[];
|
||||
skillCategoriesOf(skill: string, player: Player): string[];
|
||||
numOf(obj: any, item: any): any;
|
||||
connectNickname(): any;
|
||||
zhinangs(filter: any): any;
|
||||
|
@ -175,7 +175,7 @@ export class Get {
|
|||
charactersOL(func: any): number[];
|
||||
trimip(str: any): any;
|
||||
mode(): any;
|
||||
idDialog(id: any): any;
|
||||
idDialog(id: any): import("noname-typings/nonameModules/noname/library/element/dialog.js").Dialog | null;
|
||||
arenaState(): {
|
||||
number: string | undefined;
|
||||
players: {};
|
||||
|
@ -198,7 +198,7 @@ export class Get {
|
|||
rank(name: any, num: any): number | "x" | "s" | "c" | "d" | "b" | "a" | "ap" | "am" | "bp" | "bm" | "sp";
|
||||
skillRank(skill: any, type: any, grouped: any): number;
|
||||
targetsInfo(targets: any): any[];
|
||||
infoTargets(infos: any): any[];
|
||||
infoTargets(infos: any): import("noname-typings/nonameModules/noname/library/element/player.js").Player[];
|
||||
cardInfo(card: any): any[];
|
||||
cardsInfo(cards?: any[]): any[][];
|
||||
infoCard(info: any): import("../library/element/card.js").Card;
|
||||
|
@ -279,25 +279,25 @@ export class Get {
|
|||
* @param { Button } obj
|
||||
* @returns { 'button' }
|
||||
*/
|
||||
itemtype(obj: any): 'button';
|
||||
itemtype(obj: Button): 'button';
|
||||
/**
|
||||
* @overload
|
||||
* @param { Card } obj
|
||||
* @returns { 'card' }
|
||||
*/
|
||||
itemtype(obj: any): 'card';
|
||||
itemtype(obj: Card): 'card';
|
||||
/**
|
||||
* @overload
|
||||
* @param { Player } obj
|
||||
* @returns { 'player' }
|
||||
*/
|
||||
itemtype(obj: any): 'player';
|
||||
itemtype(obj: Player): 'player';
|
||||
/**
|
||||
* @overload
|
||||
* @param { Dialog } obj
|
||||
* @returns { 'dialog' }
|
||||
*/
|
||||
itemtype(obj: any): 'dialog';
|
||||
itemtype(obj: Dialog): 'dialog';
|
||||
/**
|
||||
* @overload
|
||||
* @param { GameEvent | GameEventPromise } obj
|
||||
|
@ -314,7 +314,7 @@ export class Get {
|
|||
* @param { false | Player } [player]
|
||||
* @returns { string }
|
||||
*/
|
||||
subtype(obj: string | Card | VCard | CardBaseUIData, player?: false | Player): string;
|
||||
subtype(obj: string | Card | VCard | CardBaseUIData, player?: false | import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): string;
|
||||
equiptype(card: any, player: any): number;
|
||||
/**
|
||||
*
|
||||
|
@ -322,39 +322,39 @@ export class Get {
|
|||
* @param { false | Player } [player]
|
||||
* @returns { string }
|
||||
*/
|
||||
name(card: Card | VCard | CardBaseUIData, player?: false | Player): string;
|
||||
name(card: Card | VCard | CardBaseUIData, player?: false | import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): string;
|
||||
/**
|
||||
* @param {Card | VCard | Card[] | VCard[]} card
|
||||
* @param {false | Player} [player]
|
||||
* @returns {string}
|
||||
*/
|
||||
suit(card: Card | VCard | Card[] | VCard[], player?: false | Player): string;
|
||||
suit(card: Card | VCard | Card[] | VCard[], player?: false | import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): string;
|
||||
/**
|
||||
* @param {Card | VCard | Card[] | VCard[]} card
|
||||
* @param {false | Player} [player]
|
||||
* @returns {string}
|
||||
*/
|
||||
color(card: Card | VCard | Card[] | VCard[], player?: false | Player): string;
|
||||
color(card: Card | VCard | Card[] | VCard[], player?: false | import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): string;
|
||||
/**
|
||||
* @param {Card | VCard} card
|
||||
* @param {false | Player} [player]
|
||||
* @returns {number}
|
||||
*/
|
||||
number(card: Card | VCard, player?: false | Player): number;
|
||||
number(card: Card | VCard, player?: false | import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): number;
|
||||
/**
|
||||
* 返回一张杀的属性。如有多种属性则用`lib.natureSeparator`分割开来。例:火雷【杀】的返回值为`fire|thunder`
|
||||
* @param {string | string[] | Card | VCard} card
|
||||
* @param {false | Player} [player]
|
||||
* @returns {string}
|
||||
*/
|
||||
nature(card: string | string[] | Card | VCard, player?: false | Player): string;
|
||||
nature(card: string | string[] | Card | VCard, player?: false | import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): string;
|
||||
/**
|
||||
* 返回包含所有属性的数组
|
||||
* @param {string[] | string} card
|
||||
* @param {false | Player} [player]
|
||||
* @returns {string[]}
|
||||
*/
|
||||
natureList(card: string[] | string, player?: false | Player): string[];
|
||||
natureList(card: string[] | string, player?: false | import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): string[];
|
||||
cards(num: any, putBack: any): any;
|
||||
judge(card: any): any;
|
||||
judge2(card: any): any;
|
||||
|
@ -371,7 +371,7 @@ export class Get {
|
|||
* @param { Player | false } [player]
|
||||
* @returns { any }
|
||||
*/
|
||||
info(item: Card | VCard | CardBaseUIData, player?: Player | false): any;
|
||||
info(item: Card | VCard | CardBaseUIData, player?: false | import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): any;
|
||||
/**
|
||||
* @param { number | Select | (()=>Select) } [select]
|
||||
* @returns { Select }
|
||||
|
@ -382,16 +382,16 @@ export class Get {
|
|||
* @overload
|
||||
* @returns {GameEvent}
|
||||
*/
|
||||
event(): any;
|
||||
event(): GameEvent;
|
||||
/**
|
||||
* @template { keyof GameEvent } T
|
||||
* @overload
|
||||
* @param {T} key
|
||||
* @returns {GameEvent[T]}
|
||||
*/
|
||||
event<T_2 extends string | number | symbol>(key: T_2): any;
|
||||
event<T_2 extends keyof import("noname-typings/nonameModules/noname/library/element/gameEvent.js").GameEvent>(key: T_2): import("noname-typings/nonameModules/noname/library/element/gameEvent.js").GameEvent[T_2];
|
||||
player(): any;
|
||||
players(sort: any, dead: any, out: any): any[];
|
||||
players(sort: any, dead: any, out: any): import("noname-typings/nonameModules/noname/library/element/player.js").Player[];
|
||||
position(card: any, ordering: any): number | "e" | "j" | "x" | "s" | "h" | "c" | "d" | "o" | null | undefined;
|
||||
skillTranslation(str: any, player: any): string;
|
||||
skillInfoTranslation(name: any, player: any): any;
|
||||
|
@ -412,12 +412,12 @@ export class Get {
|
|||
* @param {((a: Button, b: Button) => number)} [sort] 排序函数
|
||||
* @returns { Button[] }
|
||||
*/
|
||||
selectableButtons(sort?: ((a: any, b: any) => number) | undefined): Button[];
|
||||
selectableButtons(sort?: ((a: Button, b: Button) => number) | undefined): Button[];
|
||||
/**
|
||||
* @param {((a: Card, b: Card) => number)} [sort] 排序函数
|
||||
* @returns { Card[] }
|
||||
*/
|
||||
selectableCards(sort?: ((a: any, b: any) => number) | undefined): Card[];
|
||||
selectableCards(sort?: ((a: Card, b: Card) => number) | undefined): Card[];
|
||||
/**
|
||||
* @returns { string[] } 技能名数组
|
||||
*/
|
||||
|
@ -429,11 +429,11 @@ export class Get {
|
|||
* @param {((a: Player, b: Player) => number)} [sort] 排序函数
|
||||
* @returns { Player[] }
|
||||
*/
|
||||
selectableTargets(sort?: ((a: any, b: any) => number) | undefined): Player[];
|
||||
selectableTargets(sort?: ((a: Player, b: Player) => number) | undefined): Player[];
|
||||
filter(filter: any, i: any): any;
|
||||
cardCount(card: any, player: any): any;
|
||||
skillCount(skill: any, player: any): any;
|
||||
owner(card: any, method: any): any;
|
||||
owner(card: any, method: any): import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined;
|
||||
noSelected(): boolean;
|
||||
population(identity: any): number;
|
||||
totalPopulation(identity: any): number;
|
||||
|
@ -467,8 +467,8 @@ export class Get {
|
|||
unuseful3(card: any): number;
|
||||
value(card: any, player: any, method: any): any;
|
||||
equipResult(player: any, target: any, name: any): number;
|
||||
equipValue(card: any, player: any): any;
|
||||
equipValueNumber(card: any): any;
|
||||
equipValue(card: any, player: any): number;
|
||||
equipValueNumber(card: any): number;
|
||||
disvalue(card: any, player: any): number;
|
||||
disvalue2(card: any, player: any): number;
|
||||
skillthreaten(skill: any, player: any, target: any): number | void;
|
||||
|
|
|
@ -5,14 +5,14 @@ export class Is {
|
|||
* @param { false | Player } [player]
|
||||
* @returns { boolean }
|
||||
*/
|
||||
attackingMount(card: Card | VCard, player?: false | Player): boolean;
|
||||
attackingMount(card: Card | VCard, player?: false | import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): boolean;
|
||||
/**
|
||||
* 判断是否为防御坐骑
|
||||
* @param { Card | VCard } card
|
||||
* @param { false | Player } [player]
|
||||
* @returns { boolean }
|
||||
*/
|
||||
defendingMount(card: Card | VCard, player?: false | Player): boolean;
|
||||
defendingMount(card: Card | VCard, player?: false | import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): boolean;
|
||||
/**
|
||||
* 判断坐骑栏是否被合并
|
||||
* @returns { boolean }
|
||||
|
@ -34,7 +34,7 @@ export class Is {
|
|||
* 判断一张牌是否为明置手牌
|
||||
* @param { Card } card
|
||||
*/
|
||||
shownCard(card: any): boolean;
|
||||
shownCard(card: Card): boolean;
|
||||
/**
|
||||
* 是否是虚拟牌
|
||||
* @param { Card | VCard } card
|
||||
|
@ -61,7 +61,7 @@ export class Is {
|
|||
* @param { Player } player 玩家
|
||||
* @returns
|
||||
*/
|
||||
blocked(skill: string, player: any): boolean;
|
||||
blocked(skill: string, player: Player): boolean;
|
||||
/**
|
||||
* 是否是双势力武将
|
||||
* @param { string } name
|
||||
|
@ -107,7 +107,7 @@ export class Is {
|
|||
/**
|
||||
* @param { GameEventPromise } event
|
||||
*/
|
||||
converted(event: any): boolean;
|
||||
converted(event: GameEventPromise): boolean;
|
||||
safari(): boolean;
|
||||
/**
|
||||
* @param { (Card | VCard)[]} cards
|
||||
|
@ -162,14 +162,14 @@ export class Is {
|
|||
/**
|
||||
* @param { Player } [player]
|
||||
*/
|
||||
mobileMe(player?: any): any;
|
||||
mobileMe(player?: import("noname-typings/nonameModules/noname/library/element/player.js").Player | undefined): boolean | undefined;
|
||||
newLayout(): boolean;
|
||||
phoneLayout(): boolean;
|
||||
singleHandcard(): any;
|
||||
/**
|
||||
* @param { Player } player
|
||||
*/
|
||||
linked2(player: any): boolean;
|
||||
linked2(player: Player): boolean;
|
||||
/**
|
||||
* @param { {} } obj
|
||||
*/
|
||||
|
@ -183,11 +183,11 @@ export class Is {
|
|||
* @param { Player } player
|
||||
* @returns
|
||||
*/
|
||||
locked(skill: string, player: any): any;
|
||||
locked(skill: string, player: Player): any;
|
||||
/**
|
||||
* @param { string } skill
|
||||
* @param { Player } player
|
||||
* @returns
|
||||
*/
|
||||
zhuanhuanji(skill: string, player: any): boolean;
|
||||
zhuanhuanji(skill: string, player: Player): boolean;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* 子节点观察器,对于需要频繁遍历子节点的DOM对象的实时变化进行缓存。
|
||||
*/
|
||||
* 子节点观察器,对于需要频繁遍历子节点的DOM对象的实时变化进行缓存。
|
||||
*/
|
||||
export class ChildNodesWatcher {
|
||||
constructor(dom: any);
|
||||
dom: any;
|
||||
|
|
2
node_modules/@types/noname-typings/nonameModules/noname/library/element/button.d.ts
generated
vendored
2
node_modules/@types/noname-typings/nonameModules/noname/library/element/button.d.ts
generated
vendored
|
@ -14,4 +14,4 @@ export class Button extends HTMLDivElement {
|
|||
exclude(): void;
|
||||
get updateTransform(): (bool: any, delay: any) => void;
|
||||
}
|
||||
import { ui } from '../../ui/index.js';
|
||||
import { ui } from "../../ui/index.js";
|
||||
|
|
2
node_modules/@types/noname-typings/nonameModules/noname/library/element/card.d.ts
generated
vendored
2
node_modules/@types/noname-typings/nonameModules/noname/library/element/card.d.ts
generated
vendored
|
@ -63,7 +63,7 @@ export class Card extends HTMLDivElement {
|
|||
cardid: string | undefined;
|
||||
/**
|
||||
* @param {[string, number, string, string]} card
|
||||
*/
|
||||
*/
|
||||
$init(card: [string, number, string, string]): this;
|
||||
updateTransform(bool: any, delay: any): void;
|
||||
aiexclude(): void;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/**
|
||||
* @type { SMap<((event: GameEventPromise, trigger: GameEventPromise, player: Player) => Promise<any>)[]> }
|
||||
*/
|
||||
export const Contents: SMap<((event: any, trigger: any, player: any) => Promise<any>)[]>;
|
||||
export const Contents: SMap<((event: GameEventPromise, trigger: GameEventPromise, player: Player) => Promise<any>)[]>;
|
||||
|
|
4
node_modules/@types/noname-typings/nonameModules/noname/library/element/dialog.d.ts
generated
vendored
4
node_modules/@types/noname-typings/nonameModules/noname/library/element/dialog.d.ts
generated
vendored
|
@ -22,14 +22,14 @@ export class Dialog extends HTMLDivElement {
|
|||
* @param {*} [noclick]
|
||||
* @param { boolean } [zoom]
|
||||
*/
|
||||
add(item: string | HTMLDivElement | Card[] | Player[], noclick?: any, zoom?: boolean | undefined): string | any[] | HTMLDivElement;
|
||||
add(item: string | HTMLDivElement | Card[] | Player[], noclick?: any, zoom?: boolean | undefined): string | HTMLDivElement | import("noname-typings/nonameModules/noname/library/element/player.js").Player[] | import("noname-typings/nonameModules/noname/library/element/card.js").Card[];
|
||||
forcebutton: boolean | undefined;
|
||||
/**
|
||||
* @param { string } str
|
||||
* @param { boolean } [center]
|
||||
*/
|
||||
addText(str: string, center?: boolean | undefined): this;
|
||||
addSmall(item: any, noclick: any): string | any[] | HTMLDivElement;
|
||||
addSmall(item: any, noclick: any): string | HTMLDivElement | import("noname-typings/nonameModules/noname/library/element/player.js").Player[] | import("noname-typings/nonameModules/noname/library/element/card.js").Card[];
|
||||
addAuto(content: any): void;
|
||||
open(): this | undefined;
|
||||
_dragtransform: any;
|
||||
|
|
22
node_modules/@types/noname-typings/nonameModules/noname/library/element/gameEvent.d.ts
generated
vendored
22
node_modules/@types/noname-typings/nonameModules/noname/library/element/gameEvent.d.ts
generated
vendored
|
@ -43,15 +43,19 @@ export class GameEvent {
|
|||
/**
|
||||
* @type { Player }
|
||||
*/
|
||||
source: any;
|
||||
source: Player;
|
||||
/**
|
||||
* @type { Player }
|
||||
*/
|
||||
player: any;
|
||||
player: Player;
|
||||
/**
|
||||
* @type { Player[] }
|
||||
*/
|
||||
players: Player[];
|
||||
/**
|
||||
* @type { Player }
|
||||
*/
|
||||
target: any;
|
||||
target: Player;
|
||||
/**
|
||||
* @type { Player[] }
|
||||
*/
|
||||
|
@ -59,7 +63,7 @@ export class GameEvent {
|
|||
/**
|
||||
* @type { Card }
|
||||
*/
|
||||
card: any;
|
||||
card: Card;
|
||||
/**
|
||||
* @type { Card[] }
|
||||
*/
|
||||
|
@ -87,7 +91,7 @@ export class GameEvent {
|
|||
/**
|
||||
* @type { Player }
|
||||
*/
|
||||
customSource: any;
|
||||
customSource: Player;
|
||||
/**
|
||||
* @type { number }
|
||||
*/
|
||||
|
@ -232,12 +236,12 @@ export class GameEvent {
|
|||
* 获取事件的父节点。
|
||||
* 获取事件链上的指定事件。
|
||||
* 默认获取上一个父节点(核心)。
|
||||
* @param {number|string|(evt:gameEvent)=>boolean} [level=1] 获取深度(number)/指定名字(string)/指定特征(function)
|
||||
* @param {number|string|((evt:GameEvent)=>boolean)} [level=1] 获取深度(number)/指定名字(string)/指定特征(function)
|
||||
* @param {boolean} [forced] 若获取不到节点,默认返回{},若forced为true则返回null
|
||||
* @param {boolean} [includeSelf] 若level不是数字,指定搜索时是否包含事件本身
|
||||
* @returns {GameEvent|{}|null}
|
||||
*/
|
||||
getParent(level?: string | number | ((evt: gameEvent) => boolean) | undefined, forced?: boolean | undefined, includeSelf?: boolean | undefined): GameEvent | {} | null;
|
||||
getParent(level?: string | number | ((evt: GameEvent) => boolean) | undefined, forced?: boolean | undefined, includeSelf?: boolean | undefined): GameEvent | {} | null;
|
||||
getTrigger(): any;
|
||||
getRand(name: any): any;
|
||||
_rand_map: {} | undefined;
|
||||
|
@ -267,8 +271,8 @@ export class GameEvent {
|
|||
_cardChoice: any;
|
||||
_targetChoice: any;
|
||||
_skillChoice: any;
|
||||
isMine(): any;
|
||||
isOnline(): any;
|
||||
isMine(): boolean;
|
||||
isOnline(): boolean;
|
||||
notLink(): boolean;
|
||||
isPhaseUsing(player: any): boolean;
|
||||
addTrigger(skills: any, player: any): this;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
* game.log('等待', player, '摸牌完成执行log');
|
||||
* ```
|
||||
*/
|
||||
export class GameEventPromise extends Promise<any> {
|
||||
export class GameEventPromise extends Promise<import("noname-typings/nonameModules/noname/library/element/gameEvent.js").GameEvent> {
|
||||
/**
|
||||
* @param { import('./gameEvent.js').GameEvent } arg
|
||||
*/
|
||||
|
@ -140,10 +140,6 @@ export class GameEventPromise extends Promise<any> {
|
|||
* @returns { Promise<Exclude<Result[T], undefined>[]> }
|
||||
*/
|
||||
forResult<T extends keyof Result>(params: T[]): Promise<Exclude<Result[T], undefined>[]>;
|
||||
/**
|
||||
* 返回result中的bool项
|
||||
*/
|
||||
forResultTest(): Promise<(boolean | any[])[]>;
|
||||
/**
|
||||
* 返回result中的bool项
|
||||
*/
|
||||
|
@ -151,11 +147,11 @@ export class GameEventPromise extends Promise<any> {
|
|||
/**
|
||||
* 返回result中的targets项。
|
||||
*/
|
||||
forResultTargets(): Promise<any[]>;
|
||||
forResultTargets(): Promise<import("noname-typings/nonameModules/noname/library/element/player.js").Player[]>;
|
||||
/**
|
||||
* 返回result中的cards项
|
||||
*/
|
||||
forResultCards(): Promise<any[]>;
|
||||
forResultCards(): Promise<import("noname-typings/nonameModules/noname/library/element/card.js").Card[]>;
|
||||
/**
|
||||
* 返回result中的card项
|
||||
*
|
||||
|
|
60
node_modules/@types/noname-typings/nonameModules/noname/library/element/player.d.ts
generated
vendored
60
node_modules/@types/noname-typings/nonameModules/noname/library/element/player.d.ts
generated
vendored
|
@ -295,13 +295,13 @@ export class Player extends HTMLDivElement {
|
|||
/**
|
||||
* 获取角色所有的明置手牌
|
||||
*/
|
||||
getShownCards(): any[];
|
||||
getShownCards(): import("noname-typings/nonameModules/noname/library/element/card.js").Card[];
|
||||
/**
|
||||
* 获取该角色被other所知的牌
|
||||
* @param { Player } [other]
|
||||
* @param { (card: Card) => boolean } [filter]
|
||||
*/
|
||||
getKnownCards(other?: Player | undefined, filter?: ((card: any) => boolean) | undefined): any[];
|
||||
getKnownCards(other?: Player | undefined, filter?: ((card: Card) => boolean) | undefined): import("noname-typings/nonameModules/noname/library/element/card.js").Card[];
|
||||
/**
|
||||
* 判断此角色的手牌是否已经被看光了
|
||||
* @param { Player } [other]
|
||||
|
@ -312,13 +312,13 @@ export class Player extends HTMLDivElement {
|
|||
* @param { Player } [other]
|
||||
* @param { (card: Card) => boolean } [filter]
|
||||
*/
|
||||
hasKnownCards(other?: Player | undefined, filter?: ((card: any) => boolean) | undefined): boolean;
|
||||
hasKnownCards(other?: Player | undefined, filter?: ((card: Card) => boolean) | undefined): boolean;
|
||||
/**
|
||||
* 数此角色被知道的牌
|
||||
* @param { Player } [other]
|
||||
* @param { (card: Card) => boolean } [filter]
|
||||
*/
|
||||
countKnownCards(other?: Player | undefined, filter?: ((card: any) => boolean) | undefined): number;
|
||||
countKnownCards(other?: Player | undefined, filter?: ((card: Card) => boolean) | undefined): number;
|
||||
/**
|
||||
* Execute the delay card effect
|
||||
*
|
||||
|
@ -336,7 +336,7 @@ export class Player extends HTMLDivElement {
|
|||
* 检测此牌是否不计入手牌上限
|
||||
* @param { Card } card
|
||||
*/
|
||||
canIgnoreHandcard(card: any): boolean;
|
||||
canIgnoreHandcard(card: Card): boolean;
|
||||
/**
|
||||
* Gift
|
||||
*
|
||||
|
@ -353,7 +353,7 @@ export class Player extends HTMLDivElement {
|
|||
* @param { Player } target
|
||||
* @param { boolean } [strict]
|
||||
*/
|
||||
canGift(card: any, target: Player, strict?: boolean | undefined): boolean;
|
||||
canGift(card: Card, target: Player, strict?: boolean | undefined): boolean;
|
||||
/**
|
||||
* Check if the player refuses gifts
|
||||
*
|
||||
|
@ -361,7 +361,7 @@ export class Player extends HTMLDivElement {
|
|||
* @param { Card } card
|
||||
* @param { Player } player
|
||||
*/
|
||||
refuseGifts(card: any, player: Player): boolean;
|
||||
refuseGifts(card: Card, player: Player): boolean;
|
||||
/**
|
||||
* Gift AI related
|
||||
*
|
||||
|
@ -369,12 +369,12 @@ export class Player extends HTMLDivElement {
|
|||
* @param { Card } card
|
||||
* @param { Player } target
|
||||
*/
|
||||
getGiftAIResultTarget(card: any, target: Player): number;
|
||||
getGiftAIResultTarget(card: Card, target: Player): number;
|
||||
/**
|
||||
* @param { Card } card
|
||||
* @param { Player } target
|
||||
*/
|
||||
getGiftEffect(card: any, target: Player): number;
|
||||
getGiftEffect(card: Card, target: Player): number;
|
||||
/**
|
||||
* 重铸
|
||||
* @param { Card | Card[] } cards
|
||||
|
@ -390,7 +390,7 @@ export class Player extends HTMLDivElement {
|
|||
* @param { Player } [source]
|
||||
* @param { boolean } [strict]
|
||||
*/
|
||||
canRecast(card: any, source?: Player | undefined, strict?: boolean | undefined): boolean;
|
||||
canRecast(card: Card, source?: Player | undefined, strict?: boolean | undefined): boolean;
|
||||
/**
|
||||
* 判断一名角色的某个区域是否被废除
|
||||
*
|
||||
|
@ -574,7 +574,7 @@ export class Player extends HTMLDivElement {
|
|||
* @param { string } tag
|
||||
* @param { Card[] } [cards]
|
||||
*/
|
||||
removeGaintag(tag: string, cards?: any[] | undefined): void;
|
||||
removeGaintag(tag: string, cards?: import("noname-typings/nonameModules/noname/library/element/card.js").Card[] | undefined): void;
|
||||
/**
|
||||
* @param { Player } target
|
||||
*/
|
||||
|
@ -583,18 +583,18 @@ export class Player extends HTMLDivElement {
|
|||
* @param { Card } card
|
||||
* @param { Player } target
|
||||
*/
|
||||
canSaveCard(card: any, target: Player): any;
|
||||
canSaveCard(card: Card, target: Player): any;
|
||||
/**
|
||||
* @param { String } from
|
||||
* @param { String } to
|
||||
* @returns { GameEventPromise }
|
||||
*/
|
||||
reinitCharacter(from: string, to: string, log?: boolean): any;
|
||||
reinitCharacter(from: string, to: string, log?: boolean): GameEventPromise;
|
||||
/**
|
||||
* @param { String[] } newPairs
|
||||
* @returns { GameEventPromise }
|
||||
*/
|
||||
changeCharacter(newPairs: string[], log?: boolean): any;
|
||||
changeCharacter(newPairs: string[], log?: boolean): GameEventPromise;
|
||||
/**
|
||||
* @param { 0 | 1 | 2 } num
|
||||
* @param { false } [log]
|
||||
|
@ -630,7 +630,7 @@ export class Player extends HTMLDivElement {
|
|||
* @param { string } [nature]
|
||||
* @param { string } [popname]
|
||||
*/
|
||||
tryCardAnimate(card: any, name: string, nature?: string | undefined, popname?: string | undefined, ...args: any[]): void;
|
||||
tryCardAnimate(card: Card, name: string, nature?: string | undefined, popname?: string | undefined, ...args: any[]): void;
|
||||
/**
|
||||
* @param { string } name
|
||||
* @param { string } type
|
||||
|
@ -754,12 +754,12 @@ export class Player extends HTMLDivElement {
|
|||
name: string;
|
||||
name1: string;
|
||||
name2: string;
|
||||
handcards: any[];
|
||||
handcards: import("noname-typings/nonameModules/noname/library/element/card.js").Card[];
|
||||
gaintag: never[];
|
||||
equips: any[];
|
||||
judges: any[];
|
||||
specials: any[];
|
||||
expansions: any[];
|
||||
equips: import("noname-typings/nonameModules/noname/library/element/card.js").Card[];
|
||||
judges: import("noname-typings/nonameModules/noname/library/element/card.js").Card[];
|
||||
specials: import("noname-typings/nonameModules/noname/library/element/card.js").Card[];
|
||||
expansions: import("noname-typings/nonameModules/noname/library/element/card.js").Card[];
|
||||
expansion_gaintag: never[];
|
||||
disableJudge: boolean;
|
||||
disabledSlots: SMap<number>;
|
||||
|
@ -812,17 +812,17 @@ export class Player extends HTMLDivElement {
|
|||
* @param { string | Record<string, any> | ((card: Card) => boolean) } [arg2]
|
||||
* @returns { Iterable<Card> }
|
||||
*/
|
||||
iterableGetCards(arg1?: string | undefined, arg2?: string | Record<string, any> | ((card: any) => boolean) | undefined): Iterable<Card>;
|
||||
iterableGetCards(arg1?: string | undefined, arg2?: string | Record<string, any> | ((card: Card) => boolean) | undefined): Iterable<Card>;
|
||||
/**
|
||||
* @param { string } [arg1='h']
|
||||
* @param { string | Record<string, any> | ((card: Card) => boolean) } [arg2]
|
||||
* @returns { Card[] }
|
||||
*/
|
||||
getCards(arg1?: string | undefined, arg2?: string | Record<string, any> | ((card: any) => boolean) | undefined): Card[];
|
||||
iterableGetDiscardableCards(player: any, arg1: any, arg2: any): Generator<any, void, unknown>;
|
||||
getDiscardableCards(player: any, arg1: any, arg2: any): any[];
|
||||
iterableGetGainableCards(player: any, arg1: any, arg2: any): Generator<any, void, unknown>;
|
||||
getGainableCards(player: any, arg1: any, arg2: any): any[];
|
||||
getCards(arg1?: string | undefined, arg2?: string | Record<string, any> | ((card: Card) => boolean) | undefined): Card[];
|
||||
iterableGetDiscardableCards(player: any, arg1: any, arg2: any): Generator<import("noname-typings/nonameModules/noname/library/element/card.js").Card, void, unknown>;
|
||||
getDiscardableCards(player: any, arg1: any, arg2: any): import("noname-typings/nonameModules/noname/library/element/card.js").Card[];
|
||||
iterableGetGainableCards(player: any, arg1: any, arg2: any): Generator<import("noname-typings/nonameModules/noname/library/element/card.js").Card, void, unknown>;
|
||||
getGainableCards(player: any, arg1: any, arg2: any): import("noname-typings/nonameModules/noname/library/element/card.js").Card[];
|
||||
getGainableSkills(func: any): any[];
|
||||
countCards(arg1: any, arg2: any): number;
|
||||
getCardIndex(arg1: any, name: any, card: any, max: any): number;
|
||||
|
@ -879,7 +879,7 @@ export class Player extends HTMLDivElement {
|
|||
useSkill(...args: any[]): import("./gameEvent.js").GameEvent & import("./gameEventPromise.js").GameEventPromise;
|
||||
drawTo(num: any, args: any): import("./gameEvent.js").GameEvent & import("./gameEventPromise.js").GameEventPromise;
|
||||
draw(...args: any[]): import("./gameEvent.js").GameEvent & import("./gameEventPromise.js").GameEventPromise;
|
||||
randomDiscard(...args: any[]): any[];
|
||||
randomDiscard(...args: any[]): import("noname-typings/nonameModules/noname/library/element/card.js").Card[];
|
||||
randomGain(...args: any[]): any;
|
||||
discard(...args: any[]): import("./gameEvent.js").GameEvent & import("./gameEventPromise.js").GameEventPromise;
|
||||
loseToDiscardpile(...args: any[]): import("./gameEvent.js").GameEvent & import("./gameEventPromise.js").GameEventPromise;
|
||||
|
@ -941,7 +941,7 @@ export class Player extends HTMLDivElement {
|
|||
hideTimer(): void;
|
||||
markAuto(name: any, info: any): void;
|
||||
unmarkAuto(name: any, info: any): void;
|
||||
getExpansions(tag: any): any[];
|
||||
getExpansions(tag: any): import("noname-typings/nonameModules/noname/library/element/card.js").Card[];
|
||||
countExpansions(tag: any): number;
|
||||
hasExpansions(tag: any): boolean;
|
||||
setStorage(name: any, value: any, mark: any): any;
|
||||
|
@ -1037,7 +1037,7 @@ export class Player extends HTMLDivElement {
|
|||
getGlobalFrom(): number;
|
||||
getGlobalTo(): number;
|
||||
getHandcardLimit(): number;
|
||||
getEnemies(func: any): any[] | undefined;
|
||||
getEnemies(func: any): import("noname-typings/nonameModules/noname/library/element/player.js").Player[] | undefined;
|
||||
getFriends(func: any): any[];
|
||||
isEnemyOf(...args: any[]): boolean;
|
||||
isFriendOf(player: any): boolean;
|
||||
|
@ -1087,7 +1087,7 @@ export class Player extends HTMLDivElement {
|
|||
mayHaveSha(viewer: any, type: any, ignore: any, rvt: any): number | boolean;
|
||||
mayHaveShan(viewer: any, type: any, ignore: any, rvt: any): number | boolean;
|
||||
hasCard(name: any, position: any): boolean;
|
||||
getEquip(name: any): any;
|
||||
getEquip(name: any): import("noname-typings/nonameModules/noname/library/element/card.js").Card | null;
|
||||
getJudge(name: any): ChildNode | null;
|
||||
$drawAuto(cards: any, target: any): void;
|
||||
$draw(num: any, init: any, config: any): void;
|
||||
|
|
4
node_modules/@types/noname-typings/nonameModules/noname/library/element/vcard.d.ts
generated
vendored
4
node_modules/@types/noname-typings/nonameModules/noname/library/element/vcard.d.ts
generated
vendored
|
@ -5,7 +5,7 @@ export class VCard {
|
|||
* @param { string } [name]
|
||||
* @param { string } [nature]
|
||||
*/
|
||||
constructor(suitOrCard?: any, numberOrCards?: number | any[] | undefined, name?: string | undefined, nature?: string | undefined);
|
||||
constructor(suitOrCard?: any, numberOrCards?: number | import("noname-typings/nonameModules/noname/library/element/card.js").Card[] | undefined, name?: string | undefined, nature?: string | undefined);
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
|
@ -43,7 +43,7 @@ export class VCard {
|
|||
/**
|
||||
* @param { Player } player
|
||||
*/
|
||||
hasNature(nature: any, player: any): boolean;
|
||||
hasNature(nature: any, player: Player): boolean;
|
||||
getCacheKey(): string;
|
||||
hasGaintag(tag: any): any;
|
||||
}
|
||||
|
|
|
@ -62,7 +62,10 @@ export class Library {
|
|||
onload: any[];
|
||||
onload2: any[];
|
||||
onprepare: any[];
|
||||
arenaReady: any[];
|
||||
/**
|
||||
* @type { Function[] | undefined }
|
||||
*/
|
||||
arenaReady: Function[] | undefined;
|
||||
onfree: any[];
|
||||
inpile: any[];
|
||||
inpile_nature: any[];
|
||||
|
@ -503,11 +506,11 @@ export class Library {
|
|||
intro: string;
|
||||
init: string;
|
||||
item: {
|
||||
'500': string;
|
||||
'700': string;
|
||||
'1000': string;
|
||||
'1500': string;
|
||||
'2500': string;
|
||||
500: string;
|
||||
700: string;
|
||||
1000: string;
|
||||
1500: string;
|
||||
2500: string;
|
||||
};
|
||||
};
|
||||
doubleclick_intro: {
|
||||
|
@ -521,12 +524,12 @@ export class Library {
|
|||
init: string;
|
||||
intro: string;
|
||||
item: {
|
||||
'0': string;
|
||||
'5': string;
|
||||
'10': string;
|
||||
'20': string;
|
||||
'50': string;
|
||||
'10000': string;
|
||||
0: string;
|
||||
5: string;
|
||||
10: string;
|
||||
20: string;
|
||||
50: string;
|
||||
10000: string;
|
||||
};
|
||||
unfrequent: boolean;
|
||||
};
|
||||
|
@ -719,10 +722,10 @@ export class Library {
|
|||
init: string;
|
||||
item: {
|
||||
off: string;
|
||||
'30000': string;
|
||||
'60000': string;
|
||||
'120000': string;
|
||||
'300000': string;
|
||||
30000: string;
|
||||
60000: string;
|
||||
120000: string;
|
||||
300000: string;
|
||||
};
|
||||
intro: string;
|
||||
onclick(item: any): void;
|
||||
|
@ -889,17 +892,17 @@ export class Library {
|
|||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'-5x': string;
|
||||
'-4x': string;
|
||||
'-3x': string;
|
||||
'-2x': string;
|
||||
'-1x': string;
|
||||
'0x': string;
|
||||
'1x': string;
|
||||
'2x': string;
|
||||
'3x': string;
|
||||
'4x': string;
|
||||
'5x': string;
|
||||
"-5x": string;
|
||||
"-4x": string;
|
||||
"-3x": string;
|
||||
"-2x": string;
|
||||
"-1x": string;
|
||||
"0x": string;
|
||||
"1x": string;
|
||||
"2x": string;
|
||||
"3x": string;
|
||||
"4x": string;
|
||||
"5x": string;
|
||||
};
|
||||
unfrequent: boolean;
|
||||
onclick(item: any): void;
|
||||
|
@ -908,17 +911,17 @@ export class Library {
|
|||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'-5x': string;
|
||||
'-4x': string;
|
||||
'-3x': string;
|
||||
'-2x': string;
|
||||
'-1x': string;
|
||||
'0x': string;
|
||||
'1x': string;
|
||||
'2x': string;
|
||||
'3x': string;
|
||||
'4x': string;
|
||||
'5x': string;
|
||||
"-5x": string;
|
||||
"-4x": string;
|
||||
"-3x": string;
|
||||
"-2x": string;
|
||||
"-1x": string;
|
||||
"0x": string;
|
||||
"1x": string;
|
||||
"2x": string;
|
||||
"3x": string;
|
||||
"4x": string;
|
||||
"5x": string;
|
||||
};
|
||||
unfrequent: boolean;
|
||||
onclick(item: any): void;
|
||||
|
@ -927,17 +930,17 @@ export class Library {
|
|||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'-5x': string;
|
||||
'-4x': string;
|
||||
'-3x': string;
|
||||
'-2x': string;
|
||||
'-1x': string;
|
||||
'0x': string;
|
||||
'1x': string;
|
||||
'2x': string;
|
||||
'3x': string;
|
||||
'4x': string;
|
||||
'5x': string;
|
||||
"-5x": string;
|
||||
"-4x": string;
|
||||
"-3x": string;
|
||||
"-2x": string;
|
||||
"-1x": string;
|
||||
"0x": string;
|
||||
"1x": string;
|
||||
"2x": string;
|
||||
"3x": string;
|
||||
"4x": string;
|
||||
"5x": string;
|
||||
};
|
||||
unfrequent: boolean;
|
||||
onclick(item: any): void;
|
||||
|
@ -946,17 +949,17 @@ export class Library {
|
|||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'-5x': string;
|
||||
'-4x': string;
|
||||
'-3x': string;
|
||||
'-2x': string;
|
||||
'-1x': string;
|
||||
'0x': string;
|
||||
'1x': string;
|
||||
'2x': string;
|
||||
'3x': string;
|
||||
'4x': string;
|
||||
'5x': string;
|
||||
"-5x": string;
|
||||
"-4x": string;
|
||||
"-3x": string;
|
||||
"-2x": string;
|
||||
"-1x": string;
|
||||
"0x": string;
|
||||
"1x": string;
|
||||
"2x": string;
|
||||
"3x": string;
|
||||
"4x": string;
|
||||
"5x": string;
|
||||
};
|
||||
unfrequent: boolean;
|
||||
onclick(item: any): void;
|
||||
|
@ -1390,10 +1393,10 @@ export class Library {
|
|||
intro: string;
|
||||
init: string;
|
||||
item: {
|
||||
'6': string;
|
||||
'12': string;
|
||||
'20': string;
|
||||
'30': string;
|
||||
6: string;
|
||||
12: string;
|
||||
20: string;
|
||||
30: string;
|
||||
};
|
||||
unfrequent: boolean;
|
||||
};
|
||||
|
@ -1624,15 +1627,15 @@ export class Library {
|
|||
name: string;
|
||||
init: number;
|
||||
item: {
|
||||
'0': string;
|
||||
'1': string;
|
||||
'2': string;
|
||||
'3': string;
|
||||
'4': string;
|
||||
'5': string;
|
||||
'6': string;
|
||||
'7': string;
|
||||
'8': string;
|
||||
0: string;
|
||||
1: string;
|
||||
2: string;
|
||||
3: string;
|
||||
4: string;
|
||||
5: string;
|
||||
6: string;
|
||||
7: string;
|
||||
8: string;
|
||||
};
|
||||
onclick(volume: any): void;
|
||||
};
|
||||
|
@ -1640,15 +1643,15 @@ export class Library {
|
|||
name: string;
|
||||
init: number;
|
||||
item: {
|
||||
'0': string;
|
||||
'1': string;
|
||||
'2': string;
|
||||
'3': string;
|
||||
'4': string;
|
||||
'5': string;
|
||||
'6': string;
|
||||
'7': string;
|
||||
'8': string;
|
||||
0: string;
|
||||
1: string;
|
||||
2: string;
|
||||
3: string;
|
||||
4: string;
|
||||
5: string;
|
||||
6: string;
|
||||
7: string;
|
||||
8: string;
|
||||
};
|
||||
onclick(volume: any): void;
|
||||
};
|
||||
|
@ -1722,108 +1725,108 @@ export class Library {
|
|||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'1': string;
|
||||
'0.5': string;
|
||||
'0': string;
|
||||
1: string;
|
||||
0.5: string;
|
||||
0: string;
|
||||
};
|
||||
};
|
||||
huosha: {
|
||||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'1': string;
|
||||
'0.5': string;
|
||||
'0': string;
|
||||
1: string;
|
||||
0.5: string;
|
||||
0: string;
|
||||
};
|
||||
};
|
||||
leisha: {
|
||||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'1': string;
|
||||
'0.5': string;
|
||||
'0': string;
|
||||
1: string;
|
||||
0.5: string;
|
||||
0: string;
|
||||
};
|
||||
};
|
||||
shan: {
|
||||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'1': string;
|
||||
'0.5': string;
|
||||
'0': string;
|
||||
1: string;
|
||||
0.5: string;
|
||||
0: string;
|
||||
};
|
||||
};
|
||||
tao: {
|
||||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'1': string;
|
||||
'0.5': string;
|
||||
'0': string;
|
||||
1: string;
|
||||
0.5: string;
|
||||
0: string;
|
||||
};
|
||||
};
|
||||
jiu: {
|
||||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'1': string;
|
||||
'0.5': string;
|
||||
'0': string;
|
||||
1: string;
|
||||
0.5: string;
|
||||
0: string;
|
||||
};
|
||||
};
|
||||
wuxie: {
|
||||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'1': string;
|
||||
'0.5': string;
|
||||
'0': string;
|
||||
1: string;
|
||||
0.5: string;
|
||||
0: string;
|
||||
};
|
||||
};
|
||||
nanman: {
|
||||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'1': string;
|
||||
'0.5': string;
|
||||
'0': string;
|
||||
1: string;
|
||||
0.5: string;
|
||||
0: string;
|
||||
};
|
||||
};
|
||||
wanjian: {
|
||||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'1': string;
|
||||
'0.5': string;
|
||||
'0': string;
|
||||
1: string;
|
||||
0.5: string;
|
||||
0: string;
|
||||
};
|
||||
};
|
||||
guohe: {
|
||||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'1': string;
|
||||
'0.5': string;
|
||||
'0': string;
|
||||
1: string;
|
||||
0.5: string;
|
||||
0: string;
|
||||
};
|
||||
};
|
||||
shunshou: {
|
||||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'1': string;
|
||||
'0.5': string;
|
||||
'0': string;
|
||||
1: string;
|
||||
0.5: string;
|
||||
0: string;
|
||||
};
|
||||
};
|
||||
tiesuo: {
|
||||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'1': string;
|
||||
'0.5': string;
|
||||
'0': string;
|
||||
1: string;
|
||||
0.5: string;
|
||||
0: string;
|
||||
};
|
||||
};
|
||||
hide: {
|
||||
|
@ -1869,10 +1872,10 @@ export class Library {
|
|||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'0.1': string;
|
||||
'0.2': string;
|
||||
'0.3': string;
|
||||
'0.5': string;
|
||||
0.1: string;
|
||||
0.2: string;
|
||||
0.3: string;
|
||||
0.5: string;
|
||||
};
|
||||
};
|
||||
hide: {
|
||||
|
@ -1946,9 +1949,9 @@ export class Library {
|
|||
item: {
|
||||
off: string;
|
||||
group: string;
|
||||
'4': string;
|
||||
'6': string;
|
||||
'8': string;
|
||||
4: string;
|
||||
6: string;
|
||||
8: string;
|
||||
};
|
||||
};
|
||||
connect_zhong_card: {
|
||||
|
@ -2221,12 +2224,12 @@ export class Library {
|
|||
init: string;
|
||||
restart: boolean;
|
||||
item: {
|
||||
'3': string;
|
||||
'4': string;
|
||||
'5': string;
|
||||
'6': string;
|
||||
'8': string;
|
||||
'10': string;
|
||||
3: string;
|
||||
4: string;
|
||||
5: string;
|
||||
6: string;
|
||||
8: string;
|
||||
10: string;
|
||||
};
|
||||
};
|
||||
limit_zhu: {
|
||||
|
@ -2236,9 +2239,9 @@ export class Library {
|
|||
item: {
|
||||
off: string;
|
||||
group: string;
|
||||
'4': string;
|
||||
'6': string;
|
||||
'8': string;
|
||||
4: string;
|
||||
6: string;
|
||||
8: string;
|
||||
};
|
||||
};
|
||||
choice_zhong: {
|
||||
|
@ -2246,12 +2249,12 @@ export class Library {
|
|||
init: string;
|
||||
restart: boolean;
|
||||
item: {
|
||||
'3': string;
|
||||
'4': string;
|
||||
'5': string;
|
||||
'6': string;
|
||||
'8': string;
|
||||
'10': string;
|
||||
3: string;
|
||||
4: string;
|
||||
5: string;
|
||||
6: string;
|
||||
8: string;
|
||||
10: string;
|
||||
};
|
||||
};
|
||||
choice_nei: {
|
||||
|
@ -2259,12 +2262,12 @@ export class Library {
|
|||
init: string;
|
||||
restart: boolean;
|
||||
item: {
|
||||
'3': string;
|
||||
'4': string;
|
||||
'5': string;
|
||||
'6': string;
|
||||
'8': string;
|
||||
'10': string;
|
||||
3: string;
|
||||
4: string;
|
||||
5: string;
|
||||
6: string;
|
||||
8: string;
|
||||
10: string;
|
||||
};
|
||||
};
|
||||
choice_fan: {
|
||||
|
@ -2272,12 +2275,12 @@ export class Library {
|
|||
init: string;
|
||||
restart: boolean;
|
||||
item: {
|
||||
'3': string;
|
||||
'4': string;
|
||||
'5': string;
|
||||
'6': string;
|
||||
'8': string;
|
||||
'10': string;
|
||||
3: string;
|
||||
4: string;
|
||||
5: string;
|
||||
6: string;
|
||||
8: string;
|
||||
10: string;
|
||||
};
|
||||
};
|
||||
enable_commoner: {
|
||||
|
@ -2292,12 +2295,12 @@ export class Library {
|
|||
init: string;
|
||||
restart: boolean;
|
||||
item: {
|
||||
'3': string;
|
||||
'4': string;
|
||||
'5': string;
|
||||
'6': string;
|
||||
'8': string;
|
||||
'10': string;
|
||||
3: string;
|
||||
4: string;
|
||||
5: string;
|
||||
6: string;
|
||||
8: string;
|
||||
10: string;
|
||||
};
|
||||
};
|
||||
enable_year_limit: {
|
||||
|
@ -2552,12 +2555,12 @@ export class Library {
|
|||
init: string;
|
||||
restart: boolean;
|
||||
item: {
|
||||
'5': string;
|
||||
'6': string;
|
||||
'7': string;
|
||||
'8': string;
|
||||
'9': string;
|
||||
'10': string;
|
||||
5: string;
|
||||
6: string;
|
||||
7: string;
|
||||
8: string;
|
||||
9: string;
|
||||
10: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -2570,10 +2573,10 @@ export class Library {
|
|||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'1v1': string;
|
||||
'2v2': string;
|
||||
'3v3': string;
|
||||
'4v4': string;
|
||||
"1v1": string;
|
||||
"2v2": string;
|
||||
"3v3": string;
|
||||
"4v4": string;
|
||||
guandu: string;
|
||||
};
|
||||
frequent: boolean;
|
||||
|
@ -2595,11 +2598,11 @@ export class Library {
|
|||
init: string;
|
||||
frequent: boolean;
|
||||
item: {
|
||||
'12': string;
|
||||
'16': string;
|
||||
'20': string;
|
||||
'24': string;
|
||||
'40': string;
|
||||
12: string;
|
||||
16: string;
|
||||
20: string;
|
||||
24: string;
|
||||
40: string;
|
||||
};
|
||||
};
|
||||
connect_replace_number: {
|
||||
|
@ -2607,12 +2610,12 @@ export class Library {
|
|||
init: string;
|
||||
frequent: boolean;
|
||||
item: {
|
||||
'0': string;
|
||||
'1': string;
|
||||
'2': string;
|
||||
'3': string;
|
||||
'4': string;
|
||||
'5': string;
|
||||
0: string;
|
||||
1: string;
|
||||
2: string;
|
||||
3: string;
|
||||
4: string;
|
||||
5: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -2949,12 +2952,12 @@ export class Library {
|
|||
init: string;
|
||||
restart: boolean;
|
||||
item: {
|
||||
'3': string;
|
||||
'4': string;
|
||||
'5': string;
|
||||
'6': string;
|
||||
'8': string;
|
||||
'10': string;
|
||||
3: string;
|
||||
4: string;
|
||||
5: string;
|
||||
6: string;
|
||||
8: string;
|
||||
10: string;
|
||||
};
|
||||
};
|
||||
choice_fan: {
|
||||
|
@ -2962,12 +2965,12 @@ export class Library {
|
|||
init: string;
|
||||
restart: boolean;
|
||||
item: {
|
||||
'3': string;
|
||||
'4': string;
|
||||
'5': string;
|
||||
'6': string;
|
||||
'8': string;
|
||||
'10': string;
|
||||
3: string;
|
||||
4: string;
|
||||
5: string;
|
||||
6: string;
|
||||
8: string;
|
||||
10: string;
|
||||
};
|
||||
};
|
||||
edit_character: {
|
||||
|
@ -3089,10 +3092,10 @@ export class Library {
|
|||
name: string;
|
||||
init: string;
|
||||
item: {
|
||||
'0': string;
|
||||
'0.2': string;
|
||||
'0.333': string;
|
||||
'0.5': string;
|
||||
0: string;
|
||||
0.2: string;
|
||||
0.333: string;
|
||||
0.5: string;
|
||||
};
|
||||
frequent: boolean;
|
||||
};
|
||||
|
@ -3129,10 +3132,10 @@ export class Library {
|
|||
init: string;
|
||||
intro: string;
|
||||
item: {
|
||||
'0': string;
|
||||
'10': string;
|
||||
'20': string;
|
||||
'30': string;
|
||||
0: string;
|
||||
10: string;
|
||||
20: string;
|
||||
30: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -3145,10 +3148,10 @@ export class Library {
|
|||
init: string;
|
||||
frequent: boolean;
|
||||
item: {
|
||||
'10': string;
|
||||
'20': string;
|
||||
'30': string;
|
||||
'1000': string;
|
||||
10: string;
|
||||
20: string;
|
||||
30: string;
|
||||
1000: string;
|
||||
};
|
||||
};
|
||||
tafang_difficulty: {
|
||||
|
@ -3156,9 +3159,9 @@ export class Library {
|
|||
init: string;
|
||||
frequent: boolean;
|
||||
item: {
|
||||
'1': string;
|
||||
'2': string;
|
||||
'3': string;
|
||||
1: string;
|
||||
2: string;
|
||||
3: string;
|
||||
};
|
||||
};
|
||||
show_range: {
|
||||
|
@ -3174,10 +3177,10 @@ export class Library {
|
|||
intro: string;
|
||||
init: string;
|
||||
item: {
|
||||
'0': string;
|
||||
'10': string;
|
||||
'20': string;
|
||||
'30': string;
|
||||
0: string;
|
||||
10: string;
|
||||
20: string;
|
||||
30: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -3255,13 +3258,13 @@ export class Library {
|
|||
init: string;
|
||||
frequent: boolean;
|
||||
item: {
|
||||
'1': string;
|
||||
'2': string;
|
||||
'3': string;
|
||||
'4': string;
|
||||
'6': string;
|
||||
'8': string;
|
||||
'10': string;
|
||||
1: string;
|
||||
2: string;
|
||||
3: string;
|
||||
4: string;
|
||||
6: string;
|
||||
8: string;
|
||||
10: string;
|
||||
};
|
||||
onclick(num: any): void;
|
||||
};
|
||||
|
@ -3992,7 +3995,7 @@ export class Library {
|
|||
link: () => void;
|
||||
chooseToGuanxing: () => void;
|
||||
};
|
||||
contents: SMap<((event: any, trigger: any, player: any) => Promise<any>)[]>;
|
||||
contents: SMap<((event: import("noname-typings/nonameModules/noname/library/index.js").GameEventPromise, trigger: import("noname-typings/nonameModules/noname/library/index.js").GameEventPromise, player: import("noname-typings/nonameModules/noname/library/element/player.js").Player) => Promise<any>)[]>;
|
||||
Player: typeof Element.Player;
|
||||
Card: typeof Element.Card;
|
||||
VCard: typeof Element.VCard;
|
||||
|
@ -4243,7 +4246,7 @@ export class Library {
|
|||
attackFrom: (card: any, player: any, target: any) => boolean;
|
||||
globalFrom: (card: any, player: any, target: any) => boolean;
|
||||
selectCard: () => number[];
|
||||
selectTarget: (card: any, player: any) => any;
|
||||
selectTarget: (card: any, player: any) => number | number[] | (() => number | Select) | undefined;
|
||||
judge: (card: any, player: any, target: any) => any;
|
||||
autoRespondSha: () => boolean;
|
||||
autoRespondShan: () => boolean;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
/**
|
||||
* 获取github授权的token
|
||||
*/
|
||||
export function gainAuthorization(): Promise<void>;
|
||||
/**
|
||||
* 字节转换
|
||||
|
@ -6,9 +9,10 @@ export function gainAuthorization(): Promise<void>;
|
|||
export function parseSize(limit: number): string;
|
||||
/**
|
||||
* 对比版本号
|
||||
* @param { string } ver1
|
||||
* @param { string } ver2
|
||||
* @returns { -1 | 0 | 1 }
|
||||
* @param { string } ver1 版本号1
|
||||
* @param { string } ver2 版本号2
|
||||
* @returns { -1 | 0 | 1 } -1为ver1 < ver2, 0为ver1 == ver2, 1为ver1 > ver2
|
||||
* @throws {Error}
|
||||
*/
|
||||
export function checkVersion(ver1: string, ver2: string): -1 | 0 | 1;
|
||||
/**
|
||||
|
@ -91,7 +95,7 @@ export function getRepoTagDescription(tagName: string, options?: {
|
|||
}>;
|
||||
/**
|
||||
*
|
||||
* 获取仓库指定分支和指定目录内的所有文件和目录
|
||||
* 获取仓库指定分支和指定(单个)目录内的所有文件和目录
|
||||
* @param { string } [path = ''] 路径名称(可放参数)
|
||||
* @param { string } [branch = ''] 仓库分支名称
|
||||
* @param { Object } options
|
||||
|
@ -128,6 +132,9 @@ export function getRepoFilesList(path?: string | undefined, branch?: string | un
|
|||
/**
|
||||
*
|
||||
* 获取仓库指定分支和指定目录内的所有文件(包含子目录的文件)
|
||||
*
|
||||
* **注意: 此api可能会大幅度消耗请求次数,请谨慎使用**
|
||||
*
|
||||
* @param { string } [path = ''] 路径名称(可放参数)
|
||||
* @param { string } [branch = ''] 仓库分支名称
|
||||
* @param { Object } options
|
||||
|
@ -155,7 +162,7 @@ export function flattenRepositoryFiles(path?: string | undefined, branch?: strin
|
|||
type: 'file';
|
||||
}[]>;
|
||||
/**
|
||||
* 请求一个文件而不是直接储存为文件
|
||||
* 请求一个文件而不是直接储存为文件,这样可以省内存空间
|
||||
* @param { string } url
|
||||
* @param { (receivedBytes: number, total?:number, filename?: string) => void } [onProgress]
|
||||
* @param { RequestInit } [options={}]
|
||||
|
@ -174,3 +181,37 @@ export function request(url: string, onProgress?: ((receivedBytes: number, total
|
|||
* @returns { progress }
|
||||
*/
|
||||
export function createProgress(title?: string | undefined, max?: string | number | undefined, fileName?: string | undefined, value?: string | number | undefined): progress;
|
||||
/**
|
||||
* 从GitHub存储库检索最新版本(tag),不包括特定tag。
|
||||
*
|
||||
* 此函数从GitHub存储库中获取由所有者和存储库名称指定的tags列表,然后返回不是“v1998”的最新tag名称。
|
||||
* @param {string} owner GitHub上拥有存储库的用户名或组织名称。
|
||||
* @param {string} repo 要从中提取tag的存储库的名称。
|
||||
* @returns {Promise<string>} 以最新版本tag的名称解析的promise,或者如果操作失败则以错误拒绝。
|
||||
* @throws {Error} 如果获取操作失败或找不到有效tag,将抛出错误。
|
||||
*/
|
||||
export function getLatestVersionFromGitHub(owner?: string, repo?: string): Promise<string>;
|
||||
/**
|
||||
* 从指定目录中的GitHub存储库中获取树
|
||||
* @param {string[]} directories 要从中获取树的目录列表
|
||||
* @param {string} version 从中获取树的版本或分支。
|
||||
* @param {string} [owner = 'libccy'] GitHub上拥有存储库的用户名或组织名称。
|
||||
* @param {string} [repo = 'noname'] GitHub存储库的名称
|
||||
* @returns {Promise<{
|
||||
* path: string;
|
||||
* mode: string;
|
||||
* type: "blob" | "tree";
|
||||
* sha: string;
|
||||
* size: number;
|
||||
* url: string;
|
||||
* }[][]>} A promise that resolves with trees from the specified directories.
|
||||
* @throws {Error} Will throw an error if unable to fetch the repository tree from GitHub.
|
||||
*/
|
||||
export function getTreesFromGithub(directories: string[], version: string, owner?: string | undefined, repo?: string | undefined): Promise<{
|
||||
path: string;
|
||||
mode: string;
|
||||
type: "blob" | "tree";
|
||||
sha: string;
|
||||
size: number;
|
||||
url: string;
|
||||
}[][]>;
|
||||
|
|
|
@ -8,7 +8,7 @@ export class status {
|
|||
/**
|
||||
* @type { GameEventPromise }
|
||||
*/
|
||||
event: any;
|
||||
event: GameEventPromise;
|
||||
ai: {};
|
||||
lastdragchange: any[];
|
||||
skillaudio: any[];
|
||||
|
@ -30,39 +30,43 @@ export class status {
|
|||
prehidden_skills: any[];
|
||||
postReconnect: {};
|
||||
/**
|
||||
* @type { string | void }
|
||||
* @type { string | undefined }
|
||||
*/
|
||||
extension: string | void;
|
||||
extension: string | undefined;
|
||||
/**
|
||||
* @type { boolean | void }
|
||||
* @type { boolean | undefined }
|
||||
*/
|
||||
dragged: boolean | void;
|
||||
dragged: boolean | undefined;
|
||||
/**
|
||||
* @type { boolean | void }
|
||||
* @type { boolean | undefined }
|
||||
*/
|
||||
touchconfirmed: boolean | void;
|
||||
touchconfirmed: boolean | undefined;
|
||||
/**
|
||||
* @type { boolean | void }
|
||||
* @type { boolean | undefined }
|
||||
*/
|
||||
connectMode: boolean | void;
|
||||
connectMode: boolean | undefined;
|
||||
/**
|
||||
* @type { boolean | void }
|
||||
* @type { boolean | undefined }
|
||||
*/
|
||||
importingExtension: boolean | void;
|
||||
importingExtension: boolean | undefined;
|
||||
/**
|
||||
* @type { Promise<any>[] | void }
|
||||
* @type { Promise<any>[] | undefined }
|
||||
*/
|
||||
extensionLoaded: Promise<any>[] | void;
|
||||
extensionLoaded: Promise<any>[] | undefined;
|
||||
/**
|
||||
* @type { Promise<any>[] | void }
|
||||
* @type { Promise<any>[] | undefined }
|
||||
*/
|
||||
extensionLoading: Promise<any>[] | void;
|
||||
extensionLoading: Promise<any>[] | undefined;
|
||||
/**
|
||||
* @type { { [key: string]: Promise<any>[] } | void }
|
||||
* @type { { [key: string]: Promise<any>[] } | undefined }
|
||||
*/
|
||||
importing: void | {
|
||||
importing: {
|
||||
[key: string]: Promise<any>[];
|
||||
};
|
||||
} | undefined;
|
||||
/**
|
||||
* @type { Function | boolean | undefined }
|
||||
*/
|
||||
new_tutorial: Function | boolean | undefined;
|
||||
}
|
||||
export let _status: status;
|
||||
export function setStatus(instance?: status | undefined): void;
|
||||
|
|
|
@ -7,6 +7,10 @@ export class Click {
|
|||
* @type {(arg0: string) => void}
|
||||
*/
|
||||
menuTab: (arg0: string) => void;
|
||||
/**
|
||||
* @type {() => void}
|
||||
*/
|
||||
configMenu: () => void;
|
||||
identitycircle(): void;
|
||||
connectEvents(): void;
|
||||
connectClients(): void;
|
||||
|
|
|
@ -2,7 +2,7 @@ export class Create {
|
|||
/**
|
||||
* @type {(video: Videos, before: boolean) => void}
|
||||
*/
|
||||
videoNode: (video: any, before: boolean) => void;
|
||||
videoNode: (video: Videos, before: boolean) => void;
|
||||
/**
|
||||
* 创建身份牌实例
|
||||
*/
|
||||
|
@ -62,9 +62,9 @@ export class Create {
|
|||
caption(str: any, position: any): HTMLDivElement;
|
||||
control(...args: any[]): import("../../library/element/control.js").Control;
|
||||
confirm(str: any, func: any): void;
|
||||
skills(skills: any): any;
|
||||
skills2(skills: any): any;
|
||||
skills3(skills: any): any;
|
||||
skills(skills: any): import("noname-typings/nonameModules/noname/library/element/control.js").Control | undefined;
|
||||
skills2(skills: any): import("noname-typings/nonameModules/noname/library/element/control.js").Control | undefined;
|
||||
skills3(skills: any): import("noname-typings/nonameModules/noname/library/element/control.js").Control | undefined;
|
||||
arena(): void;
|
||||
system(str: any, func: any, right: any, before: any): HTMLDivElement;
|
||||
pause(): HTMLDivElement | undefined;
|
||||
|
@ -104,7 +104,7 @@ export class Create {
|
|||
textbuttons(list: any, dialog: any, noclick: any): void;
|
||||
player(position: any, noclick: any): import("../../library/element/player.js").Player;
|
||||
connectPlayers(ip: any): void;
|
||||
players(numberOfPlayers: any): any[] | undefined;
|
||||
players(numberOfPlayers: any): import("noname-typings/nonameModules/noname/library/element/player.js").Player[] | undefined;
|
||||
me(hasme: any): void;
|
||||
card(position: any, info: any, noclick: any): import("../../library/element/card.js").Card;
|
||||
cardsAsync(...args: any[]): void;
|
||||
|
|
|
@ -30,7 +30,7 @@ export class UI {
|
|||
/**
|
||||
* @type { Dialog }
|
||||
*/
|
||||
dialog: any;
|
||||
dialog: Dialog;
|
||||
/**
|
||||
* @type { HTMLDivElement }
|
||||
*/
|
||||
|
@ -42,7 +42,7 @@ export class UI {
|
|||
/**
|
||||
* @type { Control }
|
||||
*/
|
||||
control: any;
|
||||
control: Control;
|
||||
/**
|
||||
* @type { Control | undefined }
|
||||
*/
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
*/
|
||||
export const promiseErrorHandlerMap: Record<"firefox" | "chrome" | "safari" | "other", new () => PromiseErrorHandler>;
|
||||
export type PromiseErrorHandler = import('./struct/interface/promise-error-handler.js').PromiseErrorHandler;
|
||||
import { PromiseErrorHandler } from './struct/index.js';
|
||||
import { PromiseErrorHandler } from "./struct/index.js";
|
||||
|
|
Loading…
Reference in New Issue