You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
Move to Renderer V2
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export interface IFurnitureStackingHeightMap
|
||||
{
|
||||
dispose: () => void;
|
||||
getTileHeight(x: number, y: number): number;
|
||||
setTileHeight(x: number, y: number, height: number): void;
|
||||
setStackingBlocked(x: number, y: number, isNotStackable: boolean): void;
|
||||
setIsRoomTile(x: number, y: number, isRoomTile: boolean): void;
|
||||
validateLocation(k: number, _arg_2: number, _arg_3: number, _arg_4: number, _arg_5: number, _arg_6: number, _arg_7: number, _arg_8: number, _arg_9: boolean, _arg_10?: number): boolean;
|
||||
readonly width: number;
|
||||
readonly height: number;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { IVector3D } from '../../../utils';
|
||||
|
||||
export interface ILegacyWallGeometry
|
||||
{
|
||||
dispose: () => void;
|
||||
readonly disposed: boolean;
|
||||
scale: number;
|
||||
initialize(width: number, height: number, floorHeight: number): void;
|
||||
setHeight(x: number, y: number, height: number): boolean;
|
||||
getHeight(x: number, y: number): number;
|
||||
getLocation(k: number, _arg_2: number, _arg_3: number, _arg_4: number, _arg_5: string): IVector3D;
|
||||
getLocationOldFormat(k: number, _arg_2: number, _arg_3: string): IVector3D;
|
||||
getOldLocation(k: IVector3D, _arg_2: number): [number, number, number, number, string];
|
||||
getOldLocationString(k: IVector3D, _arg_2: number): string;
|
||||
getDirection(k: string): number;
|
||||
getFloorAltitude(k: number, _arg_2: number): number;
|
||||
isRoomTile(k: number, _arg_2: number): boolean;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { IRoomObject } from '../../../room';
|
||||
|
||||
export interface ITileObjectMap
|
||||
{
|
||||
clear(): void;
|
||||
populate(k: IRoomObject[]): void;
|
||||
dispose(): void;
|
||||
getObjectIntTile(k: number, _arg_2: number): IRoomObject;
|
||||
setObjectInTile(k: number, _arg_2: number, _arg_3: IRoomObject): void;
|
||||
addRoomObject(k: IRoomObject): void;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
import { IVector3D } from '../../../utils';
|
||||
|
||||
export class ObjectRolling
|
||||
{
|
||||
public static MOVE: string = 'mv';
|
||||
public static SLIDE: string = 'sld';
|
||||
|
||||
private _id: number;
|
||||
private _location: IVector3D;
|
||||
private _targetLocation: IVector3D;
|
||||
private _movementType: string;
|
||||
|
||||
constructor(id: number, location: IVector3D, targetLocation: IVector3D, movementType: string = null)
|
||||
{
|
||||
this._id = id;
|
||||
this._location = location;
|
||||
this._targetLocation = targetLocation;
|
||||
this._movementType = movementType;
|
||||
}
|
||||
|
||||
public get id(): number
|
||||
{
|
||||
return this._id;
|
||||
}
|
||||
|
||||
public get location(): IVector3D
|
||||
{
|
||||
return this._location;
|
||||
}
|
||||
|
||||
public get targetLocation(): IVector3D
|
||||
{
|
||||
return this._targetLocation;
|
||||
}
|
||||
|
||||
public get movementType(): string
|
||||
{
|
||||
return this._movementType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export * from './IFurnitureStackingHeightMap';
|
||||
export * from './ILegacyWallGeometry';
|
||||
export * from './ITileObjectMap';
|
||||
export * from './ObjectRolling';
|
||||
Reference in New Issue
Block a user