Set the precondition for all commands in a faster way instead of manually set for each command
Is there a faster way to automatically set a specific precondition every time creating new command than use the
preconditions
option in every command constructor?Solution:Jump to solution
1. if it's a custom precondition (i.e. one you wrote yourself) set the
position
option to make it global
2. if it's not a custom precondition (i.e. a built in one) then extend the Command
class and use object merging to set it on the custom base class to extend...2 Replies
Solution
1. if it's a custom precondition (i.e. one you wrote yourself) set the
position
option to make it global
2. if it's not a custom precondition (i.e. a built in one) then extend the Command
class and use object merging to set it on the custom base class to extendthanks