Skip to content

Commit

Permalink
Force - add doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
WeaverThree committed Oct 20, 2024
1 parent b947336 commit d1690ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MekHQ/src/mekhq/campaign/force/Force.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ public int getScenarioId() {
return scenarioId;
}

/**
* Set scenario ID (e.g. deploy to scenario) for a force and all of its subforces and units
* @param scenarioId scenario to deploy to
* @param campaign campaign - required to update units
*/
public void setScenarioId(int scenarioId, Campaign campaign) {
this.scenarioId = scenarioId;
for (Force sub : getSubForces()) {
Expand Down

0 comments on commit d1690ef

Please sign in to comment.