You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fired when the {@link PlaybackSerialiser} reads the inputs from a file.<br>
274
+
* This is used to load your inlineFileCommands from a comment into {@link #inlineFileCommandStorage} to be used in {@link #onPlayback(long, InputContainer)}.
275
+
*
276
+
* @param tick The current tick that is deserialised
277
+
* @param inputContainer The current inputs that are being deserialised
278
+
* @param fileCommandContainer The {@link SortedFileCommandContainer} that was deserialised
* Fired when the {@link PlaybackSerialiser} reads the inputs from a file.<br>
289
+
* This is used to load your endlineFileCommands from a comment into {@link #endlineFileCommandStorage} to be used in {@link #onPlayback(long, InputContainer)}.
290
+
*
291
+
* @param tick The current tick that is deserialised
292
+
* @param inputContainer The current inputs that are being deserialised
293
+
* @param fileCommandContainer The {@link SortedFileCommandContainer} that was deserialised
* If it's missing, we need to set that spot to null.
396
+
*
397
+
* So first we create empty Hashmaps for each:
398
+
* {
399
+
* "desyncMonitor": [],
400
+
* "hud": [],
401
+
* "label": []
402
+
* }
403
+
*
404
+
* Then iterate through all filecommands and set null where a FileCommand is absent
262
405
*/
263
406
for (FileCommandsInCommentListunsortedFileCommandsList : this) {
264
407
if (unsortedFileCommandsList != null) {
@@ -268,7 +411,7 @@ public SortedFileCommandContainer sort() {
268
411
}
269
412
}
270
413
271
-
/**
414
+
/*
272
415
* Add the FileCommands to the previously created FileCommandsInCommentLists
273
416
*/
274
417
for (FileCommandsInCommentListunsortedFileCommandsList : this) {
@@ -285,7 +428,7 @@ public SortedFileCommandContainer sort() {
285
428
286
429
booleanvaluePresent = false;
287
430
if (unsortedFileCommandsList != null) {
288
-
/**
431
+
/*
289
432
* Iterates through all filecommands in a comment
290
433
* and adds it to the sorted list if found
291
434
*/
@@ -296,7 +439,7 @@ public SortedFileCommandContainer sort() {
296
439
}
297
440
}
298
441
}
299
-
/**
442
+
/*
300
443
* If the value is not found,
301
444
* add null to indicate that the
302
445
* file command is missing from this comment
@@ -336,9 +479,10 @@ public static class FileCommandsInTickList extends ArrayList<PlaybackFileCommand
336
479
}
337
480
338
481
/**
339
-
* <p>A LinkedHashMap for storing {@link FileCommandsInCommentList} sorted by the name of the FileCommand name.
482
+
* <p>A LinkedHashMap for storing {@link FileCommandsInTickList} sorted by the name of the FileCommand name.
340
483
* <p>The key represents the FileCommand name, while the elements are the {@link FileCommandsInTickList}
341
484
* <p>This stands in contrast to the {@link UnsortedFileCommandContainer}, which can be obtained by calling {@link SortedFileCommandContainer#unsort() unsort()}
485
+
* <p>Used in {@link PlaybackFileCommandExtension PlaybackFileCommandExtensions} as this format makes it easier to distribute the file commands to their respective class extensions
* Loads a BigArrayList of {@link InputContainer InputContainers} from a file, with a specific flavor
183
+
*
184
+
* <p>Has a parameter to stop processing extension data, usually used when
185
+
* {@link SavestateHandlerClient#loadstate(String) loading savestates} to prevent loadstates from overwriting data
186
+
*
187
+
* @param file The file to load from
188
+
* @param flavorName The name of the {@link SerialiserFlavorBase flavor} to use. If the detected flavor in the TASfile mismatches, a {@link PlaybackLoadException} is thrown
0 commit comments