mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-02-19 19:22:36 +01:00
cleaned SelectedRoomObjectData
This commit is contained in:
parent
9f49c58dca
commit
b744c602ab
@ -106,7 +106,7 @@ export class AvatarModelGeometry
|
|||||||
|
|
||||||
public getBodyPartIdsInAvatarSet(k: string): string[]
|
public getBodyPartIdsInAvatarSet(k: string): string[]
|
||||||
{
|
{
|
||||||
const avatarSet = this._avatarSet._Str_1498(k);
|
const avatarSet = this._avatarSet.findAvatarSet(k);
|
||||||
|
|
||||||
if(!avatarSet) return [];
|
if(!avatarSet) return [];
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ export class AvatarModelGeometry
|
|||||||
|
|
||||||
public isMainAvatarSet(k: string): boolean
|
public isMainAvatarSet(k: string): boolean
|
||||||
{
|
{
|
||||||
const avatarSet = this._avatarSet._Str_1498(k);
|
const avatarSet = this._avatarSet.findAvatarSet(k);
|
||||||
|
|
||||||
if(!avatarSet) return false;
|
if(!avatarSet) return false;
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
this._allBodyParts = bodyParts;
|
this._allBodyParts = bodyParts;
|
||||||
}
|
}
|
||||||
|
|
||||||
public _Str_1498(k: string): AvatarSet
|
public findAvatarSet(k: string): AvatarSet
|
||||||
{
|
{
|
||||||
if(k === this._id) return this;
|
if(k === this._id) return this;
|
||||||
|
|
||||||
@ -56,7 +56,7 @@
|
|||||||
{
|
{
|
||||||
if(!avatarSet) continue;
|
if(!avatarSet) continue;
|
||||||
|
|
||||||
if(!avatarSet._Str_1498(k)) continue;
|
if(!avatarSet.findAvatarSet(k)) continue;
|
||||||
|
|
||||||
return avatarSet;
|
return avatarSet;
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ export class GeometryItem extends Node3D
|
|||||||
return this._normal;
|
return this._normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_2207(): boolean
|
public get isDoubleSided(): boolean
|
||||||
{
|
{
|
||||||
return this._isDoubleSided;
|
return this._isDoubleSided;
|
||||||
}
|
}
|
||||||
@ -48,7 +48,7 @@ export class GeometryItem extends Node3D
|
|||||||
return ((((this._id + ': ') + this.location) + ' - ') + this.transformedLocation);
|
return ((((this._id + ': ') + this.location) + ' - ') + this.transformedLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_1457(): boolean
|
public get isDynamic(): boolean
|
||||||
{
|
{
|
||||||
return this._isDynamic;
|
return this._isDynamic;
|
||||||
}
|
}
|
||||||
|
@ -6,9 +6,9 @@ export interface ISelectedRoomObjectData
|
|||||||
category: number;
|
category: number;
|
||||||
operation: string;
|
operation: string;
|
||||||
typeId: number;
|
typeId: number;
|
||||||
_Str_4766: string;
|
instanceData: string;
|
||||||
stuffData: IObjectData;
|
stuffData: IObjectData;
|
||||||
state: number;
|
state: number;
|
||||||
_Str_15896: number;
|
animFrame: number;
|
||||||
posture: string;
|
posture: string;
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,7 @@ export class RoomObjectEventHandler extends Disposable implements IRoomCanvasMou
|
|||||||
|
|
||||||
roomObject.setDirection(direction);
|
roomObject.setDirection(direction);
|
||||||
|
|
||||||
this._Str_16022(event.roomId, selectedData.id, selectedData.category, selectedData.loc, direction, selectedData.operation, selectedData.typeId, selectedData._Str_4766, selectedData.stuffData, selectedData.state, selectedData._Str_15896, selectedData.posture);
|
this._Str_16022(event.roomId, selectedData.id, selectedData.category, selectedData.loc, direction, selectedData.operation, selectedData.typeId, selectedData.instanceData, selectedData.stuffData, selectedData.state, selectedData.animFrame, selectedData.posture);
|
||||||
|
|
||||||
selectedData = this.getSelectedRoomObjectData(event.roomId);
|
selectedData = this.getSelectedRoomObjectData(event.roomId);
|
||||||
|
|
||||||
@ -161,15 +161,15 @@ export class RoomObjectEventHandler extends Disposable implements IRoomCanvasMou
|
|||||||
|
|
||||||
const _local_7 = this._Str_18648(category, event.type);
|
const _local_7 = this._Str_18648(category, event.type);
|
||||||
|
|
||||||
if(_local_7 === event._Str_3463)
|
if(_local_7 === event.eventId)
|
||||||
{
|
{
|
||||||
if((event.type === MouseEventType.MOUSE_CLICK) || (event.type === MouseEventType.DOUBLE_CLICK) || (event.type === MouseEventType.MOUSE_DOWN) || (event.type === MouseEventType.MOUSE_UP) || (event.type === MouseEventType.MOUSE_MOVE)) return;
|
if((event.type === MouseEventType.MOUSE_CLICK) || (event.type === MouseEventType.DOUBLE_CLICK) || (event.type === MouseEventType.MOUSE_DOWN) || (event.type === MouseEventType.MOUSE_UP) || (event.type === MouseEventType.MOUSE_MOVE)) return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(event._Str_3463)
|
if(event.eventId)
|
||||||
{
|
{
|
||||||
this._Str_11142(category, event.type, event._Str_3463);
|
this._Str_11142(category, event.type, event.eventId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -970,12 +970,12 @@ export class RoomObjectEventHandler extends Disposable implements IRoomCanvasMou
|
|||||||
{
|
{
|
||||||
if(selectedData.category === RoomObjectCategory.FLOOR)
|
if(selectedData.category === RoomObjectCategory.FLOOR)
|
||||||
{
|
{
|
||||||
this._roomEngine.addFurnitureFloor(roomId, selectedData.id, selectedData.typeId, selectedData.loc, selectedData.dir, 0, selectedData.stuffData, parseFloat(selectedData._Str_4766), -1, 0, 0, '', false);
|
this._roomEngine.addFurnitureFloor(roomId, selectedData.id, selectedData.typeId, selectedData.loc, selectedData.dir, 0, selectedData.stuffData, parseFloat(selectedData.instanceData), -1, 0, 0, '', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(selectedData.category === RoomObjectCategory.UNIT)
|
else if(selectedData.category === RoomObjectCategory.UNIT)
|
||||||
{
|
{
|
||||||
this._roomEngine.addRoomObjectUser(roomId, selectedData.id, new Vector3d(), new Vector3d(180), 180, selectedData.typeId, selectedData._Str_4766);
|
this._roomEngine.addRoomObjectUser(roomId, selectedData.id, new Vector3d(), new Vector3d(180), 180, selectedData.typeId, selectedData.instanceData);
|
||||||
|
|
||||||
const roomObject = this._roomEngine.getRoomObject(roomId, selectedData.id, selectedData.category);
|
const roomObject = this._roomEngine.getRoomObject(roomId, selectedData.id, selectedData.category);
|
||||||
|
|
||||||
@ -987,7 +987,7 @@ export class RoomObjectEventHandler extends Disposable implements IRoomCanvasMou
|
|||||||
{
|
{
|
||||||
if(selectedData.category === RoomObjectCategory.WALL)
|
if(selectedData.category === RoomObjectCategory.WALL)
|
||||||
{
|
{
|
||||||
this._roomEngine.addFurnitureWall(roomId, selectedData.id, selectedData.typeId, selectedData.loc, selectedData.dir, 0, selectedData._Str_4766, 0);
|
this._roomEngine.addFurnitureWall(roomId, selectedData.id, selectedData.typeId, selectedData.loc, selectedData.dir, 0, selectedData.instanceData, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1005,7 +1005,7 @@ export class RoomObjectEventHandler extends Disposable implements IRoomCanvasMou
|
|||||||
|
|
||||||
roomObject.setDirection(direction);
|
roomObject.setDirection(direction);
|
||||||
|
|
||||||
this._Str_16022(roomId, selectedData.id, selectedData.category, selectedData.loc, direction, selectedData.operation, selectedData.typeId, selectedData._Str_4766, selectedData.stuffData, selectedData.state, selectedData._Str_15896, selectedData.posture);
|
this._Str_16022(roomId, selectedData.id, selectedData.category, selectedData.loc, direction, selectedData.operation, selectedData.typeId, selectedData.instanceData, selectedData.stuffData, selectedData.state, selectedData.animFrame, selectedData.posture);
|
||||||
|
|
||||||
selectedData = this.getSelectedRoomObjectData(roomId);
|
selectedData = this.getSelectedRoomObjectData(roomId);
|
||||||
|
|
||||||
@ -1524,7 +1524,7 @@ export class RoomObjectEventHandler extends Disposable implements IRoomCanvasMou
|
|||||||
{
|
{
|
||||||
const placedInRoom = (roomObject && (roomObject.id === selectedData.id));
|
const placedInRoom = (roomObject && (roomObject.id === selectedData.id));
|
||||||
|
|
||||||
this._roomEngine.events.dispatchEvent(new RoomEngineObjectPlacedEvent(RoomEngineObjectEvent.PLACED, roomId, objectId, category, wallLocation, x, y, z, direction, placedInRoom, isTileEvent, isWallEvent, selectedData._Str_4766));
|
this._roomEngine.events.dispatchEvent(new RoomEngineObjectPlacedEvent(RoomEngineObjectEvent.PLACED, roomId, objectId, category, wallLocation, x, y, z, direction, placedInRoom, isTileEvent, isWallEvent, selectedData.instanceData));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1653,7 +1653,7 @@ export class RoomObjectEventHandler extends Disposable implements IRoomCanvasMou
|
|||||||
case RoomObjectOperationType.OBJECT_MOVE_TO: {
|
case RoomObjectOperationType.OBJECT_MOVE_TO: {
|
||||||
const selectedData = this.getSelectedRoomObjectData(roomId);
|
const selectedData = this.getSelectedRoomObjectData(roomId);
|
||||||
|
|
||||||
this._Str_16022(roomId, selectedData.id, selectedData.category, selectedData.loc, selectedData.dir, RoomObjectOperationType.OBJECT_MOVE_TO, selectedData.typeId, selectedData._Str_4766, selectedData.stuffData, selectedData.state, selectedData._Str_15896, selectedData.posture);
|
this._Str_16022(roomId, selectedData.id, selectedData.category, selectedData.loc, selectedData.dir, RoomObjectOperationType.OBJECT_MOVE_TO, selectedData.typeId, selectedData.instanceData, selectedData.stuffData, selectedData.state, selectedData.animFrame, selectedData.posture);
|
||||||
this.setFurnitureAlphaMultiplier(roomObject, 1);
|
this.setFurnitureAlphaMultiplier(roomObject, 1);
|
||||||
this._roomEngine._Str_17948();
|
this._roomEngine._Str_17948();
|
||||||
|
|
||||||
@ -1938,7 +1938,7 @@ export class RoomObjectEventHandler extends Disposable implements IRoomCanvasMou
|
|||||||
this._roomEngine.updateRoomObjectMask(roomId, selectedData.id, true);
|
this._roomEngine.updateRoomObjectMask(roomId, selectedData.id, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._Str_16022(roomId, selectedData.id, selectedData.category, selectedData.loc, selectedData.dir, RoomObjectOperationType.OBJECT_MOVE, selectedData.typeId, selectedData._Str_4766, selectedData.stuffData, selectedData.state, selectedData._Str_15896, selectedData.posture);
|
this._Str_16022(roomId, selectedData.id, selectedData.category, selectedData.loc, selectedData.dir, RoomObjectOperationType.OBJECT_MOVE, selectedData.typeId, selectedData.instanceData, selectedData.stuffData, selectedData.state, selectedData.animFrame, selectedData.posture);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if((selectedData.operation === RoomObjectOperationType.OBJECT_PLACE))
|
else if((selectedData.operation === RoomObjectOperationType.OBJECT_PLACE))
|
||||||
|
@ -67,8 +67,8 @@ export class RoomEngineObjectPlacedEvent extends RoomEngineObjectEvent
|
|||||||
return this._placedOnWall;
|
return this._placedOnWall;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_4766(): string
|
public get instanceData(): string
|
||||||
{
|
{
|
||||||
return this._instanceData;
|
return this._instanceData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -503,7 +503,7 @@ export class AvatarLogic extends MovingObjectLogic
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(eventType && this.eventDispatcher) this.eventDispatcher.dispatchEvent(new RoomObjectMouseEvent(eventType, this.object, event._Str_3463, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown));
|
if(eventType && this.eventDispatcher) this.eventDispatcher.dispatchEvent(new RoomObjectMouseEvent(eventType, this.object, event.eventId, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown));
|
||||||
}
|
}
|
||||||
|
|
||||||
private randomTalkingPauseStartTimestamp(): number
|
private randomTalkingPauseStartTimestamp(): number
|
||||||
|
@ -241,7 +241,7 @@ export class FurnitureLogic extends MovingObjectLogic
|
|||||||
case MouseEventType.MOUSE_MOVE:
|
case MouseEventType.MOUSE_MOVE:
|
||||||
if(this.eventDispatcher)
|
if(this.eventDispatcher)
|
||||||
{
|
{
|
||||||
const mouseEvent = new RoomObjectMouseEvent(RoomObjectMouseEvent.MOUSE_MOVE, this.object, event._Str_3463, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown);
|
const mouseEvent = new RoomObjectMouseEvent(RoomObjectMouseEvent.MOUSE_MOVE, this.object, event.eventId, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown);
|
||||||
|
|
||||||
mouseEvent.localX = event.localX;
|
mouseEvent.localX = event.localX;
|
||||||
mouseEvent.localY = event.localY;
|
mouseEvent.localY = event.localY;
|
||||||
@ -256,7 +256,7 @@ export class FurnitureLogic extends MovingObjectLogic
|
|||||||
{
|
{
|
||||||
if(this.eventDispatcher)
|
if(this.eventDispatcher)
|
||||||
{
|
{
|
||||||
const mouseEvent = new RoomObjectMouseEvent(RoomObjectMouseEvent.MOUSE_ENTER, this.object, event._Str_3463, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown);
|
const mouseEvent = new RoomObjectMouseEvent(RoomObjectMouseEvent.MOUSE_ENTER, this.object, event.eventId, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown);
|
||||||
|
|
||||||
mouseEvent.localX = event.localX;
|
mouseEvent.localX = event.localX;
|
||||||
mouseEvent.localY = event.localY;
|
mouseEvent.localY = event.localY;
|
||||||
@ -274,7 +274,7 @@ export class FurnitureLogic extends MovingObjectLogic
|
|||||||
{
|
{
|
||||||
if(this.eventDispatcher)
|
if(this.eventDispatcher)
|
||||||
{
|
{
|
||||||
const mouseEvent = new RoomObjectMouseEvent(RoomObjectMouseEvent.MOUSE_LEAVE, this.object, event._Str_3463, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown);
|
const mouseEvent = new RoomObjectMouseEvent(RoomObjectMouseEvent.MOUSE_LEAVE, this.object, event.eventId, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown);
|
||||||
|
|
||||||
mouseEvent.localX = event.localX;
|
mouseEvent.localX = event.localX;
|
||||||
mouseEvent.localY = event.localY;
|
mouseEvent.localY = event.localY;
|
||||||
@ -293,7 +293,7 @@ export class FurnitureLogic extends MovingObjectLogic
|
|||||||
case MouseEventType.MOUSE_CLICK:
|
case MouseEventType.MOUSE_CLICK:
|
||||||
if(this.eventDispatcher)
|
if(this.eventDispatcher)
|
||||||
{
|
{
|
||||||
const mouseEvent = new RoomObjectMouseEvent(RoomObjectMouseEvent.CLICK, this.object, event._Str_3463, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown);
|
const mouseEvent = new RoomObjectMouseEvent(RoomObjectMouseEvent.CLICK, this.object, event.eventId, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown);
|
||||||
|
|
||||||
mouseEvent.localX = event.localX;
|
mouseEvent.localX = event.localX;
|
||||||
mouseEvent.localY = event.localY;
|
mouseEvent.localY = event.localY;
|
||||||
@ -311,7 +311,7 @@ export class FurnitureLogic extends MovingObjectLogic
|
|||||||
case MouseEventType.MOUSE_DOWN:
|
case MouseEventType.MOUSE_DOWN:
|
||||||
if(this.eventDispatcher)
|
if(this.eventDispatcher)
|
||||||
{
|
{
|
||||||
const mouseEvent = new RoomObjectMouseEvent(RoomObjectMouseEvent.MOUSE_DOWN, this.object, event._Str_3463, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown);
|
const mouseEvent = new RoomObjectMouseEvent(RoomObjectMouseEvent.MOUSE_DOWN, this.object, event.eventId, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown);
|
||||||
|
|
||||||
this.eventDispatcher.dispatchEvent(mouseEvent);
|
this.eventDispatcher.dispatchEvent(mouseEvent);
|
||||||
}
|
}
|
||||||
@ -371,4 +371,4 @@ export class FurnitureLogic extends MovingObjectLogic
|
|||||||
|
|
||||||
super.tearDown();
|
super.tearDown();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -231,12 +231,12 @@ export class PetLogic extends MovingObjectLogic
|
|||||||
|
|
||||||
if(petType == PetType.MONSTERPLANT)
|
if(petType == PetType.MONSTERPLANT)
|
||||||
{
|
{
|
||||||
if(this.eventDispatcher) this.eventDispatcher.dispatchEvent(new RoomObjectMouseEvent(RoomObjectMouseEvent.MOUSE_DOWN, this.object, event._Str_3463, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown));
|
if(this.eventDispatcher) this.eventDispatcher.dispatchEvent(new RoomObjectMouseEvent(RoomObjectMouseEvent.MOUSE_DOWN, this.object, event.eventId, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(eventType && this.eventDispatcher) this.eventDispatcher.dispatchEvent(new RoomObjectMouseEvent(eventType, this.object, event._Str_3463, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown));
|
if(eventType && this.eventDispatcher) this.eventDispatcher.dispatchEvent(new RoomObjectMouseEvent(eventType, this.object, event.eventId, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -430,7 +430,7 @@ export class RoomLogic extends RoomObjectLogicBase
|
|||||||
|
|
||||||
if(_local_12 === RoomPlaneData.PLANE_FLOOR)
|
if(_local_12 === RoomPlaneData.PLANE_FLOOR)
|
||||||
{
|
{
|
||||||
newEvent = new RoomObjectTileMouseEvent(eventType, this.object, event._Str_3463, _local_19, _local_20, _local_21, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown);
|
newEvent = new RoomObjectTileMouseEvent(eventType, this.object, event.eventId, _local_19, _local_20, _local_21, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if((_local_12 === RoomPlaneData.PLANE_WALL) || (_local_12 === RoomPlaneData.PLANE_LANDSCAPE))
|
else if((_local_12 === RoomPlaneData.PLANE_WALL) || (_local_12 === RoomPlaneData.PLANE_LANDSCAPE))
|
||||||
@ -447,7 +447,7 @@ export class RoomLogic extends RoomObjectLogicBase
|
|||||||
const _local_27 = ((_local_9.length * _local_7.x) / _local_13);
|
const _local_27 = ((_local_9.length * _local_7.x) / _local_13);
|
||||||
const _local_28 = ((_local_10.length * _local_7.y) / _local_14);
|
const _local_28 = ((_local_10.length * _local_7.y) / _local_14);
|
||||||
|
|
||||||
newEvent = new RoomObjectWallMouseEvent(eventType, this.object, event._Str_3463, _local_8, _local_9, _local_10, _local_27, _local_28, direction, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown);
|
newEvent = new RoomObjectWallMouseEvent(eventType, this.object, event.eventId, _local_8, _local_9, _local_10, _local_27, _local_28, direction, event.altKey, event.ctrlKey, event.shiftKey, event.buttonDown);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.eventDispatcher) this.eventDispatcher.dispatchEvent(newEvent);
|
if(this.eventDispatcher) this.eventDispatcher.dispatchEvent(newEvent);
|
||||||
|
@ -462,7 +462,7 @@ export class RoomPlane implements IRoomPlane
|
|||||||
if(assetName)
|
if(assetName)
|
||||||
{
|
{
|
||||||
const position = k.getCoordinatePosition(this._normal);
|
const position = k.getCoordinatePosition(this._normal);
|
||||||
const asset = planeMask._Str_21021(k.scale, position);
|
const asset = planeMask.getGraphicAsset(k.scale, position);
|
||||||
|
|
||||||
if(asset)
|
if(asset)
|
||||||
{
|
{
|
||||||
|
@ -37,7 +37,7 @@ export class PlaneMask
|
|||||||
this._sizes = null;
|
this._sizes = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public _Str_24540(size: number): PlaneMaskVisualization
|
public createMaskVisualization(size: number): PlaneMaskVisualization
|
||||||
{
|
{
|
||||||
const existing = this._maskVisualizations.get(size);
|
const existing = this._maskVisualizations.get(size);
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ export class PlaneMask
|
|||||||
return sizeIndex;
|
return sizeIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected _Str_24650(k: number): PlaneMaskVisualization
|
protected getMaskVisualization(k: number): PlaneMaskVisualization
|
||||||
{
|
{
|
||||||
if(k === this._lastSize) return this._lastMaskVisualization;
|
if(k === this._lastSize) return this._lastMaskVisualization;
|
||||||
|
|
||||||
@ -93,9 +93,9 @@ export class PlaneMask
|
|||||||
return this._lastMaskVisualization;
|
return this._lastMaskVisualization;
|
||||||
}
|
}
|
||||||
|
|
||||||
public _Str_21021(k: number, _arg_2: IVector3D): IGraphicAsset
|
public getGraphicAsset(k: number, _arg_2: IVector3D): IGraphicAsset
|
||||||
{
|
{
|
||||||
const visualization = this._Str_24650(k);
|
const visualization = this.getMaskVisualization(k);
|
||||||
|
|
||||||
if(!visualization) return null;
|
if(!visualization) return null;
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ export class PlaneMask
|
|||||||
return this._assetNames.get(k) || null;
|
return this._assetNames.get(k) || null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public _Str_24425(k: number, _arg_2: string): void
|
public setAssetName(k: number, _arg_2: string): void
|
||||||
{
|
{
|
||||||
if(!this._assetNames) return;
|
if(!this._assetNames) return;
|
||||||
|
|
||||||
|
@ -86,13 +86,13 @@ export class PlaneMaskManager
|
|||||||
if(visualization)
|
if(visualization)
|
||||||
{
|
{
|
||||||
const size = visualization.size as number;
|
const size = visualization.size as number;
|
||||||
const maskVisualization = newMask._Str_24540(size);
|
const maskVisualization = newMask.createMaskVisualization(size);
|
||||||
|
|
||||||
if(maskVisualization)
|
if(maskVisualization)
|
||||||
{
|
{
|
||||||
const assetName = this._Str_25815(visualization.bitmaps, maskVisualization, _arg_2);
|
const assetName = this._Str_25815(visualization.bitmaps, maskVisualization, _arg_2);
|
||||||
|
|
||||||
newMask._Str_24425(size, assetName);
|
newMask.setAssetName(size, assetName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,7 +147,7 @@ export class PlaneMaskManager
|
|||||||
|
|
||||||
if(!mask) return true;
|
if(!mask) return true;
|
||||||
|
|
||||||
const asset = mask._Str_21021(_arg_3, _arg_4);
|
const asset = mask.getGraphicAsset(_arg_3, _arg_4);
|
||||||
|
|
||||||
if(!asset) return true;
|
if(!asset) return true;
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ export class SelectedRoomObjectData implements ISelectedRoomObjectData
|
|||||||
return this._typeId;
|
return this._typeId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_4766(): string
|
public get instanceData(): string
|
||||||
{
|
{
|
||||||
return this._instanceData;
|
return this._instanceData;
|
||||||
}
|
}
|
||||||
@ -79,7 +79,7 @@ export class SelectedRoomObjectData implements ISelectedRoomObjectData
|
|||||||
return this._state;
|
return this._state;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_15896(): number
|
public get animFrame(): number
|
||||||
{
|
{
|
||||||
return this._animFrame;
|
return this._animFrame;
|
||||||
}
|
}
|
||||||
@ -94,4 +94,4 @@ export class SelectedRoomObjectData implements ISelectedRoomObjectData
|
|||||||
this._loc = null;
|
this._loc = null;
|
||||||
this._dir = null;
|
this._dir = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ export class RoomSpriteMouseEvent
|
|||||||
return this._type;
|
return this._type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get _Str_3463(): string
|
public get eventId(): string
|
||||||
{
|
{
|
||||||
return this._eventId;
|
return this._eventId;
|
||||||
}
|
}
|
||||||
@ -112,4 +112,4 @@ export class RoomSpriteMouseEvent
|
|||||||
{
|
{
|
||||||
this._spriteOffsetY = k;
|
this._spriteOffsetY = k;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user