Revision 962b8ff6
Added by Leszek Koltunski 2 months ago
src/main/java/org/distorted/objectlib/json/JsonWriter.java | ||
---|---|---|
610 | 610 |
private JSONArray generateColors(TwistyObject object) |
611 | 611 |
{ |
612 | 612 |
JSONArray jsonColors = new JSONArray(); |
613 |
int numFaceColors = object.getNumFaceColors(); |
|
614 |
for(int i=0; i<numFaceColors; i++) jsonColors.put(object.getColor(i)); |
|
613 |
int[] colorTable = object.getColorTable(); |
|
614 |
int numFaceColors = colorTable.length; |
|
615 |
for(int i=0; i<numFaceColors; i++) jsonColors.put(colorTable[i]); |
|
615 | 616 |
|
616 | 617 |
jsonColors.put(object.getInternalColor()); |
617 | 618 |
|
Also available in: Unified diff
progress with configurable stickers