datalurkur / Mountainhome

A detailed and intricate worldsim borrowing from the Dungeon Keeper-style dungeon-building mechanic
You're lookin' at it.
6 stars 2 forks source link

Update the resource system #49

Closed StLoch closed 14 years ago

StLoch commented 14 years ago

It's clearly way out of date. I need to update it to access the filesystem in a generally transparent manner. Instead of accessing the file system, I want to be able to say "Get the texture named 'Grass'" and have it go out and find the appropriate texture. Some ideas stolen from OGRE: register resource locations, resource groups (this is a particularly great one), etc...

StLoch commented 14 years ago

Ok, I've gotten the ResourceManager using config files to describe complex resources, using factories to handle building of resources, and off of the singleton pattern.