middle of refactor
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
)
|
||||
|
||||
type game struct {
|
||||
id string
|
||||
players map[*player]bool
|
||||
projectiles map[*projectile]bool
|
||||
splosions map[*splosion]bool
|
||||
@@ -21,8 +22,9 @@ type game struct {
|
||||
kill chan bool
|
||||
}
|
||||
|
||||
func NewGame(width, height float64) *game {
|
||||
func NewGame(id string, width, height float64) *game {
|
||||
return &game{
|
||||
id: id,
|
||||
register: make(chan *player),
|
||||
unregister: make(chan *player),
|
||||
projectiles: make(map[*projectile]bool),
|
||||
|
||||
Reference in New Issue
Block a user