unreal.js
Version:
A pak reader for games like VALORANT & Fortnite written in Node.JS
56 lines (55 loc) • 1.29 kB
TypeScript
import { FArchive } from "../../../reader/FArchive";
import { FArchiveWriter } from "../../../writer/FArchiveWriter";
import { IStructType } from "../../../assets/objects/UScriptStruct";
/**
* Represents an UE4 FIntPoint
* @implements {IStructType}
*/
export declare class FIntPoint implements IStructType {
/**
* X Value
* @type {number}
* @public
*/
x: number;
/**
* Y Value
* @type {number}
* @public
*/
y: number;
/**
* Creates an instance using an UE4 Reader
* @param {FArchive} Ar Reader to use
* @constructor
* @public
*/
constructor(Ar: FArchive);
/**
* Creates an instance using XY values
* @param {number} x X value
* @param {number} y Y value
* @constructor
* @public
*/
constructor(x: number, y: number);
/**
* Serializes this
* @param {FArchiveWriter} Ar Writer to use
* @returns {void}
* @public
*/
serialize(Ar: FArchiveWriter): void;
/**
* Turns this into string
* @returns {string} Result
* @public
*/
toString(): string;
/**
* Turns this into json
* @returns {any} Json
* @public
*/
toJson(): any;
}