Skip to content

Enhancement/#61 - Json support - #62

Merged
sunnamed434 merged 6 commits into
masterfrom
enhancement/#61
May 20, 2024
Merged

Enhancement/#61 - Json support #62
sunnamed434 merged 6 commits into
masterfrom
enhancement/#61

Conversation

@educatalan02

Copy link
Copy Markdown
Collaborator

#61

@educatalan02 educatalan02 linked an issue May 13, 2024 that may be closed by this pull request
@sunnamed434

Copy link
Copy Markdown
Member

I fixed branch conflicts, next time make sure to use the base repo as RMFix not SmartlyDressedGames/Legally-Distinct-Missile

@sunnamed434

Copy link
Copy Markdown
Member

Since we now have Newtonsoft.Json package in Rocket.Core we need more testing to make sure all works fine, and probably we will need to make smth like runtime libs folder (smth similar to openmod) which contains all the libraries for the Module (Rocket itself), maybe Newtonsoft is already in Unturned, but thinking for the future I think many folks will find it useful

@sunnamed434

Copy link
Copy Markdown
Member

Fix Deregister RocketAttributeCommand is useful in this PR since we lost this change by our latest changes in other PRs

@educatalan02

Copy link
Copy Markdown
Collaborator Author

Since we now have Newtonsoft.Json package in Rocket.Core we need more testing to make sure all works fine, and probably we will need to make smth like runtime libs folder (smth similar to openmod) which contains all the libraries for the Module (Rocket itself), maybe Newtonsoft is already in Unturned, but thinking for the future I think many folks will find it useful

It is fully compatible with older plugins. But new plugins that have JSON comments, will not work with older versions of RM.
And yes, Newtonsoft is already built into Unturned.

@sunnamed434

Copy link
Copy Markdown
Member

Since we now have Newtonsoft.Json package in Rocket.Core we need more testing to make sure all works fine, and probably we will need to make smth like runtime libs folder (smth similar to openmod) which contains all the libraries for the Module (Rocket itself), maybe Newtonsoft is already in Unturned, but thinking for the future I think many folks will find it useful

It is fully compatible with older plugins. But new plugins that have JSON comments, will not work with older versions of RM. And yes, Newtonsoft is already built into Unturned.

Ok, nice to hear that

Comment on lines -69 to -78
public void AddRange(IEnumerable<TranslationListEntry> collection)
{
translations.AddRange(collection);
}

public void AddRange(TranslationList collection)
{
translations.AddRange(collection.translations);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wouldn't it be a breaking change? Maybe make sense to have same methods as before, just in case

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't think so, have you ever seen a plugin that uses that method to add translations?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe you're right that you and I didn't saw that someone used/use it, but I still think it makes sense to keep it, just in case, who knows, maybe someone used it or still use

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Added those methods back in the latest commit

@sunnamed434
sunnamed434 merged commit 3fa6895 into master May 20, 2024
@sunnamed434
sunnamed434 deleted the enhancement/#61 branch May 22, 2024 06:59
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.

Add JSON Support for plugins

4 participants