cleaned up PartDefinition

This commit is contained in:
Dank074 2021-05-15 03:35:06 -05:00
parent 97a2cde086
commit cf80e57cd7
2 changed files with 18 additions and 18 deletions

View File

@ -99,8 +99,8 @@ export class AvatarStructure extends EventDispatcher
if(this._partSetsData.parse(k)) if(this._partSetsData.parse(k))
{ {
this._partSetsData._Str_1102('ri')._Str_1583 = true; this._partSetsData._Str_1102('ri').appendToFigure = true;
this._partSetsData._Str_1102('li')._Str_1583 = true; this._partSetsData._Str_1102('li').appendToFigure = true;
return true; return true;
} }
@ -292,9 +292,9 @@ export class AvatarStructure extends EventDispatcher
_local_12.setType = _local_13.id; _local_12.setType = _local_13.id;
const _local_10 = this._partSetsData._Str_1520(_local_12); const _local_10 = this._partSetsData._Str_1520(_local_12);
_local_10._Str_1583 = true; _local_10.appendToFigure = true;
if(_local_13.base === '') _local_10._Str_1734 = 1; if(_local_13.base === '') _local_10.staticId = 1;
if(_local_4.indexOf(_local_6.id) === -1) _local_4.push(_local_6.id); if(_local_4.indexOf(_local_6.id) === -1) _local_4.push(_local_6.id);
} }
@ -443,7 +443,7 @@ export class AvatarStructure extends EventDispatcher
const _local_13 = this._partSetsData._Str_1102(_local_33.type); const _local_13 = this._partSetsData._Str_1102(_local_33.type);
let _local_35 = (!_local_13) ? _local_33.type : _local_13._Str_1693; let _local_35 = (!_local_13) ? _local_33.type : _local_13.flippedSetType;
if(!_local_35 || (_local_35 === '')) _local_35 = _local_33.type; if(!_local_35 || (_local_35 === '')) _local_35 = _local_33.type;
@ -543,7 +543,7 @@ export class AvatarStructure extends EventDispatcher
let _local_45 = false; let _local_45 = false;
let _local_46 = 1; let _local_46 = 1;
if(_local_13._Str_1583) if(_local_13.appendToFigure)
{ {
let _local_47 = '1'; let _local_47 = '1';
@ -552,9 +552,9 @@ export class AvatarStructure extends EventDispatcher
_local_47 = _arg_3._Str_727; _local_47 = _arg_3._Str_727;
} }
if(_local_13._Str_2234()) if(_local_13.hasStaticId())
{ {
_local_47 = _local_13._Str_1734.toString(); _local_47 = _local_13.staticId.toString();
} }
if(_local_10 != null) if(_local_10 != null)

View File

@ -17,47 +17,47 @@ export class PartDefinition
this._staticId = -1; this._staticId = -1;
} }
public _Str_2234(): boolean public hasStaticId(): boolean
{ {
return this._staticId >= 0; return this._staticId >= 0;
} }
public get _Str_1734(): number public get staticId(): number
{ {
return this._staticId; return this._staticId;
} }
public set _Str_1734(k: number) public set staticId(k: number)
{ {
this._staticId = k; this._staticId = k;
} }
public get _Str_2174(): string public get setType(): string
{ {
return this._setType; return this._setType;
} }
public get _Str_1693(): string public get flippedSetType(): string
{ {
return this._flippedSetType; return this._flippedSetType;
} }
public set _Str_1693(type: string) public set flippedSetType(type: string)
{ {
this._flippedSetType = type; this._flippedSetType = type;
} }
public get _Str_1209(): string public get removeSetType(): string
{ {
return this._removeSetType; return this._removeSetType;
} }
public get _Str_1583(): boolean public get appendToFigure(): boolean
{ {
return this._appendToFigure; return this._appendToFigure;
} }
public set _Str_1583(flag: boolean) public set appendToFigure(flag: boolean)
{ {
this._appendToFigure = flag; this._appendToFigure = flag;
} }