Timeline for How to add several GameComponents of the same type?
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Dec 30, 2022 at 17:42 | history | suggested | Glorfindel | CC BY-SA 4.0 |
broken link fixed, cf. https://meta.stackoverflow.com/a/406565/4751173
|
Dec 30, 2022 at 11:06 | review | Suggested edits | |||
S Dec 30, 2022 at 17:42 | |||||
Feb 2, 2012 at 4:16 | comment | added | David Gouveia | @bodycountPP Yes it's perfectly fine to make your BasicModel class require an instance of GraphicsDevice on its constructor. | |
Feb 1, 2012 at 19:39 | comment | added | チーズパン | I am not really experienced but that would mean that I have to pass the graphicsdevice to every single instance of the BasicModel class. Is that a good programming style? | |
Feb 1, 2012 at 19:35 | vote | accept | チーズパン | ||
Feb 1, 2012 at 15:04 | comment | added | David Gouveia |
@bodycountPP I've went ahead and checked it now, and indeed, the GameComponentCollection class doesn't let you add the same component multiple times. So, like I said, only use it for higher level concepts.
|
|
Feb 1, 2012 at 14:42 | comment | added | David Gouveia |
@bodycountPP You wrote on your question that it doesn't let you add more than one GameComponent of the same type to the game component list (haven't verified this). How would you continue using it then? It's not even a matter of performance at this point - since it doesn't even work. My opinion is that you shouldn't even bother using them at all, and others seem to think the same.
|
|
Feb 1, 2012 at 14:37 | comment | added | チーズパン | Do you think it somehow affects performance if I continue using that particular class? | |
Feb 1, 2012 at 14:20 | history | edited | David Gouveia | CC BY-SA 3.0 |
added 259 characters in body
|
Feb 1, 2012 at 14:13 | history | answered | David Gouveia | CC BY-SA 3.0 |