Move to Renderer V2

This commit is contained in:
duckietm
2024-04-03 09:27:56 +02:00
parent 110c3ad393
commit b3134ce50b
4080 changed files with 115593 additions and 66375 deletions
@@ -0,0 +1,53 @@
import { IFigureDataPart, IFigurePart } from '@nitrots/api';
export class FigurePart implements IFigurePart
{
private _id: number;
private _type: string;
private _breed: number;
private _index: number;
private _colorLayerIndex: number;
private _paletteMapId: number;
constructor(data: IFigureDataPart)
{
if(!data) throw new Error('invalid_data');
this._id = data.id;
this._type = data.type;
this._index = data.index;
this._colorLayerIndex = data.colorindex;
this._paletteMapId = -1;
this._breed = -1;
}
public get id(): number
{
return this._id;
}
public get type(): string
{
return this._type;
}
public get breed(): number
{
return this._breed;
}
public get index(): number
{
return this._index;
}
public get colorLayerIndex(): number
{
return this._colorLayerIndex;
}
public get paletteMap(): number
{
return this._paletteMapId;
}
}