mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
qqqq
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user