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

Add opponent's groupId in BattleToken #109

Open
tandotbt opened this issue Feb 15, 2025 · 1 comment
Open

Add opponent's groupId in BattleToken #109

tandotbt opened this issue Feb 15, 2025 · 1 comment

Comments

@tandotbt
Copy link

battle.Entity.Token = _battleTokenGenerator.GenerateBattleToken(battle.Entity.Id);

With availableOpponentId in BattleToken, I can determine how many score a player has gained or lost when winning or losing through TxId.

@Atralupus
Copy link
Member

Could you take a look at this? It shouldn’t be too difficult if AddBattleAsync processes the opponent’s information as well.

Additionally, if we’re modifying the token payload, it would be a good idea to include schema versioning. In our case, that would be the payload version.

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

No branches or pull requests

2 participants