Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bendmorris master #1

Merged
merged 2 commits into from
Apr 13, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions spinehaxe/JsonUtils.hx
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,20 @@ class JsonUtils {
return cast value;
}

static private function getFloatArray (map:JsonNode, name:String, scale:Float) : Array<Float> {
var values:Array<Float> = getDynamic(map, name);
public static function getFloatArray (map:JsonNode, name:String, scale:Float) : Array<Float> {
var values:Array<Float> = cast getDynamic(map, name);
if (scale != 1) {
for (i in 0 ... values.length)
values[i] *= scale;
}
return values;
}

static private function getIntArray (map:JsonNode, name:String) : Array<Int> {
public static function getIntArray (map:JsonNode, name:String) : Array<Int> {
return cast getDynamic(map, name);
}

static private function getUintArray (map:JsonNode, name:String) : Array<UInt> {
public static function getUintArray (map:JsonNode, name:String) : Array<UInt> {
return cast getDynamic(map, name);
}

Expand Down