Skip to content

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

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

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?

Copy link

@kpurcellunity kpurcellunity left a comment

Choose a reason for hiding this comment

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

I think System.Ling is a valid way to get a contains method for string[] , this change seems good. Also not sure about the question regarding updating the other docs too. Do you know which docs they are referring to? @jabbacakes

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.

6 participants