alecmce / xember

A riff on the Ember entity system
MIT License
48 stars 7 forks source link

[Ember(exclude="ExclusionComponent")] #7

Closed alecmce closed 13 years ago

alecmce commented 13 years ago

Is it worthwhile being able to define nodes that can exclude entities that have a particular component?

darscan commented 13 years ago

Sure, all vehicles - except the one with the PlayerControls (or whatever) component.

alecmce commented 13 years ago

Exactly, though it's more likely that you'd want to have an AIComponent on all the other vehicles so I'm not entirely convinced about the use-case.

richardlord commented 13 years ago

I don't see the need for it. Systems operate on the components because of the components they have, not the components they don't have.

alecmce commented 13 years ago

Yeah, you're probably right Richard. Unless a clear use-case emerges, I'll not implement this.

darscan commented 13 years ago

Yeh, that makes sense, agreed.