Fix club level

This commit is contained in:
Bill 2021-08-03 12:17:21 -04:00
parent 245c2683d6
commit 3127b33eb5
3 changed files with 5 additions and 4 deletions

View File

@ -97,6 +97,7 @@ export class FigureDataConverter extends Converter
const output: IFigureData = {};
FigureDataMapper.mapXML(xml, output);
return output;
}
}

View File

@ -2,7 +2,7 @@ export interface IFigureDataColor
{
id?: number;
index?: number;
club?: boolean;
club?: number;
selectable?: boolean;
hexCode?: string;
}

View File

@ -2,7 +2,7 @@ export class FigureDataColorXML
{
private _id: number;
private _index: number;
private _club: boolean;
private _club: number;
private _selectable: boolean;
private _hexCode: string;
@ -12,7 +12,7 @@ export class FigureDataColorXML
this._id = ((attributes && parseInt(attributes.id)) || 0);
this._index = ((attributes && parseInt(attributes.index)) || 0);
this._club = ((attributes && parseInt(attributes.club) === 1) || false);
this._club = ((attributes && parseInt(attributes.club)) || 0);
this._selectable = ((attributes && parseInt(attributes.selectable) === 1) || false);
this._hexCode = ((xml && xml._) || '');
@ -28,7 +28,7 @@ export class FigureDataColorXML
return this._index;
}
public get club(): boolean
public get club(): number
{
return this._club;
}