public static void recordBuffState(BattleBuffRecord _buffRecord, List<BattleFighter> fighterList) { foreach (BattleFighter _fighter in fighterList) { if (_fighter.Dead) { continue; } SingleFighterRecord _singleRecord = _buffRecord.OrCreateRecord; BattleRecordHelper.initFighterRecord(_fighter, _singleRecord); _singleRecord.StateFlag = _fighter.FighterStateFlag; _fighter.updateStateRecord(_singleRecord); _buffRecord.finishCurRecord(); } }
public virtual void finishCurBuffRecord() { this.curBuffRecord = null; }
public void showBattleBuffRecord(BattleBuffRecord battleBuffRecord) { Logger.Log("[-----RECORD-----] showBattleBuffRecord: " + battleBuffRecord); var characterList = (battleBuffRecord.SideIndex == BattleRecordConstants.TARGET_SIDE_LEFT) ? originalCharacterList : originalMonsterList; battleBuffRecord.RecordList.ForEach(record => { var character = GetObjectByAction(characterList, record); if (character != null) { character.BuffController.Set(record.StateUpdateList); character.ShowBuff(); } }); recordIndex++; DealWithRecord(); }