2019-02-24 23:33:49 +01:00
|
|
|
---
|
|
|
|
|
2020-01-19 01:34:10 +01:00
|
|
|
--- A table whose content will be used to set the target object properties.
|
2019-02-24 23:33:49 +01:00
|
|
|
--
|
|
|
|
-- @rulecomponent properties
|
|
|
|
-- @param table
|
2021-12-21 08:38:19 +01:00
|
|
|
-- @see callback
|
2019-02-24 23:33:49 +01:00
|
|
|
|
|
|
|
--TODO add ^
|
|
|
|
-- @DOC_text_gears_matcher_properties_EXAMPLE@
|
|
|
|
|
2021-12-23 23:02:24 +01:00
|
|
|
--- A callback function to call *before* the `properties` have been applied.
|
2021-12-21 08:38:19 +01:00
|
|
|
--
|
|
|
|
-- The callback is called with the current client as first argument.
|
|
|
|
--
|
|
|
|
-- @rulecomponent callback
|
|
|
|
-- @param function
|
2019-02-24 23:33:49 +01:00
|
|
|
|
2020-01-19 01:34:10 +01:00
|
|
|
--- A table whose content will be compared to the target object current properties.
|
2019-02-24 23:33:49 +01:00
|
|
|
--
|
|
|
|
-- @rulecomponent rule
|
|
|
|
-- @param table
|
|
|
|
-- @see rule_any
|
|
|
|
-- @see except
|
|
|
|
|
|
|
|
--- Similar to `rule`, but each entry is a table with multiple values.
|
|
|
|
--
|
|
|
|
--
|
|
|
|
-- @rulecomponent rule_any
|
|
|
|
-- @param table
|
|
|
|
-- @see rule
|
|
|
|
-- @see except_any
|
|
|
|
|
|
|
|
--- The negative equivalent of `rule`.
|
|
|
|
--
|
|
|
|
-- @rulecomponent except
|
|
|
|
-- @param table
|
|
|
|
-- @see rule
|
|
|
|
-- @see except_any
|
|
|
|
|
|
|
|
--- The negative equivalent of `rule_any`.
|
|
|
|
--
|
|
|
|
-- @rulecomponent except_any
|
|
|
|
-- @param table
|
|
|
|
-- @see rule
|
|
|
|
-- @see except
|
2019-05-25 16:07:00 +02:00
|
|
|
|
2019-07-22 04:05:45 +02:00
|
|
|
--- Matches when one of every "category" of components match.
|
|
|
|
--
|
|
|
|
-- @rulecomponent rule_every
|
|
|
|
-- @param table
|
|
|
|
-- @see rule
|
|
|
|
-- @see except
|
|
|
|
|
2020-01-19 01:34:10 +01:00
|
|
|
--- A table whose content will be compared to the target object current properties.
|
2019-08-19 01:27:50 +02:00
|
|
|
--
|
|
|
|
-- The comparison will be made using the lesser (`<`) operator.
|
|
|
|
--
|
|
|
|
-- @rulecomponent rule_lesser
|
|
|
|
-- @param table
|
|
|
|
-- @see rule
|
|
|
|
-- @see except
|
|
|
|
|
2020-01-19 01:34:10 +01:00
|
|
|
--- A table whose content will be compared to the target object current properties.
|
2019-08-19 01:27:50 +02:00
|
|
|
--
|
2019-10-07 01:24:56 +02:00
|
|
|
-- The comparison will be made using the greater (`>`) operator.
|
2019-08-19 01:27:50 +02:00
|
|
|
--
|
|
|
|
-- @rulecomponent rule_greater
|
|
|
|
-- @param table
|
|
|
|
-- @see rule
|
|
|
|
-- @see except
|
|
|
|
|
2019-05-25 16:07:00 +02:00
|
|
|
--- An identifier for this rule.
|
|
|
|
--
|
|
|
|
-- It can be anything. It will be compared with the `==` operator. Strings are
|
|
|
|
-- highly recommended.
|
|
|
|
--
|
|
|
|
-- Setting an `id` is useful to be able to remove the rule by using its id
|
|
|
|
-- instead of a table reference. Modules can also listen to `rule::appended` and
|
|
|
|
-- modify or disable a rule.
|
|
|
|
--
|
|
|
|
-- @rulecomponent id
|
2019-08-19 01:27:50 +02:00
|
|
|
-- @tparam table|string|number|function id
|