SpaceWarpDev / SpaceWarp

A C# modding API for KSP2
MIT License
91 stars 38 forks source link

[FEATURE] API to add custom difficulty settings #265

Open KnedlikMCPE opened 1 year ago

KnedlikMCPE commented 1 year ago

Feature Information

Feature description

An API method to register a custom field in the difficulty settings

Solution proposal

The easiest solution that comes to mind is forcing a custom class inheriting from the default DifficultyOptionsData on the game

Additional context

Currently working on it, just thought I should make an issue before I do all the work

Screenshots / Images

None

cheese3660 commented 1 year ago

This is definitely a good idea, hmm, I see but one issue with this, we could implement it and the entire system could change once For Science! comes out as that is an update quite pertinent to this

KnedlikMCPE commented 1 year ago

It's better than nothing, I don't see a reason to just halt all development until the update. Plus, there may be a better solution than what I proposed.

KnedlikMCPE commented 1 year ago

Seems that SpaceWarp support isn't required, once I have the process figured out, I'll publish the discovery and close this issue with the link - though it could still be added as an abstraction if there's interest