Started working on unit control panel, typed props

This commit is contained in:
Davide Passoni
2024-04-11 17:29:23 +02:00
parent f18212dac4
commit c7ecd2422a
21 changed files with 368 additions and 171 deletions

View File

@@ -1041,7 +1041,7 @@ export class UnitsManager {
* @param variableGetter CallableFunction that returns the requested variable. Example: getUnitsVariable((unit: Unit) => unit.getName(), foo) will return a string value if all the units have the same name, otherwise it will return undefined.
* @returns The value of the variable if all units have the same value, else undefined
*/
getSelectedUnitsVariable(variableGetter: CallableFunction) {
getSelectedUnitsVariable(variableGetter: (unit: Unit) => any) {
return this.getUnitsVariable(variableGetter, this.getSelectedUnits());
};