Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass ActorInfo through building-placement-validation code. #14955

Merged
merged 1 commit into from Mar 21, 2018

Conversation

pchote
Copy link
Member

@pchote pchote commented Mar 20, 2018

This extracts the messy plumbing changes from #14862 with a few extra changes that I would otherwise have left as review comments. I would prefer to split this out into its own PR so that #14862 can focus on the new behaviour.

@@ -17,7 +17,7 @@ namespace OpenRA.Mods.Common.Traits
{
public static class BuildingUtils
{
public static bool IsCellBuildable(this World world, CPos cell, BuildingInfo bi, Actor toIgnore = null)
public static bool IsCellBuildable(this World world, CPos cell, ActorInfo ai, BuildingInfo bi, Actor toIgnore = null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this change for? Just consistency with CanPlaceBuilding?

Copy link
Member Author

@pchote pchote Mar 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be used by #14862 in addition to consistency.

@abcdefg30 abcdefg30 merged commit 6b24271 into OpenRA:bleed Mar 21, 2018
@abcdefg30
Copy link
Member

I guess this can be mentioned in the changelog of #14862 if it wants one.

@pchote pchote deleted the replaceable-plumbing branch April 28, 2018 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants