spacetea/simulator/producer.go

17 lines
258 B
Go
Raw Normal View History

2022-05-17 23:29:59 -04:00
package simulator
//Producer is a game object that producers a material
type Producer interface {
2022-05-19 17:09:46 -04:00
Object
2022-05-17 23:29:59 -04:00
Tick()
Get() Produce
String() string
2022-05-19 15:18:03 -04:00
Describe() string
2022-05-17 23:29:59 -04:00
}
//Produce is the result of a producer
type Produce struct {
2022-05-19 17:09:46 -04:00
Kind itemType
2022-05-17 23:29:59 -04:00
Value int
}