Cripes 2.0: EntityLoader

Published February 12, 2009
Advertisement
Progress! I've created an EntityLoader class which can load entity definitions from a file with LoadFile(), and return a ready-made Entity to calling code with ConstructEntity(). To try it out, I hand-wrote a Player entity definition into a file and had EntityLoader load it, then I passed the result of loader.ConstructEntity("Player") to the entity map's AddEntity method. Works great! ^_^

EDIT: Class layout updated. Also, I added a link to it at the top of the journal, by the color-coded project name.
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement