mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 13:28:20 +00:00
27 lines
379 B
Go
Executable File
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() {
|
|
}
|