Made the generated members public and final Removed the comment from the start of the files Generating the files directly into the project folder Added comments describing the generated constructors and properties Using SignalingBlock as a base class Added support for renaming properties Added support for getting the name from the tweakable stat name Added/updated functional block classes
101 lines
3.2 KiB
C#
101 lines
3.2 KiB
C#
namespace TechbloxModdingAPI.Blocks
|
|
{
|
|
using RobocraftX.Common;
|
|
using Svelto.ECS;
|
|
|
|
|
|
public class WheelRig : SignalingBlock
|
|
{
|
|
|
|
/// <summary>
|
|
/// Constructs a(n) WheelRig object representing an existing block.
|
|
/// </summary>
|
|
public WheelRig(EGID egid) :
|
|
base(egid)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Constructs a(n) WheelRig object representing an existing block.
|
|
/// </summary>
|
|
public WheelRig(uint id) :
|
|
base(new EGID(id, CommonExclusiveGroups.WHEELRIG_BLOCK_BUILD_GROUP))
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the WheelRig's BrakingStrength property. Tweakable stat.
|
|
/// </summary>
|
|
public float BrakingStrength
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigTweakableStruct>(this).brakingStrength;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigTweakableStruct>(this).brakingStrength = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the WheelRig's MaxVelocity property. May not be saved.
|
|
/// </summary>
|
|
public float MaxVelocity
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigReadOnlyStruct>(this).maxVelocity;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigReadOnlyStruct>(this).maxVelocity = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the WheelRig's SteerAngle property. Tweakable stat.
|
|
/// </summary>
|
|
public float SteerAngle
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableTweakableStruct>(this).steerAngle;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableTweakableStruct>(this).steerAngle = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the WheelRig's VelocityForMinAngle property. May not be saved.
|
|
/// </summary>
|
|
public float VelocityForMinAngle
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).velocityForMinAngle;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).velocityForMinAngle = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the WheelRig's MinSteerAngleFactor property. May not be saved.
|
|
/// </summary>
|
|
public float MinSteerAngleFactor
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).minSteerAngleFactor;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).minSteerAngleFactor = value;
|
|
}
|
|
}
|
|
}
|
|
}
|