Repository navigation
fix(bridge-rimchat): fix DiplomacyManager reflection P0, main-thread safety, and sync packaging/docs - #23
Merged
Conversation
…safety, and sync packaging/docs refactor: consolidate bridge onto Core reflection and detection APIs Replace the bridge's private reflection plumbing with Core's shared ReflectionAccessor and SoftDependencyDetector, and tighten runtime guards across the bridge. - RimChatApiShim: drop local type resolution, NoInlining, and cached property helpers; delegate to Accessor for cached types, fields, and singleton lookup (now supporting static fields as well as properties). - RimChatDetector: probe real manager types instead of the RimChatAPI type so detection reflects actual dependency presence. - ContextPullBridge: remove redundant IsRimChatActive checks (detection is handled upstream), make circuit-breaker flags volatile, and read dialogueSessions with Public|NonPublic|Instance. - SharedIncidentCooldown: null-guard Find.TickManager. - ActionGate: remove IsRomanceAction; IsSocialAction covers romance. - Settings: round cooldown slider via Mathf.RoundToInt. - Debug actions: null-safe selector/name access and report context keys from RimMindAPI.Context.ContextKeys. - Remove csproj DeployToModsFolder target and deploy-single.sh; rework deploy-single.ps1 for dual-version builds with robocopy exclusions. - Update tests, CI paths, docs, and About metadata to match. BREAKING CHANGE: RimChatApiShim.ApiType, GetCachedProperty, and ActionGate.IsRomanceAction are removed; ConfigureTypesForTesting no longer accepts an apiType argument.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
Phase 2 full-codebase cleanup & Water-Dispenser refactor verified locally across 1.6 & 1.7 builds and full test suite.