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
  • Field Details

    • statsPlayTimeCasesLoot

      public int statsPlayTimeCasesLoot
    • statsPlayRealTime

      public int statsPlayRealTime
    • statsQueuedCasesGiven

      public int statsQueuedCasesGiven
  • Constructor Details

    • ProgressSnapshotForState

      public ProgressSnapshotForState()
  • Method Details

    • write

      public void write(Kryo kryo, Output output)
      Specified by:
      write in interface KryoSerializable
    • read

      public void read(Kryo kryo, Input input)
      Specified by:
      read in interface KryoSerializable
    • getResearchCount

      public int getResearchCount()
    • getResearchLevelsCount

      public int getResearchLevelsCount()
    • validate

      public void validate()
    • sameAs

      public boolean sameAs(ProgressManager.ProgressSnapshotForState snapshot)
    • getResearchInstalledLevel

      public int getResearchInstalledLevel(ResearchType researchType)
    • isTrophyReceived

      public boolean isTrophyReceived(TrophyType trophyType)
    • isQuestEverCompleted

      public boolean isQuestEverCompleted(String questId)
    • fromBytes

      public void fromBytes(byte[] bytes, int offset, int size)
    • toBytes

      public byte[] toBytes()