Files
nmage/entity/base_comp.go

27 lines
379 B
Go
Executable File

package entity
import "github.com/bloeys/nmage/registry"
var _ Comp = &BaseComp{}
type BaseComp struct {
Handle registry.Handle
}
func (b BaseComp) baseComp() {
}
func (b *BaseComp) Init(parentHandle registry.Handle) {
b.Handle = parentHandle
}
func (b BaseComp) Name() string {
return "Base Component"
}
func (b BaseComp) Update() {
}
func (b BaseComp) Destroy() {
}