- Modified item buying logic: selected items are purchased immediately without having to click the "buy" button, and they stay in the list of purchased items until the round is started. (-> It's possible to see which items have been purchased and cancel purchases).
- Clients can be given a permission to manage the campaign (atm selecting which location to head towards and buying items). - Syncing cargomanager state with clients. - Misc fixes.
This commit is contained in:
@@ -29,6 +29,7 @@ namespace Barotrauma
|
||||
private LocationConnection selectedConnection;
|
||||
|
||||
public Action<Location, LocationConnection> OnLocationSelected;
|
||||
public Action<Location> OnLocationChanged;
|
||||
|
||||
public Location CurrentLocation
|
||||
{
|
||||
@@ -350,6 +351,8 @@ namespace Barotrauma
|
||||
currentLocation = selectedLocation;
|
||||
currentLocation.Discovered = true;
|
||||
selectedLocation = null;
|
||||
|
||||
OnLocationChanged?.Invoke(currentLocation);
|
||||
}
|
||||
|
||||
public void SetLocation(int index)
|
||||
@@ -368,6 +371,8 @@ namespace Barotrauma
|
||||
|
||||
currentLocation = locations[index];
|
||||
currentLocation.Discovered = true;
|
||||
|
||||
OnLocationChanged?.Invoke(currentLocation);
|
||||
}
|
||||
|
||||
public void SelectLocation(int index)
|
||||
|
||||
Reference in New Issue
Block a user