mirror of
https://github.com/vsariola/sointu.git
synced 2026-08-16 22:56:58 -04:00
refactor: put all info about different unit types into UnitTypes map
This commit is contained in:
+1
-1
@@ -512,7 +512,7 @@ var validParameters = map[string](map[string]bool){}
|
||||
func init() {
|
||||
for name, unitType := range sointu.UnitTypes {
|
||||
validParameters[name] = map[string]bool{}
|
||||
for _, param := range unitType {
|
||||
for _, param := range unitType.Params {
|
||||
validParameters[name][param.Name] = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user