using TechbloxModdingAPI.Tests;
namespace TechbloxModdingAPI.Blocks
{
using RobocraftX.Common;
using Svelto.ECS;
public class WheelRig : SignalingBlock
{
///
/// Constructs a(n) WheelRig object representing an existing block.
///
public WheelRig(EGID egid) :
base(egid)
{
}
///
/// Constructs a(n) WheelRig object representing an existing block.
///
public WheelRig(uint id) :
base(new EGID(id, CommonExclusiveGroups.WHEELRIG_BLOCK_BUILD_GROUP))
{
}
///
/// Gets or sets the WheelRig's BrakingStrength property. Tweakable stat.
///
public float BrakingStrength
{
get
{
return BlockEngine.GetBlockInfo(this).brakingStrength;
}
set
{
BlockEngine.GetBlockInfo(this).brakingStrength = value;
}
}
///
/// Gets or sets the WheelRig's MaxVelocity property. May not be saved.
///
public float MaxVelocity
{
get
{
return BlockEngine.GetBlockInfo(this).maxVelocity;
}
set
{
BlockEngine.GetBlockInfo(this).maxVelocity = value;
}
}
///
/// Gets or sets the WheelRig's SteerAngle property. Tweakable stat.
///
[TestValue(0f)] // Can be 0 for no steer variant
public float SteerAngle
{
get
{
return BlockEngine.GetBlockInfo(this).steerAngle;
}
set
{
BlockEngine.GetBlockInfo(this).steerAngle = value;
}
}
///
/// Gets or sets the WheelRig's VelocityForMinAngle property. May not be saved.
///
[TestValue(0f)]
public float VelocityForMinAngle
{
get
{
return BlockEngine.GetBlockInfo(this).velocityForMinAngle;
}
set
{
BlockEngine.GetBlockInfo(this).velocityForMinAngle = value;
}
}
///
/// Gets or sets the WheelRig's MinSteerAngleFactor property. May not be saved.
///
[TestValue(0f)]
public float MinSteerAngleFactor
{
get
{
return BlockEngine.GetBlockInfo(this).minSteerAngleFactor;
}
set
{
BlockEngine.GetBlockInfo(this).minSteerAngleFactor = value;
}
}
}
}