Re:Game Programming Patterns
by tinco on Monday July 08, 2013 @05:43AM
(#6005954)
I just read the component chapter and its the clearest article on components I've read so far, I wish I had read this 2yrs ago!
BTW in my game I do some component communication by having a GetComponent method on GameObject that takes a component identifier and returns the component. This is a compromise between messaging and direct reference and I think many engines offer this :)
BTW in my game I do some component communication by having a GetComponent method on GameObject that takes a component identifier and returns the component. This is a compromise between messaging and direct reference and I think many engines offer this :)
Thanks!