mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 14:45:51 +03:00
CallResult takes an IsServer parameter
This commit is contained in:
parent
aab047717b
commit
428c2425a0
@ -14,10 +14,16 @@ namespace Steamworks
|
|||||||
internal struct CallResult<T> : INotifyCompletion where T : struct, ICallbackData
|
internal struct CallResult<T> : INotifyCompletion where T : struct, ICallbackData
|
||||||
{
|
{
|
||||||
SteamAPICall_t call;
|
SteamAPICall_t call;
|
||||||
|
ISteamUtils utils;
|
||||||
|
|
||||||
public CallResult( SteamAPICall_t call )
|
public CallResult( SteamAPICall_t call, bool server )
|
||||||
{
|
{
|
||||||
this.call = call;
|
this.call = call;
|
||||||
|
|
||||||
|
utils = (server ? SteamUtils.InterfaceServer : SteamUtils.InterfaceClient) as ISteamUtils;
|
||||||
|
|
||||||
|
if ( utils == null )
|
||||||
|
utils = SteamUtils.Interface as ISteamUtils;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -35,7 +41,8 @@ public void OnCompleted( Action continuation )
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public T? GetResult()
|
public T? GetResult()
|
||||||
{
|
{
|
||||||
if ( !SteamUtils.IsCallComplete( call, out var failed ) || failed )
|
bool failed = false;
|
||||||
|
if ( !utils.IsAPICallCompleted( call, ref failed ) || failed )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
var t = default( T );
|
var t = default( T );
|
||||||
@ -44,8 +51,11 @@ public void OnCompleted( Action continuation )
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if ( !SteamUtils.Internal.GetAPICallResult( call, ptr, size, (int) t.CallbackType, ref failed ) || failed )
|
if ( !utils.GetAPICallResult( call, ptr, size, (int)t.CallbackType, ref failed ) || failed )
|
||||||
|
{
|
||||||
|
Console.WriteLine( $"Api Call result returned false or {failed}" );
|
||||||
return null;
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return ((T)Marshal.PtrToStructure( ptr, typeof( T ) ));
|
return ((T)Marshal.PtrToStructure( ptr, typeof( T ) ));
|
||||||
}
|
}
|
||||||
@ -62,7 +72,8 @@ public bool IsCompleted
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if ( SteamUtils.IsCallComplete( call, out var failed ) || failed )
|
bool failed = false;
|
||||||
|
if ( utils.IsAPICallCompleted( call, ref failed ) || failed )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -320,7 +320,7 @@ internal void RequestAllProofOfPurchaseKeys()
|
|||||||
internal CallResult<FileDetailsResult_t> GetFileDetails( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pszFileName )
|
internal CallResult<FileDetailsResult_t> GetFileDetails( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pszFileName )
|
||||||
{
|
{
|
||||||
var returnValue = _GetFileDetails( Self, pszFileName );
|
var returnValue = _GetFileDetails( Self, pszFileName );
|
||||||
return new CallResult<FileDetailsResult_t>( returnValue );
|
return new CallResult<FileDetailsResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
|
@ -39,7 +39,7 @@ internal string GetPersonaName()
|
|||||||
internal CallResult<SetPersonaNameResponse_t> SetPersonaName( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPersonaName )
|
internal CallResult<SetPersonaNameResponse_t> SetPersonaName( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPersonaName )
|
||||||
{
|
{
|
||||||
var returnValue = _SetPersonaName( Self, pchPersonaName );
|
var returnValue = _SetPersonaName( Self, pchPersonaName );
|
||||||
return new CallResult<SetPersonaNameResponse_t>( returnValue );
|
return new CallResult<SetPersonaNameResponse_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -283,7 +283,7 @@ internal bool GetClanActivityCounts( SteamId steamIDClan, ref int pnOnline, ref
|
|||||||
internal CallResult<DownloadClanActivityCountsResult_t> DownloadClanActivityCounts( [In,Out] SteamId[] psteamIDClans, int cClansToRequest )
|
internal CallResult<DownloadClanActivityCountsResult_t> DownloadClanActivityCounts( [In,Out] SteamId[] psteamIDClans, int cClansToRequest )
|
||||||
{
|
{
|
||||||
var returnValue = _DownloadClanActivityCounts( Self, psteamIDClans, cClansToRequest );
|
var returnValue = _DownloadClanActivityCounts( Self, psteamIDClans, cClansToRequest );
|
||||||
return new CallResult<DownloadClanActivityCountsResult_t>( returnValue );
|
return new CallResult<DownloadClanActivityCountsResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -443,7 +443,7 @@ internal bool RequestUserInformation( SteamId steamIDUser, [MarshalAs( Unmanaged
|
|||||||
internal CallResult<ClanOfficerListResponse_t> RequestClanOfficerList( SteamId steamIDClan )
|
internal CallResult<ClanOfficerListResponse_t> RequestClanOfficerList( SteamId steamIDClan )
|
||||||
{
|
{
|
||||||
var returnValue = _RequestClanOfficerList( Self, steamIDClan );
|
var returnValue = _RequestClanOfficerList( Self, steamIDClan );
|
||||||
return new CallResult<ClanOfficerListResponse_t>( returnValue );
|
return new CallResult<ClanOfficerListResponse_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -619,7 +619,7 @@ internal AppId GetFriendCoplayGame( SteamId steamIDFriend )
|
|||||||
internal CallResult<JoinClanChatRoomCompletionResult_t> JoinClanChatRoom( SteamId steamIDClan )
|
internal CallResult<JoinClanChatRoomCompletionResult_t> JoinClanChatRoom( SteamId steamIDClan )
|
||||||
{
|
{
|
||||||
var returnValue = _JoinClanChatRoom( Self, steamIDClan );
|
var returnValue = _JoinClanChatRoom( Self, steamIDClan );
|
||||||
return new CallResult<JoinClanChatRoomCompletionResult_t>( returnValue );
|
return new CallResult<JoinClanChatRoomCompletionResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -770,7 +770,7 @@ internal int GetFriendMessage( SteamId steamIDFriend, int iMessageID, IntPtr pvD
|
|||||||
internal CallResult<FriendsGetFollowerCount_t> GetFollowerCount( SteamId steamID )
|
internal CallResult<FriendsGetFollowerCount_t> GetFollowerCount( SteamId steamID )
|
||||||
{
|
{
|
||||||
var returnValue = _GetFollowerCount( Self, steamID );
|
var returnValue = _GetFollowerCount( Self, steamID );
|
||||||
return new CallResult<FriendsGetFollowerCount_t>( returnValue );
|
return new CallResult<FriendsGetFollowerCount_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -781,7 +781,7 @@ internal CallResult<FriendsGetFollowerCount_t> GetFollowerCount( SteamId steamID
|
|||||||
internal CallResult<FriendsIsFollowing_t> IsFollowing( SteamId steamID )
|
internal CallResult<FriendsIsFollowing_t> IsFollowing( SteamId steamID )
|
||||||
{
|
{
|
||||||
var returnValue = _IsFollowing( Self, steamID );
|
var returnValue = _IsFollowing( Self, steamID );
|
||||||
return new CallResult<FriendsIsFollowing_t>( returnValue );
|
return new CallResult<FriendsIsFollowing_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -792,7 +792,7 @@ internal CallResult<FriendsIsFollowing_t> IsFollowing( SteamId steamID )
|
|||||||
internal CallResult<FriendsEnumerateFollowingList_t> EnumerateFollowingList( uint unStartIndex )
|
internal CallResult<FriendsEnumerateFollowingList_t> EnumerateFollowingList( uint unStartIndex )
|
||||||
{
|
{
|
||||||
var returnValue = _EnumerateFollowingList( Self, unStartIndex );
|
var returnValue = _EnumerateFollowingList( Self, unStartIndex );
|
||||||
return new CallResult<FriendsEnumerateFollowingList_t>( returnValue );
|
return new CallResult<FriendsEnumerateFollowingList_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
|
@ -385,7 +385,7 @@ internal void GetGameplayStats()
|
|||||||
internal CallResult<GSReputation_t> GetServerReputation()
|
internal CallResult<GSReputation_t> GetServerReputation()
|
||||||
{
|
{
|
||||||
var returnValue = _GetServerReputation( Self );
|
var returnValue = _GetServerReputation( Self );
|
||||||
return new CallResult<GSReputation_t>( returnValue );
|
return new CallResult<GSReputation_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -460,7 +460,7 @@ internal void ForceHeartbeat()
|
|||||||
internal CallResult<AssociateWithClanResult_t> AssociateWithClan( SteamId steamIDClan )
|
internal CallResult<AssociateWithClanResult_t> AssociateWithClan( SteamId steamIDClan )
|
||||||
{
|
{
|
||||||
var returnValue = _AssociateWithClan( Self, steamIDClan );
|
var returnValue = _AssociateWithClan( Self, steamIDClan );
|
||||||
return new CallResult<AssociateWithClanResult_t>( returnValue );
|
return new CallResult<AssociateWithClanResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -471,7 +471,7 @@ internal CallResult<AssociateWithClanResult_t> AssociateWithClan( SteamId steamI
|
|||||||
internal CallResult<ComputeNewPlayerCompatibilityResult_t> ComputeNewPlayerCompatibility( SteamId steamIDNewPlayer )
|
internal CallResult<ComputeNewPlayerCompatibilityResult_t> ComputeNewPlayerCompatibility( SteamId steamIDNewPlayer )
|
||||||
{
|
{
|
||||||
var returnValue = _ComputeNewPlayerCompatibility( Self, steamIDNewPlayer );
|
var returnValue = _ComputeNewPlayerCompatibility( Self, steamIDNewPlayer );
|
||||||
return new CallResult<ComputeNewPlayerCompatibilityResult_t>( returnValue );
|
return new CallResult<ComputeNewPlayerCompatibilityResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ internal ISteamGameServerStats( bool IsGameServer )
|
|||||||
internal CallResult<GSStatsReceived_t> RequestUserStats( SteamId steamIDUser )
|
internal CallResult<GSStatsReceived_t> RequestUserStats( SteamId steamIDUser )
|
||||||
{
|
{
|
||||||
var returnValue = _RequestUserStats( Self, steamIDUser );
|
var returnValue = _RequestUserStats( Self, steamIDUser );
|
||||||
return new CallResult<GSStatsReceived_t>( returnValue );
|
return new CallResult<GSStatsReceived_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -135,7 +135,7 @@ internal bool ClearUserAchievement( SteamId steamIDUser, [MarshalAs( UnmanagedTy
|
|||||||
internal CallResult<GSStatsStored_t> StoreUserStats( SteamId steamIDUser )
|
internal CallResult<GSStatsStored_t> StoreUserStats( SteamId steamIDUser )
|
||||||
{
|
{
|
||||||
var returnValue = _StoreUserStats( Self, steamIDUser );
|
var returnValue = _StoreUserStats( Self, steamIDUser );
|
||||||
return new CallResult<GSStatsStored_t>( returnValue );
|
return new CallResult<GSStatsStored_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ internal bool Shutdown()
|
|||||||
internal CallResult<HTML_BrowserReady_t> CreateBrowser( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchUserAgent, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchUserCSS )
|
internal CallResult<HTML_BrowserReady_t> CreateBrowser( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchUserAgent, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchUserCSS )
|
||||||
{
|
{
|
||||||
var returnValue = _CreateBrowser( Self, pchUserAgent, pchUserCSS );
|
var returnValue = _CreateBrowser( Self, pchUserAgent, pchUserCSS );
|
||||||
return new CallResult<HTML_BrowserReady_t>( returnValue );
|
return new CallResult<HTML_BrowserReady_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
|
@ -341,7 +341,7 @@ internal bool GetItemDefinitionProperty( InventoryDefId iDefinition, [MarshalAs(
|
|||||||
internal CallResult<SteamInventoryEligiblePromoItemDefIDs_t> RequestEligiblePromoItemDefinitionsIDs( SteamId steamID )
|
internal CallResult<SteamInventoryEligiblePromoItemDefIDs_t> RequestEligiblePromoItemDefinitionsIDs( SteamId steamID )
|
||||||
{
|
{
|
||||||
var returnValue = _RequestEligiblePromoItemDefinitionsIDs( Self, steamID );
|
var returnValue = _RequestEligiblePromoItemDefinitionsIDs( Self, steamID );
|
||||||
return new CallResult<SteamInventoryEligiblePromoItemDefIDs_t>( returnValue );
|
return new CallResult<SteamInventoryEligiblePromoItemDefIDs_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -364,7 +364,7 @@ internal bool GetEligiblePromoItemDefinitionIDs( SteamId steamID, [In,Out] Inven
|
|||||||
internal CallResult<SteamInventoryStartPurchaseResult_t> StartPurchase( [In,Out] InventoryDefId[] pArrayItemDefs, [In,Out] uint[] punArrayQuantity, uint unArrayLength )
|
internal CallResult<SteamInventoryStartPurchaseResult_t> StartPurchase( [In,Out] InventoryDefId[] pArrayItemDefs, [In,Out] uint[] punArrayQuantity, uint unArrayLength )
|
||||||
{
|
{
|
||||||
var returnValue = _StartPurchase( Self, pArrayItemDefs, punArrayQuantity, unArrayLength );
|
var returnValue = _StartPurchase( Self, pArrayItemDefs, punArrayQuantity, unArrayLength );
|
||||||
return new CallResult<SteamInventoryStartPurchaseResult_t>( returnValue );
|
return new CallResult<SteamInventoryStartPurchaseResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -375,7 +375,7 @@ internal CallResult<SteamInventoryStartPurchaseResult_t> StartPurchase( [In,Out]
|
|||||||
internal CallResult<SteamInventoryRequestPricesResult_t> RequestPrices()
|
internal CallResult<SteamInventoryRequestPricesResult_t> RequestPrices()
|
||||||
{
|
{
|
||||||
var returnValue = _RequestPrices( Self );
|
var returnValue = _RequestPrices( Self );
|
||||||
return new CallResult<SteamInventoryRequestPricesResult_t>( returnValue );
|
return new CallResult<SteamInventoryRequestPricesResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
|
@ -74,7 +74,7 @@ internal bool RemoveFavoriteGame( AppId nAppID, uint nIP, ushort nConnPort, usho
|
|||||||
internal CallResult<LobbyMatchList_t> RequestLobbyList()
|
internal CallResult<LobbyMatchList_t> RequestLobbyList()
|
||||||
{
|
{
|
||||||
var returnValue = _RequestLobbyList( Self );
|
var returnValue = _RequestLobbyList( Self );
|
||||||
return new CallResult<LobbyMatchList_t>( returnValue );
|
return new CallResult<LobbyMatchList_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -166,7 +166,7 @@ internal SteamId GetLobbyByIndex( int iLobby )
|
|||||||
internal CallResult<LobbyCreated_t> CreateLobby( LobbyType eLobbyType, int cMaxMembers )
|
internal CallResult<LobbyCreated_t> CreateLobby( LobbyType eLobbyType, int cMaxMembers )
|
||||||
{
|
{
|
||||||
var returnValue = _CreateLobby( Self, eLobbyType, cMaxMembers );
|
var returnValue = _CreateLobby( Self, eLobbyType, cMaxMembers );
|
||||||
return new CallResult<LobbyCreated_t>( returnValue );
|
return new CallResult<LobbyCreated_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -177,7 +177,7 @@ internal CallResult<LobbyCreated_t> CreateLobby( LobbyType eLobbyType, int cMaxM
|
|||||||
internal CallResult<LobbyEnter_t> JoinLobby( SteamId steamIDLobby )
|
internal CallResult<LobbyEnter_t> JoinLobby( SteamId steamIDLobby )
|
||||||
{
|
{
|
||||||
var returnValue = _JoinLobby( Self, steamIDLobby );
|
var returnValue = _JoinLobby( Self, steamIDLobby );
|
||||||
return new CallResult<LobbyEnter_t>( returnValue );
|
return new CallResult<LobbyEnter_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
|
@ -64,7 +64,7 @@ internal bool GetBeaconDetails( PartyBeaconID_t ulBeaconID, ref SteamId pSteamID
|
|||||||
internal CallResult<JoinPartyCallback_t> JoinParty( PartyBeaconID_t ulBeaconID )
|
internal CallResult<JoinPartyCallback_t> JoinParty( PartyBeaconID_t ulBeaconID )
|
||||||
{
|
{
|
||||||
var returnValue = _JoinParty( Self, ulBeaconID );
|
var returnValue = _JoinParty( Self, ulBeaconID );
|
||||||
return new CallResult<JoinPartyCallback_t>( returnValue );
|
return new CallResult<JoinPartyCallback_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -99,7 +99,7 @@ internal bool GetAvailableBeaconLocations( ref SteamPartyBeaconLocation_t pLocat
|
|||||||
internal CallResult<CreateBeaconCallback_t> CreateBeacon( uint unOpenSlots, /* ref */ SteamPartyBeaconLocation_t pBeaconLocation, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchConnectString, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchMetadata )
|
internal CallResult<CreateBeaconCallback_t> CreateBeacon( uint unOpenSlots, /* ref */ SteamPartyBeaconLocation_t pBeaconLocation, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchConnectString, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchMetadata )
|
||||||
{
|
{
|
||||||
var returnValue = _CreateBeacon( Self, unOpenSlots, ref pBeaconLocation, pchConnectString, pchMetadata );
|
var returnValue = _CreateBeacon( Self, unOpenSlots, ref pBeaconLocation, pchConnectString, pchMetadata );
|
||||||
return new CallResult<CreateBeaconCallback_t>( returnValue );
|
return new CallResult<CreateBeaconCallback_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -130,7 +130,7 @@ internal void CancelReservation( PartyBeaconID_t ulBeacon, SteamId steamIDUser )
|
|||||||
internal CallResult<ChangeNumOpenSlotsCallback_t> ChangeNumOpenSlots( PartyBeaconID_t ulBeacon, uint unOpenSlots )
|
internal CallResult<ChangeNumOpenSlotsCallback_t> ChangeNumOpenSlots( PartyBeaconID_t ulBeacon, uint unOpenSlots )
|
||||||
{
|
{
|
||||||
var returnValue = _ChangeNumOpenSlots( Self, ulBeacon, unOpenSlots );
|
var returnValue = _ChangeNumOpenSlots( Self, ulBeacon, unOpenSlots );
|
||||||
return new CallResult<ChangeNumOpenSlotsCallback_t>( returnValue );
|
return new CallResult<ChangeNumOpenSlotsCallback_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
|
@ -51,7 +51,7 @@ internal int FileRead( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef
|
|||||||
internal CallResult<RemoteStorageFileWriteAsyncComplete_t> FileWriteAsync( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchFile, IntPtr pvData, uint cubData )
|
internal CallResult<RemoteStorageFileWriteAsyncComplete_t> FileWriteAsync( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchFile, IntPtr pvData, uint cubData )
|
||||||
{
|
{
|
||||||
var returnValue = _FileWriteAsync( Self, pchFile, pvData, cubData );
|
var returnValue = _FileWriteAsync( Self, pchFile, pvData, cubData );
|
||||||
return new CallResult<RemoteStorageFileWriteAsyncComplete_t>( returnValue );
|
return new CallResult<RemoteStorageFileWriteAsyncComplete_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -62,7 +62,7 @@ internal CallResult<RemoteStorageFileWriteAsyncComplete_t> FileWriteAsync( [Mars
|
|||||||
internal CallResult<RemoteStorageFileReadAsyncComplete_t> FileReadAsync( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchFile, uint nOffset, uint cubToRead )
|
internal CallResult<RemoteStorageFileReadAsyncComplete_t> FileReadAsync( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchFile, uint nOffset, uint cubToRead )
|
||||||
{
|
{
|
||||||
var returnValue = _FileReadAsync( Self, pchFile, nOffset, cubToRead );
|
var returnValue = _FileReadAsync( Self, pchFile, nOffset, cubToRead );
|
||||||
return new CallResult<RemoteStorageFileReadAsyncComplete_t>( returnValue );
|
return new CallResult<RemoteStorageFileReadAsyncComplete_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -109,7 +109,7 @@ internal bool FileDelete( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalType
|
|||||||
internal CallResult<RemoteStorageFileShareResult_t> FileShare( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchFile )
|
internal CallResult<RemoteStorageFileShareResult_t> FileShare( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchFile )
|
||||||
{
|
{
|
||||||
var returnValue = _FileShare( Self, pchFile );
|
var returnValue = _FileShare( Self, pchFile );
|
||||||
return new CallResult<RemoteStorageFileShareResult_t>( returnValue );
|
return new CallResult<RemoteStorageFileShareResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -304,7 +304,7 @@ internal void SetCloudEnabledForApp( [MarshalAs( UnmanagedType.U1 )] bool bEnabl
|
|||||||
internal CallResult<RemoteStorageDownloadUGCResult_t> UGCDownload( UGCHandle_t hContent, uint unPriority )
|
internal CallResult<RemoteStorageDownloadUGCResult_t> UGCDownload( UGCHandle_t hContent, uint unPriority )
|
||||||
{
|
{
|
||||||
var returnValue = _UGCDownload( Self, hContent, unPriority );
|
var returnValue = _UGCDownload( Self, hContent, unPriority );
|
||||||
return new CallResult<RemoteStorageDownloadUGCResult_t>( returnValue );
|
return new CallResult<RemoteStorageDownloadUGCResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -372,7 +372,7 @@ internal UGCHandle_t GetCachedUGCHandle( int iCachedContent )
|
|||||||
internal CallResult<RemoteStorageDownloadUGCResult_t> UGCDownloadToLocation( UGCHandle_t hContent, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchLocation, uint unPriority )
|
internal CallResult<RemoteStorageDownloadUGCResult_t> UGCDownloadToLocation( UGCHandle_t hContent, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchLocation, uint unPriority )
|
||||||
{
|
{
|
||||||
var returnValue = _UGCDownloadToLocation( Self, hContent, pchLocation, unPriority );
|
var returnValue = _UGCDownloadToLocation( Self, hContent, pchLocation, unPriority );
|
||||||
return new CallResult<RemoteStorageDownloadUGCResult_t>( returnValue );
|
return new CallResult<RemoteStorageDownloadUGCResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ internal UGCQueryHandle_t CreateQueryUGCDetailsRequest( [In,Out] PublishedFileId
|
|||||||
internal CallResult<SteamUGCQueryCompleted_t> SendQueryUGCRequest( UGCQueryHandle_t handle )
|
internal CallResult<SteamUGCQueryCompleted_t> SendQueryUGCRequest( UGCQueryHandle_t handle )
|
||||||
{
|
{
|
||||||
var returnValue = _SendQueryUGCRequest( Self, handle );
|
var returnValue = _SendQueryUGCRequest( Self, handle );
|
||||||
return new CallResult<SteamUGCQueryCompleted_t>( returnValue );
|
return new CallResult<SteamUGCQueryCompleted_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -446,7 +446,7 @@ internal bool AddRequiredKeyValueTag( UGCQueryHandle_t handle, [MarshalAs( Unman
|
|||||||
internal CallResult<SteamUGCRequestUGCDetailsResult_t> RequestUGCDetails( PublishedFileId nPublishedFileID, uint unMaxAgeSeconds )
|
internal CallResult<SteamUGCRequestUGCDetailsResult_t> RequestUGCDetails( PublishedFileId nPublishedFileID, uint unMaxAgeSeconds )
|
||||||
{
|
{
|
||||||
var returnValue = _RequestUGCDetails( Self, nPublishedFileID, unMaxAgeSeconds );
|
var returnValue = _RequestUGCDetails( Self, nPublishedFileID, unMaxAgeSeconds );
|
||||||
return new CallResult<SteamUGCRequestUGCDetailsResult_t>( returnValue );
|
return new CallResult<SteamUGCRequestUGCDetailsResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -457,7 +457,7 @@ internal CallResult<SteamUGCRequestUGCDetailsResult_t> RequestUGCDetails( Publis
|
|||||||
internal CallResult<CreateItemResult_t> CreateItem( AppId nConsumerAppId, WorkshopFileType eFileType )
|
internal CallResult<CreateItemResult_t> CreateItem( AppId nConsumerAppId, WorkshopFileType eFileType )
|
||||||
{
|
{
|
||||||
var returnValue = _CreateItem( Self, nConsumerAppId, eFileType );
|
var returnValue = _CreateItem( Self, nConsumerAppId, eFileType );
|
||||||
return new CallResult<CreateItemResult_t>( returnValue );
|
return new CallResult<CreateItemResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -683,7 +683,7 @@ internal bool RemoveItemPreview( UGCUpdateHandle_t handle, uint index )
|
|||||||
internal CallResult<SubmitItemUpdateResult_t> SubmitItemUpdate( UGCUpdateHandle_t handle, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchChangeNote )
|
internal CallResult<SubmitItemUpdateResult_t> SubmitItemUpdate( UGCUpdateHandle_t handle, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchChangeNote )
|
||||||
{
|
{
|
||||||
var returnValue = _SubmitItemUpdate( Self, handle, pchChangeNote );
|
var returnValue = _SubmitItemUpdate( Self, handle, pchChangeNote );
|
||||||
return new CallResult<SubmitItemUpdateResult_t>( returnValue );
|
return new CallResult<SubmitItemUpdateResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -705,7 +705,7 @@ internal ItemUpdateStatus GetItemUpdateProgress( UGCUpdateHandle_t handle, ref u
|
|||||||
internal CallResult<SetUserItemVoteResult_t> SetUserItemVote( PublishedFileId nPublishedFileID, [MarshalAs( UnmanagedType.U1 )] bool bVoteUp )
|
internal CallResult<SetUserItemVoteResult_t> SetUserItemVote( PublishedFileId nPublishedFileID, [MarshalAs( UnmanagedType.U1 )] bool bVoteUp )
|
||||||
{
|
{
|
||||||
var returnValue = _SetUserItemVote( Self, nPublishedFileID, bVoteUp );
|
var returnValue = _SetUserItemVote( Self, nPublishedFileID, bVoteUp );
|
||||||
return new CallResult<SetUserItemVoteResult_t>( returnValue );
|
return new CallResult<SetUserItemVoteResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -716,7 +716,7 @@ internal CallResult<SetUserItemVoteResult_t> SetUserItemVote( PublishedFileId nP
|
|||||||
internal CallResult<GetUserItemVoteResult_t> GetUserItemVote( PublishedFileId nPublishedFileID )
|
internal CallResult<GetUserItemVoteResult_t> GetUserItemVote( PublishedFileId nPublishedFileID )
|
||||||
{
|
{
|
||||||
var returnValue = _GetUserItemVote( Self, nPublishedFileID );
|
var returnValue = _GetUserItemVote( Self, nPublishedFileID );
|
||||||
return new CallResult<GetUserItemVoteResult_t>( returnValue );
|
return new CallResult<GetUserItemVoteResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -727,7 +727,7 @@ internal CallResult<GetUserItemVoteResult_t> GetUserItemVote( PublishedFileId nP
|
|||||||
internal CallResult<UserFavoriteItemsListChanged_t> AddItemToFavorites( AppId nAppId, PublishedFileId nPublishedFileID )
|
internal CallResult<UserFavoriteItemsListChanged_t> AddItemToFavorites( AppId nAppId, PublishedFileId nPublishedFileID )
|
||||||
{
|
{
|
||||||
var returnValue = _AddItemToFavorites( Self, nAppId, nPublishedFileID );
|
var returnValue = _AddItemToFavorites( Self, nAppId, nPublishedFileID );
|
||||||
return new CallResult<UserFavoriteItemsListChanged_t>( returnValue );
|
return new CallResult<UserFavoriteItemsListChanged_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -738,7 +738,7 @@ internal CallResult<UserFavoriteItemsListChanged_t> AddItemToFavorites( AppId nA
|
|||||||
internal CallResult<UserFavoriteItemsListChanged_t> RemoveItemFromFavorites( AppId nAppId, PublishedFileId nPublishedFileID )
|
internal CallResult<UserFavoriteItemsListChanged_t> RemoveItemFromFavorites( AppId nAppId, PublishedFileId nPublishedFileID )
|
||||||
{
|
{
|
||||||
var returnValue = _RemoveItemFromFavorites( Self, nAppId, nPublishedFileID );
|
var returnValue = _RemoveItemFromFavorites( Self, nAppId, nPublishedFileID );
|
||||||
return new CallResult<UserFavoriteItemsListChanged_t>( returnValue );
|
return new CallResult<UserFavoriteItemsListChanged_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -749,7 +749,7 @@ internal CallResult<UserFavoriteItemsListChanged_t> RemoveItemFromFavorites( App
|
|||||||
internal CallResult<RemoteStorageSubscribePublishedFileResult_t> SubscribeItem( PublishedFileId nPublishedFileID )
|
internal CallResult<RemoteStorageSubscribePublishedFileResult_t> SubscribeItem( PublishedFileId nPublishedFileID )
|
||||||
{
|
{
|
||||||
var returnValue = _SubscribeItem( Self, nPublishedFileID );
|
var returnValue = _SubscribeItem( Self, nPublishedFileID );
|
||||||
return new CallResult<RemoteStorageSubscribePublishedFileResult_t>( returnValue );
|
return new CallResult<RemoteStorageSubscribePublishedFileResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -760,7 +760,7 @@ internal CallResult<RemoteStorageSubscribePublishedFileResult_t> SubscribeItem(
|
|||||||
internal CallResult<RemoteStorageUnsubscribePublishedFileResult_t> UnsubscribeItem( PublishedFileId nPublishedFileID )
|
internal CallResult<RemoteStorageUnsubscribePublishedFileResult_t> UnsubscribeItem( PublishedFileId nPublishedFileID )
|
||||||
{
|
{
|
||||||
var returnValue = _UnsubscribeItem( Self, nPublishedFileID );
|
var returnValue = _UnsubscribeItem( Self, nPublishedFileID );
|
||||||
return new CallResult<RemoteStorageUnsubscribePublishedFileResult_t>( returnValue );
|
return new CallResult<RemoteStorageUnsubscribePublishedFileResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -864,7 +864,7 @@ internal void SuspendDownloads( [MarshalAs( UnmanagedType.U1 )] bool bSuspend )
|
|||||||
internal CallResult<StartPlaytimeTrackingResult_t> StartPlaytimeTracking( [In,Out] PublishedFileId[] pvecPublishedFileID, uint unNumPublishedFileIDs )
|
internal CallResult<StartPlaytimeTrackingResult_t> StartPlaytimeTracking( [In,Out] PublishedFileId[] pvecPublishedFileID, uint unNumPublishedFileIDs )
|
||||||
{
|
{
|
||||||
var returnValue = _StartPlaytimeTracking( Self, pvecPublishedFileID, unNumPublishedFileIDs );
|
var returnValue = _StartPlaytimeTracking( Self, pvecPublishedFileID, unNumPublishedFileIDs );
|
||||||
return new CallResult<StartPlaytimeTrackingResult_t>( returnValue );
|
return new CallResult<StartPlaytimeTrackingResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -875,7 +875,7 @@ internal CallResult<StartPlaytimeTrackingResult_t> StartPlaytimeTracking( [In,Ou
|
|||||||
internal CallResult<StopPlaytimeTrackingResult_t> StopPlaytimeTracking( [In,Out] PublishedFileId[] pvecPublishedFileID, uint unNumPublishedFileIDs )
|
internal CallResult<StopPlaytimeTrackingResult_t> StopPlaytimeTracking( [In,Out] PublishedFileId[] pvecPublishedFileID, uint unNumPublishedFileIDs )
|
||||||
{
|
{
|
||||||
var returnValue = _StopPlaytimeTracking( Self, pvecPublishedFileID, unNumPublishedFileIDs );
|
var returnValue = _StopPlaytimeTracking( Self, pvecPublishedFileID, unNumPublishedFileIDs );
|
||||||
return new CallResult<StopPlaytimeTrackingResult_t>( returnValue );
|
return new CallResult<StopPlaytimeTrackingResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -886,7 +886,7 @@ internal CallResult<StopPlaytimeTrackingResult_t> StopPlaytimeTracking( [In,Out]
|
|||||||
internal CallResult<StopPlaytimeTrackingResult_t> StopPlaytimeTrackingForAllItems()
|
internal CallResult<StopPlaytimeTrackingResult_t> StopPlaytimeTrackingForAllItems()
|
||||||
{
|
{
|
||||||
var returnValue = _StopPlaytimeTrackingForAllItems( Self );
|
var returnValue = _StopPlaytimeTrackingForAllItems( Self );
|
||||||
return new CallResult<StopPlaytimeTrackingResult_t>( returnValue );
|
return new CallResult<StopPlaytimeTrackingResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -897,7 +897,7 @@ internal CallResult<StopPlaytimeTrackingResult_t> StopPlaytimeTrackingForAllItem
|
|||||||
internal CallResult<AddUGCDependencyResult_t> AddDependency( PublishedFileId nParentPublishedFileID, PublishedFileId nChildPublishedFileID )
|
internal CallResult<AddUGCDependencyResult_t> AddDependency( PublishedFileId nParentPublishedFileID, PublishedFileId nChildPublishedFileID )
|
||||||
{
|
{
|
||||||
var returnValue = _AddDependency( Self, nParentPublishedFileID, nChildPublishedFileID );
|
var returnValue = _AddDependency( Self, nParentPublishedFileID, nChildPublishedFileID );
|
||||||
return new CallResult<AddUGCDependencyResult_t>( returnValue );
|
return new CallResult<AddUGCDependencyResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -908,7 +908,7 @@ internal CallResult<AddUGCDependencyResult_t> AddDependency( PublishedFileId nPa
|
|||||||
internal CallResult<RemoveUGCDependencyResult_t> RemoveDependency( PublishedFileId nParentPublishedFileID, PublishedFileId nChildPublishedFileID )
|
internal CallResult<RemoveUGCDependencyResult_t> RemoveDependency( PublishedFileId nParentPublishedFileID, PublishedFileId nChildPublishedFileID )
|
||||||
{
|
{
|
||||||
var returnValue = _RemoveDependency( Self, nParentPublishedFileID, nChildPublishedFileID );
|
var returnValue = _RemoveDependency( Self, nParentPublishedFileID, nChildPublishedFileID );
|
||||||
return new CallResult<RemoveUGCDependencyResult_t>( returnValue );
|
return new CallResult<RemoveUGCDependencyResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -919,7 +919,7 @@ internal CallResult<RemoveUGCDependencyResult_t> RemoveDependency( PublishedFile
|
|||||||
internal CallResult<AddAppDependencyResult_t> AddAppDependency( PublishedFileId nPublishedFileID, AppId nAppID )
|
internal CallResult<AddAppDependencyResult_t> AddAppDependency( PublishedFileId nPublishedFileID, AppId nAppID )
|
||||||
{
|
{
|
||||||
var returnValue = _AddAppDependency( Self, nPublishedFileID, nAppID );
|
var returnValue = _AddAppDependency( Self, nPublishedFileID, nAppID );
|
||||||
return new CallResult<AddAppDependencyResult_t>( returnValue );
|
return new CallResult<AddAppDependencyResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -930,7 +930,7 @@ internal CallResult<AddAppDependencyResult_t> AddAppDependency( PublishedFileId
|
|||||||
internal CallResult<RemoveAppDependencyResult_t> RemoveAppDependency( PublishedFileId nPublishedFileID, AppId nAppID )
|
internal CallResult<RemoveAppDependencyResult_t> RemoveAppDependency( PublishedFileId nPublishedFileID, AppId nAppID )
|
||||||
{
|
{
|
||||||
var returnValue = _RemoveAppDependency( Self, nPublishedFileID, nAppID );
|
var returnValue = _RemoveAppDependency( Self, nPublishedFileID, nAppID );
|
||||||
return new CallResult<RemoveAppDependencyResult_t>( returnValue );
|
return new CallResult<RemoveAppDependencyResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -941,7 +941,7 @@ internal CallResult<RemoveAppDependencyResult_t> RemoveAppDependency( PublishedF
|
|||||||
internal CallResult<GetAppDependenciesResult_t> GetAppDependencies( PublishedFileId nPublishedFileID )
|
internal CallResult<GetAppDependenciesResult_t> GetAppDependencies( PublishedFileId nPublishedFileID )
|
||||||
{
|
{
|
||||||
var returnValue = _GetAppDependencies( Self, nPublishedFileID );
|
var returnValue = _GetAppDependencies( Self, nPublishedFileID );
|
||||||
return new CallResult<GetAppDependenciesResult_t>( returnValue );
|
return new CallResult<GetAppDependenciesResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -952,7 +952,7 @@ internal CallResult<GetAppDependenciesResult_t> GetAppDependencies( PublishedFil
|
|||||||
internal CallResult<DeleteItemResult_t> DeleteItem( PublishedFileId nPublishedFileID )
|
internal CallResult<DeleteItemResult_t> DeleteItem( PublishedFileId nPublishedFileID )
|
||||||
{
|
{
|
||||||
var returnValue = _DeleteItem( Self, nPublishedFileID );
|
var returnValue = _DeleteItem( Self, nPublishedFileID );
|
||||||
return new CallResult<DeleteItemResult_t>( returnValue );
|
return new CallResult<DeleteItemResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -246,7 +246,7 @@ internal void AdvertiseGame( SteamId steamIDGameServer, uint unIPServer, ushort
|
|||||||
internal CallResult<EncryptedAppTicketResponse_t> RequestEncryptedAppTicket( IntPtr pDataToInclude, int cbDataToInclude )
|
internal CallResult<EncryptedAppTicketResponse_t> RequestEncryptedAppTicket( IntPtr pDataToInclude, int cbDataToInclude )
|
||||||
{
|
{
|
||||||
var returnValue = _RequestEncryptedAppTicket( Self, pDataToInclude, cbDataToInclude );
|
var returnValue = _RequestEncryptedAppTicket( Self, pDataToInclude, cbDataToInclude );
|
||||||
return new CallResult<EncryptedAppTicketResponse_t>( returnValue );
|
return new CallResult<EncryptedAppTicketResponse_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -291,7 +291,7 @@ internal int GetPlayerSteamLevel()
|
|||||||
internal CallResult<StoreAuthURLResponse_t> RequestStoreAuthURL( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchRedirectURL )
|
internal CallResult<StoreAuthURLResponse_t> RequestStoreAuthURL( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchRedirectURL )
|
||||||
{
|
{
|
||||||
var returnValue = _RequestStoreAuthURL( Self, pchRedirectURL );
|
var returnValue = _RequestStoreAuthURL( Self, pchRedirectURL );
|
||||||
return new CallResult<StoreAuthURLResponse_t>( returnValue );
|
return new CallResult<StoreAuthURLResponse_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -350,7 +350,7 @@ internal bool BIsPhoneRequiringVerification()
|
|||||||
internal CallResult<MarketEligibilityResponse_t> GetMarketEligibility()
|
internal CallResult<MarketEligibilityResponse_t> GetMarketEligibility()
|
||||||
{
|
{
|
||||||
var returnValue = _GetMarketEligibility( Self );
|
var returnValue = _GetMarketEligibility( Self );
|
||||||
return new CallResult<MarketEligibilityResponse_t>( returnValue );
|
return new CallResult<MarketEligibilityResponse_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -361,7 +361,7 @@ internal CallResult<MarketEligibilityResponse_t> GetMarketEligibility()
|
|||||||
internal CallResult<DurationControl_t> GetDurationControl()
|
internal CallResult<DurationControl_t> GetDurationControl()
|
||||||
{
|
{
|
||||||
var returnValue = _GetDurationControl( Self );
|
var returnValue = _GetDurationControl( Self );
|
||||||
return new CallResult<DurationControl_t>( returnValue );
|
return new CallResult<DurationControl_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -216,7 +216,7 @@ internal string GetAchievementName( uint iAchievement )
|
|||||||
internal CallResult<UserStatsReceived_t> RequestUserStats( SteamId steamIDUser )
|
internal CallResult<UserStatsReceived_t> RequestUserStats( SteamId steamIDUser )
|
||||||
{
|
{
|
||||||
var returnValue = _RequestUserStats( Self, steamIDUser );
|
var returnValue = _RequestUserStats( Self, steamIDUser );
|
||||||
return new CallResult<UserStatsReceived_t>( returnValue );
|
return new CallResult<UserStatsReceived_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -287,7 +287,7 @@ internal bool ResetAllStats( [MarshalAs( UnmanagedType.U1 )] bool bAchievementsT
|
|||||||
internal CallResult<LeaderboardFindResult_t> FindOrCreateLeaderboard( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchLeaderboardName, LeaderboardSort eLeaderboardSortMethod, LeaderboardDisplay eLeaderboardDisplayType )
|
internal CallResult<LeaderboardFindResult_t> FindOrCreateLeaderboard( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchLeaderboardName, LeaderboardSort eLeaderboardSortMethod, LeaderboardDisplay eLeaderboardDisplayType )
|
||||||
{
|
{
|
||||||
var returnValue = _FindOrCreateLeaderboard( Self, pchLeaderboardName, eLeaderboardSortMethod, eLeaderboardDisplayType );
|
var returnValue = _FindOrCreateLeaderboard( Self, pchLeaderboardName, eLeaderboardSortMethod, eLeaderboardDisplayType );
|
||||||
return new CallResult<LeaderboardFindResult_t>( returnValue );
|
return new CallResult<LeaderboardFindResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -298,7 +298,7 @@ internal CallResult<LeaderboardFindResult_t> FindOrCreateLeaderboard( [MarshalAs
|
|||||||
internal CallResult<LeaderboardFindResult_t> FindLeaderboard( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchLeaderboardName )
|
internal CallResult<LeaderboardFindResult_t> FindLeaderboard( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchLeaderboardName )
|
||||||
{
|
{
|
||||||
var returnValue = _FindLeaderboard( Self, pchLeaderboardName );
|
var returnValue = _FindLeaderboard( Self, pchLeaderboardName );
|
||||||
return new CallResult<LeaderboardFindResult_t>( returnValue );
|
return new CallResult<LeaderboardFindResult_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -353,7 +353,7 @@ internal LeaderboardDisplay GetLeaderboardDisplayType( SteamLeaderboard_t hSteam
|
|||||||
internal CallResult<LeaderboardScoresDownloaded_t> DownloadLeaderboardEntries( SteamLeaderboard_t hSteamLeaderboard, LeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd )
|
internal CallResult<LeaderboardScoresDownloaded_t> DownloadLeaderboardEntries( SteamLeaderboard_t hSteamLeaderboard, LeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd )
|
||||||
{
|
{
|
||||||
var returnValue = _DownloadLeaderboardEntries( Self, hSteamLeaderboard, eLeaderboardDataRequest, nRangeStart, nRangeEnd );
|
var returnValue = _DownloadLeaderboardEntries( Self, hSteamLeaderboard, eLeaderboardDataRequest, nRangeStart, nRangeEnd );
|
||||||
return new CallResult<LeaderboardScoresDownloaded_t>( returnValue );
|
return new CallResult<LeaderboardScoresDownloaded_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -367,7 +367,7 @@ internal CallResult<LeaderboardScoresDownloaded_t> DownloadLeaderboardEntries( S
|
|||||||
internal CallResult<LeaderboardScoresDownloaded_t> DownloadLeaderboardEntriesForUsers( SteamLeaderboard_t hSteamLeaderboard, [In,Out] SteamId[] prgUsers, int cUsers )
|
internal CallResult<LeaderboardScoresDownloaded_t> DownloadLeaderboardEntriesForUsers( SteamLeaderboard_t hSteamLeaderboard, [In,Out] SteamId[] prgUsers, int cUsers )
|
||||||
{
|
{
|
||||||
var returnValue = _DownloadLeaderboardEntriesForUsers( Self, hSteamLeaderboard, prgUsers, cUsers );
|
var returnValue = _DownloadLeaderboardEntriesForUsers( Self, hSteamLeaderboard, prgUsers, cUsers );
|
||||||
return new CallResult<LeaderboardScoresDownloaded_t>( returnValue );
|
return new CallResult<LeaderboardScoresDownloaded_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -390,7 +390,7 @@ internal bool GetDownloadedLeaderboardEntry( SteamLeaderboardEntries_t hSteamLea
|
|||||||
internal CallResult<LeaderboardScoreUploaded_t> UploadLeaderboardScore( SteamLeaderboard_t hSteamLeaderboard, LeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int nScore, [In,Out] int[] pScoreDetails, int cScoreDetailsCount )
|
internal CallResult<LeaderboardScoreUploaded_t> UploadLeaderboardScore( SteamLeaderboard_t hSteamLeaderboard, LeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int nScore, [In,Out] int[] pScoreDetails, int cScoreDetailsCount )
|
||||||
{
|
{
|
||||||
var returnValue = _UploadLeaderboardScore( Self, hSteamLeaderboard, eLeaderboardUploadScoreMethod, nScore, pScoreDetails, cScoreDetailsCount );
|
var returnValue = _UploadLeaderboardScore( Self, hSteamLeaderboard, eLeaderboardUploadScoreMethod, nScore, pScoreDetails, cScoreDetailsCount );
|
||||||
return new CallResult<LeaderboardScoreUploaded_t>( returnValue );
|
return new CallResult<LeaderboardScoreUploaded_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -401,7 +401,7 @@ internal CallResult<LeaderboardScoreUploaded_t> UploadLeaderboardScore( SteamLea
|
|||||||
internal CallResult<LeaderboardUGCSet_t> AttachLeaderboardUGC( SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC )
|
internal CallResult<LeaderboardUGCSet_t> AttachLeaderboardUGC( SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC )
|
||||||
{
|
{
|
||||||
var returnValue = _AttachLeaderboardUGC( Self, hSteamLeaderboard, hUGC );
|
var returnValue = _AttachLeaderboardUGC( Self, hSteamLeaderboard, hUGC );
|
||||||
return new CallResult<LeaderboardUGCSet_t>( returnValue );
|
return new CallResult<LeaderboardUGCSet_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -412,7 +412,7 @@ internal CallResult<LeaderboardUGCSet_t> AttachLeaderboardUGC( SteamLeaderboard_
|
|||||||
internal CallResult<NumberOfCurrentPlayers_t> GetNumberOfCurrentPlayers()
|
internal CallResult<NumberOfCurrentPlayers_t> GetNumberOfCurrentPlayers()
|
||||||
{
|
{
|
||||||
var returnValue = _GetNumberOfCurrentPlayers( Self );
|
var returnValue = _GetNumberOfCurrentPlayers( Self );
|
||||||
return new CallResult<NumberOfCurrentPlayers_t>( returnValue );
|
return new CallResult<NumberOfCurrentPlayers_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -423,7 +423,7 @@ internal CallResult<NumberOfCurrentPlayers_t> GetNumberOfCurrentPlayers()
|
|||||||
internal CallResult<GlobalAchievementPercentagesReady_t> RequestGlobalAchievementPercentages()
|
internal CallResult<GlobalAchievementPercentagesReady_t> RequestGlobalAchievementPercentages()
|
||||||
{
|
{
|
||||||
var returnValue = _RequestGlobalAchievementPercentages( Self );
|
var returnValue = _RequestGlobalAchievementPercentages( Self );
|
||||||
return new CallResult<GlobalAchievementPercentagesReady_t>( returnValue );
|
return new CallResult<GlobalAchievementPercentagesReady_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
@ -472,7 +472,7 @@ internal bool GetAchievementAchievedPercent( [MarshalAs( UnmanagedType.CustomMar
|
|||||||
internal CallResult<GlobalStatsReceived_t> RequestGlobalStats( int nHistoryDays )
|
internal CallResult<GlobalStatsReceived_t> RequestGlobalStats( int nHistoryDays )
|
||||||
{
|
{
|
||||||
var returnValue = _RequestGlobalStats( Self, nHistoryDays );
|
var returnValue = _RequestGlobalStats( Self, nHistoryDays );
|
||||||
return new CallResult<GlobalStatsReceived_t>( returnValue );
|
return new CallResult<GlobalStatsReceived_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
|
@ -234,7 +234,7 @@ internal bool BOverlayNeedsPresent()
|
|||||||
internal CallResult<CheckFileSignature_t> CheckFileSignature( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string szFileName )
|
internal CallResult<CheckFileSignature_t> CheckFileSignature( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string szFileName )
|
||||||
{
|
{
|
||||||
var returnValue = _CheckFileSignature( Self, szFileName );
|
var returnValue = _CheckFileSignature( Self, szFileName );
|
||||||
return new CallResult<CheckFileSignature_t>( returnValue );
|
return new CallResult<CheckFileSignature_t>( returnValue, IsServer );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
|
@ -21,12 +21,14 @@ internal abstract class SteamInterface
|
|||||||
public IntPtr SelfClient;
|
public IntPtr SelfClient;
|
||||||
|
|
||||||
public bool IsValid => Self != IntPtr.Zero;
|
public bool IsValid => Self != IntPtr.Zero;
|
||||||
|
public bool IsServer { get; private set; }
|
||||||
|
|
||||||
internal void SetupInterface( bool gameServer )
|
internal void SetupInterface( bool gameServer )
|
||||||
{
|
{
|
||||||
if ( Self != IntPtr.Zero )
|
if ( Self != IntPtr.Zero )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
IsServer = gameServer;
|
||||||
SelfGlobal = GetGlobalInterfacePointer();
|
SelfGlobal = GetGlobalInterfacePointer();
|
||||||
Self = SelfGlobal;
|
Self = SelfGlobal;
|
||||||
|
|
||||||
|
@ -15,10 +15,7 @@ internal class SteamApiCallType : BaseType
|
|||||||
public override string TypeName => "SteamAPICall_t";
|
public override string TypeName => "SteamAPICall_t";
|
||||||
public override string Return( string varname )
|
public override string Return( string varname )
|
||||||
{
|
{
|
||||||
if ( !string.IsNullOrEmpty( CallResult ) )
|
return $"return new CallResult<{CallResult}>( {varname}, IsServer );";
|
||||||
return $"return new CallResult<{CallResult}>( {varname} );";
|
|
||||||
|
|
||||||
return $"return new CallResult( {varname} );";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string ReturnType
|
public override string ReturnType
|
||||||
|
Loading…
Reference in New Issue
Block a user