At the moment, if a mech ops result is a json array of objects, will get parsed into an array of entities.
This is usually fine with small lists but it would be nice to substitute this parsing with an EntityHandler (or something like that) which will take responsibility of handling a named entity when it is parsed, much like a SAX parser, this would avoid the necessity to create a list since an entity instance could be reused each time the entity is handled.
This could possibly introduce other issues such as default values of entities since the entity would need to be reset each time the handler handles it.
At the moment, if a mech ops result is a json array of objects, will get parsed into an array of entities.
This is usually fine with small lists but it would be nice to substitute this parsing with an EntityHandler (or something like that) which will take responsibility of handling a named entity when it is parsed, much like a SAX parser, this would avoid the necessity to create a list since an entity instance could be reused each time the entity is handled.
This could possibly introduce other issues such as default values of entities since the entity would need to be reset each time the handler handles it.