TF2_GetClass Function

Finds the TFClassType for a given class name.

TFClassType TF2_GetClass(const char[] classname)

Parameters

const char[] classname

A classname string such as "sniper" or "demoman"

Return Value

A TFClassType constant.