diff --git a/spinehaxe/JsonUtils.hx b/spinehaxe/JsonUtils.hx index acea29a..c763a67 100644 --- a/spinehaxe/JsonUtils.hx +++ b/spinehaxe/JsonUtils.hx @@ -54,8 +54,8 @@ class JsonUtils { return cast value; } - static private function getFloatArray (map:JsonNode, name:String, scale:Float) : Array { - var values:Array = getDynamic(map, name); + public static function getFloatArray (map:JsonNode, name:String, scale:Float) : Array { + var values:Array = cast getDynamic(map, name); if (scale != 1) { for (i in 0 ... values.length) values[i] *= scale; @@ -63,11 +63,11 @@ class JsonUtils { return values; } - static private function getIntArray (map:JsonNode, name:String) : Array { + public static function getIntArray (map:JsonNode, name:String) : Array { return cast getDynamic(map, name); } - static private function getUintArray (map:JsonNode, name:String) : Array { + public static function getUintArray (map:JsonNode, name:String) : Array { return cast getDynamic(map, name); }