18 lines
256 B
GDScript
18 lines
256 B
GDScript
@tool
|
|
class_name ValidatorRule
|
|
extends Resource
|
|
|
|
@export var fail_message: String = ""
|
|
|
|
|
|
func apply(control: Control, value) -> RuleResult:
|
|
return RuleResult.new()
|
|
|
|
|
|
func is_valid() -> bool:
|
|
return true
|
|
|
|
|
|
func get_invalid_message() -> String:
|
|
return ""
|