mirror of
https://github.com/osukey/osukey.git
synced 2025-05-20 21:17:32 +09:00
Add a few nullabilities and DCC excludes
This commit is contained in:
parent
e468bfb31c
commit
cf10239e70
@ -4,6 +4,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using osu.Game.Models;
|
using osu.Game.Models;
|
||||||
|
|
||||||
|
#nullable enable
|
||||||
|
|
||||||
namespace osu.Game.Database
|
namespace osu.Game.Database
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -3,15 +3,17 @@
|
|||||||
|
|
||||||
using osu.Game.Models;
|
using osu.Game.Models;
|
||||||
|
|
||||||
|
#nullable enable
|
||||||
|
|
||||||
namespace osu.Game.Database
|
namespace osu.Game.Database
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represent a join model which gives a filename and scope to a <see cref="File"/>.
|
/// Represents a join model which gives a filename and scope to a <see cref="File"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface INamedFile
|
public interface INamedFile
|
||||||
{
|
{
|
||||||
public string Filename { get; set; }
|
string Filename { get; set; }
|
||||||
|
|
||||||
public RealmFile File { get; set; }
|
RealmFile File { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using osu.Framework.Testing;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using Realms;
|
using Realms;
|
||||||
|
|
||||||
@ -8,6 +9,7 @@ using Realms;
|
|||||||
|
|
||||||
namespace osu.Game.Models
|
namespace osu.Game.Models
|
||||||
{
|
{
|
||||||
|
[ExcludeFromDynamicCompile]
|
||||||
[MapTo("BeatmapDifficulty")]
|
[MapTo("BeatmapDifficulty")]
|
||||||
public class RealmBeatmapDifficulty : EmbeddedObject, IBeatmapDifficultyInfo
|
public class RealmBeatmapDifficulty : EmbeddedObject, IBeatmapDifficultyInfo
|
||||||
{
|
{
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using osu.Framework.Testing;
|
||||||
using osu.Game.IO;
|
using osu.Game.IO;
|
||||||
using Realms;
|
using Realms;
|
||||||
|
|
||||||
@ -9,6 +10,7 @@ using Realms;
|
|||||||
|
|
||||||
namespace osu.Game.Models
|
namespace osu.Game.Models
|
||||||
{
|
{
|
||||||
|
[ExcludeFromDynamicCompile]
|
||||||
[MapTo("File")]
|
[MapTo("File")]
|
||||||
public class RealmFile : RealmObject, IFileInfo
|
public class RealmFile : RealmObject, IFileInfo
|
||||||
{
|
{
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
|
using osu.Framework.Testing;
|
||||||
using osu.Game.Database;
|
using osu.Game.Database;
|
||||||
using osu.Game.IO;
|
using osu.Game.IO;
|
||||||
using Realms;
|
using Realms;
|
||||||
@ -10,6 +11,7 @@ using Realms;
|
|||||||
|
|
||||||
namespace osu.Game.Models
|
namespace osu.Game.Models
|
||||||
{
|
{
|
||||||
|
[ExcludeFromDynamicCompile]
|
||||||
public class RealmNamedFileUsage : EmbeddedObject, INamedFile, INamedFileUsage
|
public class RealmNamedFileUsage : EmbeddedObject, INamedFile, INamedFileUsage
|
||||||
{
|
{
|
||||||
public RealmFile File { get; set; } = null!;
|
public RealmFile File { get; set; } = null!;
|
||||||
|
@ -8,6 +8,7 @@ using osu.Framework.Extensions;
|
|||||||
using osu.Framework.IO.Stores;
|
using osu.Framework.IO.Stores;
|
||||||
using osu.Framework.Logging;
|
using osu.Framework.Logging;
|
||||||
using osu.Framework.Platform;
|
using osu.Framework.Platform;
|
||||||
|
using osu.Framework.Testing;
|
||||||
using osu.Game.Database;
|
using osu.Game.Database;
|
||||||
using osu.Game.Models;
|
using osu.Game.Models;
|
||||||
using Realms;
|
using Realms;
|
||||||
@ -19,6 +20,7 @@ namespace osu.Game.Stores
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Handles the storing of files to the file system (and database) backing.
|
/// Handles the storing of files to the file system (and database) backing.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[ExcludeFromDynamicCompile]
|
||||||
public class RealmFileStore
|
public class RealmFileStore
|
||||||
{
|
{
|
||||||
private readonly RealmContextFactory realmFactory;
|
private readonly RealmContextFactory realmFactory;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user