active-logic / activelogic-cs

Behavior Trees and Case Logic for C#7
GNU Affero General Public License v3.0
106 stars 7 forks source link

@for and @forall decorators #26

Open eelstork opened 4 years ago

eelstork commented 4 years ago

Currently there isn't a decorator for applying an action to a list of target objects. For example, if we had an IEnumerable list of waypoints, we may wish to visit all waypoints in turn; maybe something like:

@for(waypoints)?[ Reach ]  // Reach: Func<T, status>

@forall would do the same assuming parallelism.