2020-10-22 11:11:55 +08:00

129 lines
2.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module giant.chuanqi
{
/*-*begin $area1 !这里填写类上方的手写内容!*-*/
//这里填写类上方的手写内容
/*-*end $area1*-*/
/**
* 来自D:\workspace\cqh5\cehua\trunk\数值\0.测试数据\CeShiBiao.xlsx
**/
export class CeShiBiaoCfg
{
public constructor() { }
/**
* 测试数据标识
*/
public id: number;
/**
* 需求等级
*/
public level: number;
/**
* 奖励物品
*/
public items: any[][];
/**
* 奖励金钱
*/
public money: any;
/**
* 奖励宝石
*/
public gold: number;
/**
* 展示道具
*/
public showitems: any[];
/**
* 是否可pk
*/
public pk: boolean;
/**
* vip特殊奖励
*/
public vipitem: string;
/**
* 测试日期
*/
public date: Date;
/**
* 测试时间
*/
public datetime: Date;
/**
* 测试时间
*/
public time: TimeVO;
/**
* 新增
*/
public xinzeng: number;
/////////////////////
/*-*begin $area2 !这里填写类里面的手写内容!*-*/
//这里填写类里面的手写内容
private thisIsTemp: number = 1;
/*-*end $area2*-*/
public decode(data:any[]){
let i = 0;
this.id = data[i++];
this.level = data[i++];
this.items = data[i++];
this.money = data[i++];
this.gold = data[i++];
this.showitems = data[i++];
this.pk = !!data[i++];
this.vipitem = data[i++];
this.date = new Date(data[i++]*1000);
this.datetime = new Date(data[i++]*1000);
this.time = new TimeVO(data[i++]);
this.xinzeng = data[i++];
/*-*begin $decode !这里填写方法中的手写内容!*-*/
//这里填写方法中的手写内容
/*-*end $decode*-*/
}
}
/*-*begin $area3 !这里填写类下发的手写内容!*-*/
//这里填写类下发的手写内容
/*-*end $area3*-*/
}
module giant {
export interface CfgName {
CeShiBiao: { [index: number]: chuanqi.CeShiBiaoCfg };
}
}