From c7487862a2623e05c105f760d808465c533e01ac Mon Sep 17 00:00:00 2001 From: Dank074 Date: Tue, 8 Jun 2021 17:37:36 -0500 Subject: [PATCH] cleaned WallPlane --- .../rasterizer/animated/LandscapePlane.ts | 6 ++--- .../animated/LandscapeRasterizer.ts | 6 ++--- .../room/rasterizer/basic/FloorPlane.ts | 6 ++--- .../room/rasterizer/basic/PlaneRasterizer.ts | 6 ++--- .../room/rasterizer/basic/WallPlane.ts | 6 ++--- ...RoomSessionDimmerPresetsEventPresetItem.ts | 4 ++-- .../session/events/RoomSessionQueueEvent.ts | 24 +++++++++---------- 7 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/nitro/room/object/visualization/room/rasterizer/animated/LandscapePlane.ts b/src/nitro/room/object/visualization/room/rasterizer/animated/LandscapePlane.ts index 28e62cb2..80beaa2b 100644 --- a/src/nitro/room/object/visualization/room/rasterizer/animated/LandscapePlane.ts +++ b/src/nitro/room/object/visualization/room/rasterizer/animated/LandscapePlane.ts @@ -5,9 +5,9 @@ import { Plane } from '../basic/Plane'; export class LandscapePlane extends Plane { - public static _Str_2531: number = 0xFFFFFF; - public static _Str_5433: number = 45; - public static _Str_5509: number = 30; + public static DEFAULT_COLOR: number = 0xFFFFFF; + public static HORIZONTAL_ANGLE_DEFAULT: number = 45; + public static VERTICAL_ANGLE_DEFAULT: number = 30; private _width: number = 0; private _height: number = 0; diff --git a/src/nitro/room/object/visualization/room/rasterizer/animated/LandscapeRasterizer.ts b/src/nitro/room/object/visualization/room/rasterizer/animated/LandscapeRasterizer.ts index 7257ca59..4ee73554 100644 --- a/src/nitro/room/object/visualization/room/rasterizer/animated/LandscapeRasterizer.ts +++ b/src/nitro/room/object/visualization/room/rasterizer/animated/LandscapeRasterizer.ts @@ -59,8 +59,8 @@ export class LandscapeRasterizer extends PlaneRasterizer const size = visualization.size; - let horizontalAngle = LandscapePlane._Str_5433; - let verticalAngle = LandscapePlane._Str_5509; + let horizontalAngle = LandscapePlane.HORIZONTAL_ANGLE_DEFAULT; + let verticalAngle = LandscapePlane.VERTICAL_ANGLE_DEFAULT; if(visualization.horizontalAngle) horizontalAngle = visualization.horizontalAngle; if(visualization.verticalAngle) verticalAngle = visualization.verticalAngle; @@ -89,7 +89,7 @@ export class LandscapeRasterizer extends PlaneRasterizer { let material: PlaneMaterial = null; let align: number = PlaneVisualizationLayer._Str_6914; - let color: number = LandscapePlane._Str_2531; + let color: number = LandscapePlane.DEFAULT_COLOR; let offset: number = PlaneVisualizationLayer.DEFAULT_OFFSET; if(layer.materialId) material = this.getMaterial(layer.materialId); diff --git a/src/nitro/room/object/visualization/room/rasterizer/basic/FloorPlane.ts b/src/nitro/room/object/visualization/room/rasterizer/basic/FloorPlane.ts index 568bcd1d..d6a5f63e 100644 --- a/src/nitro/room/object/visualization/room/rasterizer/basic/FloorPlane.ts +++ b/src/nitro/room/object/visualization/room/rasterizer/basic/FloorPlane.ts @@ -5,9 +5,9 @@ import { Plane } from './Plane'; export class FloorPlane extends Plane { - public static _Str_2531: number = 0xFFFFFF; - public static _Str_5433: number = 45; - public static _Str_5509: number = 30; + public static DEFAULT_COLOR: number = 0xFFFFFF; + public static HORIZONTAL_ANGLE_DEFAULT: number = 45; + public static VERTICAL_ANGLE_DEFAULT: number = 30; public render(k: Graphics, _arg_2: number, _arg_3: number, size: number, _arg_5: IVector3D, _arg_6: boolean, _arg_7: number, _arg_8: number): Graphics { diff --git a/src/nitro/room/object/visualization/room/rasterizer/basic/PlaneRasterizer.ts b/src/nitro/room/object/visualization/room/rasterizer/basic/PlaneRasterizer.ts index 2a7759cb..0889ab26 100644 --- a/src/nitro/room/object/visualization/room/rasterizer/basic/PlaneRasterizer.ts +++ b/src/nitro/room/object/visualization/room/rasterizer/basic/PlaneRasterizer.ts @@ -540,8 +540,8 @@ export class PlaneRasterizer implements IPlaneRasterizer const size = visualization.size; - let horizontalAngle = FloorPlane._Str_5433; - let verticalAngle = FloorPlane._Str_5509; + let horizontalAngle = FloorPlane.HORIZONTAL_ANGLE_DEFAULT; + let verticalAngle = FloorPlane.VERTICAL_ANGLE_DEFAULT; if(visualization.horizontalAngle) horizontalAngle = visualization.horizontalAngle; if(visualization.verticalAngle) verticalAngle = visualization.verticalAngle; @@ -562,7 +562,7 @@ export class PlaneRasterizer implements IPlaneRasterizer { let material: PlaneMaterial = null; let align: number = PlaneVisualizationLayer._Str_6914; - let color: number = FloorPlane._Str_2531; + let color: number = FloorPlane.DEFAULT_COLOR; let offset: number = PlaneVisualizationLayer.DEFAULT_OFFSET; if(layer.materialId) material = this.getMaterial(layer.materialId); diff --git a/src/nitro/room/object/visualization/room/rasterizer/basic/WallPlane.ts b/src/nitro/room/object/visualization/room/rasterizer/basic/WallPlane.ts index a2bebded..620ba281 100644 --- a/src/nitro/room/object/visualization/room/rasterizer/basic/WallPlane.ts +++ b/src/nitro/room/object/visualization/room/rasterizer/basic/WallPlane.ts @@ -5,9 +5,9 @@ import { Plane } from './Plane'; export class WallPlane extends Plane { - public static _Str_2531: number = 0xFFFFFF; - public static _Str_5433: number = 45; - public static _Str_5509: number = 30; + public static DEFAULT_COLOR: number = 0xFFFFFF; + public static HORIZONTAL_ANGLE_DEFAULT: number = 45; + public static VERTICAL_ANGLE_DEFAULT: number = 30; public render(k: Graphics, _arg_2: number, _arg_3: number, size: number, _arg_5: IVector3D, _arg_6: boolean): Graphics { diff --git a/src/nitro/session/events/RoomSessionDimmerPresetsEventPresetItem.ts b/src/nitro/session/events/RoomSessionDimmerPresetsEventPresetItem.ts index e52afad2..8bccc4c3 100644 --- a/src/nitro/session/events/RoomSessionDimmerPresetsEventPresetItem.ts +++ b/src/nitro/session/events/RoomSessionDimmerPresetsEventPresetItem.ts @@ -28,8 +28,8 @@ return this._color; } - public get _Str_4272(): number + public get light(): number { return this._light; } -} \ No newline at end of file +} diff --git a/src/nitro/session/events/RoomSessionQueueEvent.ts b/src/nitro/session/events/RoomSessionQueueEvent.ts index 18089e5b..ca765402 100644 --- a/src/nitro/session/events/RoomSessionQueueEvent.ts +++ b/src/nitro/session/events/RoomSessionQueueEvent.ts @@ -3,11 +3,11 @@ import { RoomSessionEvent } from './RoomSessionEvent'; export class RoomSessionQueueEvent extends RoomSessionEvent { - public static RSQE_QUEUE_STATUS: string = 'RSQE_QUEUE_STATUS'; - public static C: string = 'c'; - public static D: string = 'd'; - public static _Str_14665: number = 2; - public static _Str_14078: number = 1; + public static QUEUE_STATUS: string = 'RSQE_QUEUE_STATUS'; + public static QUEUE_TYPE_CLUB: string = 'c'; + public static QUEUE_TYPE_NORMAL: string = 'd'; + public static QUEUE_TARGET_VISITOR: number = 2; + public static QUEUE_TARGET_SPECTATOR: number = 1; private _name: string; private _target: number; @@ -17,7 +17,7 @@ export class RoomSessionQueueEvent extends RoomSessionEvent constructor(k: IRoomSession, _arg_2: string, _arg_3: number, _arg_4: boolean = false) { - super(RoomSessionQueueEvent.RSQE_QUEUE_STATUS, k); + super(RoomSessionQueueEvent.QUEUE_STATUS, k); this._name = _arg_2; this._target = _arg_3; @@ -30,28 +30,28 @@ export class RoomSessionQueueEvent extends RoomSessionEvent return this._isActive; } - public get _Str_26076(): string + public get queueSetName(): string { return this._name; } - public get _Str_22709(): number + public get queueSetTarget(): number { return this._target; } - public get _Str_14282(): string[] + public get queueTypes(): string[] { return Array.from(this._queues.keys()); } - public _Str_11510(k: string): number + public getQueueSize(k: string): number { return this._queues.get(k); } - public _Str_17628(k: string, _arg_2: number): void + public addQueue(k: string, _arg_2: number): void { this._queues.set(k, _arg_2); } -} \ No newline at end of file +}