move to terrain render system
This commit is contained in:
@ -2,19 +2,33 @@ package ecs
|
||||
|
||||
// ECS system by jcerise, github.com/jcerise/gogue
|
||||
|
||||
const AmmoComponent = "ammo"
|
||||
const AppearanceComponent = "appearance"
|
||||
const ArmorComponent = "armor"
|
||||
const ArmsComponent = "arms"
|
||||
const BackpackComponent = "backpack"
|
||||
const CarriedComponent = "carried"
|
||||
const ConsumableComponent = "consumable"
|
||||
const CoordsComponent = "coords"
|
||||
const MobComponent = "mob"
|
||||
const MoveableComponent = "movable"
|
||||
const CarriedComponent = "carried"
|
||||
const NamedComponent = "named"
|
||||
const RangedComponent = "ranged"
|
||||
const UsableComponent = "usable"
|
||||
const WearableComponent = "usable"
|
||||
const ArmsComponent = "arms"
|
||||
const RangedComponent = "ranged"
|
||||
const AmmoComponent = "ammo"
|
||||
const ArmorComponent = "armor"
|
||||
const BackpackComponent = "backpack"
|
||||
|
||||
type Component interface {
|
||||
Type() string
|
||||
}
|
||||
}
|
||||
|
||||
type Named struct {
|
||||
Name string
|
||||
}
|
||||
|
||||
func (n Named) Type() string {
|
||||
return NamedComponent
|
||||
}
|
||||
|
||||
func (n Named) GetName() string {
|
||||
return n.Name
|
||||
}
|
||||
|
Reference in New Issue
Block a user