Meta Component that parses the parent Component from a JSON object and attaches it to a given Entity.
void (const putils::json & json, Entity & e);json: JSON object fore, NOT specifically for the parentComponente:Entitywhich the newComponentshould be attached to
It is up to the user to implement this meta Component for the Component types they wish to be able to parse.
A helper registerComponentJSONLoader function is provided that takes as a template parameter a Component type and implements the LoadFromJSON meta Component for it.
Note that the implementation provided in registerComponentJSONLoader is only a sample, and users may freely replace it with any other implementation they desire.