From 9abd235ed2b9a5c80d5e63d6187d69e9317c2f0d Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Wed, 22 Sep 2021 10:10:50 +0530 Subject: * Initial Commit * Leaderboard Implementation for dreamlo * FlxSave for Player Data * GUID Generation for Unique User --- source/shared/Utils.hx | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 source/shared/Utils.hx (limited to 'source/shared/Utils.hx') diff --git a/source/shared/Utils.hx b/source/shared/Utils.hx new file mode 100644 index 0000000..3f924ed --- /dev/null +++ b/source/shared/Utils.hx @@ -0,0 +1,13 @@ +package shared; + +import haxe.Timer; +import lime.tools.GUID; + +class Utils +{ + public static function Guid() + { + var guid = GUID.seededUuid(Date.now().toString()); + return guid.split("{").join("").split("}").join(""); + } +} -- cgit v1.2.3