public override void ApplyOverride(IGenericLevelOption paramOption, OverrideStyle style) { if ((style & OverrideStyle.MergeSet) == OverrideStyle.MergeSet) { ResetToDefaultOption option = paramOption as ResetToDefaultOption; foreach (GenericOptionBase.DefaultableOption member in option.Value) { member.Clear(Manager); } } }
public override void ApplyOverride(IGenericLevelOption paramOption, OverrideStyle style) { if ((style & OverrideStyle.MergeSet) == OverrideStyle.MergeSet) { AccountingData value = Value; if (value == null) { return; } string result = Manager.House.Name; result += Common.NewLine + value.ToString(); int assets = GetValue <AssetsOption, int>(); int debt = GetValue <DebtOption, int>(); result += Common.NewLine + StoryProgression.Localize("Accounting:Assets", false, new object[] { assets }); result += Common.NewLine + StoryProgression.Localize("Accounting:Debts", false, new object[] { debt }); Common.Notify(result); } }