Survivalcraft API 1.8.2.3
v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
GunpowderKegElectricElement.cs
浏览该文件的文档.
1
namespace
Game
{
2
public
class
GunpowderKegElectricElement
:
ElectricElement
{
3
public
GunpowderKegElectricElement
(
SubsystemElectricity
subsystemElectricity,
CellFace
cellFace) : base(subsystemElectricity, cellFace) { }
4
5
public
override
bool
Simulate
() {
6
if
(
CalculateHighInputsCount
() > 0) {
7
CellFace
cellFace =
CellFaces
[0];
8
SubsystemElectricity
.Project.FindSubsystem<
SubsystemExplosivesBlockBehavior
>(
true
).IgniteFuse(cellFace.
X
, cellFace.
Y
, cellFace.
Z
);
9
}
10
return
false
;
11
}
12
}
13
}
Game.ElectricElement.SubsystemElectricity
SubsystemElectricity SubsystemElectricity
定义
ElectricElement.cs:5
Game.ElectricElement.CalculateHighInputsCount
int CalculateHighInputsCount()
定义
ElectricElement.cs:42
Game.ElectricElement.ElectricElement
ElectricElement(SubsystemElectricity subsystemElectricity, IEnumerable< CellFace > cellFaces)
定义
ElectricElement.cs:11
Game.ElectricElement.CellFaces
ReadOnlyList< CellFace > CellFaces
定义
ElectricElement.cs:7
Game.GunpowderKegElectricElement.Simulate
override bool Simulate()
定义
GunpowderKegElectricElement.cs:5
Game.GunpowderKegElectricElement.GunpowderKegElectricElement
GunpowderKegElectricElement(SubsystemElectricity subsystemElectricity, CellFace cellFace)
定义
GunpowderKegElectricElement.cs:3
Game.SubsystemExplosivesBlockBehavior
定义
SubsystemExplosivesBlockBehavior.cs:7
Game
定义
ContentFileBridge.cs:4
Game.CellFace
定义
CellFace.cs:4
Game.CellFace.X
int X
定义
CellFace.cs:5
Game.CellFace.Y
int Y
定义
CellFace.cs:7
Game.CellFace.Z
int Z
定义
CellFace.cs:9
SurvivalcraftApi 1.8.2.3
Survivalcraft.Windows
Game
GunpowderKegElectricElement.cs
制作者
1.16.1