mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Avoid unnecessary casts
This commit is contained in:
parent
4ee8224f8b
commit
879b1ab046
@ -10,6 +10,7 @@ using osu.Framework.Utils;
|
|||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Rulesets;
|
using osu.Game.Rulesets;
|
||||||
using osu.Game.Tests.Visual;
|
using osu.Game.Tests.Visual;
|
||||||
|
using osu.Game.Tournament.IO;
|
||||||
using osu.Game.Tournament.IPC;
|
using osu.Game.Tournament.IPC;
|
||||||
using osu.Game.Tournament.Models;
|
using osu.Game.Tournament.Models;
|
||||||
using osu.Game.Users;
|
using osu.Game.Users;
|
||||||
@ -28,7 +29,7 @@ namespace osu.Game.Tournament.Tests
|
|||||||
protected MatchIPCInfo IPCInfo { get; private set; } = new MatchIPCInfo();
|
protected MatchIPCInfo IPCInfo { get; private set; } = new MatchIPCInfo();
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(Storage storage)
|
private void load(TournamentStorage storage)
|
||||||
{
|
{
|
||||||
Ladder.Ruleset.Value ??= rulesetStore.AvailableRulesets.First();
|
Ladder.Ruleset.Value ??= rulesetStore.AvailableRulesets.First();
|
||||||
|
|
||||||
|
@ -29,10 +29,9 @@ namespace osu.Game.Tournament.Models
|
|||||||
|
|
||||||
private readonly Storage configStorage;
|
private readonly Storage configStorage;
|
||||||
|
|
||||||
public StableInfo(Storage storage)
|
public StableInfo(TournamentStorage storage)
|
||||||
{
|
{
|
||||||
TournamentStorage tStorage = (TournamentStorage)storage;
|
configStorage = storage.AllTournaments;
|
||||||
configStorage = tStorage.AllTournaments;
|
|
||||||
|
|
||||||
if (!configStorage.Exists(config_path))
|
if (!configStorage.Exists(config_path))
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user