2024-09-21 17:51:05 +08:00
|
|
|
extends TextureRect
|
2024-09-21 11:52:44 +08:00
|
|
|
|
2024-09-21 17:51:05 +08:00
|
|
|
class_name MapIndex
|
2024-09-21 11:52:44 +08:00
|
|
|
signal click(scene_id:String)
|
|
|
|
|
|
|
|
|
2024-09-22 11:48:18 +08:00
|
|
|
##点击某个场景后应当调用
|
|
|
|
func click_scene(scene_id:String):
|
|
|
|
click.emit(scene_id)
|
|
|
|
##预留的获取地图坐标的接口,用来放置玩家当前位置图标
|
|
|
|
func get_scene_global_pos(scene_id:String)->Vector2:
|
|
|
|
return Vector2(0,0)
|
|
|
|
##获取两地距离的接口
|
|
|
|
func get_scene_distance(scene_from:String,scene_to:String):
|
|
|
|
return 100
|