using System.Collections.Generic;
using System.Linq;

namespace Wizard;

public class StoryAISettingDataSet
{
	private List<StoryAISettingData> _dataTable;

	public StoryAISettingDataSet()
	{
		_dataTable = new List<StoryAISettingData>();
	}

	public void AddData(StoryAISettingData data)
	{
		if (!_dataTable.Any((StoryAISettingData d) => d.EnemyAiId == data.EnemyAiId))
		{
			_dataTable.Add(data);
		}
	}

	public StoryAISettingData GetSettingData(int enemyAiId)
	{
		return _dataTable.First((StoryAISettingData d) => d.EnemyAiId == enemyAiId);
	}

	public List<StoryAISettingData> GetSettingDataTable()
	{
		return _dataTable;
	}
}
