-
-
Notifications
You must be signed in to change notification settings - Fork 102
CardFilter
Divided by Zer0 edited this page Mar 9, 2022
·
1 revision
Extends: Reference
Class to compare card properties against a specified filter
var property: String
The property key for which to look in the provided card properties dict
var filter
The property key for which to look in the provided card properties dict The value against which to compare the value of the property
var comparison: String
The property key for which to look in the provided card properties dict The value against which to compare the value of the property The kind of comparison to perform
var compare_int_as_str: bool
The property key for which to look in the provided card properties dict The value against which to compare the value of the property The kind of comparison to perform If true, will compare integers as strings.
func _init(_property: String, _value, _comparison: String = "eq", _compare_int_as_str: bool = false) -> void
func check_card(card_properties: Dictionary) -> bool
Takes the properties dictionary