reflection goes out of the window
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
package mob
|
||||
|
||||
import (
|
||||
"lab.zaar.be/thefish/alchemyst-go/engine/ecs"
|
||||
"lab.zaar.be/thefish/alchemyst-go/engine/types"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
type Mob struct {
|
||||
@ -15,6 +15,6 @@ func (m *Mob) Render() {
|
||||
|
||||
}
|
||||
|
||||
func (mob Mob) TypeOf() reflect.Type {
|
||||
return reflect.TypeOf(mob)
|
||||
func (mob Mob) Type() string {
|
||||
return ecs.MobComponent
|
||||
}
|
Reference in New Issue
Block a user