mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-17 21:17:44 +01:00
.
This commit is contained in:
parent
d1d369a56b
commit
65ce391051
19 changed files with 757 additions and 158 deletions
|
|
@ -45,11 +45,9 @@ public class ItemManager : IDisposable
|
|||
RestrictedGear.Dispose();
|
||||
}
|
||||
|
||||
|
||||
public (bool, CharacterArmor) ResolveRestrictedGear(CharacterArmor armor, EquipSlot slot, Race race, Gender gender)
|
||||
=> _config.UseRestrictedGearProtection ? RestrictedGear.ResolveRestricted(armor, slot, race, gender) : (false, armor);
|
||||
|
||||
|
||||
public static uint NothingId(EquipSlot slot)
|
||||
=> uint.MaxValue - 128 - (uint)slot.ToSlot();
|
||||
|
||||
|
|
|
|||
|
|
@ -51,9 +51,10 @@ public static class ServiceManager
|
|||
|
||||
private static IServiceCollection AddEvents(this IServiceCollection services)
|
||||
=> services.AddSingleton<VisorStateChanged>()
|
||||
.AddSingleton<UpdatedSlot>()
|
||||
.AddSingleton<SlotUpdating>()
|
||||
.AddSingleton<DesignChanged>()
|
||||
.AddSingleton<StateChanged>();
|
||||
.AddSingleton<StateChanged>()
|
||||
.AddSingleton<WeaponLoading>();
|
||||
|
||||
private static IServiceCollection AddData(this IServiceCollection services)
|
||||
=> services.AddSingleton<IdentifierService>()
|
||||
|
|
@ -75,7 +76,8 @@ public static class ServiceManager
|
|||
.AddSingleton<DesignFileSystem>();
|
||||
|
||||
private static IServiceCollection AddState(this IServiceCollection services)
|
||||
=> services.AddSingleton<StateManager>();
|
||||
=> services.AddSingleton<StateManager>()
|
||||
.AddSingleton<StateListener>();
|
||||
|
||||
private static IServiceCollection AddUi(this IServiceCollection services)
|
||||
=> services.AddSingleton<DebugTab>()
|
||||
|
|
@ -88,7 +90,8 @@ public static class ServiceManager
|
|||
.AddSingleton<CustomizationDrawer>()
|
||||
.AddSingleton<DesignFileSystemSelector>()
|
||||
.AddSingleton<DesignPanel>()
|
||||
.AddSingleton<DesignTab>();
|
||||
.AddSingleton<DesignTab>()
|
||||
.AddSingleton<PenumbraChangedItemTooltip>();
|
||||
|
||||
private static IServiceCollection AddApi(this IServiceCollection services)
|
||||
=> services.AddSingleton<CommandService>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue