Skip to content

Commit

Permalink
Added comment for method
Browse files Browse the repository at this point in the history
  • Loading branch information
Wulfheart authored and zond committed Dec 15, 2020
1 parent ceee84c commit 9dad40b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ func (self *State) Next() (err error) {
return
}

// PreviouslyAppliedOrders contains all the orders which were applied during the processing of state.Next().
// If it is empty there are no previous orders yet as you probably have not run state.Next() or instantiated the state otherwise.
// Note that the orders specified here do not necessarily succeed. Again: This function only lists the orders which were applied during the processing of state.Next().
func (self *State) PreviouslyAppliedOrders() map[godip.Province]godip.Adjudicator{
return self.previouslyAppliedOrders
}
Expand Down

0 comments on commit 9dad40b

Please sign in to comment.