GameMode/ClassList.cs

A small component that holds a list of CharacterDefinition objects as a property for the KOTH game mode. It exposes ClassDefinitions as a property with a private setter so it can be set via the engine's property system.

using Sandbox;

namespace KOTH;

public sealed class ClassList : Component
{
	[Property] public List<CharacterDefinition> ClassDefinitions { get; private set; }
}