Files
sbox-public/engine/Definitions/hammer/MapDoc/Nodes/MapEntity.def
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

27 lines
762 B
Modula-2

#include "mapdoclib/mapentity.h"
#include "mapdoclib/alignedboxhelper.h"
[Handle:Editor.MapDoc.MapEntity]
native class CMapEntity as NativeMapDoc.CMapEntity : CMapNode
{
// all we care about for now
string GetClassName();
void SetClass( string classname );
void SetKeyValue( string key, string value );
string GetKeyValue( string key );
bool TargetNameMatches( string name );
// Set the bounds for when we have no model attached
inline void SetDefaultBounds( Vector3 minBounds, Vector3 maxBounds )
{
CAlignedBoxHelper *pAlignedBoxHelper = self->GetAlignedBoxHelper();
if ( pAlignedBoxHelper == nullptr )
return;
self->GetAlignedBoxHelper()->SetBounds( minBounds, maxBounds );
}
}