Re:A Thought Experiment: Using the ECS Pattern Outside of Ga...
by akhosravian on Saturday December 28, 2019 @05:19AM
(#21898178)
Short answer is no. Decorator is an OOP design pattern, ECS is an architectural pattern. In that sense it’s a more abstract concept. One could say decorator is an OOP form of it, but I think the data oriented design crowd would balk at doing so in a mainstream OOP language like Java or C#.
[ Parent
| on HN ]
Re:A Thought Experiment: Using the ECS Pattern Outside of Ga...
by jayd16 on Saturday December 28, 2019 @12:47PM
(#21900346)
I suppose you're right. ECS explicitly calls out a system that separate from the components while most of the decorator examples run code in the components. I've written decorators that are closer to ECS but I guess its fair to say ECS implies a specific implementation.