tjhancocks / kestrel-development-kit

A Development Kit for the Kestrel Game Engine
MIT License
13 stars 1 forks source link

Prepare type assembler for "Assembler Directives" proposal. #34

Closed tjhancocks closed 4 years ago

tjhancocks commented 4 years ago

This change is intended to allow and make it easier to implement part of the "Assembler Directives" (#33) proposal, which would allow defining resource types and assemblers in KDL itself.

This changes adjusts how kdk::assembler instances are created and handled. It no longer requires a subclass, and each assembler can be reused many times. A further bit of work might be to add a "pool" of named assemblers so they can be added to the pool after creation and then called upon when required.