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

updating code samples that uses outdated version of CurrentPlayer.ReadOnlyTags #1386

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Cj-bc
Copy link

@Cj-bc Cj-bc commented Dec 1, 2024

Select the type of change:

  • Small Changes - Typos, formatting, slight revisions
  • New Content - New features, sections, pages, tutorials
  • Site and Tools - Updates, maintenance, and new packages for the site and Docusaurus

Purpose of the Pull Request:

Return value of CurrentPlayer.ReadOnlyTags has been changed from IReadOnlyCollection<string>(in Multiplayer Play mode 0.6.0) to string[] since 1.0.0. As string[] doesn't have .Contains() method, it should be adjusted.

I would like to ask few things:

  • I wonder if it was a valid decision to use System.Linq. If it's better to do in another way, I'll do so.
  • Is it better to update mppm_versioned_docs/version-1.* too?

Issue Number:

Nothing.

@unity-cla-assistant
Copy link

unity-cla-assistant commented Dec 1, 2024

CLA assistant check
All committers have signed the CLA.

Return value of CurrentPlayer.ReadOnlyTags has been changed from
`IReadOnlyCollection<string>` to `string[]` since 1.0.0.
As `string[]` doesn't have `.Contains()` method, it should be adjusted.
@Cj-bc Cj-bc force-pushed the mppm/update-usage-of-readonlytags branch from 6caa2e9 to 89a6dc2 Compare December 6, 2024 01:53
@jabbacakes
Copy link
Collaborator

@Vic-Cooper This is an MPPM update - could you get someone from the dev team to verify it before we merge?

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.

5 participants