forked from MagicBane/Server
More parsing work.
This commit is contained in:
@@ -24,6 +24,7 @@ public class ItemTemplate {
|
||||
|
||||
// Template Properties
|
||||
public String obj_name;
|
||||
public boolean obj_pickable;
|
||||
public Vector3fImmutable obj_scale;
|
||||
public Vector3fImmutable obj_forward_vector;
|
||||
public Vector3fImmutable obj_default_alignment;
|
||||
@@ -83,6 +84,10 @@ public class ItemTemplate {
|
||||
|
||||
obj_name = (String) jsonObject.get("obj_name");
|
||||
|
||||
// Reading a boolean
|
||||
|
||||
obj_pickable = (boolean) jsonObject.get("obj_pickable");
|
||||
|
||||
// Reading floats from an array (note always check for empty arrays)
|
||||
|
||||
JSONArray scaleData = (JSONArray) jsonObject.get("obj_scale");
|
||||
|
||||
Reference in New Issue
Block a user