Skip to content

Commit

Permalink
Merge pull request #147 from andy840119/update-package
Browse files Browse the repository at this point in the history
Update ppy.game
  • Loading branch information
andy840119 authored Jul 26, 2020
2 parents 1cd3fce + b7bf0ea commit 8fe4077
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
</PropertyGroup>
<ItemGroup Label="Package References">
<PackageReference Include="Appveyor.TestLogger" Version="2.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Update="Microsoft.EntityFrameworkCore.Sqlite" Version="2.1.4" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ public KaraokeFramedReplayInputHandler(Replay replay)

protected override bool IsImportant(KaraokeReplayFrame frame) => frame.Sound;

public override List<IInput> GetPendingInputs() => new List<IInput>
public override void CollectPendingInputs(List<IInput> inputs)
{
new ReplayState<KaraokeSaitenAction>
{
inputs.Add(new ReplayState<KaraokeSaitenAction> {
PressedActions = CurrentFrame?.Sound ?? false
? new List<KaraokeSaitenAction>
{
Expand All @@ -30,7 +29,7 @@ public KaraokeFramedReplayInputHandler(Replay replay)
}
}
: new List<KaraokeSaitenAction>()
}
};
});
}
}
}
3 changes: 2 additions & 1 deletion osu.Game.Rulesets.Karaoke/Skinning/KaraokeInternalSkin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using osu.Framework.Audio.Sample;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.OpenGL.Textures;
using osu.Framework.Graphics.Textures;
using osu.Game.Audio;
using osu.Game.IO;
Expand Down Expand Up @@ -45,7 +46,7 @@ public KaraokeInternalSkin()

public SampleChannel GetSample(ISampleInfo sampleInfo) => null;

public Texture GetTexture(string componentName) => null;
public Texture GetTexture(string componentName, WrapMode wrapModeS, WrapMode wrapModeT) => null;

public IBindable<TValue> GetConfig<TLookup, TValue>(TLookup lookup)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

namespace osu.Game.Rulesets.Karaoke.Skinning
{
public class KaraokeLegacySkinTransformer : ISkin
public class KaraokeLegacySkinTransformer : LegacySkinTransformer
{
private readonly ISkin source;

Expand All @@ -34,6 +34,7 @@ public class KaraokeLegacySkinTransformer : ISkin
private Lazy<bool> isLegacySkin;

public KaraokeLegacySkinTransformer(ISkinSource source)
: base(source)
{
this.source = source;

Expand Down Expand Up @@ -73,7 +74,7 @@ private void sourceChanged()
isLegacySkin = new Lazy<bool>(() => source?.GetConfig<LegacySkinConfiguration.LegacySetting, decimal>(LegacySkinConfiguration.LegacySetting.Version) != null);
}

public Drawable GetDrawableComponent(ISkinComponent component)
public override Drawable GetDrawableComponent(ISkinComponent component)
{
if (!(component is KaraokeSkinComponent karaokeComponent))
return null;
Expand Down Expand Up @@ -126,11 +127,7 @@ private bool textureExist(params string[] textureNames)
private bool animationExist(params string[] textureNames)
=> textureNames.All(x => source.GetAnimation(x, true, false) != null);

public Texture GetTexture(string componentName) => source.GetTexture(componentName);

public SampleChannel GetSample(ISampleInfo sample) => source.GetSample(sample);

public IBindable<TValue> GetConfig<TLookup, TValue>(TLookup lookup)
public override IBindable<TValue> GetConfig<TLookup, TValue>(TLookup lookup)
{
switch (lookup)
{
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ItemGroup>
<PackageReference Include="Octokit" Version="0.48.0" />
<PackageReference Include="osu.Framework.Microphone" Version="1.0.10" />
<PackageReference Include="ppy.osu.Game" Version="2020.710.0" />
<PackageReference Include="ppy.osu.Game" Version="2020.725.0" />
<PackageReference Include="LyricMaker" Version="1.1.1" />
<PackageReference Include="NicoKaraParser" Version="1.1.0" />
<PackageReference Include="osu.KaraokeFramework" Version="1.2.1" />
Expand Down

0 comments on commit 8fe4077

Please sign in to comment.