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