Files
sbox-public/engine/Definitions/tools/GameData/ClassInputOutput.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

39 lines
903 B
Modula-2

#include "fgdlib/inputoutput.h"
native enum InputOutputType_t is Editor.InputOutputType;
// All this class does is hold a buncha strings
native class CClassInputOutputBase as Native.CClassInputOutputBase
{
void DeleteThis(); [delete]
string GetName();
string GetDescription();
InputOutputType_t GetType();
string GetTypeText();
void SetName( string name );
void SetDescription( string description );
void SetType( InputOutputType_t type );
inline bool IsInput()
{
return self->GetPlugType() == PLUG_TYPE_INPUT;
}
inline bool IsOutput()
{
return self->GetPlugType() == PLUG_TYPE_OUTPUT;
}
}
native class CClassInput : CClassInputOutputBase as Native.CClassInput
{
static CClassInput Create(); [new]
}
native class CClassOutput : CClassInputOutputBase as Native.CClassInput
{
static CClassOutput Create(); [new]
}