FieldName.cs 609 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. namespace FF8
  4. {
  5. public static class FieldName
  6. {
  7. public static String Get(int id)
  8. {
  9. if (_dic.TryGetValue(id, out var name))
  10. return name;
  11. return $"Unknown field: {id}";
  12. }
  13. //TODO
  14. /// <summary>
  15. /// This should be eventually initialized with real location names. Currently I don't know where they are ~Maki
  16. /// </summary>
  17. private static readonly Dictionary<int, String> _dic = new Dictionary<int, String>()
  18. {
  19. };
  20. }
  21. }