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