Newer
Older
DungeonShooting / DungeonShooting_Godot / src / props / IProp.cs
  1. using Godot;
  2.  
  3. /// <summary>
  4. /// 道具接口
  5. /// </summary>
  6. public interface IProp
  7. {
  8. /// <summary>
  9. /// 获取道具所在的坐标
  10. /// </summary>
  11. Vector2 GetItemPosition();
  12.  
  13. /// <summary>
  14. /// 返回是否能互动
  15. /// </summary>
  16. /// <param name="master">触发者</param>
  17. CheckInteractiveResult CheckInteractive(Role master);
  18.  
  19. /// <summary>
  20. /// 与角色互动时调用
  21. /// </summary>
  22. /// <param name="master">触发者</param>
  23. void Interactive(Role master);
  24. }