RavensKrag / ThoughtTrace

Naturally chart out words in 2D space, mapping the relations between them. Even link to other ideas. Then, build your programs on top of the flow.
0 stars 0 forks source link

trigger callback when Component is bound to an Entity #8

Open RavensKrag opened 10 years ago

RavensKrag commented 10 years ago

that callback method would bind the Entity to the Component, so the Component could access the Entity for whatever reason

that binding structure would make it really simple to bind cloned components onto different Entity objects

RavensKrag commented 10 years ago

This has a weird side effect of slightly obscuring the connection between the Component and the Entity.

Maybe that's ok, because now all Components are linked to an Entity? (before it was only Physics, which was being linked explicitly in constructor)

RavensKrag commented 10 years ago

There's not really a pressing reason to clone components any more, because I found a better way to clone an Entity.

Not sure if this functionality is still useful or not.

Will probably wait until I have more component types. Should at least wait until the overhaul of the Style component is done. (Issue #10)