Update to v0.2.1
This commit is contained in:
parent
c302a4b5b4
commit
da08fb0420
3 changed files with 3 additions and 54 deletions
|
@ -22,8 +22,8 @@ android {
|
|||
minSdkVersion 8
|
||||
targetSdkVersion 25
|
||||
|
||||
versionCode 200
|
||||
versionName "0.2"
|
||||
versionCode 210
|
||||
versionName "0.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ allprojects {
|
|||
apply plugin: "eclipse"
|
||||
apply plugin: "idea"
|
||||
|
||||
version = '0.2'
|
||||
version = '0.2.1'
|
||||
ext {
|
||||
appName = "1010! Klooni"
|
||||
gdxVersion = '1.9.5'
|
||||
|
|
|
@ -1,51 +0,0 @@
|
|||
package io.github.lonamiwebs.klooni;
|
||||
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
|
||||
public class GameSerializer {
|
||||
// integer version
|
||||
// integer game mode:
|
||||
// integer current/high score
|
||||
//
|
||||
// TODO: Scorer specific
|
||||
// Board on row major order:
|
||||
// true color if cell is filled
|
||||
// false if cell is empty
|
||||
// 3 held pieces IDs (-1 if null)
|
||||
|
||||
// Modify this if the saving scheme changes
|
||||
private static final int VERSION = 1;
|
||||
|
||||
public static void serialize(final int /*GameScreen*/ game, final OutputStream output)
|
||||
throws IOException {
|
||||
DataOutputStream out = new DataOutputStream(output);
|
||||
try {
|
||||
out.writeInt(VERSION);
|
||||
} finally {
|
||||
out.close();
|
||||
}
|
||||
|
||||
// todo uhm maybe make the classes serializable? like telethon, kinda, idk, bye.
|
||||
|
||||
|
||||
/*
|
||||
DataInputStream d = new DataInputStream(new FileInputStream("test.txt"));
|
||||
|
||||
DataOutputStream out = new DataOutputStream(new FileOutputStream("test1.txt"));
|
||||
|
||||
String count;
|
||||
d.readFully();
|
||||
while((count = d.readLine()) != null){
|
||||
String u = count.toUpperCase();
|
||||
System.out.println(u);
|
||||
out.writeBytes(u + " ,");
|
||||
}
|
||||
d.close();
|
||||
out.close();
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue