getting there omg this is a lot of work
parent
6960c3a587
commit
5608cf4583
@ -0,0 +1,8 @@
|
||||
package sim
|
||||
|
||||
import "github.com/jordanorelli/astro-domu/internal/wire"
|
||||
|
||||
type Effect interface {
|
||||
wire.Value
|
||||
exec(*World, string)
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package sim
|
||||
|
||||
type Request struct {
|
||||
From string
|
||||
Wants Effect
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
package wire
|
||||
|
||||
type Self_Move struct {
|
||||
Delta bool `json:"delta"`
|
||||
X int `json:"x"`
|
||||
Y int `json:"y"`
|
||||
}
|
||||
|
||||
func (Self_Move) NetTag() string { return "self/move" }
|
||||
|
||||
func init() {
|
||||
Register(func() Value { return new(Self_Move) })
|
||||
}
|
Loading…
Reference in New Issue