C4 Engine
C4 Engine API Documentation

LinkTarget::GetFirstLink

Defined in:  TSLink.h
Returns the first link that points to an object.
Prototype

Link<type> *GetFirstLink(voidconst;

Description
The GetFirstLink function returns a pointer to the first Link object that is currently pointing to a link target. The ListElement::GetNextListElement function can then be used to iterate through all links currently pointing to the same link target. If there are no links currently pointing to a link target, then GetFirstLink returns nullptr.