コード例 #1
0
ファイル: LaserDrill.cs プロジェクト: Cheetah97/LaserWelders
 public override void Close()
 {
     try
     {
         if (SessionCore.Settings.Debug)
         {
             DebugNote.Hide();
             DebugNote.AliveTime = 0;
             DebugNote           = null;
         }
     }
     catch (Exception Scrap)
     {
         SessionCore.LogError($"{Drill?.CustomName}.Close().DebugClose", Scrap);
     }
     try
     {
         SessionCore.SaveUnregister(Save);
         SyncHarvestEfficiency.GotValueFromServer -= Drill.UpdateVisual;
         SyncHarvestEfficiency.Close();
     }
     catch (Exception Scrap)
     {
         SessionCore.LogError($"{Drill?.CustomName}.Close()", Scrap);
     }
 }
コード例 #2
0
 public override void Close()
 {
     SyncBeamLength.GotValueFromServer      -= ToolComp.Tool.UpdateVisual;
     SyncDistanceMode.GotValueFromServer    -= ToolComp.Tool.UpdateVisual;
     SyncSpeedMultiplier.GotValueFromServer -= ToolComp.Tool.UpdateVisual;
     SyncBeamLength.Close();
     SyncDistanceMode.Close();
     SyncSpeedMultiplier.Close();
 }
コード例 #3
0
ファイル: WelderHUD.cs プロジェクト: Cheetah97/LaserWelders
 public override void Close()
 {
     MissingText.GotValueFromServer -= ComplainMissingLocal;
     MissingText.Close();
 }