Reduced go dependencies

main
noah metz 2024-10-07 16:44:48 -06:00
parent 5eef1e1bbe
commit 346822164d
2 changed files with 7 additions and 23 deletions

@ -1,11 +1,3 @@
module git.metznet.ca/MetzNet/roleplay/server module git.metznet.ca/MetzNet/roleplay/server
go 1.23.1 go 1.23.1
require github.com/gen2brain/raylib-go/raylib v0.0.0-20240930075631-c66f9e2942fe
require (
github.com/ebitengine/purego v0.8.0 // indirect
golang.org/x/exp v0.0.0-20241004190924-225e2abe05e6 // indirect
golang.org/x/sys v0.26.0 // indirect
)

@ -1,5 +1,8 @@
package roleplay package roleplay
import (
)
type Entity interface { type Entity interface {
Tick() Tick()
} }
@ -8,22 +11,8 @@ type Instance struct {
} }
//////////////////////////////////////////
// Temporary Code
//////////////////////////////////////////
type EntityID int
var id int = -1
func NewEntityID() EntityID {
id += 1
return EntityID(id)
}
//////////////////////////////////////////
// End Temporary Code
//////////////////////////////////////////
type Server struct { type Server struct {
entities map[EntityID]Entity entities map[int]Entity
instances map[string]Instance instances map[string]Instance
} }
@ -32,3 +21,6 @@ func(server Server) Tick() {
entity.Tick() entity.Tick()
} }
} }
func(server Server) Listen() {
}