33 lines
954 B
C#
33 lines
954 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Steamworks
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
internal class CCallbackBaseVTable
|
|
{
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate void RunCBDel(IntPtr thisptr, IntPtr pvParam);
|
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate void RunCRDel(IntPtr thisptr, IntPtr pvParam, [MarshalAs(UnmanagedType.I1)] bool bIOFailure, ulong hSteamAPICall);
|
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate int GetCallbackSizeBytesDel(IntPtr thisptr);
|
|
|
|
private const CallingConvention cc = CallingConvention.Cdecl;
|
|
|
|
[NonSerialized]
|
|
[MarshalAs(UnmanagedType.FunctionPtr)]
|
|
public RunCRDel m_RunCallResult;
|
|
|
|
[NonSerialized]
|
|
[MarshalAs(UnmanagedType.FunctionPtr)]
|
|
public RunCBDel m_RunCallback;
|
|
|
|
[NonSerialized]
|
|
[MarshalAs(UnmanagedType.FunctionPtr)]
|
|
public GetCallbackSizeBytesDel m_GetCallbackSizeBytes;
|
|
}
|
|
}
|