add

fun add(component: T, index: Int = observableComponents.size)

Adds a GameComponentView to this GameComponentContainer.

Parameters

component

Component to add.

index

Index at which component will be added (Z-Height).

Throws