mirror of
https://github.com/ppy/osu.git
synced 2024-11-08 08:37:40 +08:00
29 lines
736 B
C#
29 lines
736 B
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using System;
|
|
using osu.Framework.Platform;
|
|
using osu.Game.Database;
|
|
using SQLite.Net;
|
|
|
|
namespace osu.Game.Input
|
|
{
|
|
public class BindingStore : DatabaseBackedStore
|
|
{
|
|
public BindingStore(SQLiteConnection connection, Storage storage = null)
|
|
: base(connection, storage)
|
|
{
|
|
}
|
|
|
|
protected override void Prepare(bool reset = false)
|
|
{
|
|
Connection.CreateTable<Binding>();
|
|
}
|
|
|
|
protected override Type[] ValidTypes => new[]
|
|
{
|
|
typeof(Binding)
|
|
};
|
|
|
|
}
|
|
} |