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

Remove ruleset and mod bindables from PlaylistItem #16876

Merged
merged 4 commits into from Feb 15, 2022

Conversation

smoogipoo
Copy link
Contributor

@smoogipoo smoogipoo commented Feb 15, 2022

This is the first part of my multiplayer model cleanups, aiming to remove all bindables from PlaylistItem.

In this PR, only the Ruleset, RequiredMods and AllowedMods bindables are removed in favour of storing the raw ruleset ID or APIMods. Local instances are now constructed on-the-fly in places where they're required.

Beatmap is not yet removed because it's part of a more complex change.

@@ -117,7 +113,7 @@ public void AddOrUpdateRoom(Room room)
try
{
foreach (var pi in room.Playlist)
pi.MapObjects(rulesets);
pi.MapObjects();
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

I guess removing this completely is a follow-up step?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct, it'll be part of the PR removing the beatmap bindable.

@peppy peppy enabled auto-merge February 15, 2022 08:40
@peppy peppy merged commit 9b7cc63 into ppy:master Feb 15, 2022
@smoogipoo smoogipoo deleted the remove-playlistitem-ruleset-mods branch September 11, 2023 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants