mapObjectivesOf beta
Function of @v12-engine/engine
ts
export declare function mapObjectivesOf(map: {
readonly data: Readonly<Record<string, unknown>>;
}): MapObjective[];The objectives a map gives (GameMap.data.objectives), in the order it gives them: none for a map with none. What is kept there and is no objective (no id, no words) is left out, so that a file changed by hand breaks no rule that reads it; the map's checks say so (mapObjectives)