mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-06 21:38:32 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
37 lines
822 B
C#
37 lines
822 B
C#
namespace Facepunch.InteropGen;
|
|
|
|
|
|
public class ArgArray : ArgWrapper
|
|
{
|
|
public ArgArray( Arg val )
|
|
{
|
|
Base = val;
|
|
Name = Base.Name;
|
|
}
|
|
|
|
public override string NativeType => $"{Base.NativeType}*";
|
|
public override string ManagedType => $"{Base.ManagedType}*";
|
|
public override string ManagedDelegateType => $"{Base.ManagedType}*";
|
|
public override string NativeDelegateType => NativeType;
|
|
public override string GetManagedDelegateType( bool incoming )
|
|
{
|
|
return ManagedDelegateType;
|
|
}
|
|
|
|
public override string GetNativeDelegateType( bool incoming )
|
|
{
|
|
return NativeDelegateType;
|
|
}
|
|
|
|
public override string ToInterop( bool native, string code = null )
|
|
{
|
|
return base.ToInterop( native, code );
|
|
}
|
|
|
|
public override string WrapFunctionCall( string functionCall, bool native )
|
|
{
|
|
return functionCall;
|
|
}
|
|
|
|
}
|