/** * Execute a callback for every player in the game, at their position. */ export declare function forEveryPlayer(callback: () => void): void; /** * Inside a `forEveryPlayer` (or any "@s is an outer participant") body, * run `callback` for every OTHER participant. Inside the callback `@s` * is the inner participant; the outer participant is no longer @s but is * tagged with `kradle_pair_self` for the duration so you can refer to them. * * Order is unordered pairs visited twice (i.e. ordered pairs). If you want * each unordered pair once, gate the callback with * `_.if(other_player_number.greaterThan(self_player_number), ...)`. * * @example * forEveryPlayer(() => { * forEachOtherPlayer(() => { * // @s = the OTHER player here. Outer self is @a[tag=kradle_pair_self]. * // Add 1 to my pair_meeting count for each other player I encounter: * pair_meetings.add(1); * }); * }); */ export declare function forEachOtherPlayer(callback: () => void): void; //# sourceMappingURL=api_utils.d.ts.map