reflection goes out of the window

This commit is contained in:
2019-11-10 01:24:45 +03:00
parent bc00262ead
commit f442dc6921
16 changed files with 87 additions and 63 deletions

View File

@ -2,8 +2,13 @@ package ecs
// ECS system by jcerise, github.com/jcerise/gogue
import "reflect"
const AppearanceComponent = "appearance"
const CoordsComponent = "coords"
const MobComponent = "mob"
const MoveableComponent = "movable"
const CarriedComponent = "carried"
const UsableComponent = "usable"
type Component interface {
TypeOf() reflect.Type
Type() string
}