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

21 lines
361 B
GDScript

extends Reference
class_name SummerDayTool
var priority = 0
var modifier_layer = 0
func _check_for_use(
event: InputEvent, tool_context: SummerDayToolContext
) -> bool: # Virtual.
return false
func _run(event: InputEvent, tool_context: SummerDayToolContext): # Virtual.
pass
func get_priority_score() -> int:
return priority * 4 + modifier_layer