Click or drag to resize

ExtensionsGetEquipmentList Method (IPhysicalEntity, CapabilityEnum, ListIEquipment)

Customize MACE to meet your Live-Virtual-Constructive Simulation and Training Requirements.

[This is preliminary documentation and is subject to change.]

Extension method that searchs the entity and gets, or adds to, a list with equipment that have the specfied capabilities.

Namespace:  BSI.MACE
Assembly:  BSILib (in BSILib.dll) Version: 1.2.1.22047 (1.0.0.0)
Syntax
public static List<IEquipment> GetEquipmentList(
	this IPhysicalEntity thisEntity,
	CapabilityEnum capability,
	List<IEquipment> equipmentList = null
)

Parameters

thisEntity
Type: BSI.MACEIPhysicalEntity
The entity to search.
capability
Type: BSI.MACECapabilityEnum
Flag(s) to search for. If mutiple flags are specified ANY matching flag will return the equipment.
equipmentList (Optional)
Type: System.Collections.GenericListIEquipment
Optional list to add to. If no list is passed in then one is created.

Return Value

Type: ListIEquipment
A list containing equipment with the specified capabilities.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IPhysicalEntity. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Usage: Dim list as List(Of IEquipment) = MyEntity.GetEquipmentList(CapabilityEnum.Radio Or CapabilityEnum.Radar)
See Also