Revision 0f72365b
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/json/JsonReader.java | ||
---|---|---|
69 | 69 |
private int mScrambleType, mNumScrambles; |
70 | 70 |
private int[] mColor; |
71 | 71 |
private ObjectType mType; |
72 |
private boolean mResetMaps; |
|
72 | 73 |
|
73 | 74 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
74 | 75 |
|
... | ... | |
82 | 83 |
mSize = (float)object.getDouble("size"); |
83 | 84 |
mSolvedFuncIndex = object.getInt("solved_func"); |
84 | 85 |
mNumScrambles = object.getInt("scrambles"); |
86 |
mResetMaps = object.getBoolean("resetmaps"); |
|
85 | 87 |
|
86 | 88 |
int ordinal = ObjectType.getOrdinal(mShortName); |
87 | 89 |
mType = ordinal>=0 ? ObjectType.getObject(ordinal) : null; |
... | ... | |
755 | 757 |
{ |
756 | 758 |
return mColor[face]; |
757 | 759 |
} |
760 |
|
|
761 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
762 |
|
|
763 |
public boolean shouldResetTextureMaps() |
|
764 |
{ |
|
765 |
return mResetMaps; |
|
766 |
} |
|
758 | 767 |
} |
Also available in: Unified diff
Add 'shouldResetTextureMaps' to the JSON puzzle description.