Package com.prineside.tdi2.managers
Class ReplayManager.ReplayRecord
java.lang.Object
com.prineside.tdi2.managers.ReplayManager.ReplayRecord
- Enclosing class:
- ReplayManager
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionint
int
boolean
boolean
int
int
int
long
long
long
com.badlogic.gdx.utils.IntFloatMap
byte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
static ReplayManager.ReplayRecord
fromBytes
(byte[] buffer, boolean fullLoad) static ReplayManager.ReplayRecord
fromCompactString
(String str, boolean fullLoad) static ReplayManager.ReplayRecord
fromState
(GameSystemProvider S, byte[] preferencesSnapshot, boolean saveState) byte[]
byte[]
void
void
void
byte[]
toBytes()
-
Field Details
-
version
public byte version -
build
public int build -
id
-
gameMode
-
difficultyMode
-
modeDifficultyMultiplier
public int modeDifficultyMultiplier -
levelName
-
playRealTime
public int playRealTime -
defeatedWaves
public int defeatedWaves -
score
public long score -
startTimestamp
public long startTimestamp -
saveTimestamp
public long saveTimestamp -
profileXp
public int profileXp -
statistics
public com.badlogic.gdx.utils.IntFloatMap statistics -
chartFrames
-
hasState
public boolean hasState -
hasPreferences
public boolean hasPreferences
-
-
Constructor Details
-
ReplayRecord
public ReplayRecord()
-
-
Method Details
-
fromState
public static ReplayManager.ReplayRecord fromState(GameSystemProvider S, byte[] preferencesSnapshot, boolean saveState) -
toBytes
public byte[] toBytes() -
fromBytes
-
fromCompactString
-
getStateBytes
public byte[] getStateBytes() -
removeStateData
public void removeStateData() -
removePreferencesData
public void removePreferencesData() -
saveLocally
public void saveLocally() -
toCompactString
-
getPreferencesSnapshot
public byte[] getPreferencesSnapshot() -
applyPreferences
public void applyPreferences()
-