mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Started working on unit control panel, typed props
This commit is contained in:
@@ -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());
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user