com.bladecoder.engine.util.SerializationHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blade-engine Show documentation
Show all versions of blade-engine Show documentation
Classic point and click adventure game engine
package com.bladecoder.engine.util;
public class SerializationHelper {
public enum Mode {
MODEL, STATE
};
private static SerializationHelper instance;
private Mode mode = Mode.MODEL;
private SerializationHelper() {
}
public static SerializationHelper getInstance() {
if (instance == null)
instance = new SerializationHelper();
return instance;
}
public Mode getMode() {
return mode;
}
public void setMode(Mode m) {
this.mode = m;
}
}