Skip to content

Commit

Permalink
Expose caravan meeting spot and auto select supplies status (#389)
Browse files Browse the repository at this point in the history
As the `meetingSpot` field needs to be re-assigned outside of constructor (passed by ref), it no longer can be readonly.

Co-authored-by: Sokyran <toCy&#$VIH$1cSOu8s&Fv@UVN%L3snN*H09$1^Xghq*hKo9Itnmq#bNf8Ld67#T$#a&cEaY1>
  • Loading branch information
SokyranTheDragon and Sokyran authored Jun 17, 2023
1 parent c7a673a commit 4a46899
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Client/Persistent/CaravanFormingSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class CaravanFormingSession : IExposable, ISessionWithTransferables, IPau
public int destinationTile = -1;
public List<TransferableOneWay> transferables;
public bool autoSelectTravelSupplies;
public readonly IntVec3? meetingSpot;
public IntVec3? meetingSpot;

public bool uiDirty;

Expand Down Expand Up @@ -162,6 +162,8 @@ public void ExposeData()
Scribe_Values.Look(ref mapAboutToBeRemoved, "mapAboutToBeRemoved");
Scribe_Values.Look(ref startingTile, "startingTile");
Scribe_Values.Look(ref destinationTile, "destinationTile");
Scribe_Values.Look(ref autoSelectTravelSupplies, "autoSelectTravelSupplies");
Scribe_Values.Look(ref meetingSpot, "meetingSpot");

Scribe_Collections.Look(ref transferables, "transferables", LookMode.Deep);
}
Expand Down

0 comments on commit 4a46899

Please sign in to comment.