mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-14 09:19:25 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
27 lines
762 B
Modula-2
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 );
|
|
}
|
|
} |