-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First working end-to-end example of the new replay parsing
- Loading branch information
Showing
19 changed files
with
363 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
faf-commons-data/src/main/java/com/faforever/commons/replay/ReplayContainer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
package com.faforever.commons.replay; | ||
|
||
public record ReplayContainer(ReplayMetadata metadata, ReplayBinaryFormat.BinarySCFA replay) { | ||
import com.faforever.commons.replay.body.Body; | ||
import com.faforever.commons.replay.header.Header; | ||
|
||
public record ReplayContainer(ReplayMetadata metadata, Header header, Body body, byte[] bytes) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
faf-commons-data/src/main/java/com/faforever/commons/replay/body/Body.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.faforever.commons.replay.body; | ||
|
||
import com.faforever.commons.replay.body.parse.Event; | ||
|
||
import java.util.List; | ||
|
||
public record Body(List<Event> events) { | ||
} |
13 changes: 0 additions & 13 deletions
13
faf-commons-data/src/main/java/com/faforever/commons/replay/body/event/LuaData.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.