vendredi 24 février 2017

Loosely coupling composite object nodes and their dependencies

Lets say I have a set of conditional requirements that can be nested inside of each other in a tree like structure, but all of the requirements need to communicate with different subsystems to find out if they are fulfilled. For instance one requirement might check if a certain inventory item exists, one might check an object for a certain attribute, one might check an event system to see if a certain event has fired etc. How could you model this so that you can traverse the tree as a part-whole hierarchy but also allow each node to communicate with the subsystem it needs to?

Aucun commentaire:

Enregistrer un commentaire