/// <summary> /// Massファイルを読み込み、各変数に初期値を代入 /// </summary> /// <param name="mass"></param> internal Job(Mass mass) { this._mass = mass; this._logging = new Common.Logging("job.log"); _enablekeyF = new Dictionary <byte, bool>(); _enablekeyE = new Dictionary <byte, bool>(); for (byte key = 0x00; key <= 0xff; key++) { _enablekeyF.Add(key, false); _enablekeyE.Add(key, false); if (key == 0xff) { break; } } this._enableToggle = new Dictionary <int, bool>(); foreach (var t in mass.Toggles) { this._enableToggle.Add(t.Id, false); } if (_skillLayer == null) { _skillLayer = new SkillLayer(); _skillLayer.Show(); } this._barrageTaskCancelToken = new CancellationTokenSource(); Task.Run(() => BarrageLoop(), this._barrageTaskCancelToken.Token); IconUpdate(); }
/// <summary> /// Massファイルを読み込み、各変数に初期値を代入 /// </summary> /// <param name="mass"></param> internal Job( Mass mass ) { this._mass = mass; this._logging = new Common.Logging( "job.log" ); _enablekeyF = new Dictionary<byte, bool>(); _enablekeyE = new Dictionary<byte, bool>(); for( byte key = 0x00; key <= 0xff; key++ ) { _enablekeyF.Add( key, false ); _enablekeyE.Add( key, false ); if( key == 0xff ) { break; } } this._enableToggle = new Dictionary<int, bool>(); foreach( var t in mass.Toggles ) { this._enableToggle.Add( t.Id, false ); } if( _skillLayer == null ) { _skillLayer = new SkillLayer(); _skillLayer.Show(); } this._barrageTaskCancelToken = new CancellationTokenSource(); Task.Run( () => BarrageLoop(), this._barrageTaskCancelToken.Token ); IconUpdate(); }