HelloWorld.cs

A simple Sandbox Component named HelloWorld. OnStart logs the string "Hello, s&box!" and OnUpdate is an empty override with a comment.

using Sandbox;

public sealed class HelloWorld : Component
{
	protected override void OnStart()
	{
		Log.Info( "Hello, s&box!" );
	}

	protected override void OnUpdate()
	{
		// Component is working
	}
}