C# Class OSUplayer.Core

ファイルを表示 Open project: Troogle/OSUplayer

Public Properties

Property Type Description
Allsets BeatmapSet>.Dictionary
Collections List>.Dictionary
CurrentListName string
MainIsVisible bool
Scores List>.Dictionary
Scoresearched bool

Public Methods

Method Description
Exit ( ) : void
GetNext ( ) : int

获得下一首音乐

GetPrev ( ) : int
Getdetail ( int index ) : System.Windows.Forms.ListViewItem
Getscore ( ) : IEnumerable
Init ( IntPtr shandle, Size ssize ) : void

全局初始化

LoadPreference ( ) : void

载入设置

PauseOrResume ( ) : void
Play ( ) : void
RefreashSet ( ) : void
Remove ( int index ) : void
Remove ( string key ) : void
Resize ( Size size ) : void
Search ( string k ) : void
Seek ( double time ) : void
SetBG ( ) : void
SetHistory ( bool front = false, bool back = false, bool init = false ) : void
SetMap ( int value, bool p = false ) : bool
SetPlayerSpeed ( bool nc, int speed ) : void
SetQQ ( bool show = true ) : void

设置QQ

SetSet ( int value, bool p = false ) : bool
SetVolume ( int set, int volume ) : void
Setpath ( ) : bool

设置路径

Stop ( ) : void
Tmp2Current ( bool set ) : void

Private Methods

Method Description
Getpath ( ) : void

获取OSU路径

Initplaylist ( ) : void

初始化播放列表,初始时与Set一一对应

Initset ( ) : void

初始化Set的总方法,从文件读取或从osu!.db读取

Render ( object sender ) : void

Method Details

Exit() public static method

public static Exit ( ) : void
return void

GetNext() public static method

获得下一首音乐
public static GetNext ( ) : int
return int

GetPrev() public static method

public static GetPrev ( ) : int
return int

Getdetail() public static method

public static Getdetail ( int index ) : System.Windows.Forms.ListViewItem
index int
return System.Windows.Forms.ListViewItem

Getscore() public static method

public static Getscore ( ) : IEnumerable
return IEnumerable

Init() public static method

全局初始化
public static Init ( IntPtr shandle, Size ssize ) : void
shandle System.IntPtr 显示区域的handle
ssize System.Drawing.Size 显示区域的大小
return void

LoadPreference() public static method

载入设置
public static LoadPreference ( ) : void
return void

PauseOrResume() public static method

public static PauseOrResume ( ) : void
return void

Play() public static method

public static Play ( ) : void
return void

RefreashSet() public static method

public static RefreashSet ( ) : void
return void

Remove() public static method

public static Remove ( int index ) : void
index int
return void

Remove() public static method

public static Remove ( string key ) : void
key string
return void

Resize() public static method

public static Resize ( Size size ) : void
size System.Drawing.Size
return void

Search() public static method

public static Search ( string k ) : void
k string
return void

Seek() public static method

public static Seek ( double time ) : void
time double
return void

SetBG() public static method

public static SetBG ( ) : void
return void

SetHistory() public static method

public static SetHistory ( bool front = false, bool back = false, bool init = false ) : void
front bool
back bool
init bool
return void

SetMap() public static method

public static SetMap ( int value, bool p = false ) : bool
value int
p bool
return bool

SetPlayerSpeed() public static method

public static SetPlayerSpeed ( bool nc, int speed ) : void
nc bool
speed int
return void

SetQQ() public static method

设置QQ
public static SetQQ ( bool show = true ) : void
show bool 是否显示设置窗口
return void

SetSet() public static method

public static SetSet ( int value, bool p = false ) : bool
value int
p bool
return bool

SetVolume() public static method

public static SetVolume ( int set, int volume ) : void
set int
volume int
return void

Setpath() public static method

设置路径
public static Setpath ( ) : bool
return bool

Stop() public static method

public static Stop ( ) : void
return void

Tmp2Current() public static method

public static Tmp2Current ( bool set ) : void
set bool
return void

Property Details

Allsets public_oe static_oe property

程序中的所有set
public static Dictionary Allsets
return BeatmapSet>.Dictionary

Collections public_oe static_oe property

本地Collection,Key是Collection名字,Value是Set的程序内部编号的List
public static Dictionary> Collections
return List>.Dictionary

CurrentListName public_oe static_oe property

public static string CurrentListName
return string

MainIsVisible public_oe static_oe property

public static bool MainIsVisible
return bool

Scores public_oe static_oe property

本地成绩,Key是地图MD5,Value是Score
public static Dictionary> Scores
return List>.Dictionary

Scoresearched public_oe static_oe property

是否已经载入过本地成绩
public static bool Scoresearched
return bool