2025-09-26 10:57:15 -04:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.BSP
|
2025-09-26 10:57:15 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The entity lump is basically a pure ASCII text section.
|
|
|
|
|
/// It consists of the string representations of all entities,
|
|
|
|
|
/// which are copied directly from the input file to the output
|
|
|
|
|
/// BSP file by the compiler.
|
2025-10-30 21:21:56 -04:00
|
|
|
///
|
2025-09-26 10:57:15 -04:00
|
|
|
/// Every entity begins and ends with curly brackets. In between
|
|
|
|
|
/// there are the attributes of the entity, one in each line,
|
|
|
|
|
/// which are pairs of strings enclosed by quotes. The first
|
|
|
|
|
/// string is the name of the attribute (the key), the second one
|
|
|
|
|
/// its value. The attribute "classname" is mandatory for every
|
|
|
|
|
/// entity specifiying its type and therefore, how it is
|
2025-10-30 21:21:56 -04:00
|
|
|
/// interpreted by the engine.
|
2025-09-26 10:57:15 -04:00
|
|
|
/// </summary>
|
2025-10-30 21:21:56 -04:00
|
|
|
/// <see href="https://developer.valvesoftware.com/wiki/BSP_(GoldSrc)"/>
|
2025-09-26 10:57:15 -04:00
|
|
|
/// <see href="https://developer.valvesoftware.com/wiki/BSP_(Source)"/>
|
|
|
|
|
public sealed class Entity
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Entity attributes
|
|
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
public List<KeyValuePair<string, string>> Attributes { get; set; } = [];
|
2025-09-26 10:57:15 -04:00
|
|
|
}
|
2025-10-30 21:21:56 -04:00
|
|
|
}
|