roleplay/server/server.go

27 lines
299 B
Go

2024-10-07 15:43:10 -06:00
package roleplay
2024-10-07 16:44:48 -06:00
import (
)
2024-10-07 15:43:10 -06:00
type Entity interface {
Tick()
}
type Instance struct {
}
type Server struct {
2024-10-07 16:44:48 -06:00
entities map[int]Entity
2024-10-07 15:43:10 -06:00
instances map[string]Instance
}
func(server Server) Tick() {
for _, entity := range(server.entities) {
entity.Tick()
}
}
2024-10-07 16:44:48 -06:00
func(server Server) Listen() {
}