Multiplayer
Multiplayer copied to clipboard
Debug finish research/apply techprint not synced
Both of those are called through RimWorld.MainTabWindow_Research:DrawLeftRect
.
The simple solution would involve watching currentProj
field inside of RimWorld.ResearchManager
and syncing RimWorld.ResearchManager:FinishProject
and RimWorld.ResearchManager:ApplyTechprint
. However, my question would be - is it safe to do so? Are those ever called from a place where those methods would end up being synced (and cancelled if not in dev mode) when we don't want them to?
ResearchTree and friends call FinishProject. A SyncField is more expensive than a SyncMethod. If possible prefer SyncMethod/SyncDelegate. In this case I think you can do with the delegates in MainTabWindow_Research. I'm not aware of anything that touches currentProj directly.