Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
|
- using RobocraftX.Blocks;
- using RobocraftX.Common;
- using Svelto.ECS;
-
- namespace TechbloxModdingAPI.Blocks
- {
- public class DampedSpring : Block
- {
- public DampedSpring(EGID id) : base(id)
- {
- }
-
- public DampedSpring(uint id) : base(new EGID(id, CommonExclusiveGroups.DAMPEDSPRING_BLOCK_GROUP))
- {
- }
-
- /// <summary>
- /// The spring frequency.
- /// </summary>
- public float SpringFrequency
- {
- get => BlockEngine.GetBlockInfo<DampedSpringReadOnlyStruct>(this).springFrequency;
-
- set => BlockEngine.GetBlockInfo<DampedSpringReadOnlyStruct>(this).springFrequency = value;
- }
-
- /// <summary>
- /// The spring's maximum damping force.
- /// </summary>
- public float Damping
- {
- get => BlockEngine.GetBlockInfo<DampedSpringReadOnlyStruct>(this).springDamping;
-
- set => BlockEngine.GetBlockInfo<DampedSpringReadOnlyStruct>(this).springDamping = value;
- }
-
- /// <summary>
- /// The spring's maximum extension.
- /// </summary>
- public float MaxExtension
- {
- get => BlockEngine.GetBlockInfo<DampedSpringReadOnlyStruct>(this).maxExtent;
-
- set => BlockEngine.GetBlockInfo<DampedSpringReadOnlyStruct>(this).maxExtent = value;
- }
- }
- }
|