MapKey.cs 526 B

12345678910111213141516171819202122
  1. using System;
  2. namespace XGame.Framework.Map
  3. {
  4. public class MapKey
  5. {
  6. public string Key { get; private set; }
  7. /// <summary>
  8. /// MapView的类型
  9. /// </summary>
  10. public Type MapViewType { get; private set; }
  11. public MapKey(string key, Type mapViewType)
  12. {
  13. Key = key;
  14. MapViewType = mapViewType;
  15. }
  16. public static implicit operator string(MapKey mapKey) => mapKey.Key;
  17. public override string ToString() => Key;
  18. }
  19. }