lotgd / core

Core functionality for Legend of the Green Dragon, a text-based RPG game.
GNU Affero General Public License v3.0
152 stars 15 forks source link

Add support for "module bootstrapping" #48

Closed Vassyli closed 8 years ago

Vassyli commented 8 years ago

Adds support for "module bootstrapping" - modules (and the crate) can implement BootstrapInterface. The crate should add it's own Bootstrap class using a custom bootstrap loader calling Bootstrap::registerCrateBootstrap. registerAnnotationMetaDataDirectory is deprecated.

Makes it easier to copy binary file while reducing amount of code duplicates.

Vassyli commented 8 years ago

I tried to find a better solution, but MetadataFactory caches using an internal state which cannot be resetted by hand. Thus, it does not reload metadata. That's why I'm creating a full new entity manager replacing the old one.

Vassyli commented 8 years ago

Closed due to ongoing work.