public TotalsTooltipDrawer(TotalsTooltipMod mod) { modInstance = mod; Tracker = new ConstructibleTotalsTracker(); SelectionChangeNotifierData.RegisterMethod(OnSelectionChange); FrameChangeNotifierData.RegisterMethod(OnSelectionChange); PlaySettingsChangeDetector.RegisterMethod(OnPlaySettingChange); LTAddNotifier.RegisterMethod(OnThingAdded); LTRemoveNotifier.RegisterMethod(OnThingRemove); FrameWorkedOnDetector.RegisterMethod(Tracker.FrameBeingBuilt); cameraChangeDetector = new CameraChangeDetector(); cameraChangeDetector.RegisterMethod(OnCameraChange); }
public void ResolveSettings(TotalsTooltipMod mod) { trackForbidden = mod.TrackingForbidden; visibleMargin = mod.VisibilityMargin; }