diff --git a/doc/index.html b/doc/index.html
index 52f4afb..0cff7ae 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -81,6 +81,10 @@
Makes a Filter that rejects Entities with at least one of the specified
Components and Filters, and selects all other Entities. |
+
+ | tiny.filter (pattern) |
+ Makes a Filter from a string. |
+
@@ -178,7 +182,7 @@
Filters take two parameters, the System and the Entity, and return a boolean
value indicating if the Entity should be processed by the System.
- Filters must be added to Systems by setting the filter field of the System.
+
Filters must be added to Systems by setting the filter field of the System.
Filter's returned by tiny-ecs's Filter functions are immutable and can be
used by multiple Systems.
@@ -276,6 +280,34 @@ filter = tiny.requireAll("image", tiny.rejectAny("Player", "Enemy"))
+
+
+
+ tiny.filter (pattern)
+
+
+
+Makes a Filter from a string. Syntax of pattern is as follows.
+
+
+ - Tokens are alphanumeric strings including underscores.
+ - Tokens can be separated by |, &, or surrounded by parentheses.
+ - Tokens can be prefixed with !, and are then operated on with a boolean 'not'.
+
+
+ Examples are best:
+'a|b|c' - Matches entities with an 'a' component OR a 'b' component or a 'c' component.
+'a&!b&c' - Matches entities with an 'a' component AND NOT a 'b' component AND a 'c' component.
+'a|(b&c&d)|e - Matches 'a' OR ('b' AND 'c' AND 'd') OR 'e'
+
+
+
+
+
+
+
+
+
@@ -576,9 +608,9 @@ end
tiny.update (world, dt, filter)
- Updates the World by dt (delta time). Takes an optional parameter, filter,
+ Updates the World by dt (delta time). Takes an optional parameter, filter,
which is a Filter that selects Systems from the World, and updates only those
- Systems. If filter is not supplied, all Systems are updated. Put this
+ Systems. If filter is not supplied, all Systems are updated. Put this
function in your main loop.
@@ -682,7 +714,7 @@ end
generated by LDoc 1.4.3
-
Last updated 2015-09-08 16:29:08
+
Last updated 2016-03-05 16:37:42