-
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.
Process and parse elements in the replay header (#148)
* Parse the player options from Lua * Add parsing of a mod * Revert the name change on the Lua data type * Read out the scenario information * First batch of primary options * Rename the options fields to make their purpose more clear * Undo accidental changes * Remove accidental replacements * Rename the `toMap` function to improve our sanity
- Loading branch information
Showing
10 changed files
with
315 additions
and
51 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
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
9 changes: 9 additions & 0 deletions
9
faf-commons-data/src/main/java/com/faforever/commons/replay/header/GameScenario.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,9 @@ | ||
package com.faforever.commons.replay.header; | ||
|
||
import java.util.Map; | ||
|
||
public record GameScenario(String mapPath, Integer mapVersion, String mapDescription, String mapScript, String mapSave, | ||
String mapName, Integer mapSizeX, Integer mapSizeZ, Integer reclaimMassValue, | ||
Integer reclaimEnergyValue, GameOptions gameOptions, | ||
Map<String, String> modOptions) { | ||
} |
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.