Change imc handling in caches slightly.

This commit is contained in:
Ottermandias 2023-06-13 16:01:38 +02:00
parent 03cb88be10
commit 636f14a06d
4 changed files with 62 additions and 54 deletions

View file

@ -47,7 +47,11 @@ public partial class ModCollection
/// Count the number of changes of the effective file list.
/// This is used for material and imc changes.
/// </summary>
public int ChangeCounter { get; internal set; }
public int ChangeCounter { get; private set; }
/// <summary> Increment the number of changes in the effective file list. </summary>
public int IncrementCounter()
=> ++ChangeCounter;
/// <summary>
/// If a ModSetting is null, it can be inherited from other collections.