1
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
2
|
// Copyright 2023 Leszek Koltunski //
|
3
|
// //
|
4
|
// This file is part of Magic Cube. //
|
5
|
// //
|
6
|
// Magic Cube is proprietary software licensed under an EULA which you should have received //
|
7
|
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html //
|
8
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
9
|
|
10
|
package org.distorted.objectlib.metadata;
|
11
|
|
12
|
import org.distorted.objectlib.R;
|
13
|
import org.distorted.objectlib.main.TwistyObject;
|
14
|
import org.distorted.objectlib.signature.ObjectSignature;
|
15
|
|
16
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
17
|
|
18
|
public class Metadata
|
19
|
{
|
20
|
private final int[] mNumLayers;
|
21
|
private final int mParam;
|
22
|
private final float[][] mPos;
|
23
|
private final Class<? extends TwistyObject> mClass;
|
24
|
private final ObjectSignature mSignature;
|
25
|
|
26
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
27
|
|
28
|
public Metadata(Class<? extends TwistyObject> clazz, int[] layers, int param, float[][] pos, int objConstant)
|
29
|
{
|
30
|
mNumLayers = layers;
|
31
|
mParam = param;
|
32
|
mPos = pos;
|
33
|
mClass = clazz;
|
34
|
mSignature = new ObjectSignature(objConstant);
|
35
|
}
|
36
|
|
37
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
38
|
|
39
|
public int numScrambles() { return 1; }
|
40
|
public int icon() { return R.drawable.cube_3; }
|
41
|
public boolean getActive() { return true; }
|
42
|
public int price() { return 0; }
|
43
|
public int objectVersion() { return 1; }
|
44
|
public int extrasVersion() { return 1; }
|
45
|
public int[] getNumLayers() { return mNumLayers; }
|
46
|
public int getParam() { return mParam; }
|
47
|
public float[][] getPos() { return mPos; }
|
48
|
public int extrasJson() { return 0; }
|
49
|
public int objectJson() { return 0; }
|
50
|
public int mesh() { return 0; }
|
51
|
public String getInventor() { return null; }
|
52
|
public int getYearOfInvention() { return 0; }
|
53
|
public float getComplexity() { return 1.0f; }
|
54
|
public String getObjectName() { return null; }
|
55
|
public ObjectSignature getSignature() { return mSignature; }
|
56
|
public Class<? extends TwistyObject> getObjectClass() { return mClass; }
|
57
|
}
|