SMCParser Class

An SMCParser is a callback-driven parser for SourceMod configuration files. SMC files are similar to Valve KeyValues format, with two key differences: (1) SMC cannot handle single-item entries (that is, a key with no value). (2) SMC files can have multi-line comment blocks, whereas KeyValues cannot.

Methods 3

Name Description
GetErrorString

Gets an error string for an SMCError code.

ParseFile

Parses an SMC file.

SMCParser

Create a new SMC file format parser.

Properties 6

Name Type Description
OnStartSMC_ParseStart

Sets the callback for receiving SMC_ParseStart events.

OnEndSMC_ParseEnd

Sets the callback for receiving SMC_ParseEnd events.

OnEnterSectionSMC_NewSection

Sets the callback for receiving SMC_NewSection events.

OnLeaveSectionSMC_EndSection

Sets the callback for receiving SMC_EndSection events.

OnKeyValueSMC_KeyValue

Sets the callback for receiving SMC_KeyValue events.

OnRawLineSMC_RawLine

Sets the callback for receiving SMC_RawLine events.