//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;



namespace cfg
{ 

public sealed partial class CfgCreateEnemy
{
    private readonly List<SingleCreateEnemyConfig> _dataList;
    

    public CfgCreateEnemy(JSONNode _json)
    {
        _dataList = new List<SingleCreateEnemyConfig>();
        
        foreach(JSONNode _row in _json.Children)
        {
            var _v = SingleCreateEnemyConfig.DeserializeSingleCreateEnemyConfig(_row);
            _dataList.Add(_v);
        }
        PostInit();
    }

    public List<SingleCreateEnemyConfig> DataList => _dataList;


    public void Resolve(Dictionary<string, object> _tables)
    {
        foreach(var v in _dataList)
        {
            v.Resolve(_tables);
        }
        PostResolve();
    }

    public void TranslateText(System.Func<string, string, string> translator)
    {
        foreach(var v in _dataList)
        {
            v.TranslateText(translator);
        }
    }

    
    partial void PostInit();
    partial void PostResolve();
}

}