Newer
Older
DungeonShooting / DungeonShooting_Godot / src / framework / activity / CheckInteractiveResult.cs
@小李xl 小李xl on 30 Jun 2023 856 bytes 互动显示道具名称
  1.  
  2. /// <summary>
  3. /// 检测互动返回的数据集
  4. /// </summary>
  5. public class CheckInteractiveResult
  6. {
  7. /// <summary>
  8. /// 互动物体
  9. /// </summary>
  10. public ActivityObject Target;
  11. /// <summary>
  12. /// 是否可以互动
  13. /// </summary>
  14. public bool CanInteractive;
  15. /// <summary>
  16. /// 互动提示显示的图标
  17. /// </summary>
  18. public string ShowIcon;
  19.  
  20. public CheckInteractiveResult(ActivityObject target)
  21. {
  22. Target = target;
  23. }
  24. public CheckInteractiveResult(ActivityObject target, bool canInteractive)
  25. {
  26. Target = target;
  27. CanInteractive = canInteractive;
  28. }
  29. public CheckInteractiveResult(ActivityObject target, bool canInteractive, string showIcon)
  30. {
  31. Target = target;
  32. CanInteractive = canInteractive;
  33. ShowIcon = showIcon;
  34. }
  35. }