Exemple #1
0
 public void EndShoot(MyShootActionEnum action)
 {
     MyAnalyticsHelper.ReportActivityEnd(this.Owner, "Drilling");
     m_drillBase.StopDrill();
     m_tryingToDrill = false;
     SinkComp.Update();
 }
Exemple #2
0
 void WantstoDrillChanged()
 {
     if ((Enabled || WantsToDrill) && IsFunctional && ResourceSink!=null && ResourceSink.IsPowered)
     {
         // starts the animation
         m_drillBase.Drill(collectOre: false, performCutout: false);
         NeedsUpdate |= MyEntityUpdateEnum.EACH_10TH_FRAME;
     }
     else
     {
         NeedsUpdate &= ~MyEntityUpdateEnum.EACH_10TH_FRAME;
         SetupDrillFrameCountdown();
         m_drillBase.StopDrill();
     }
 }
 void Receiver_IsPoweredChanged()
 {
     UpdateIsWorking();
     if ((Enabled || m_wantsToDrill) && IsFunctional && PowerReceiver.IsPowered)
     {
         // starts the animation
         m_drillBase.Drill(collectOre: false, performCutout: false);
         NeedsUpdate |= MyEntityUpdateEnum.EACH_10TH_FRAME;
     }
     else
     {
         NeedsUpdate &= ~MyEntityUpdateEnum.EACH_10TH_FRAME;
         SetupDrillFrameCountdown();
         m_drillBase.StopDrill();
     }
 }
Exemple #4
0
 void WantstoDrillChanged()
 {
     ResourceSink.Update();
     if ((Enabled || WantsToDrill) && IsFunctional && ResourceSink != null && ResourceSink.IsPowered)
     {
         // starts the animation
         if (!m_drillBase.IsDrilling)
         {
             m_drillBase.Drill(false, false);
         }
         NeedsUpdate |= MyEntityUpdateEnum.EACH_FRAME | MyEntityUpdateEnum.EACH_10TH_FRAME;
     }
     else
     {
         NeedsUpdate &= ~MyEntityUpdateEnum.EACH_10TH_FRAME;
         SetupDrillFrameCountdown();
         m_drillBase.StopDrill();
     }
 }
Exemple #5
0
 public void EndShoot(MyShootActionEnum action)
 {
     m_drillBase.StopDrill();
     m_tryingToDrill = false;
     SinkComp.Update();
 }
 public void EndShoot(MyShootActionEnum action)
 {
     m_drillBase.StopDrill();
     m_tryingToDrill = false;
     PowerReceiver.Update();
 }