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

Sync SiegeEvent fields/props #1027

Open
wants to merge 6 commits into
base: development
Choose a base branch
from
Open

Conversation

brodrigz
Copy link
Contributor

@brodrigz brodrigz commented Nov 8, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

  • All new classes have class-level documentation comments, if there are any at all
  • Tests for the changes have been added (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation update
  • Other... Please describe:

What is the current behavior?

SiegeEvent fields and props not synced

What is the new behavior?

Resolves #917
Resolves #916
Syncs Fields: BesiegedSettlement, BesiegerCamp, _isBesiegerDefeated
Syncs Props: SiegeStartTime
Adds E2E

Other information

The first commit was made entirely by running coop-create all "TaleWorlds.CampaignSystem.Siege.SiegeEvent, TaleWorlds.CampaignSystem" --members BesiegedSettlement BesiegerCamp _isBesiegerDefeated SiegeStartTime

This PR is also a proof of concept for the new scaffolding CLI, by reviewing it you are also reviewing the CLI's template files.


Assert.True(client.ObjectManager.TryGetObject<BesiegerCamp>(besiegerCampId, out var clientBesiegerCamp));

Assert.True(clientBesiegerCamp == SiegeEvent.BesiegerCamp);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Assert.True(clientBesiegerCamp == SiegeEvent.BesiegerCamp);
Assert.Same(clientBesiegerCamp == SiegeEvent.BesiegerCamp);


Assert.True(client.ObjectManager.TryGetObject<Settlement>(besiegedSettlementId, out var clientBesiegedSettlement));

Assert.True(clientBesiegedSettlement == SiegeEvent.BesiegedSettlement);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Assert.True(clientBesiegedSettlement == SiegeEvent.BesiegedSettlement);
Assert.Same(clientBesiegedSettlement == SiegeEvent.BesiegedSettlement);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

Sync: SiegeEvent Properties Sync: SiegeEvent Fields
2 participants