ecs
ecs copied to clipboard
Race Conditions detected on the World struct
When I build the game using the -race flag:
go build -race main.go
and run it on a different goroutine (I'm using a server to add entities to the World) the compiler detects race conditions.
This PR adds an RWMutex to the ecs package to sync the state of the world