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

21 lines
361 B
GDScript3
Raw Normal View History

2021-11-21 11:46:04 +01:00
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