From f884c4ca82ae92809e08655a02eb8a93f707afc1 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 15 May 2020 00:22:49 -0600 Subject: [PATCH] Fix haxelib package --- haxelib.json | 7 +++---- src/{ => hxprng}/PCG32.hx | 2 ++ {sample => src/sample}/Main.hx | 4 ++++ 3 files changed, 9 insertions(+), 4 deletions(-) rename src/{ => hxprng}/PCG32.hx (95%) rename {sample => src/sample}/Main.hx (80%) diff --git a/haxelib.json b/haxelib.json index b7cc0e4..ac6d904 100644 --- a/haxelib.json +++ b/haxelib.json @@ -3,11 +3,10 @@ "license": "Apache", "tags": ["cross","haxe","random","game"], "description": "Pseudorandom number generator", - "contributors": ["flashultra"], + "contributors": ["flashultra", "NQNStudios"], + "classPath": "src/", "releasenote": "Initial version", "version": "0.0.1", "url": "https://github.com/flashultra/hxprng", - "dependencies": { - - } + "main": "sample.Main" } diff --git a/src/PCG32.hx b/src/hxprng/PCG32.hx similarity index 95% rename from src/PCG32.hx rename to src/hxprng/PCG32.hx index ca45ac2..2a225dd 100644 --- a/src/PCG32.hx +++ b/src/hxprng/PCG32.hx @@ -21,6 +21,8 @@ * http://www.pcg-random.org */ +package hxprng; + import haxe.Timer; import haxe.Int32; import haxe.Int64; diff --git a/sample/Main.hx b/src/sample/Main.hx similarity index 80% rename from sample/Main.hx rename to src/sample/Main.hx index 1fc8717..da82253 100644 --- a/sample/Main.hx +++ b/src/sample/Main.hx @@ -1,3 +1,7 @@ +package sample; + +import hxprng.PCG32; + class Main { static function main() {