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
}
Barotrauma.DummyFireSource
Definition:
DummyFireSource.cs:7
Barotrauma.DummyFireSource.LimitSize
override void LimitSize()
Definition:
DummyFireSource.cs:25
Barotrauma.DummyFireSource.AdjustXPos
override void AdjustXPos(float growModifier, float deltaTime)
Definition:
DummyFireSource.cs:32
Barotrauma.DummyFireSource.DamageRange
override float DamageRange
Definition:
DummyFireSource.cs:21
Barotrauma.DummyFireSource.CausedByPsychosis
bool CausedByPsychosis
Definition:
DummyFireSource.cs:10
Barotrauma.DummyFireSource.DummyFireSource
DummyFireSource(Vector2 maxSize, Vector2 worldPosition, Hull spawningHull=null, bool isNetworkMessage=false)
Definition:
DummyFireSource.cs:12
Barotrauma.DummyFireSource.ReduceOxygen
override void ReduceOxygen(float deltaTime)
Definition:
DummyFireSource.cs:37
Barotrauma.FireSource
Definition:
BarotraumaShared/SharedSource/Map/FireSource.cs:17
Barotrauma.FireSource.DamagesItems
bool DamagesItems
Definition:
BarotraumaShared/SharedSource/Map/FireSource.cs:73
Barotrauma.FireSource.size
Vector2 size
Definition:
BarotraumaShared/SharedSource/Map/FireSource.cs:25
Barotrauma.FireSource.DamagesCharacters
bool DamagesCharacters
Definition:
BarotraumaShared/SharedSource/Map/FireSource.cs:79
Barotrauma.Hull
Definition:
BarotraumaShared/SharedSource/Map/Hull.cs:115
Barotrauma
Definition:
AchievementManager.cs:12
Barotrauma
BarotraumaShared
SharedSource
Map
DummyFireSource.cs
Generated by
1.9.1