Files
sbox-public/engine/Sandbox.Tools/MapEditor/MapDoc/Nodes/MapPathNode.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

32 lines
656 B
C#

using NativeMapDoc;
using System.ComponentModel.DataAnnotations;
namespace Editor.MapDoc;
/// <summary>
/// Nodes along a <see cref="MapPath"/>
/// </summary>
[Display( Name = "Path Node" ), Icon( "adjust" )]
public sealed class MapPathNode : MapNode
{
internal CMapPathNode pathNodeNative;
internal MapPathNode( HandleCreationData _ ) { }
// Deliberate no constructor, should only be created through the MapPath
internal override void OnNativeInit( CMapNode ptr )
{
base.OnNativeInit( ptr );
pathNodeNative = (CMapPathNode)ptr;
}
internal override void OnNativeDestroy()
{
base.OnNativeDestroy();
pathNodeNative = default;
}
}