From 59d6ff263a40af039990f12bcce72a6a01feec86 Mon Sep 17 00:00:00 2001 From: Rollin'Barrel Date: Sun, 21 Sep 2025 10:14:41 +0300 Subject: [PATCH] add UID.fromInt64 --- steam/UID.hx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/steam/UID.hx b/steam/UID.hx index d462d58..4a8c717 100644 --- a/steam/UID.hx +++ b/steam/UID.hx @@ -20,4 +20,10 @@ abstract UID(hl.Bytes) { if( bytes.length != 8 ) throw "Invalid UID"; return new UID(@:privateAccess bytes.b); } + public static function fromInt64( v:haxe.Int64 ) { + var b = new hl.Bytes(8); + b.setI32(0, v.low); + b.setI32(4, v.high); + return new UID(b); + } } \ No newline at end of file