moveComponent<T extends Component> method
Moves a Component of type T
from the srcEntity
to the dstEntity
.
if the srcEntity
does not have the Component of type T
nothing will
happen.
Implementation
void moveComponent<T extends Component>(int srcEntity, int dstEntity) =>
componentManager._moveComponent(
srcEntity,
dstEntity,
ComponentType.getTypeFor(T),
);