LoadConfigHelper.cs 465 B

1234567891011121314151617
  1. using System.Collections.Generic;
  2. using System.IO;
  3. namespace ET
  4. {
  5. public static class LoadConfigHelper
  6. {
  7. public static void LoadAllConfigBytes(Dictionary<string, byte[]> output)
  8. {
  9. foreach (string file in Directory.GetFiles($"../Generate/Server/Proto", "*.bytes"))
  10. {
  11. string key = $"{Path.GetFileName(file)}.bytes";
  12. output[key] = File.ReadAllBytes(file);
  13. }
  14. }
  15. }
  16. }