Finding entities by ModelType using FieldFilter

In MonkeyTrap game entities are searched by ModelType.type field value. This requires iterating over whole MapComponentHandler.components to find proper components. I wonder if this implementation is just for example game and for example Mythruna uses different approach?

@tanku said: In MonkeyTrap game entities are searched by ModelType.type field value. This requires iterating over whole MapComponentHandler.components to find proper components. I wonder if this implementation is just for example game and for example Mythruna uses different approach?

It only iterates over all of the ModelType instances… so only over entities with an actual model type. It’s pretty fast.

…and anyway, it only does it once when the EntitySet is first created.