You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- namespace TechbloxModdingAPI.Blocks
- {
- using RobocraftX.Common;
- using Svelto.ECS;
-
-
- public class Piston : SignalingBlock
- {
-
- /// <summary>
- /// Constructs a(n) Piston object representing an existing block.
- /// </summary>
- public Piston(EGID egid) :
- base(egid)
- {
- }
-
- /// <summary>
- /// Constructs a(n) Piston object representing an existing block.
- /// </summary>
- public Piston(uint id) :
- base(new EGID(id, CommonExclusiveGroups.PISTON_BLOCK_GROUP))
- {
- }
-
- /// <summary>
- /// Gets or sets the Piston's MaximumForce property. Tweakable stat.
- /// </summary>
- public float MaximumForce
- {
- get
- {
- return BlockEngine.GetBlockInfo<RobocraftX.Blocks.PistonReadOnlyStruct>(this).pistonVelocity;
- }
- set
- {
- BlockEngine.GetBlockInfo<RobocraftX.Blocks.PistonReadOnlyStruct>(this).pistonVelocity = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the Piston's MaxExtension property. Tweakable stat.
- /// </summary>
- public float MaxExtension
- {
- get
- {
- return BlockEngine.GetBlockInfo<RobocraftX.Blocks.PistonReadOnlyStruct>(this).maxDeviation;
- }
- set
- {
- BlockEngine.GetBlockInfo<RobocraftX.Blocks.PistonReadOnlyStruct>(this).maxDeviation = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the Piston's InputIsExtension property. Tweakable stat.
- /// </summary>
- public bool InputIsExtension
- {
- get
- {
- return BlockEngine.GetBlockInfo<RobocraftX.Blocks.PistonReadOnlyStruct>(this).hasProportionalInput;
- }
- set
- {
- BlockEngine.GetBlockInfo<RobocraftX.Blocks.PistonReadOnlyStruct>(this).hasProportionalInput = value;
- }
- }
- }
- }
|