-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now writes overlay data for Lightfall Qualifiers.
- Loading branch information
1 parent
a4de118
commit 539a7fb
Showing
4 changed files
with
43 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,3 +123,6 @@ gradle-app.setting | |
|
||
# Cache of project | ||
.gradletasknamecache | ||
|
||
|
||
current_match.json |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
24 changes: 24 additions & 0 deletions
24
src/dk/aau/cs/ds306e18/tournament/utility/OverlayData.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,24 @@ | ||
package dk.aau.cs.ds306e18.tournament.utility; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import dk.aau.cs.ds306e18.tournament.rlbot.configuration.BotConfig; | ||
|
||
/** | ||
* A data class for the RLBot's current OBS overlay script | ||
*/ | ||
public class OverlayData { | ||
|
||
@SerializedName("division") | ||
private final int division = 0; // Not used | ||
|
||
@SerializedName("blue_config_path") | ||
private final String blueConfig; | ||
|
||
@SerializedName("orange_config_path") | ||
private final String orangeConfig; | ||
|
||
public OverlayData(BotConfig blueConfig, BotConfig orangeConfig) { | ||
this.blueConfig = blueConfig.getConfigFile().getAbsolutePath(); | ||
this.orangeConfig = orangeConfig.getConfigFile().getAbsolutePath(); | ||
} | ||
} |