Add managed trash container state and event APIs - #284
Merged
Conversation
ifBars
approved these changes
Aug 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #240.
Summary
TrashContainerwrapper for existing native containersTryBagTrashon server authority and native eligibility, then use the native replicated bagging pathReview repairs
Validation
git diff --check: cleanIn-game Mono
Passed on Schedule I 0.4.6f13 Alternate using a copied disposable completed save. Verified direct lookup, no hierarchy fallback, active/inactive enumeration, duplicate and cross-wrapper removal for both events, immutable snapshots, live off-server rejection, authoritative bagging, level-change forwarding, and native clearing.
In-game IL2CPP
Passed on Schedule I 0.4.6f13 using a copied disposable completed save. Verified direct lookup, no hierarchy fallback, active/inactive enumeration, duplicate and cross-wrapper removal for both events, immutable snapshots, authoritative bagging, level-change forwarding, and native clearing. The non-server branch is source-gated by
InstanceFinder.IsServer; the live non-server rejection was exercised in Mono before world load.Both game installations were restored after testing, no probe remained installed, and the source save fixtures were not modified.
Compatibility
Additive public API only. No existing source, binary, save, or network payload contract is changed. Bagging delegates to the native server-authoritative implementation.