mirror of
https://github.com/vsariola/sointu.git
synced 2026-03-16 11:50:21 -04:00
refactor: put all info about different unit types into UnitTypes map
This commit is contained in:
parent
8ea9d3a191
commit
6a331f7a57
@ -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