import { ITableRow, WithoutRow } from "../../Engine/CatanEngine/TableV3/Core/ITableRow";
import { TableBase } from "../../Engine/CatanEngine/TableV3/Core/TableBase";
import { TableManager } from "../../Engine/CatanEngine/TableV3/TableManager";

/**
 * BAR_1401麻辣小瑪莉#bar_1401.xlsx
 * ##程式碼由工具產生, 在此做的修改都將被覆蓋##
 */
export class Bar1401Table extends TableBase<WithoutRow> {
	private _fixed: FixedTable;
	/**  BAR_1401麻辣小瑪莉#bar_1401.xlsx > #fixed */
	public get Fixed(): FixedTable { return this._fixed = this._fixed || TableManager.InitTable("#bar_1401#fixed", FixedTable, FixedTableRow); }

	private _symbol: SymbolTable;
	/**  BAR_1401麻辣小瑪莉#bar_1401.xlsx > #symbol */
	public get Symbol(): SymbolTable { return this._symbol = this._symbol || TableManager.InitTable("#bar_1401#symbol", SymbolTable, SymbolTableRow); }

	private _pay: PayTable;
	/**  BAR_1401麻辣小瑪莉#bar_1401.xlsx > #pay */
	public get Pay(): PayTable { return this._pay = this._pay || TableManager.InitTable("#bar_1401#pay", PayTable, PayTableRow); }

	private _wheelForm: WheelFormTable;
	/**  BAR_1401麻辣小瑪莉#bar_1401.xlsx > #wheel_form */
	public get WheelForm(): WheelFormTable { return this._wheelForm = this._wheelForm || TableManager.InitTable("#bar_1401#wheel_form", WheelFormTable, WheelFormTableRow); }

	private _wheel: WheelTable;
	/**  BAR_1401麻辣小瑪莉#bar_1401.xlsx > #wheel */
	public get Wheel(): WheelTable { return this._wheel = this._wheel || TableManager.InitTable("#bar_1401#wheel", WheelTable, WheelTableRow); }

	private _wheelClient: WheelClientTable;
	/**  BAR_1401麻辣小瑪莉#bar_1401.xlsx > #wheel_client */
	public get WheelClient(): WheelClientTable { return this._wheelClient = this._wheelClient || TableManager.InitTable("#bar_1401#wheel_client", WheelClientTable, WheelClientTableRow); }

	private _sound: SoundTable;
	/**  BAR_1401麻辣小瑪莉#bar_1401.xlsx > #sound */
	public get Sound(): SoundTable { return this._sound = this._sound || TableManager.InitTable("#bar_1401#sound", SoundTable, SoundTableRow); }

	private _string: StringTable;
	/**  BAR_1401麻辣小瑪莉#bar_1401.xlsx > #string */
	public get String(): StringTable { return this._string = this._string || TableManager.InitTable("#bar_1401#string", StringTable, StringTableRow); }
}

/**
 * #fixed
 */
export class FixedTable extends TableBase<FixedTableRow> {}

export class FixedTableRow implements ITableRow {
	/** 編號 */
	Id: number;
	/** 共用(值) */
	BValue: number;
	/** client專用(值) */
	CValue: number;
}

/**
 * #symbol
 */
export class SymbolTable extends TableBase<SymbolTableRow> {}

export class SymbolTableRow implements ITableRow {
	/** 編號 */
	Id: number;
	/** 圖檔索引 */
	PicIndex: number;
	/** 重複位移 */
	SameShift: number;
}

/**
 * #pay
 */
export class PayTable extends TableBase<PayTableRow> {}

export class PayTableRow implements ITableRow {
	/** 編號 */
	Id: number;
	/** 賠率 */
	Lamp: number;
	/** 賠率 */
	X9: number;
	/** 賠率 */
	X8: number;
	/** 賠率 */
	X7: number;
	/** 賠率 */
	X6: number;
	/** 賠率 */
	JP: number;
}

/**
 * #wheel_form
 */
export class WheelFormTable extends TableBase<WheelFormTableRow> {}

export class WheelFormTableRow implements ITableRow {
	/** 編號 */
	Id: number;
}

/**
 * #wheel
 */
export class WheelTable extends TableBase<WheelTableRow> {}

export class WheelTableRow implements ITableRow {
	/** 編號 */
	Id: number;
}

/**
 * #wheel_client
 */
export class WheelClientTable extends TableBase<WheelClientTableRow> {}

export class WheelClientTableRow implements ITableRow {
	/** 編號 */
	Id: number;
	/** 輪軸列表 */
	SymbolList: any;
}

/**
 * #sound
 */
export class SoundTable extends TableBase<SoundTableRow> {}

export class SoundTableRow implements ITableRow {
	/** 編號 */
	Id: number;
	/** 音效=1, 音樂 = 2 */
	Type: number;
	/** 繁體中文音檔位置(預設音檔位置) */
	PathZnTw: string;
}

/**
 * #string
 */
export class StringTable extends TableBase<StringTableRow> {}

export class StringTableRow implements ITableRow {
	/** 編號 */
	Id: number;
	/** 英文訊息 */
	MsgEn: string;
	/** 繁體中文訊息 */
	MsgZnTw: string;
	/** 簡體中文讯息 */
	MsgZnCh: string;
}
