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

Fix exposing fields for SyncDelegates #437

Merged

Conversation

SokyranTheDragon
Copy link
Member

Currently, exposing fields expects the method to provide a full path to the fields, instead of a field relative to the parent object.

For example, before this change the paths needed to be: RimWorld.SocialCardUtility+<>c__DisplayClass42_1/roleChangeRitual, RimWorld.SocialCardUtility+<>c__DisplayClass42_1/ritualTarget, RimWorld.SocialCardUtility+<>c__DisplayClass42_1/CS$<>8__locals1/pawn

After this change, the paths now need to be:
roleChangeRitual, ritualTarget, CS$<>8__locals1/pawn

On top of that, exposing the fields had no effect on reading them, which caused reading to fail due to the types not having sync workers. This will fix it by actually exposing the fields while reading.

Currently, exposing fields expects the method to provide a full path to the fields, instead of a field relative to the parent object.

For example, before this change the paths needed to be:
`RimWorld.SocialCardUtility+<>c__DisplayClass42_1/roleChangeRitual`, `RimWorld.SocialCardUtility+<>c__DisplayClass42_1/ritualTarget`, `RimWorld.SocialCardUtility+<>c__DisplayClass42_1/CS$<>8__locals1/pawn`

After this change, the paths now need to be:
`roleChangeRitual`, `ritualTarget`, `CS$<>8__locals1/pawn`
@SokyranTheDragon SokyranTheDragon added fix Fixes for a bug or desync. 1.5 Fixes or bugs relating to 1.5 (Not Anomaly). labels Apr 8, 2024
@Zetrith Zetrith merged commit b61a92b into rwmt:master Apr 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.5 Fixes or bugs relating to 1.5 (Not Anomaly). fix Fixes for a bug or desync.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants