Adding Components
You'll be doing this a lot!
It's good practice to add components. It's how stuff gets done!
Add<C>(...)
Entity.Add<C>()
: Adds a default, plain newable component of typeC
to the entity/entities.Entity.Add<C>(C value)
: Adds a plain component with the specified value of typeC
to the entity/entities.Entity.Add<T>(Entity relation)
: Adds a newable relation component backed by a default value of typeT
to the entity/entities.Entity.Add<R>(R value, Entity relation)
: Adds a relation component backed by the specified value of typeR
to the entity/entities.Entity.Add<L>(Link<L> link)
: Adds an object link component with an object of typeL
to the entity/entities.