Skip to content

feat: Adding "previousValue" in NetworkListEvent #1528

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

Merged
merged 2 commits into from
Dec 15, 2021

Conversation

SamuelBellomo
Copy link
Contributor

@SamuelBellomo SamuelBellomo commented Dec 13, 2021

This way, instead of users having to maintain a local value themselves, we just add it when individual values changes. It'll stay to default with other event types (just like "index" stays to default when the event type doesn't have an index)

No Jira

PR Checklist

  • Have you added a backport label (if needed)? For example, the type:backport-release-* label. After you backport the PR, the label changes to stat:backported-release-*.
  • Have you updated the changelog? Each package has a CHANGELOG.md file.
  • Have you updated or added the documentation for your PR? When you add a new feature, change a property name, or change the behavior of a feature, it's best practice to include related documentation changes in the same PR or a link to the documenation repo PR if this is a manual update.

Changelog

com.unity.netcode.gameobjects

  • Added: - Adding PreviousValue in NetworkListEvent, when Value has changed

Testing and Documentation

  • Includes integration tests.
  • Includes edits to existing public API documentation.

…y, instead of users having to maintain a local value themselves, we just add it when individual values changes. It'll stay to default with other event types (just like "index" stays to default when the event type doesn't have an index)
@SamuelBellomo SamuelBellomo marked this pull request as ready for review December 15, 2021 19:52
@mattwalsh-unity mattwalsh-unity merged commit 2742346 into develop Dec 15, 2021
@mattwalsh-unity mattwalsh-unity deleted the sam/feature/networklist-previous-value branch December 15, 2021 23:25
SamuelBellomo added a commit that referenced this pull request Jan 11, 2022
* Quality of life, adding "previousValue" field in list events. This way, instead of users having to maintain a local value themselves, we just add it when individual values changes. It'll stay to default with other event types (just like "index" stays to default when the event type doesn't have an index)

* update to changelog

(cherry picked from commit 2742346)
@@ -9,6 +9,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
## [Unreleased]

### Added
- Adding `PreviousValue` in NetworkListEvent, when `Value` has changed
Copy link
Contributor

Choose a reason for hiding this comment

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

:(

- - Adding `PreviousValue` in NetworkListEvent, when `Value` has changed
+ - Adding `PreviousValue` in NetworkListEvent, when `Value` has changed (#1528)

mollstam pushed a commit to Keepsake-Games/com.unity.netcode.gameobjects that referenced this pull request Feb 13, 2023
…1528)

* Quality of life, adding "previousValue" field in list events. This way, instead of users having to maintain a local value themselves, we just add it when individual values changes. It'll stay to default with other event types (just like "index" stays to default when the event type doesn't have an index)

* update to changelog
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.

3 participants