From ef83631abd3061282bde2972b482bd31a619b4bc Mon Sep 17 00:00:00 2001 From: bakpakin Date: Sat, 5 Mar 2016 16:48:14 -0500 Subject: [PATCH] Update to 1.3-1 --- doc/index.html | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) 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. +

System functions

@@ -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.

+ + + +

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'
+
+ + + + + + + +

System functions

@@ -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