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 DampedSpring : SignalingBlock
- {
-
- /// <summary>
- /// Constructs a(n) DampedSpring object representing an existing block.
- /// </summary>
- public DampedSpring(EGID egid) :
- base(egid)
- {
- }
-
- /// <summary>
- /// Constructs a(n) DampedSpring object representing an existing block.
- /// </summary>
- public DampedSpring(uint id) :
- base(new EGID(id, CommonExclusiveGroups.DAMPEDSPRING_BLOCK_GROUP))
- {
- }
-
- /// <summary>
- /// Gets or sets the DampedSpring's Stiffness property. Tweakable stat.
- /// </summary>
- public float Stiffness
- {
- get
- {
- return BlockEngine.GetBlockInfo<RobocraftX.Blocks.TweakableJointDampingComponent>(this).stiffness;
- }
- set
- {
- BlockEngine.GetBlockInfo<RobocraftX.Blocks.TweakableJointDampingComponent>(this).stiffness = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the DampedSpring's Damping property. Tweakable stat.
- /// </summary>
- public float Damping
- {
- get
- {
- return BlockEngine.GetBlockInfo<RobocraftX.Blocks.TweakableJointDampingComponent>(this).damping;
- }
- set
- {
- BlockEngine.GetBlockInfo<RobocraftX.Blocks.TweakableJointDampingComponent>(this).damping = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the DampedSpring's MaxExtension property. Tweakable stat.
- /// </summary>
- public float MaxExtension
- {
- get
- {
- return BlockEngine.GetBlockInfo<RobocraftX.Blocks.DampedSpringReadOnlyStruct>(this).maxExtent;
- }
- set
- {
- BlockEngine.GetBlockInfo<RobocraftX.Blocks.DampedSpringReadOnlyStruct>(this).maxExtent = value;
- }
- }
- }
- }
|