Newer
Older
DungeonShooting / DungeonShooting_Godot / src / framework / activity / ActivityId.cs
  1.  
  2. /// <summary>
  3. /// Activity注册类id前缀
  4. /// </summary>
  5. public static class ActivityId
  6. {
  7. /// <summary>
  8. /// 根据 ActivityType 中的枚举类型获取类型名称的字符串
  9. /// </summary>
  10. public static string GetTypeName(ActivityType activityType)
  11. {
  12. switch (activityType)
  13. {
  14. case ActivityType.None:
  15. return "";
  16. case ActivityType.Test:
  17. return "测试";
  18. case ActivityType.Role:
  19. case ActivityType.Player:
  20. return "角色";
  21. case ActivityType.Enemy:
  22. return "敌人";
  23. case ActivityType.Weapon:
  24. return "武器";
  25. case ActivityType.Bullet:
  26. return "子弹";
  27. case ActivityType.Shell:
  28. return "弹壳";
  29. case ActivityType.Effect:
  30. return "特效";
  31. case ActivityType.Prop:
  32. return "道具";
  33. case ActivityType.Treasure:
  34. return "宝箱";
  35. case ActivityType.Other:
  36. return "其他";
  37. }
  38.  
  39. return "";
  40. }
  41. }