mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-03 03:48:24 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
32 lines
656 B
C#
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;
|
|
}
|
|
}
|