Entity Details Tools Functions to extract useful data from entity details, such as portals, links, and fields.
Methods
-
inner getTeam(details) → {number}
-
Given the entity detail data, returns the team the entity belongs to. Uses TEAM_* enum values.
Parameters:
Name Type Description details
Object The details hash of an entity.
Returns:
number -The team ID the entity belongs to.
-
inner teamStringToId(teamStr) → {number}
-
Converts a team string to a team ID.
Parameters:
Name Type Description teamStr
string The team string to convert.
Returns:
number -The team ID corresponding to the team string.