16 lines
420 B
GDScript
16 lines
420 B
GDScript
extends TextureRect
|
|
|
|
class_name MapIndex
|
|
signal click(scene_id:String)
|
|
|
|
|
|
##点击某个场景后应当调用
|
|
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
|