Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / manager / NameManager.cs
@小李xl 小李xl on 20 Aug 2023 985 bytes 创建房间标记, 开发中
  1.  
  2. public class NameManager
  3. {
  4. /// <summary>
  5. /// 获取物体属性名称字符串
  6. /// </summary>
  7. public static string GetActivityTypeName(int type)
  8. {
  9. switch ((ActivityType)type)
  10. {
  11. case ActivityType.None:
  12. return "";
  13. case ActivityType.Test:
  14. return "测试";
  15. case ActivityType.Role:
  16. case ActivityType.Player:
  17. return "角色";
  18. case ActivityType.Enemy:
  19. return "敌人";
  20. case ActivityType.Weapon:
  21. return "武器";
  22. case ActivityType.Bullet:
  23. return "子弹";
  24. case ActivityType.Shell:
  25. return "弹壳";
  26. case ActivityType.Effect:
  27. return "特效";
  28. case ActivityType.Prop:
  29. return "道具";
  30. case ActivityType.Other:
  31. return "其他";
  32. }
  33.  
  34. return "";
  35. }
  36. }