My Project v1
Project
载入中...
搜索中...
未找到
Game.SoundGeneratorElectricElement
类 Game.SoundGeneratorElectricElement 继承关系图:
Game.SoundGeneratorElectricElement 的协作图:

Public 成员函数

 SoundGeneratorElectricElement (SubsystemElectricity subsystemElectricity, CellFace cellFace)
 
override bool Simulate ()
 
- Public 成员函数 继承自 Game.RotateableElectricElement
 RotateableElectricElement (SubsystemElectricity subsystemElectricity, CellFace cellFace)
 
override bool OnInteract (TerrainRaycastResult raycastResult, ComponentMiner componentMiner)
 
- 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 float GetOutputVoltage (int face)
 
virtual void OnAdded ()
 
virtual void OnRemoved ()
 
virtual void OnCollide (CellFace cellFace, float velocity, ComponentBody componentBody)
 
virtual void OnHitByProjectile (CellFace cellFace, WorldItem worldItem)
 
virtual void OnConnectionsChanged ()
 
int CalculateHighInputsCount ()
 

Public 属性

SubsystemNoise m_subsystemNoise
 
SubsystemParticles m_subsystemParticles
 
SoundParticleSystem m_particleSystem
 
Random m_random = new()
 
int m_lastToneInput
 
double m_playAllowedTime
 
string[] m_tones
 
int[] m_maxOctaves
 
string[] m_drums
 

额外继承的成员函数

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

构造及析构函数说明

◆ SoundGeneratorElectricElement()

Game.SoundGeneratorElectricElement.SoundGeneratorElectricElement ( SubsystemElectricity subsystemElectricity,
CellFace cellFace )
函数调用图:

成员函数说明

◆ Simulate()

override bool Game.SoundGeneratorElectricElement.Simulate ( )
virtual

重载 Game.ElectricElement .

函数调用图:

类成员变量说明

◆ m_drums

string [] Game.SoundGeneratorElectricElement.m_drums
初始值:
= new string[10]
{
"Snare",
"BassDrum",
"ClosedHiHat",
"PedalHiHat",
"OpenHiHat",
"LowTom",
"HighTom",
"CrashCymbal",
"RideCymbal",
"HandClap"
}

◆ m_lastToneInput

int Game.SoundGeneratorElectricElement.m_lastToneInput

◆ m_maxOctaves

int [] Game.SoundGeneratorElectricElement.m_maxOctaves
初始值:
= new int[16]
{
0, 6, 5, 6, 6, 6, 6, 6, 6, 0, 6, 0, 0, 0, 0, 6
}

◆ m_particleSystem

SoundParticleSystem Game.SoundGeneratorElectricElement.m_particleSystem

◆ m_playAllowedTime

double Game.SoundGeneratorElectricElement.m_playAllowedTime

◆ m_random

Random Game.SoundGeneratorElectricElement.m_random = new()

◆ m_subsystemNoise

SubsystemNoise Game.SoundGeneratorElectricElement.m_subsystemNoise

◆ m_subsystemParticles

SubsystemParticles Game.SoundGeneratorElectricElement.m_subsystemParticles

◆ m_tones

string [] Game.SoundGeneratorElectricElement.m_tones
初始值:
= new string[16]
{
"",
"Bell",
"Organ",
"Ping",
"String",
"Trumpet",
"Voice",
"Piano",
"PianoLong",
"Drums",
"Bass",
"",
"",
"",
"",
"Piano"
}

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