mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-24 13:45:37 +03:00
MonoPInvokeCallback doesn't really seem to need a Type
This commit is contained in:
parent
68b409d163
commit
ef8234b958
@ -193,6 +193,6 @@ unsafe internal override void RunCallback()
|
||||
|
||||
internal class MonoPInvokeCallbackAttribute : Attribute
|
||||
{
|
||||
public MonoPInvokeCallbackAttribute( Type t ) { }
|
||||
public MonoPInvokeCallbackAttribute() { }
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -251,17 +251,17 @@ private void Callback( SteamApiDefinition.StructDef c )
|
||||
EndBlock();
|
||||
|
||||
WriteLine();
|
||||
WriteLine( "[MonoPInvokeCallback( typeof( SteamNative.Callback.VTableThis.ResultD ) )]" );
|
||||
WriteLine( "[MonoPInvokeCallback]" );
|
||||
WriteLine( "internal static void OnResultThis( IntPtr self, IntPtr param ){ OnResult( param ); }" );
|
||||
WriteLine( "[MonoPInvokeCallback( typeof( SteamNative.Callback.VTableThis.ResultD ) )]" );
|
||||
WriteLine( "[MonoPInvokeCallback]" );
|
||||
WriteLine( "internal static void OnResultWithInfoThis( IntPtr self, IntPtr param, bool failure, SteamNative.SteamAPICall_t call ){ OnResultWithInfo( param, failure, call ); }" );
|
||||
WriteLine( "[MonoPInvokeCallback( typeof( SteamNative.Callback.VTableThis.ResultD ) )]" );
|
||||
WriteLine( "[MonoPInvokeCallback]" );
|
||||
WriteLine( "internal static int OnGetSizeThis( IntPtr self ){ return OnGetSize(); }" );
|
||||
WriteLine( "[MonoPInvokeCallback( typeof( SteamNative.Callback.VTableThis.ResultD ) )]" );
|
||||
WriteLine( "[MonoPInvokeCallback]" );
|
||||
WriteLine( "internal static int OnGetSize(){ return StructSize(); }" );
|
||||
|
||||
WriteLine();
|
||||
WriteLine( "[MonoPInvokeCallback( typeof( SteamNative.Callback.VTableThis.ResultD ) )]" );
|
||||
WriteLine( "[MonoPInvokeCallback]" );
|
||||
StartBlock( "internal static void OnResult( IntPtr param )" );
|
||||
{
|
||||
WriteLine( $"OnResultWithInfo( param, false, 0 );" );
|
||||
@ -269,7 +269,7 @@ private void Callback( SteamApiDefinition.StructDef c )
|
||||
EndBlock();
|
||||
|
||||
WriteLine();
|
||||
WriteLine( "[MonoPInvokeCallback( typeof( SteamNative.Callback.VTableThis.ResultD ) )]" );
|
||||
WriteLine( "[MonoPInvokeCallback]" );
|
||||
StartBlock( "internal static void OnResultWithInfo( IntPtr param, bool failure, SteamNative.SteamAPICall_t call )" );
|
||||
{
|
||||
WriteLine( $"if ( failure ) return;" );
|
||||
|
Loading…
Reference in New Issue
Block a user