Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CollectionEditor

Editor of a Collection. Provides methods to add, remove and overwrite unit groups.

Hierarchy

  • CollectionEditor

Index

Methods

Methods

add

  • add(...groups: Group[]): void
  • Adds all passed unit groups to the collection. If the name of a group is already taken, the old group will be overwritten by the new one.

    Parameters

    • Rest ...groups: Group[]

      the unit group's to add

    Returns void

remove

  • remove(...groups: string[]): void
  • Removes any unit group whose name matches one of the passed strings.

    Parameters

    • Rest ...groups: string[]

      the names of the unit groups to delete

    Returns void

select

  • select(...groups: string[]): void
  • Removes any unit group whose name was not passed as an argument.

    Parameters

    • Rest ...groups: string[]

      the unit group's that shouldn't get removed

    Returns void

Generated using TypeDoc