UNPKG

unreal.js

Version:

A pak reader for games like VALORANT & Fortnite written in Node.JS

21 lines (20 loc) 509 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FMeshUVFloat = void 0; class FMeshUVFloat { constructor(Ar = null) { this.u = Ar.readFloat32(); this.v = Ar.readFloat32(); } serialize(Ar) { Ar.writeFloat32(this.u); Ar.writeFloat32(this.v); } static from(u, v) { const uv = new FMeshUVFloat(); uv.u = u; uv.v = v; return uv; } } exports.FMeshUVFloat = FMeshUVFloat;