mirror of
https://github.com/billsonnn/nitro-converter.git
synced 2024-11-26 09:20:51 +01:00
Fix club level
This commit is contained in:
parent
245c2683d6
commit
3127b33eb5
@ -97,6 +97,7 @@ export class FigureDataConverter extends Converter
|
|||||||
const output: IFigureData = {};
|
const output: IFigureData = {};
|
||||||
|
|
||||||
FigureDataMapper.mapXML(xml, output);
|
FigureDataMapper.mapXML(xml, output);
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ export interface IFigureDataColor
|
|||||||
{
|
{
|
||||||
id?: number;
|
id?: number;
|
||||||
index?: number;
|
index?: number;
|
||||||
club?: boolean;
|
club?: number;
|
||||||
selectable?: boolean;
|
selectable?: boolean;
|
||||||
hexCode?: string;
|
hexCode?: string;
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ export class FigureDataColorXML
|
|||||||
{
|
{
|
||||||
private _id: number;
|
private _id: number;
|
||||||
private _index: number;
|
private _index: number;
|
||||||
private _club: boolean;
|
private _club: number;
|
||||||
private _selectable: boolean;
|
private _selectable: boolean;
|
||||||
private _hexCode: string;
|
private _hexCode: string;
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ export class FigureDataColorXML
|
|||||||
|
|
||||||
this._id = ((attributes && parseInt(attributes.id)) || 0);
|
this._id = ((attributes && parseInt(attributes.id)) || 0);
|
||||||
this._index = ((attributes && parseInt(attributes.index)) || 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._selectable = ((attributes && parseInt(attributes.selectable) === 1) || false);
|
||||||
|
|
||||||
this._hexCode = ((xml && xml._) || '');
|
this._hexCode = ((xml && xml._) || '');
|
||||||
@ -28,7 +28,7 @@ export class FigureDataColorXML
|
|||||||
return this._index;
|
return this._index;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get club(): boolean
|
public get club(): number
|
||||||
{
|
{
|
||||||
return this._club;
|
return this._club;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user