Timeline for Java: creating an instance of a user defined class by reading xml file
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:18 | history | edited | CommunityBot |
replaced http://gamedev.stackexchange.com/ with https://gamedev.stackexchange.com/
|
|
Dec 15, 2013 at 17:29 | comment | added | House | Honestly it'll be hard to be more generic. Unless you're allowing users to create their own components (it seems like you just want them to create their own entities), this strategy will save you a significant amount of trouble. | |
Dec 15, 2013 at 17:10 | comment | added | Bricco | Thank you for your reply and the nice examples. Using a switch statement would probably be the simplest way, however my current objective is mainly to develop the engine itself and to make it as generic as possible. Searching a bit on google I found the XStream library, which seems pretty good for instantiating unknown objects. I didn't consider the idea of using an existing library, but maybe it is a good idea, you know, the "not reinventing the wheel" thing hehe! | |
Dec 15, 2013 at 16:25 | history | answered | House | CC BY-SA 3.0 |