UnitsManager.TryGetUnit 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 true.
standard  Boolean
true to use only standard units, false to use the units for the current session.

Return Value

Boolean
true if the specified unit is found.

See Also