shareWith beta
Function of @v12-engine/engine
ts
export declare function shareWith(world: World, player: PlayerId, ally: PlayerId, what: {
vision?: boolean;
control?: boolean;
}): void;Shares with an ally, or no longer: control of the player's units (shareControl), and what the player's team sees (shareVision, when the ally is of another team: a team sees as one already). Nothing for who is not an ally