phase shifts, itemize

This commit is contained in:
anton.gurov
2019-11-13 18:55:11 +03:00
parent d5a853df0e
commit 999f48afe9
14 changed files with 213 additions and 15 deletions

View File

@ -2,8 +2,26 @@ package items
import "lab.zaar.be/thefish/alchemyst-go/engine/ecs"
type Carried struct {}
type CarriedFace interface {
Drop()
Pickup()
}
type Carried struct {
Mass int //масса в граммах
Bulk int //внешний размер, см3
}
func (c *Carried) Type() string {
return ecs.CarriedComponent
}
func (c *Carried) Pickup() {}
func (c *Carried) Drop() {}
func (c *Carried) GetMass() int {
return c.Mass
}
func (c *Carried) GetBulk() int {
return c.Bulk
}