Class MyGyro
Inheritance
System.Object
Sandbox.Game.Entities.Cube.MySyncedBlock
Sandbox.Game.Entities.Cube.MyTerminalBlock
Sandbox.Game.Entities.Cube.MyFunctionalBlock
MyGyro
Implements
Inherited Members
Namespace: Sandbox.Game.Entities
Assembly: Sandbox.Game.dll
Syntax
[MyCubeBlockType]
[MyTerminalInterface]
public class MyGyro : MyFunctionalBlock, IMyComponentOwner<MyIDModule>, IMyUpgradableBlock, IMyUpgradableBlock, IMyEventProxy, IMyEventOwner, IMySyncedEntity, IMyTieredUpdateBlock, IMyUpdateTimer, IMyTextSurfaceProvider, IMyMultiTextPanelComponentOwner, IMyTextPanelComponentOwner, IMyGyro, IMyGyro, IMyFunctionalBlock, IMyFunctionalBlock, IMyTerminalBlock, IMyTerminalBlock, IMyCubeBlock, IMyCubeBlock, IMyEntity, IMyEntity
Constructors
MyGyro()
Declaration
public MyGyro()
Properties
GyroOverride
Declaration
public bool GyroOverride { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
GyroOverrideVelocityGrid
Declaration
public Vector3 GyroOverrideVelocityGrid { get; }
Property Value
Type | Description |
---|---|
Vector3 |
GyroPower
Declaration
public float GyroPower { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
IsAccountedByGyroSystem
Declaration
public bool IsAccountedByGyroSystem { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsPowered
Declaration
public bool IsPowered { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaxGyroForce
Declaration
public float MaxGyroForce { get; }
Property Value
Type | Description |
---|---|
System.Single |
RequiredPowerInput
Declaration
public float RequiredPowerInput { get; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
CheckIsWorking()
Declaration
protected override bool CheckIsWorking()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.CheckIsWorking()
CreateTerminalControls()
Declaration
protected override void CreateTerminalControls()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.CreateTerminalControls()
GetObjectBuilderCubeBlock(Boolean)
Declaration
public override MyObjectBuilder_CubeBlock GetObjectBuilderCubeBlock(bool copy = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | copy |
Returns
Type | Description |
---|---|
MyObjectBuilder_CubeBlock |
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.GetObjectBuilderCubeBlock(System.Boolean)
Init(MyObjectBuilder_CubeBlock, MyCubeGrid)
Declaration
public override void Init(MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid)
Parameters
Type | Name | Description |
---|---|---|
MyObjectBuilder_CubeBlock | objectBuilder | |
MyCubeGrid | cubeGrid |
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.Init(VRage.Game.MyObjectBuilder_CubeBlock, Sandbox.Game.Entities.MyCubeGrid)
OnAddedToScene(Object)
Declaration
public override void OnAddedToScene(object source)
Parameters
Type | Name | Description |
---|---|---|
System.Object | source |
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.OnAddedToScene(System.Object)
SetEmissiveStateWorking()
Declaration
public override bool SetEmissiveStateWorking()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
SetGyroOverride(Boolean)
Declaration
public void SetGyroOverride(bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | value |
SetGyroTorque(Vector3)
Declaration
public void SetGyroTorque(Vector3 torque)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | torque |
UpdateDetailedInfo(StringBuilder)
Declaration
protected override void UpdateDetailedInfo(StringBuilder detailedInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Text.StringBuilder | detailedInfo |
Overrides
Sandbox.Game.Entities.Cube.MyTerminalBlock.UpdateDetailedInfo(System.Text.StringBuilder)
UpdateOnceBeforeFrame()
Declaration
public override void UpdateOnceBeforeFrame()
Overrides
Sandbox.Game.Entities.Cube.MyFunctionalBlock.UpdateOnceBeforeFrame()
Events
OnGyroPowerChanged
Declaration
public event Action<MyTerminalBlock> OnGyroPowerChanged
Event Type
Type | Description |
---|---|
System.Action<Sandbox.Game.Entities.Cube.MyTerminalBlock> |
Explicit Interface Implementations
IMyGyro.GyroStrengthMultiplier
Declaration
float IMyGyro.GyroStrengthMultiplier { get; set; }
Returns
Type | Description |
---|---|
System.Single |
IMyGyro.PowerConsumptionMultiplier
Declaration
float IMyGyro.PowerConsumptionMultiplier { get; set; }
Returns
Type | Description |
---|---|
System.Single |
IMyGyro.Pitch
Declaration
float IMyGyro.Pitch { get; set; }
Returns
Type | Description |
---|---|
System.Single |
IMyGyro.Roll
Declaration
float IMyGyro.Roll { get; set; }
Returns
Type | Description |
---|---|
System.Single |
IMyGyro.Yaw
Declaration
float IMyGyro.Yaw { get; set; }
Returns
Type | Description |
---|---|
System.Single |