You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(VGE): sync oxygen gizmo via sync method with typed FieldRef (#577)
Replaces the oxygen gizmo sync fields with a SyncMethod + SyncWorker
so the Gizmo_Slider.targetValuePct cache round-trips cleanly instead
of being overwritten every frame by the base-class slider logic.
Uses AccessTools.FieldRef<object, ThingComp> / FieldRef<object,
Gizmo_Slider> so callsites don't need casts. targetType is set via
reflection on the ISyncField because RegisterSyncField resolves it
via FieldInfo.ReflectedType, which returns the base Gizmo_Slider
rather than the concrete subclass. See rwmt/Multiplayer#880.
0 commit comments