SummerDay/addons/summer_day/tools/tool_system/base_tool.gd

22 lines
344 B
GDScript3
Raw Normal View History

extends Object
2021-11-21 11:46:04 +01:00
class_name SummerDayTool
var priority = 0
var modifier_layer = 0
func _handle_global_input(event: InputEvent): # Virtual.
pass
2022-01-02 16:42:55 +01:00
func _check_for_use(event: InputEvent) -> bool: # Virtual.
2021-11-21 11:46:04 +01:00
return false
2022-01-02 16:42:55 +01:00
func _run(event: InputEvent): # Virtual.
2021-11-21 11:46:04 +01:00
pass
func get_priority_score() -> int:
return priority * 4 + modifier_layer