Package com.prineside.tdi2.managers
Class ProgressManager.ProgressSnapshotForState
java.lang.Object
com.prineside.tdi2.managers.ProgressManager.ProgressSnapshotForState
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- ProgressManager
public static final class ProgressManager.ProgressSnapshotForState
extends Object
implements com.esotericsoftware.kryo.KryoSerializable
Contains progress data necessary for a proper replay validation.
Can be constructed directly for a no-progress state
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
fromBytes
(byte[] bytes, int offset, int size) int
getResearchInstalledLevel
(ResearchType researchType) boolean
isQuestEverCompleted
(String questId) boolean
isTrophyReceived
(TrophyType trophyType) void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) boolean
byte[]
toBytes()
void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
Constructor Details
-
ProgressSnapshotForState
public ProgressSnapshotForState()
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
sameAs
-
getResearchInstalledLevel
-
isTrophyReceived
-
isQuestEverCompleted
-
fromBytes
public void fromBytes(byte[] bytes, int offset, int size) -
toBytes
public byte[] toBytes()
-