This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-01-23 02:53:23 +08:00
parent c6710e7dfa
commit 26cc480866
27 changed files with 2061 additions and 988 deletions

View File

@@ -1212,18 +1212,14 @@ export namespace TB {
export class TbGShop {
constructor(_json_: any) {
if (_json_.id === undefined) { throw new Error() }
this.id = _json_.id
if (_json_.tig === undefined) { throw new Error() }
this.tig = _json_.tig
if (_json_.giftId === undefined) { throw new Error() }
this.giftId = _json_.giftId
if (_json_.type === undefined) { throw new Error() }
this.type = _json_.type
}
/**
* id
*/
readonly id: number
/**
* 备注
*/
@@ -1232,6 +1228,10 @@ export class TbGShop {
* 礼包Id
*/
readonly giftId: number
/**
* 0.点卷商店 1.金币商店
*/
readonly type: number
resolve(tables:Tables)
{
@@ -2012,23 +2012,23 @@ export class TbGGift{
export class TbGShop{
private _dataMap: Map<number, TB.TbGShop>
private _dataMap: Map<string, TB.TbGShop>
private _dataList: TB.TbGShop[]
constructor(_json_: any) {
this._dataMap = new Map<number, TB.TbGShop>()
this._dataMap = new Map<string, TB.TbGShop>()
this._dataList = []
for(var _json2_ of _json_) {
let _v: TB.TbGShop
_v = new TB.TbGShop(_json2_)
this._dataList.push(_v)
this._dataMap.set(_v.id, _v)
this._dataMap.set(_v.tig, _v)
}
}
getDataMap(): Map<number, TB.TbGShop> { return this._dataMap; }
getDataMap(): Map<string, TB.TbGShop> { return this._dataMap; }
getDataList(): TB.TbGShop[] { return this._dataList; }
get(key: number): TB.TbGShop | undefined { return this._dataMap.get(key); }
get(key: string): TB.TbGShop | undefined { return this._dataMap.get(key); }
resolve(tables:Tables)
{