Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Game.MotionDetectorElectricElement
类 Game.MotionDetectorElectricElement 继承关系图:
Game.MotionDetectorElectricElement 的协作图:

Public 成员函数

 MotionDetectorElectricElement (SubsystemElectricity subsystemElectricity, CellFace cellFace)
override float GetOutputVoltage (int face)
override bool Simulate ()
float CalculateMotionVoltage ()
float TestPoint (Vector3 p)
Public 成员函数 继承自 Game.MountedElectricElement
 MountedElectricElement (SubsystemElectricity subsystemElectricity, CellFace cellFace)
override void OnNeighborBlockChanged (CellFace cellFace, int neighborX, int neighborY, int neighborZ)
Public 成员函数 继承自 Game.ElectricElement
 ElectricElement (SubsystemElectricity subsystemElectricity, IEnumerable< CellFace > cellFaces)
 ElectricElement (SubsystemElectricity subsystemElectricity, CellFace cellFace)
virtual void OnAdded ()
virtual void OnRemoved ()
virtual bool OnInteract (TerrainRaycastResult raycastResult, ComponentMiner componentMiner)
virtual void OnCollide (CellFace cellFace, float velocity, ComponentBody componentBody)
virtual void OnHitByProjectile (CellFace cellFace, WorldItem worldItem)
virtual void OnConnectionsChanged ()
int CalculateHighInputsCount ()

Public 属性

SubsystemBodies m_subsystemBodies
SubsystemMovingBlocks m_subsystemMovingBlocks
SubsystemProjectiles m_subsystemProjectiles
SubsystemPickables m_subsystemPickables
float m_voltage
Vector3 m_center
Vector3 m_direction
Vector2 m_corner1
Vector2 m_corner2
DynamicArray< ComponentBodym_bodies = []

静态 Public 属性

const float m_range = 8f
const float m_speedThreshold = 0.25f
const float m_pollingPeriod = 0.25f

额外继承的成员函数

静态 Public 成员函数 继承自 Game.ElectricElement
static bool IsSignalHigh (float voltage)
属性 继承自 Game.ElectricElement
SubsystemElectricity SubsystemElectricity [get, set]
ReadOnlyList< CellFaceCellFaces [get, set]
List< ElectricConnectionConnections [get, set]

详细描述

在文件 MotionDetectorElectricElement.cs4 行定义.

构造及析构函数说明

◆ MotionDetectorElectricElement()

Game.MotionDetectorElectricElement.MotionDetectorElectricElement ( SubsystemElectricity subsystemElectricity,
CellFace cellFace )

在文件 MotionDetectorElectricElement.cs31 行定义.

函数调用图:

成员函数说明

◆ CalculateMotionVoltage()

float Game.MotionDetectorElectricElement.CalculateMotionVoltage ( )

在文件 MotionDetectorElectricElement.cs59 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ GetOutputVoltage()

override float Game.MotionDetectorElectricElement.GetOutputVoltage ( int face)
virtual

重载 Game.ElectricElement .

在文件 MotionDetectorElectricElement.cs45 行定义.

◆ Simulate()

override bool Game.MotionDetectorElectricElement.Simulate ( )
virtual

重载 Game.ElectricElement .

在文件 MotionDetectorElectricElement.cs47 行定义.

函数调用图:

◆ TestPoint()

float Game.MotionDetectorElectricElement.TestPoint ( Vector3 p)

在文件 MotionDetectorElectricElement.cs94 行定义.

函数调用图:
这是这个函数的调用关系图:

类成员变量说明

◆ m_bodies

DynamicArray<ComponentBody> Game.MotionDetectorElectricElement.m_bodies = []

在文件 MotionDetectorElectricElement.cs29 行定义.

◆ m_center

Vector3 Game.MotionDetectorElectricElement.m_center

在文件 MotionDetectorElectricElement.cs21 行定义.

◆ m_corner1

Vector2 Game.MotionDetectorElectricElement.m_corner1

在文件 MotionDetectorElectricElement.cs25 行定义.

◆ m_corner2

Vector2 Game.MotionDetectorElectricElement.m_corner2

在文件 MotionDetectorElectricElement.cs27 行定义.

◆ m_direction

Vector3 Game.MotionDetectorElectricElement.m_direction

在文件 MotionDetectorElectricElement.cs23 行定义.

◆ m_pollingPeriod

const float Game.MotionDetectorElectricElement.m_pollingPeriod = 0.25f
static

在文件 MotionDetectorElectricElement.cs9 行定义.

◆ m_range

const float Game.MotionDetectorElectricElement.m_range = 8f
static

在文件 MotionDetectorElectricElement.cs5 行定义.

◆ m_speedThreshold

const float Game.MotionDetectorElectricElement.m_speedThreshold = 0.25f
static

在文件 MotionDetectorElectricElement.cs7 行定义.

◆ m_subsystemBodies

SubsystemBodies Game.MotionDetectorElectricElement.m_subsystemBodies

在文件 MotionDetectorElectricElement.cs11 行定义.

◆ m_subsystemMovingBlocks

SubsystemMovingBlocks Game.MotionDetectorElectricElement.m_subsystemMovingBlocks

在文件 MotionDetectorElectricElement.cs13 行定义.

◆ m_subsystemPickables

SubsystemPickables Game.MotionDetectorElectricElement.m_subsystemPickables

在文件 MotionDetectorElectricElement.cs17 行定义.

◆ m_subsystemProjectiles

SubsystemProjectiles Game.MotionDetectorElectricElement.m_subsystemProjectiles

在文件 MotionDetectorElectricElement.cs15 行定义.

◆ m_voltage

float Game.MotionDetectorElectricElement.m_voltage

在文件 MotionDetectorElectricElement.cs19 行定义.


该类的文档由以下文件生成: