Skip to content

Commit dce96cc

Browse files
Cherry-pick upstream PR rwmt#528: sync colonist bar reordering
From rwmt#528 (commit 3621e54): - Synchronize colonist bar reordering via SyncDelegate
1 parent 94dd114 commit dce96cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/Client/Syncing/Game/SyncDelegates.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ public static void Init()
280280
SyncDelegate.Lambda(typeof(Pawn_TrainingTracker), nameof(Pawn_TrainingTracker.GetGizmos), 0, fields: [SyncDelegate.DelegateThis, "master"]).SetContext(SyncContext.MapSelected).CancelIfNoSelectedMapObjects(); // Force attack target
281281
SyncDelegate.Lambda(typeof(Pawn_TrainingTracker), nameof(Pawn_TrainingTracker.GetGizmos), 3).SetContext(SyncContext.MapSelected).CancelIfNoSelectedMapObjects(); // Cancel attacking target
282282

283+
// Colonist bar reordering
284+
SyncDelegate.Lambda(typeof(ColonistBar.Entry), null, lambdaOrdinal: 0, parentMethodType: MethodType.Constructor, parentArgs: [typeof(Pawn), typeof(Map), typeof(int)]);
285+
283286
InitRituals();
284287
InitChoiceLetters();
285288
InitDevTools();

0 commit comments

Comments
 (0)