race quit, transfer state, refactor
This commit is contained in:
@@ -38,9 +38,16 @@ func (p *Planet) Free() {
|
||||
p.Owner = nil
|
||||
p.Production = ProductionNone.AsType(uuid.Nil)
|
||||
p.Colonists = 0.
|
||||
p.Population = 0.
|
||||
clear(p.Route)
|
||||
}
|
||||
|
||||
func (p *Planet) Wipe() {
|
||||
p.Free()
|
||||
p.Industry = 0
|
||||
p.Capital = 0
|
||||
}
|
||||
|
||||
func (p Planet) Owned() bool {
|
||||
return p.Owner != nil && *p.Owner != uuid.Nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user