Skip to content

mapPushCommands beta ​

Function of @v12-engine/editor

ts
export declare function mapPushCommands(before: PushedMap, after: PushedMap, registry: Registry): {
    commands: PlayerCommand[];
    placed: number;
    changed: number;
    removed: number;
    ground: boolean;
    resized: boolean;
};

The debug commands that make a world played from before the map after is (PushedMap), and what each of them is (how many were placed, changed (moved, or put down again) and removed, and whether the ground was), in the order they are to be sent: what is taken away first, so that a building put down again finds its own cells free. An object of the map changed in more than where it stands and how it is turned (its type, owner, health, a field of the game's), or a structure moved, is taken away and put down again as it is now. A ground of another size is not pushed: resized says so