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

Reset stateful constructs on resume #20

Closed eelstork closed 4 years ago

eelstork commented 4 years ago

Stateful constructs: most decorators; ordered composites, mutable composites Reset on resume: if control has not entered a branch for one or more frames, upon re-entry the stateful construct should reset.

Benefit With many stateful constructs the expectation when an agent dropped the associate task for a while, is that state related to said task should revert to its default state. Invoking Reset() manually is possible, however manually managing decorator state is not desirable.

eelstork commented 4 years ago

Fixed in 46d85dda046f02218100c259dce4e5592337b355