velox/Code/Base/VeloXBase.Wheel.cs
2025-06-11 20:19:35 +07:00

21 lines
380 B
C#

using Sandbox;
using System.Collections.Generic;
namespace VeloX;
public abstract partial class VeloXBase
{
[Property] public List<VeloXWheel> Wheels { get; set; }
[Property] public TagSet WheelIgnoredTags { get; set; }
public List<VeloXWheel> FindWheels() => [.. Components.GetAll<VeloXWheel>()];
[Button]
public void SetupWheels()
{
Wheels = FindWheels();
}
}