-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from OsuSync/deliay/wip/lazer-pp-calc
Lazer Pp Calculator
- Loading branch information
Showing
46 changed files
with
573 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,19 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.1</TargetFramework> | ||
<LangVersion>8.0</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Autofac" Version="5.2.0" /> | ||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="6.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.5" /> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="3.1.5" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.5" /> | ||
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.5" /> | ||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="3.1.5" /> | ||
<PackageReference Include="System.Text.Json" Version="4.7.2" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Folder Include="Services\Statistic\Pattern\Lexical\" /> | ||
<Folder Include="Services\Statistic\Pattern\Parser\" /> | ||
</ItemGroup> | ||
|
||
</Project> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.1</TargetFramework> | ||
<LangVersion>8.0</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Autofac" Version="5.2.0" /> | ||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="6.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.5" /> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="3.1.5" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.5" /> | ||
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.5" /> | ||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="3.1.5" /> | ||
<PackageReference Include="System.Text.Json" Version="4.7.2" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
src/plugins/ExamplePlugin/Models/EventSubscription/BeatmapInfo.cs
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/plugins/ExamplePlugin/Models/EventSubscription/GameStatusInfo.cs
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/plugins/ExamplePlugin/Models/EventSubscription/MultiplayerBeatmapIdInfo.cs
This file was deleted.
Oops, something went wrong.
59 changes: 0 additions & 59 deletions
59
src/plugins/ExamplePlugin/Models/EventSubscription/PlayingInfo.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,58 @@ | ||
using Autofac; | ||
using EmberKernel.Services.Command; | ||
using EmberKernel.Services.Command.Attributes; | ||
using EmberKernel.Services.Command.Components; | ||
using EmberKernel; | ||
using EmberKernel.Plugins; | ||
using EmberKernel.Plugins.Attributes; | ||
using EmberKernel.Plugins.Components; | ||
using ExamplePlugin.Commands; | ||
using ExamplePlugin.Components; | ||
using ExamplePlugin.EventHandlers; | ||
using Microsoft.Extensions.Logging; | ||
using System; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using ExamplePlugin.Models.EventSubscription; | ||
using ExamplePlugin.Models; | ||
using EmberKernel.Services.UI.Mvvm.ViewModel.Configuration.Extension; | ||
|
||
namespace ExamplePlugin | ||
{ | ||
|
||
[EmberPlugin(Author = "ZeroAsh", Name = "ExamplePlugin", Version = "1.0")] | ||
public class MyPlugin : Plugin | ||
{ | ||
public override ValueTask Initialize(ILifetimeScope scope) | ||
{ | ||
scope.UseCommandContainer<MyCommandComponent>(); | ||
scope.Subscription<ExamplePluginPublishEvent, ExamplePluginPublishEventHandler>(); | ||
scope.Subscription<GameStatusInfo, MemoryReaderHandler>(); | ||
scope.Subscription<BeatmapInfo, MemoryReaderHandler>(); | ||
scope.Subscription<PlayingInfo, MemoryReaderHandler>(); | ||
scope.Subscription<MultiplayerBeatmapIdInfo, MemoryReaderHandler>(); | ||
scope.RegisterUIModel<MyPlugin, MyPluginConfiguration>(); | ||
return default; | ||
} | ||
|
||
public override ValueTask Uninitialize(ILifetimeScope scope) | ||
{ | ||
scope.RemoveCommandContainer<MyCommandComponent>(); | ||
scope.Unsubscription<ExamplePluginPublishEvent, ExamplePluginPublishEventHandler>(); | ||
scope.Unsubscription<GameStatusInfo, MemoryReaderHandler>(); | ||
scope.Unsubscription<BeatmapInfo, MemoryReaderHandler>(); | ||
scope.Unsubscription<PlayingInfo, MemoryReaderHandler>(); | ||
scope.Unsubscription<MultiplayerBeatmapIdInfo, MemoryReaderHandler>(); | ||
scope.UnregisterUIModel<MyPlugin, MyPluginConfiguration>(); | ||
return default; | ||
} | ||
|
||
public override void BuildComponents(IComponentBuilder builder) | ||
{ | ||
builder.UsePluginOptionsModel<MyPlugin, MyPluginConfiguration>(); | ||
builder.ConfigureUIModel<MyPlugin, MyPluginConfiguration>(); | ||
builder.ConfigureCommandContainer<MyCommandComponent>(); | ||
builder.ConfigureStaticEventHandler<MemoryReaderHandler>(); | ||
builder.ConfigureEventHandler<ExamplePluginPublishEvent, ExamplePluginPublishEventHandler>(); | ||
} | ||
|
||
} | ||
} | ||
using Autofac; | ||
using EmberKernel; | ||
using EmberKernel.Plugins; | ||
using EmberKernel.Plugins.Attributes; | ||
using EmberKernel.Plugins.Components; | ||
using EmberKernel.Services.UI.Mvvm.ViewModel.Configuration.Extension; | ||
using EmberMemoryReader.Abstract.Data; | ||
using ExamplePlugin.Components; | ||
using ExamplePlugin.EventHandlers; | ||
using ExamplePlugin.Models; | ||
using ExamplePlugin.Models.EventSubscription; | ||
using System.Threading.Tasks; | ||
|
||
namespace ExamplePlugin | ||
{ | ||
|
||
[EmberPlugin(Author = "ZeroAsh", Name = "ExamplePlugin", Version = "1.0")] | ||
public class MyPlugin : Plugin | ||
{ | ||
public override ValueTask Initialize(ILifetimeScope scope) | ||
{ | ||
scope.UseCommandContainer<MyCommandComponent>(); | ||
scope.Subscription<ExamplePluginPublishEvent, ExamplePluginPublishEventHandler>(); | ||
scope.Subscription<GameStatusInfo, MemoryReaderHandler>(); | ||
scope.Subscription<BeatmapInfo, MemoryReaderHandler>(); | ||
scope.Subscription<PlayingInfo, MemoryReaderHandler>(); | ||
scope.Subscription<MultiplayerBeatmapIdInfo, MemoryReaderHandler>(); | ||
scope.Subscription<GameModeInfo, MemoryReaderHandler>(); | ||
scope.Subscription<GlobalGameModeratorInfo, MemoryReaderHandler>(); | ||
scope.RegisterUIModel<MyPlugin, MyPluginConfiguration>(); | ||
return default; | ||
} | ||
|
||
public override ValueTask Uninitialize(ILifetimeScope scope) | ||
{ | ||
scope.RemoveCommandContainer<MyCommandComponent>(); | ||
scope.Unsubscription<ExamplePluginPublishEvent, ExamplePluginPublishEventHandler>(); | ||
scope.Unsubscription<GameStatusInfo, MemoryReaderHandler>(); | ||
scope.Unsubscription<BeatmapInfo, MemoryReaderHandler>(); | ||
scope.Unsubscription<PlayingInfo, MemoryReaderHandler>(); | ||
scope.Unsubscription<MultiplayerBeatmapIdInfo, MemoryReaderHandler>(); | ||
scope.Unsubscription<GameModeInfo, MemoryReaderHandler>(); | ||
scope.Unsubscription<GlobalGameModeratorInfo, MemoryReaderHandler>(); | ||
scope.UnregisterUIModel<MyPlugin, MyPluginConfiguration>(); | ||
return default; | ||
} | ||
|
||
public override void BuildComponents(IComponentBuilder builder) | ||
{ | ||
builder.UsePluginOptionsModel<MyPlugin, MyPluginConfiguration>(); | ||
builder.ConfigureUIModel<MyPlugin, MyPluginConfiguration>(); | ||
builder.ConfigureCommandContainer<MyCommandComponent>(); | ||
builder.ConfigureStaticEventHandler<MemoryReaderHandler>(); | ||
builder.ConfigureEventHandler<ExamplePluginPublishEvent, ExamplePluginPublishEventHandler>(); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
src/plugins/osu/BeatmapDownloader/Models/MultiplayerBeatmapIdInfo.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.