Skip to content

Commit

Permalink
Light -> Small rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Sep 8, 2024
1 parent b3b49ec commit 3e35539
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public override string ToString()
{
PrintMastersList(sb, separated.Medium, nameof(SeparatedMasterPackage.Medium));
}
if (separated.Light.Count > 0)
if (separated.Small.Count > 0)
{
PrintMastersList(sb, separated.Light, nameof(SeparatedMasterPackage.Light));
PrintMastersList(sb, separated.Small, nameof(SeparatedMasterPackage.Small));
}
}

Expand Down
12 changes: 6 additions & 6 deletions Mutagen.Bethesda.Core/Plugins/Masters/SeparatedMasterPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public class SeparatedMasterPackage : IReadOnlySeparatedMasterPackage
internal record MasterStyleIndex(uint Index, MasterStyle Style);

public IReadOnlyList<ModKey> Full { get; private set; } = null!;
public IReadOnlyList<ModKey> Light { get; private set; } = null!;
public IReadOnlyList<ModKey> Medium { get; private set; } = null!;
public IReadOnlyList<ModKey> Small { get; private set; } = null!;
public ModKey CurrentMod { get; private set; }
public IReadOnlyMasterReferenceCollection Raw { get; private set; } = null!;

Expand Down Expand Up @@ -155,7 +155,7 @@ internal static IReadOnlySeparatedMasterPackage Separate(
{
var normal = new List<ModKey>();
var medium = new List<ModKey>();
var light = new List<ModKey>();
var small = new List<ModKey>();

void AddToList(IModMasterFlagsGetter mod, ModKey modKey)
{
Expand All @@ -181,7 +181,7 @@ void AddToListViaStyle(MasterStyle style, ModKey modKey)
normal.Add(modKey);
break;
case MasterStyle.Small:
light.Add(modKey);
small.Add(modKey);
break;
case MasterStyle.Medium:
medium.Add(modKey);
Expand Down Expand Up @@ -231,13 +231,13 @@ void AddToListViaStyle(MasterStyle style, ModKey modKey)
{
Full = normal,
Medium = medium,
Light = light,
Small = small,
Raw = masters,
CurrentMod = masters.CurrentMod,
};
var lookup = new Dictionary<ModKey, MasterStyleIndex>();
FillLookup(ret.Full, lookup, MasterStyle.Full);
FillLookup(ret.Light, lookup, MasterStyle.Small);
FillLookup(ret.Small, lookup, MasterStyle.Small);
FillLookup(ret.Medium, lookup, MasterStyle.Medium);
ret._lookup = lookup;
return ret;
Expand Down Expand Up @@ -297,7 +297,7 @@ private void ExtractFormIdInfo(
index = formId.LightMasterIndex;
id = formId.LightId;
style = MasterStyle.Small;
loadOrder = Light;
loadOrder = Small;
break;
}
case FormID.MediumMasterMarker:
Expand Down

0 comments on commit 3e35539

Please sign in to comment.