1
This commit is contained in:
@@ -34,9 +34,12 @@ namespace Net.Like.Xue.Tokyo
|
||||
serviceCollection.AddSingleton<UXMenu>();
|
||||
serviceCollection.AddSingleton<UXLevel>();
|
||||
serviceCollection.AddSingleton<UXHud>();
|
||||
serviceCollection.AddSingleton<UXMap>();
|
||||
serviceCollection.AddSingleton<IUXMap,UXMap>();
|
||||
serviceCollection.AddSingleton<IUXCosmetics, UXCosmetics<UXMenu>>();
|
||||
|
||||
serviceCollection.AddKeyedSingleton<IUXMap, UXMap<UXHud>>(nameof(UXHud));
|
||||
serviceCollection.AddKeyedSingleton<IUXMap, UXMap<IUXMap>>(nameof(UXMap));
|
||||
|
||||
serviceCollection.AddSingleton<IUXBuyStation, UXBuyStation>();
|
||||
|
||||
serviceCollection.AddSingleton<IUXInventory, UXInventory<UXHud>>();
|
||||
@@ -71,6 +74,9 @@ namespace Net.Like.Xue.Tokyo
|
||||
serviceProvider.GetRequiredService<IUXCosmetics>();
|
||||
|
||||
serviceProvider.GetRequiredService<IUXBuyStation>();
|
||||
|
||||
serviceProvider.GetRequiredKeyedService<IUXMap>(nameof(UXHud));
|
||||
serviceProvider.GetRequiredKeyedService<IUXMap>(nameof(UXMap));
|
||||
|
||||
var inventory = serviceProvider.GetRequiredService<IUXInventory>();
|
||||
inventory.AutoInspect = ItemQuality.Develop;
|
||||
@@ -82,7 +88,10 @@ namespace Net.Like.Xue.Tokyo
|
||||
|
||||
Application.targetFrameRate = 165;
|
||||
|
||||
BITApp.WalkUntilInitialize.TrySetResult();
|
||||
await destroyCancellationToken.WaitUntilCanceled();
|
||||
|
||||
BITApp.WalkUntilInitialize = new();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user