added some method to get data from legacy data type using offsets

This commit is contained in:
Julimar Melo 2023-07-12 16:40:59 -03:00
parent 81cfd5c56f
commit 52db7aa550

View File

@ -14,7 +14,6 @@ export class LegacyDataType extends ObjectDataBase implements IObjectData
constructor()
{
super();
this._data = '';
}
@ -47,6 +46,11 @@ export class LegacyDataType extends ObjectDataBase implements IObjectData
return this._data;
}
public getLegacyStringWithOffset(offset: number)
{
return this._data.split('\n')[offset];
}
public compare(data: IObjectData): boolean
{
return (this._data === data.getLegacyString());