UnitsManagerTryGetUnit Method

Looks for the specified unit.

Definition

Namespace: SMath.Manager
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.73.9126.0
C#
public static bool TryGetUnit(
	SessionProfile sessionProfile,
	string name,
	out UnitInfo unitDef,
	bool standard
)

Parameters

sessionProfile  SessionProfile
Session profile to use.
name  String
Name of the unit.
unitDef  UnitInfo
Receives the unit definition when the method returns .
standard  Boolean
to use only standard units, to use the units for the current session.

Return Value

Boolean
if the specified unit is found.

See Also