typescript写的文本处理工具
SDAudi2Fish.ts
export class SDAudi2Fish {
public static fishID2ID: { [key: number]: number } = {
1101: 1,
1102: 9,
1103: 4,
1104: 17,
1105: 16,
1106: 10,
1107: 28,
1108: 20,
1109: 11,
1110: 8,
1111: 12,
1112: 7,
1113: 27,
1114: 18,
1115: 5,
1116: 13,
1117: 2,
1118: 3,
1119: 15,
1120: 23,
1121: 21,
1203: 34,
1204: 19,
1206: 40,
1208: 30,
1209: 31,
1210: 33,
1301: 35,
1302: 39,
1303: 38,
1304: 37,
1305: 36
};
public static checkUniqe() {
let numMap: { [key: number]: number } = {};
let ids: number[] = [];
for (let i: number = 1; i <= 40; i++) {
ids.push(i);