unreal.js
Version:
A pak reader for games like VALORANT & Fortnite written in Node.JS
71 lines (70 loc) • 1.93 kB
TypeScript
import { IStructType } from "../../../assets/objects/UScriptStruct";
import { FVector2D } from "./FVector2D";
import { FArchive } from "../../../reader/FArchive";
import { FArchiveWriter } from "../../../writer/FArchiveWriter";
/**
* Implements a rectangular 2D Box
* @implements {IStructType}
*/
export declare class FBox2D implements IStructType {
/**
* Holds the box's minimum point
* @type {FVector2D}
* @public
*/
min: FVector2D;
/**
* Holds the box's maximum point
* @type {FVector2D}
* @public
*/
max: FVector2D;
/**
* Holds a flag indicating whether this box is valid
* @type {boolean}
* @public
*/
isValid: boolean;
/**
* Creates and initializes a new box.
* The box extents are initialized to zero and the box is marked as invalid
* @constructor
* @public
*/
constructor();
/**
* Creates and initializes a new box using UE4 reader
* The box extents are initialized using the provided FArchive
* @param {FArchive} Ar Reader to use
* @constructor
* @public
*/
constructor(Ar: FArchive);
/**
* Creates and initializes a new box from the specified parameters
* @param {FVector2D} min The box's minimum point
* @param {FVector2D} max The box's maximum point
* @constructor
* @public
*/
constructor(min: FVector2D, max: FVector2D);
/**
* Serializes this
* @param {FArchiveWriter} Ar Reader to use
* @returns {void}
* @public
*/
serialize(Ar: FArchiveWriter): void;
/**
* Get a textual representation of this box
* @returns {string} A string describing the box
* @public
*/
toString(): string;
/**
* Turns this into json
* @returns {any} json
* @public
*/
toJson(): any;
}