2 using System.Collections.Generic;
\r
4 using System.Runtime.InteropServices;
\r
12 public STScoreIni情報 ScoreIni情報;
\r
13 [StructLayout( LayoutKind.Sequential )]
\r
14 public struct STScoreIni情報
\r
16 public DateTime 最終更新日時;
\r
17 public long ファイルサイズ;
\r
19 public STScoreIni情報( DateTime 最終更新日時, long ファイルサイズ )
\r
21 this.最終更新日時 = 最終更新日時;
\r
22 this.ファイルサイズ = ファイルサイズ;
\r
26 public STファイル情報 ファイル情報;
\r
27 [StructLayout( LayoutKind.Sequential )]
\r
28 public struct STファイル情報
\r
30 public string ファイルの絶対パス;
\r
31 public string フォルダの絶対パス;
\r
32 public DateTime 最終更新日時;
\r
33 public long ファイルサイズ;
\r
35 public STファイル情報( string ファイルの絶対パス, string フォルダの絶対パス, DateTime 最終更新日時, long ファイルサイズ )
\r
37 this.ファイルの絶対パス = ファイルの絶対パス;
\r
38 this.フォルダの絶対パス = フォルダの絶対パス;
\r
39 this.最終更新日時 = 最終更新日時;
\r
40 this.ファイルサイズ = ファイルサイズ;
\r
45 [StructLayout( LayoutKind.Sequential )]
\r
46 public struct ST譜面情報
\r
49 public string アーティスト名;
\r
52 public string Preimage;
\r
53 public string Premovie;
\r
54 public string Presound;
\r
55 public string Backgound;
\r
56 public STDGBVALUE<int> レベル;
\r
57 public STRANK 最大ランク;
\r
58 public STSKILL 最大スキル;
\r
59 public STDGBVALUE<bool> フルコンボ;
\r
60 public STDGBVALUE<int> 演奏回数;
\r
61 public STHISTORY 演奏履歴;
\r
62 public bool レベルを非表示にする;
\r
63 public CDTX.E種別 曲種別;
\r
65 [StructLayout( LayoutKind.Sequential )]
\r
66 public struct STHISTORY
\r
73 public string this[ int index ]
\r
94 throw new IndexOutOfRangeException();
\r
120 throw new IndexOutOfRangeException();
\r
125 [StructLayout( LayoutKind.Sequential )]
\r
126 public struct STRANK
\r
131 public int this[ int index ]
\r
141 return this.Guitar;
\r
146 throw new IndexOutOfRangeException();
\r
150 if ( ( value < (int)CScoreIni.ERANK.SS ) || ( ( value != (int)CScoreIni.ERANK.UNKNOWN ) && ( value > (int)CScoreIni.ERANK.E ) ) )
\r
152 throw new ArgumentOutOfRangeException();
\r
157 this.Drums = value;
\r
161 this.Guitar = value;
\r
168 throw new IndexOutOfRangeException();
\r
173 [StructLayout( LayoutKind.Sequential )]
\r
174 public struct STSKILL
\r
176 public double Drums;
\r
177 public double Guitar;
\r
178 public double Bass;
\r
179 public double this[ int index ]
\r
189 return this.Guitar;
\r
194 throw new IndexOutOfRangeException();
\r
198 if( ( value < 0.0 ) || ( value > 100.0 ) )
\r
200 throw new ArgumentOutOfRangeException();
\r
205 this.Drums = value;
\r
209 this.Guitar = value;
\r
216 throw new IndexOutOfRangeException();
\r
222 public bool bSongDBにキャッシュがあった;
\r
223 public bool bスコアが有効である
\r
227 return ( ( ( this.譜面情報.レベル[ 0 ] + this.譜面情報.レベル[ 1 ] ) + this.譜面情報.レベル[ 2 ] ) != 0 );
\r
236 this.ScoreIni情報 = new STScoreIni情報( DateTime.MinValue, 0L );
\r
237 this.bSongDBにキャッシュがあった = false;
\r
238 this.ファイル情報 = new STファイル情報( "", "", DateTime.MinValue, 0L );
\r
239 this.譜面情報 = new ST譜面情報();
\r
240 this.譜面情報.タイトル = "";
\r
241 this.譜面情報.アーティスト名 = "";
\r
242 this.譜面情報.コメント = "";
\r
243 this.譜面情報.ジャンル = "";
\r
244 this.譜面情報.Preimage = "";
\r
245 this.譜面情報.Premovie = "";
\r
246 this.譜面情報.Presound = "";
\r
247 this.譜面情報.Backgound = "";
\r
248 this.譜面情報.レベル = new STDGBVALUE<int>();
\r
249 this.譜面情報.最大ランク = new ST譜面情報.STRANK();
\r
250 this.譜面情報.最大ランク.Drums = (int)CScoreIni.ERANK.UNKNOWN;
\r
251 this.譜面情報.最大ランク.Guitar = (int)CScoreIni.ERANK.UNKNOWN;
\r
252 this.譜面情報.最大ランク.Bass = (int)CScoreIni.ERANK.UNKNOWN;
\r
253 this.譜面情報.フルコンボ = new STDGBVALUE<bool>();
\r
254 this.譜面情報.演奏回数 = new STDGBVALUE<int>();
\r
255 this.譜面情報.演奏履歴 = new ST譜面情報.STHISTORY();
\r
256 this.譜面情報.演奏履歴.行1 = "";
\r
257 this.譜面情報.演奏履歴.行2 = "";
\r
258 this.譜面情報.演奏履歴.行3 = "";
\r
259 this.譜面情報.演奏履歴.行4 = "";
\r
260 this.譜面情報.演奏履歴.行5 = "";
\r
261 this.譜面情報.レベルを非表示にする = false;
\r
262 this.譜面情報.最大スキル = new ST譜面情報.STSKILL();
\r
263 this.譜面情報.曲種別 = CDTX.E種別.DTX;
\r