public void HullDamageIsNoLongerNear(HullDamage hd) { if (hullDamage == hd) { hullDamage = null; } }
private void ApplyHullDamage(HullDamage hullDamage) { _tracker.Modify(hullDamage.Timestamp, ship => { ship.HullIntegrity = hullDamage.Health; }); }
internal HullDamageEvent InvokeEvent(HullDamageEvent arg) { if (_api.ValidateEvent(arg)) { HullDamage?.Invoke(_api, arg); } return(arg); }
public void StopRepairing() { TogglePhysics(true); currentlyRepairing.LeaveRepair(transform); currentlyRepairing.OnRepaired -= StopRepairing; currentlyRepairing = null; }
public void StartRepairing(Grabbable log) { currentlyRepairing = hullDamage; hullDamage = null; if (!currentlyRepairing.HasLog() && log != null) { currentlyRepairing.GiveLog(log); } TogglePhysics(false); currentlyRepairing.OnRepaired += StopRepairing; currentlyRepairing.JoinRepair(transform); }
public void HullDamageIsNear(HullDamage hd) { hullDamage = hd; }