public static void CloudUserSettings_PostDeserialize_Prefix(ref LastUsedLances ___lastUsedLances, ref SkirmishUnitsAndLances ___customUnitsAndLances) { // Always reset the skirmish lances after serialization. This prevents the ever-spinny from missing mod pieces. ___lastUsedLances = new LastUsedLances(); ___customUnitsAndLances = new SkirmishUnitsAndLances(); }
public static void Prefix( ref LastUsedLances ___lastUsedLances, ref SkirmishUnitsAndLances ___customUnitsAndLances) { // Always reset the skirmish lances after serialization. This prevents the ever-spinny from missing mod pieces. Mod.Log.Info?.Write("Resetting used lances and custom units after PostDeserialize call."); ___lastUsedLances = new LastUsedLances(); ___customUnitsAndLances = new SkirmishUnitsAndLances(); }