Files
sbox-public/engine/Sandbox.Tools/MapEditor/HammerEntities/InfoCullTrianglesEntity.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

37 lines
1.1 KiB
C#

namespace Editor.MapEditor.EntityDefinitions;
/// <summary>
/// A static (compile-time) volume that will delete geometry inside it as part of map compile.
/// </summary>
[Library( "info_cull_triangles" )]
[EditorSprite( "editor/info_cull_triangles.vmat" )]
[HammerEntity]
[Title( "Cull Triangles" ), Icon( "details" )]
[BoundsHelper( "box_size" )]
class InfoCullTrianglesEntity : HammerEntityDefinition
{
[Property( "box_size", Title = "Box Size" ), DefaultValue( "128 128 128" )]
public Vector3 BoxSize { get; set; }
[Property( "limit_to_world", Title = "Limit to Prefab" )]
public bool LimitToWorld { get; set; } = false;
[Property( "targets", Title = "Target Objects" )]
[FGDType( "node_id_List" )]
public string TargetObjects { get; set; }
public enum GeometryTypeChoices
{
[Title( "Everything" )]
Everything = 0,
[Title( "Only Static Props" )]
OnlyStaticProps = 1,
[Title( "Only World Geometry" )]
OnlyWorldGeometry = 2,
}
[Property( "geometry_type", Title = "Apply To" )]
[DefaultValue( "0" )]
public GeometryTypeChoices GeometryType { get; set; }
}