mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
cleaned WallPlane
This commit is contained in:
parent
e115e66895
commit
c7487862a2
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -28,8 +28,8 @@
|
||||
return this._color;
|
||||
}
|
||||
|
||||
public get _Str_4272(): number
|
||||
public get light(): number
|
||||
{
|
||||
return this._light;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user