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

Add API for mods to register their custom module PartComponentModule for background resource processing #274

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

Falki-git
Copy link
Contributor

@Falki-git Falki-git commented Dec 20, 2023

Usage is:

To register:
SpaceWarp.API.Parts.PartComponentModuleOverride
.RegisterModuleForBackgroundResourceProcessing < YourCustomModulePartComponentModule >();

To unregister:
SpaceWarp.API.Parts.PartComponentModuleOverride
.UnregisterModuleForBackgroundResourceProcessing < YourCustomModulePartComponentModule >();

# Conflicts:
#	Directory.Build.props
#	src/SpaceWarp.Core/API/Parts/PartComponentModuleOverride.cs
#	src/SpaceWarp.Core/Patching/PartOwnerComponentOnFixedUpdate.cs
Copy link
Contributor

@jan-bures jan-bures left a comment

Choose a reason for hiding this comment

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

👍

@jan-bures jan-bures merged commit 612ac57 into SpaceWarpDev:dev Dec 20, 2023
1 of 2 checks passed
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.

2 participants