get_by_id


Description:

[ Version ( since = "3.0" ) ]
public static unowned Unit get_by_id (int unit_id)

Returns the unique [class@Unit] object corresponding to unit_id, which is the integer identifier as returned by [ method@Unit.

get_id].

Parameters:

unit_id

The unit id.

Returns:

the Unit object with ID unit_id.