Tables.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Changes to this file may cause incorrect behavior and will be lost if
  5. // the code is regenerated.
  6. // </auto-generated>
  7. //------------------------------------------------------------------------------
  8. using Bright.Serialization;
  9. using SimpleJSON;
  10. namespace cfg
  11. {
  12. public sealed partial class Tables
  13. {
  14. public CfgCreateEnemy CfgCreateEnemy {get; }
  15. public CfgEnemy CfgEnemy {get; }
  16. public Tables(System.Func<string, JSONNode> loader)
  17. {
  18. var tables = new System.Collections.Generic.Dictionary<string, object>();
  19. CfgCreateEnemy = new CfgCreateEnemy(loader("cfgcreateenemy"));
  20. tables.Add("CfgCreateEnemy", CfgCreateEnemy);
  21. CfgEnemy = new CfgEnemy(loader("cfgenemy"));
  22. tables.Add("CfgEnemy", CfgEnemy);
  23. PostInit();
  24. CfgCreateEnemy.Resolve(tables);
  25. CfgEnemy.Resolve(tables);
  26. PostResolve();
  27. }
  28. public void TranslateText(System.Func<string, string, string> translator)
  29. {
  30. CfgCreateEnemy.TranslateText(translator);
  31. CfgEnemy.TranslateText(translator);
  32. }
  33. partial void PostInit();
  34. partial void PostResolve();
  35. }
  36. }