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 TypeFieldDescriptionint
int
int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
fromBytes
(byte[] bytes, int offset, int size) int
int
getResearchInstalledLevel
(ResearchType researchType) int
boolean
isQuestEverCompleted
(String questId) boolean
isTrophyReceived
(TrophyType trophyType) void
boolean
byte[]
toBytes()
void
validate()
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:
write
in interfaceKryoSerializable
-
read
- Specified by:
read
in 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()
-