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 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 interface com.esotericsoftware.kryo.KryoSerializable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
    • 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()