cleaned PlaneDrawingData

This commit is contained in:
Dank074 2021-06-07 03:09:59 -05:00
parent 7945a1550f
commit 9f49c58dca
4 changed files with 20 additions and 20 deletions

View File

@ -41,7 +41,7 @@ export class PlaneDrawingData implements IPlaneDrawingData
this._maskAssetFlipVs.push(_arg_4); this._maskAssetFlipVs.push(_arg_4);
} }
public _Str_22862(k: string[]): void public addAssetColumn(k: string[]): void
{ {
this._assetNames.push(k); this._assetNames.push(k);
} }
@ -71,33 +71,33 @@ export class PlaneDrawingData implements IPlaneDrawingData
return this._color; return this._color;
} }
public get _Str_21807(): string[] public get maskAssetNames(): string[]
{ {
return this._maskAssetNames; return this._maskAssetNames;
} }
public get _Str_20731(): Point[] public get maskAssetLocations(): Point[]
{ {
return this._maskAssetLocations; return this._maskAssetLocations;
} }
public get _Str_21810(): boolean[] public get maskAssetFlipHs(): boolean[]
{ {
return this._maskAssetFlipHs; return this._maskAssetFlipHs;
} }
public get _Str_19044(): boolean[] public get maskAssetFlipVs(): boolean[]
{ {
return this._maskAssetFlipVs; return this._maskAssetFlipVs;
} }
public _Str_14945(): boolean public isBottomAligned(): boolean
{ {
return this._alignBottom; return this._alignBottom;
} }
public get _Str_17636(): string[][] public get assetNameColumns(): string[][]
{ {
return this._assetNames; return this._assetNames;
} }
} }

View File

@ -509,8 +509,8 @@ export class RoomPlane implements IRoomPlane
{ {
const normal = geometry.getCoordinatePosition(this._normal); const normal = geometry.getCoordinatePosition(this._normal);
const cm = layer.getMaterial()._Str_21968(normal); const cm = layer.getMaterial()._Str_21968(normal);
//const data = new PlaneDrawingData(maskData, blend(this._color, layer.getColor()), cm._Str_14945()); //const data = new PlaneDrawingData(maskData, blend(this._color, layer.getColor()), cm.isBottomAligned());
const data = new PlaneDrawingData(maskData, this._color, cm._Str_14945()); const data = new PlaneDrawingData(maskData, this._color, cm.isBottomAligned());
Randomizer.setSeed(this._randomSeed); Randomizer.setSeed(this._randomSeed);
@ -529,11 +529,11 @@ export class RoomPlane implements IRoomPlane
{ {
if(!column._Str_24523()) assetNames.push(''); if(!column._Str_24523()) assetNames.push('');
data._Str_22862(assetNames); data.addAssetColumn(assetNames);
} }
} }
if(data._Str_17636.length > 0) drawingDatas.push(data); if(data.assetNameColumns.length > 0) drawingDatas.push(data);
} }
else else
{ {

View File

@ -85,7 +85,7 @@ export class PlaneMaterialCellMatrix
return this._normalMaxY; return this._normalMaxY;
} }
public _Str_14945(): boolean public isBottomAligned(): boolean
{ {
return this._align === PlaneMaterialCellMatrix._Str_3606; return this._align === PlaneMaterialCellMatrix._Str_3606;
} }

View File

@ -2,13 +2,13 @@
export interface IPlaneDrawingData export interface IPlaneDrawingData
{ {
_Str_14945(): boolean; isBottomAligned(): boolean;
z: number; z: number;
cornerPoints: Point[]; cornerPoints: Point[];
color: number; color: number;
_Str_21807: string[]; maskAssetNames: string[];
_Str_20731: Point[]; maskAssetLocations: Point[];
_Str_21810: boolean[]; maskAssetFlipHs: boolean[];
_Str_19044: boolean[]; maskAssetFlipVs: boolean[];
_Str_17636: string[][]; assetNameColumns: string[][];
} }