Code/GolfTee.cs

Editor component that marks a golf hole tee position for the kit. It draws a yellow gizmo sphere (radius 6) in the editor to indicate where balls should spawn.

Native Interop
using Sandbox;

/// <summary>
/// Marks the tee of a hole built from the kit. A <see cref="Hole"/> with no Tee set looks for one
/// of these under the same parent group, so a cup piece and a tee piece dropped into a "Hole N"
/// group need no wiring. Put it on an empty GameObject a little above the floor; the balls spawn there.
/// </summary>
[Title( "Golf Tee" ), Icon( "flag" )]
public sealed class GolfTee : Component
{
	protected override void DrawGizmos()
	{
		Gizmo.Draw.Color = Color.Yellow;
		Gizmo.Draw.LineSphere( new Sphere( Vector3.Zero, 6f ), 12 );
	}
}