コード例 #1
0
 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);
 }
コード例 #2
0
 public void ResolveSettings(TotalsTooltipMod mod)
 {
     trackForbidden = mod.TrackingForbidden;
     visibleMargin  = mod.VisibilityMargin;
 }