2 using System.Collections.Generic;
\r
8 internal class CAct演奏レーンフラッシュGB共通 : CActivity
\r
12 protected CCounter[] ct進行 = new CCounter[ 6 ];
\r
13 protected CTextureAf[] txFlush = new CTextureAf[ 6 ];
\r
18 public CAct演奏レーンフラッシュGB共通()
\r
20 base.b活性化してない = true;
\r
26 public void Start( int nLane )
\r
28 if( ( nLane < 0 ) || ( nLane > 6 ) )
\r
30 throw new IndexOutOfRangeException( "有効範囲は 0~6 です。" );
\r
32 this.ct進行[ nLane ] = new CCounter( 0, 100, 1, CDTXMania.Instance.Timer );
\r
38 public override void On活性化()
\r
40 for( int i = 0; i < 6; i++ )
\r
42 this.ct進行[ i ] = new CCounter();
\r
46 public override void On非活性化()
\r
48 for( int i = 0; i < 6; i++ )
\r
50 this.ct進行[ i ] = null;
\r
54 public override void OnManagedリソースの作成()
\r
56 if( !base.b活性化してない )
\r
58 this.txFlush[ 0 ] = TextureFactory.tテクスチャの生成Af( CSkin.Path( @"Graphics\ScreenPlay lane flush red.png" ) );
\r
59 this.txFlush[ 1 ] = TextureFactory.tテクスチャの生成Af( CSkin.Path( @"Graphics\ScreenPlay lane flush green.png" ) );
\r
60 this.txFlush[ 2 ] = TextureFactory.tテクスチャの生成Af( CSkin.Path( @"Graphics\ScreenPlay lane flush blue.png" ) );
\r
61 this.txFlush[ 3 ] = TextureFactory.tテクスチャの生成Af( CSkin.Path( @"Graphics\ScreenPlay lane flush red reverse.png" ) );
\r
62 this.txFlush[ 4 ] = TextureFactory.tテクスチャの生成Af( CSkin.Path( @"Graphics\ScreenPlay lane flush green reverse.png" ) );
\r
63 this.txFlush[ 5 ] = TextureFactory.tテクスチャの生成Af( CSkin.Path( @"Graphics\ScreenPlay lane flush blue reverse.png" ) );
\r
64 base.OnManagedリソースの作成();
\r
67 public override void OnManagedリソースの解放()
\r
69 if( !base.b活性化してない )
\r
71 for( int i = 0; i < 6; i++ )
\r
73 TextureFactory.tテクスチャの解放( ref this.txFlush[ i ] );
\r
75 base.OnManagedリソースの解放();
\r