Skip to content

Allow greater use of LOCATION in API #17

@DanRStevens

Description

@DanRStevens

A number of built in methods take separate x and y values, while Unit coordinates are only ever returned as LOCATION structs. Perhaps we should provide helper methods to help paper over the difference.

We could perhaps provide the reverse of the MkXY macro, which instead takes a LOCATION and converts it to the x and y pairs. That maybe wouldn't be very pretty though.

We could also provide overloads or new methods to paper over the difference. Example:

void CenterViewOn(enum PlayerNum playerNum, const LOCATION& location) {
	Player[playerNum].CenterViewOn(location.x, location.y);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions