Package com.prineside.tdi2.managers
Class ProgressManager.ProgressSnapshotForState
java.lang.Object
com.prineside.tdi2.managers.ProgressManager.ProgressSnapshotForState
- All Implemented Interfaces:
KryoSerializable
- Enclosing class:
- ProgressManager
public static final class ProgressManager.ProgressSnapshotForState
extends Object
implements KryoSerializable
Contains progress data necessary for a proper replay validation.
Can be constructed directly for a no-progress state.
Also can be retrieved from `ProgressManager.createProgressSnapshotForState()`, in which case it will account for the current research and other things.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfromBytes(byte[] bytes, int offset, int size) intintgetResearchInstalledLevel(ResearchType researchType) intbooleanisQuestEverCompleted(String questId) booleanisTrophyReceived(TrophyType trophyType) voidbooleanbyte[]toBytes()voidvalidate()void
-
Field Details
-
statsPlayTimeCasesLoot
public int statsPlayTimeCasesLoot -
statsPlayRealTime
public int statsPlayRealTime -
statsQueuedCasesGiven
public int statsQueuedCasesGiven
-
-
Constructor Details
-
ProgressSnapshotForState
public ProgressSnapshotForState()
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable
-
read
- Specified by:
readin interfaceKryoSerializable
-
getResearchCount
public int getResearchCount() -
getResearchLevelsCount
public int getResearchLevelsCount() -
validate
public void validate() -
sameAs
-
getResearchInstalledLevel
-
isTrophyReceived
-
isQuestEverCompleted
-
fromBytes
public void fromBytes(byte[] bytes, int offset, int size) -
toBytes
public byte[] toBytes()
-