Skip to content

missionRulesOf beta ​

Function of @v12-engine/engine

ts
export declare function missionRulesOf(map: {
    readonly data: Readonly<Record<string, unknown>>;
}): MissionRule[];

The rules a map keeps (GameMap.data.rules), in their order: none for a map with none. What is kept there and is no rule (no id, no condition) is left out, so that a file changed by hand breaks no game that reads it; the map's checks say so (checkMissionRules). Actions that are of no form the pack knows are left out of a rule the same way