Client LuaCsForBarotrauma
ShipIssueWorkerGlobal.cs
1 namespace Barotrauma
2 {
3  abstract class ShipGlobalIssue
4  {
5  public float GlobalImportance { get; set; }
6 
9  {
10  this.shipCommandManager = shipCommandManager;
11  }
12  public abstract void CalculateGlobalIssue();
13  }
14 
16  {
17  private readonly ShipGlobalIssue shipGlobalIssue;
18 
19  public ShipIssueWorkerGlobal(ShipCommandManager shipCommandManager, Order suggestedOrderPrefab, ShipGlobalIssue shipGlobalIssue) : base (shipCommandManager, suggestedOrderPrefab)
20  {
21  this.shipGlobalIssue = shipGlobalIssue;
22  }
23 
24  public override void CalculateImportanceSpecific() // importances for global issues are precalculated, so that they don't need to be calculated per each attending character
25  {
26  Importance = shipGlobalIssue.GlobalImportance;
27  }
28  }
29 }
ShipGlobalIssue(ShipCommandManager shipCommandManager)
abstract void CalculateGlobalIssue()
ShipCommandManager shipCommandManager
ShipIssueWorkerGlobal(ShipCommandManager shipCommandManager, Order suggestedOrderPrefab, ShipGlobalIssue shipGlobalIssue)
readonly ShipCommandManager shipCommandManager