Client LuaCsForBarotrauma
DummyFireSource.cs
1 using Microsoft.Xna.Framework;
2 using System;
3 
4 namespace Barotrauma
5 {
6  partial class DummyFireSource : FireSource
7  {
8  private Vector2 maxSize;
9 
10  public bool CausedByPsychosis;
11 
12  public DummyFireSource(Vector2 maxSize, Vector2 worldPosition, Hull spawningHull = null, bool isNetworkMessage = false) :
13  base(worldPosition, spawningHull, sourceCharacter: null, isNetworkMessage: isNetworkMessage)
14  {
15  this.maxSize = maxSize;
16  DamagesItems = false;
17  DamagesCharacters = true;
18  }
19 
20  public override float DamageRange
21  {
22  get { return 5f; }
23  }
24 
25  protected override void LimitSize()
26  {
27  base.LimitSize();
28  size.X = Math.Min(maxSize.X, size.X);
29  size.Y = Math.Min(maxSize.Y, size.Y);
30  }
31 
32  protected override void AdjustXPos(float growModifier, float deltaTime)
33  {
34 
35  }
36 
37  protected override void ReduceOxygen(float deltaTime)
38  {
39 
40  }
41  }
42 }
override void AdjustXPos(float growModifier, float deltaTime)
DummyFireSource(Vector2 maxSize, Vector2 worldPosition, Hull spawningHull=null, bool isNetworkMessage=false)
override void ReduceOxygen(float deltaTime)