C# Class OSUplayer.Core

Afficher le fichier Open project: Troogle/OSUplayer

Méthodes publiques

Свойство Type Description
Allsets BeatmapSet>.Dictionary
Collections List>.Dictionary
CurrentListName string
MainIsVisible bool
Scores List>.Dictionary
Scoresearched bool

Méthodes publiques

Méthode 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

Méthode Description
Getpath ( ) : void

获取OSU路径

Initplaylist ( ) : void

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

Initset ( ) : void

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

Render ( object sender ) : void

Method Details

Exit() public static méthode

public static Exit ( ) : void
Résultat void

GetNext() public static méthode

获得下一首音乐
public static GetNext ( ) : int
Résultat int

GetPrev() public static méthode

public static GetPrev ( ) : int
Résultat int

Getdetail() public static méthode

public static Getdetail ( int index ) : System.Windows.Forms.ListViewItem
index int
Résultat System.Windows.Forms.ListViewItem

Getscore() public static méthode

public static Getscore ( ) : IEnumerable
Résultat IEnumerable

Init() public static méthode

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

LoadPreference() public static méthode

载入设置
public static LoadPreference ( ) : void
Résultat void

PauseOrResume() public static méthode

public static PauseOrResume ( ) : void
Résultat void

Play() public static méthode

public static Play ( ) : void
Résultat void

RefreashSet() public static méthode

public static RefreashSet ( ) : void
Résultat void

Remove() public static méthode

public static Remove ( int index ) : void
index int
Résultat void

Remove() public static méthode

public static Remove ( string key ) : void
key string
Résultat void

Resize() public static méthode

public static Resize ( Size size ) : void
size System.Drawing.Size
Résultat void

Search() public static méthode

public static Search ( string k ) : void
k string
Résultat void

Seek() public static méthode

public static Seek ( double time ) : void
time double
Résultat void

SetBG() public static méthode

public static SetBG ( ) : void
Résultat void

SetHistory() public static méthode

public static SetHistory ( bool front = false, bool back = false, bool init = false ) : void
front bool
back bool
init bool
Résultat void

SetMap() public static méthode

public static SetMap ( int value, bool p = false ) : bool
value int
p bool
Résultat bool

SetPlayerSpeed() public static méthode

public static SetPlayerSpeed ( bool nc, int speed ) : void
nc bool
speed int
Résultat void

SetQQ() public static méthode

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

SetSet() public static méthode

public static SetSet ( int value, bool p = false ) : bool
value int
p bool
Résultat bool

SetVolume() public static méthode

public static SetVolume ( int set, int volume ) : void
set int
volume int
Résultat void

Setpath() public static méthode

设置路径
public static Setpath ( ) : bool
Résultat bool

Stop() public static méthode

public static Stop ( ) : void
Résultat void

Tmp2Current() public static méthode

public static Tmp2Current ( bool set ) : void
set bool
Résultat void

Property Details

Allsets public_oe static_oe property

程序中的所有set
public static Dictionary Allsets
Résultat BeatmapSet>.Dictionary

Collections public_oe static_oe property

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

CurrentListName public_oe static_oe property

public static string CurrentListName
Résultat string

MainIsVisible public_oe static_oe property

public static bool MainIsVisible
Résultat bool

Scores public_oe static_oe property

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

Scoresearched public_oe static_oe property

是否已经载入过本地成绩
public static bool Scoresearched
Résultat bool