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

38 lines
720 B
C#

using Editor.MapDoc;
using NativeMapDoc;
namespace Editor.MapEditor;
/// <summary>
/// Events from hammerevents.h
/// </summary>
internal static class HammerEvents
{
internal static void OnMapNodeDescriptionChanged( MapNode node )
{
// class_name probably changed, update the type description
if ( node is MapEntity entity )
{
entity.UpdateTypeDescription();
}
}
internal static void OnObjectAddedToDocument( MapNode node, MapWorld world )
{
}
internal static void OnObjectRemovedFromDocument( MapNode node, MapWorld world )
{
}
internal static void OnMeshesTiedToGameObject( MapGameObject mapGameObject )
{
if ( mapGameObject is null )
return;
mapGameObject.OnMeshesTied();
}
}