//------------------------------------------------------------------------------
// <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 SimpleJSON;


namespace cfg
{ 
   
public sealed partial class Tables
{
    public CfgCreateEnemy CfgCreateEnemy {get; }
    public CfgEnemy CfgEnemy {get; }

    public Tables(System.Func<string, JSONNode> loader)
    {
        var tables = new System.Collections.Generic.Dictionary<string, object>();
        CfgCreateEnemy = new CfgCreateEnemy(loader("cfgcreateenemy")); 
        tables.Add("CfgCreateEnemy", CfgCreateEnemy);
        CfgEnemy = new CfgEnemy(loader("cfgenemy")); 
        tables.Add("CfgEnemy", CfgEnemy);
        PostInit();

        CfgCreateEnemy.Resolve(tables); 
        CfgEnemy.Resolve(tables); 
        PostResolve();
    }

    public void TranslateText(System.Func<string, string, string> translator)
    {
        CfgCreateEnemy.TranslateText(translator); 
        CfgEnemy.TranslateText(translator); 
    }
    
    partial void PostInit();
    partial void PostResolve();
}

}