challenge-editor/class/map/map_class.gd
2024-09-22 11:48:18 +08:00

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