add RegisterMap for testing convenience
This commit is contained in:
parent
dab9178a55
commit
1dcc1352cc
1 changed files with 5 additions and 0 deletions
|
|
@ -33,3 +33,8 @@ func (registry MapRegistry) GetMap(id string) (GameMap, error) {
|
||||||
func GetMap(id string) (GameMap, error) {
|
func GetMap(id string) (GameMap, error) {
|
||||||
return globalRegistry.GetMap(id)
|
return globalRegistry.GetMap(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// RegisterMap adds a map to the global registry.
|
||||||
|
func RegisterMap(id string, m GameMap) {
|
||||||
|
globalRegistry.RegisterMap(id, m)
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue