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

/**
 * 系統_活動#event.xlsx
 * ##程式碼由工具產生, 在此做的修改都將被覆蓋##
 */
export class EventTable extends TableBase<WithoutRow> {
	private _string: StringTable;
	/**  系統_活動#event.xlsx > #string */
	public get String(): StringTable { return this._string = this._string || TableManager.InitTable("#event#string", StringTable, StringTableRow); }

	private _team: TeamTable;
	/**  系統_活動#event.xlsx > #team */
	public get Team(): TeamTable { return this._team = this._team || TableManager.InitTable("#event#team", TeamTable, TeamTableRow); }

	private _fixed: FixedTable;
	/**  系統_活動#event.xlsx > #fixed */
	public get Fixed(): FixedTable { return this._fixed = this._fixed || TableManager.InitTable("#event#fixed", FixedTable, FixedTableRow); }
}

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

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

/**
 * #team
 */
export class TeamTable extends TableBase<TeamTableRow> {}

export class TeamTableRow implements ITableRow {
	/** 編號 */
	Id: number;
	/** 指定字串 */
	String: number;
	/** 指定字串2 */
	String2: number;
}

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

export class FixedTableRow implements ITableRow {
	/** 編號 */
	Id: number;
	/** 前端用 */
	Value: number;
}
