Project

General

Profile

« Previous | Next » 

Revision 1d581993

Added by Leszek Koltunski about 2 years ago

Introduce ObjectSignature that can incorporate 192-bit signatures (for 5x5x5 bandaged cubes).
ObjectScrambler does not fully work yet.

View differences:

src/main/java/org/distorted/objectlib/json/JsonWriter.java
26 26
import java.nio.charset.StandardCharsets;
27 27

  
28 28
import org.distorted.objectlib.helpers.ObjectFaceShape;
29
import org.distorted.objectlib.helpers.ObjectSignature;
29 30
import org.json.JSONArray;
30 31
import org.json.JSONException;
31 32
import org.json.JSONObject;
......
362 363
    metadata.put("shortname"  , object.getShortName() );
363 364
    metadata.put("resetmaps"  , object.shouldResetTextureMaps() );
364 365
    metadata.put("num_faces"  , object.getNumFaces() );
365
    metadata.put("signature"  , object.getSignature() );
366

  
367
    ObjectSignature signature = object.getSignature();
368

  
369
    metadata.put("signature1" , signature.getLong1() );
370
    metadata.put("signature2" , signature.getLong2() );
371
    metadata.put("signature3" , signature.getLong3() );
366 372

  
367 373
    return metadata;
368 374
    }

Also available in: Unified diff