diff --git a/Facepunch.Steamworks.Test/AchievementsTest.cs b/Facepunch.Steamworks.Test/AchievementsTest.cs deleted file mode 100644 index 2bd4fc4..0000000 --- a/Facepunch.Steamworks.Test/AchievementsTest.cs +++ /dev/null @@ -1,92 +0,0 @@ -using System; -using System.Text; -using System.Threading; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace Facepunch.Steamworks.Test -{ - [TestClass] - [DeploymentItem( "steam_api64.dll" )] - public class Achievements - { - [TestMethod] - public void GetCount() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - var gotStats = false; - client.Achievements.OnUpdated += () => { gotStats = true; }; - - while ( !gotStats ) - { - client.Update(); - } - - Console.WriteLine( "Found " + client.Achievements.All.Length + " Achievements" ); - - Assert.AreNotEqual( 0, client.Achievements.All.Length ); - } - } - - [TestMethod] - public void GetNames() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - var gotStats = false; - client.Achievements.OnUpdated += () => { gotStats = true; }; - - while ( !gotStats ) - { - client.Update(); - } - - foreach( var ach in client.Achievements.All ) - { - Assert.IsNotNull( ach.Id ); - - Console.WriteLine( " " + ach.Id ); - Console.WriteLine( " - - " + ach.Name ); - Console.WriteLine( " - - " + ach.Description ); - Console.WriteLine( " - - " + ach.State ); - Console.WriteLine( " - - " + ach.UnlockTime ); - Console.WriteLine( " - - " + ach.GlobalUnlockedPercentage ); - - if ( ach.Icon != null ) - { - Console.WriteLine( " - - " + ach.Icon.Width + " x " + ach.Icon.Height ); - } - - Console.WriteLine( "" ); - } - } - } - - [TestMethod] - public void Trigger() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - var gotStats = false; - client.Achievements.OnUpdated += () => { gotStats = true; }; - - while ( !gotStats ) - { - client.Update(); - } - - foreach ( var ach in client.Achievements.All ) - { - ach.Trigger(); - } - } - } - - } -} diff --git a/Facepunch.Steamworks.Test/ClientTest.cs b/Facepunch.Steamworks.Test/ClientTest.cs deleted file mode 100644 index c83105a..0000000 --- a/Facepunch.Steamworks.Test/ClientTest.cs +++ /dev/null @@ -1,169 +0,0 @@ -using System; -using System.Diagnostics; -using System.IO; -using System.Linq; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace Facepunch.Steamworks.Test -{ - [TestClass] - [DeploymentItem( "steam_api64.dll" )] - public partial class Client - { - [TestMethod] - public void Init() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - } - } - - [TestMethod] - public void Init_10() - { - for ( int i = 0; i < 10; i++ ) - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - } - - GC.Collect(); - } - } - - [TestMethod] - public void Name() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - var username = client.Username; - Console.WriteLine( username ); - Assert.IsNotNull( username ); - } - } - - [TestMethod] - public void SteamId() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - var steamid = client.SteamId; - Console.WriteLine( steamid ); - Assert.AreNotEqual( 0, steamid ); - } - } - - [TestMethod] - public void Update() - { - var sw = new Stopwatch(); - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue(client.IsValid); - - for( int i=0; i<1024; i++ ) - { - sw.Restart(); - client.Update(); - Console.WriteLine( $"{sw.Elapsed.TotalMilliseconds}ms" ); - - } - } - } - - [TestMethod] - public void Subscribed() - { - var sw = new Stopwatch(); - using (var client = new Facepunch.Steamworks.Client(252490)) - { - Assert.IsTrue(client.IsValid); - Assert.IsTrue(client.IsSubscribed); - } - } - - [TestMethod] - public void Owner() - { - var sw = new Stopwatch(); - using (var client = new Facepunch.Steamworks.Client(252490)) - { - Assert.IsTrue(client.IsValid); - Assert.AreEqual(client.OwnerSteamId, client.SteamId); - } - } - - [TestMethod] - public void InstallFolder() - { - var sw = new Stopwatch(); - using (var client = new Facepunch.Steamworks.Client(252490)) - { - Assert.IsTrue(client.IsValid); - Assert.IsTrue(client.InstallFolder.Exists); - - Console.Write($"Install Folder: {client.InstallFolder}"); - } - } - - [TestMethod] - public void CurrentLanguage() - { - var sw = new Stopwatch(); - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - Assert.IsTrue( client.CurrentLanguage != null ); - Assert.IsTrue( client.CurrentLanguage.Length > 0 ); - - Console.Write( $"CurrentLanguage: {client.CurrentLanguage}" ); - } - } - - [TestMethod] - public void AvailableLanguages() - { - var sw = new Stopwatch(); - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - Assert.IsTrue( client.AvailableLanguages != null ); - Assert.IsTrue( client.AvailableLanguages.Length > 0 ); - - foreach ( var lang in client.AvailableLanguages ) - { - Console.Write( $"AvailableLanguages: {lang}" ); - } - - } - } - - [TestMethod] - public void Cybercafe() - { - var sw = new Stopwatch(); - using (var client = new Facepunch.Steamworks.Client(252490)) - { - Assert.IsTrue(client.IsValid); - Assert.IsFalse(client.IsCybercafe); - } - } - - [TestMethod] - public void LowViolence() - { - var sw = new Stopwatch(); - using (var client = new Facepunch.Steamworks.Client(252490)) - { - Assert.IsTrue(client.IsValid); - Assert.IsFalse(client.IsLowViolence); - } - } - } -} diff --git a/Facepunch.Steamworks.Test/Facepunch.Steamworks.Test.csproj b/Facepunch.Steamworks.Test/Facepunch.Steamworks.Test.csproj index b02e7d7..821ee0f 100644 --- a/Facepunch.Steamworks.Test/Facepunch.Steamworks.Test.csproj +++ b/Facepunch.Steamworks.Test/Facepunch.Steamworks.Test.csproj @@ -88,25 +88,15 @@ - - - - - - - - - - diff --git a/Facepunch.Steamworks.Test/FriendsTest.cs b/Facepunch.Steamworks.Test/FriendsTest.cs deleted file mode 100644 index 8ea5245..0000000 --- a/Facepunch.Steamworks.Test/FriendsTest.cs +++ /dev/null @@ -1,173 +0,0 @@ -using System; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System.Linq; -using System.Threading.Tasks; - -namespace Steamworks -{ - [DeploymentItem( "steam_api64.dll" )] - [TestClass] - public class FriendsTest - { - [TestMethod] - public void GetFriends() - { - foreach ( var friend in Friends.GetFriends() ) - { - Console.WriteLine( $"{friend.Id.Value}: {friend.Name} (Friend:{friend.IsFriend}) (Blocked:{friend.IsBlocked})" ); - Console.WriteLine( $" {string.Join( ", ", friend.NameHistory)}" ); - - // Assert.IsNotNull( friend.GetAvatar( Steamworks.Friends.AvatarSize.Medium ) ); - } - } - - [TestMethod] - public void GetBlocked() - { - foreach ( var friend in Friends.GetBlocked() ) - { - Console.WriteLine( $"{friend.Id.Value}: {friend.Name} (Friend:{friend.IsFriend}) (Blocked:{friend.IsBlocked})" ); - Console.WriteLine( $" {string.Join( ", ", friend.NameHistory )}" ); - - // Assert.IsNotNull( friend.GetAvatar( Steamworks.Friends.AvatarSize.Medium ) ); - } - } - - [TestMethod] - public void GetPlayedWith() - { - foreach ( var friend in Friends.GetPlayedWith() ) - { - Console.WriteLine( $"{friend.Id.Value}: {friend.Name} (Friend:{friend.IsFriend}) (Blocked:{friend.IsBlocked})" ); - Console.WriteLine( $" {string.Join( ", ", friend.NameHistory )}" ); - - // Assert.IsNotNull( friend.GetAvatar( Steamworks.Friends.AvatarSize.Medium ) ); - } - } - - [TestMethod] - public async Task LargeAvatar() - { - ulong id = (ulong)(76561197960279927 + (new Random().Next() % 10000)); - - var image = await Friends.GetLargeAvatarAsync( id ); - if ( !image.HasValue ) - return; - - Console.WriteLine( $"image.Width {image.Value.Width}" ); - Console.WriteLine( $"image.Height {image.Value.Height}" ); - - DrawImage( image.Value ); - } - - [TestMethod] - public async Task MediumAvatar() - { - ulong id = (ulong)(76561197960279927 + (new Random().Next() % 10000)); - - Console.WriteLine( $"Steam: http://steamcommunity.com/profiles/{id}" ); - - var image = await Friends.GetMediumAvatarAsync( id ); - if ( !image.HasValue ) - return; - - Console.WriteLine( $"image.Width {image.Value.Width}" ); - Console.WriteLine( $"image.Height {image.Value.Height}" ); - - DrawImage( image.Value ); - } - - [TestMethod] - public async Task SmallAvatar() - { - ulong id = (ulong)(76561197960279927 + (new Random().Next() % 10000)); - - var image = await Friends.GetSmallAvatarAsync( id ); - if ( !image.HasValue ) - return; - - Console.WriteLine( $"image.Width {image.Value.Width}" ); - Console.WriteLine( $"image.Height {image.Value.Height}" ); - - DrawImage( image.Value ); - } - - [TestMethod] - public async Task GetFriendsAvatars() - { - foreach ( var friend in Friends.GetFriends() ) - { - Console.WriteLine( $"{friend.Id.Value}: {friend.Name}" ); - - var image = await friend.GetSmallAvatarAsync(); - if ( image.HasValue ) - { - DrawImage( image.Value ); - } - - // Assert.IsNotNull( friend.GetAvatar( Steamworks.Friends.AvatarSize.Medium ) ); - } - } - - /* - [TestMethod] - public void FriendListWithoutRefresh() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - foreach ( var friend in client.Friends.All ) - { - Console.WriteLine( "{0}: {1} (Friend:{2}) (Blocked:{3})", friend.Id, friend.Name, friend.IsFriend, friend.IsBlocked ); - } - } - } - - - - [TestMethod] - public void CachedAvatar() - { - using (var client = new Facepunch.Steamworks.Client(252490)) - { - Assert.IsTrue(client.IsValid); - - var friend = client.Friends.All.First(); - - var image = client.Friends.GetCachedAvatar( Steamworks.Friends.AvatarSize.Medium, friend.Id ); - - if (image != null) - { - Assert.AreEqual(image.Width, 64); - Assert.AreEqual(image.Height, 64); - Assert.AreEqual(image.Data.Length, image.Width * image.Height * 4); - } - } - } - */ - public static void DrawImage( Image img ) - { - var grad = " -:+#"; - - for ( int y = 0; y 3 ) c = 3; - str += grad[c]; - - } - - Console.WriteLine( str ); - } - } - - } -} diff --git a/Facepunch.Steamworks.Test/GameServerTest.cs b/Facepunch.Steamworks.Test/GameServerTest.cs index 8320534..9b507c5 100644 --- a/Facepunch.Steamworks.Test/GameServerTest.cs +++ b/Facepunch.Steamworks.Test/GameServerTest.cs @@ -1,7 +1,6 @@ using System; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; -using SteamNative; namespace Steamworks { @@ -41,6 +40,7 @@ namespace Steamworks [TestMethod] public async Task BeginAuthSession() { + var stopwatch = System.Diagnostics.Stopwatch.StartNew(); bool finished = false; AuthSessionResponse response = AuthSessionResponse.AuthTicketInvalidAlreadyUsed; @@ -83,23 +83,35 @@ namespace Steamworks // Wait for that to go through steam // while ( !finished ) + { + if ( stopwatch.Elapsed.TotalSeconds > 5 ) + throw new System.Exception( "Took too long waiting for AuthSessionResponse.OK" ); + await Task.Delay( 10 ); + } Assert.AreEqual( response, AuthSessionResponse.OK ); finished = false; + stopwatch = System.Diagnostics.Stopwatch.StartNew(); // // The client is leaving, and now wants to cancel the ticket // + Assert.AreNotEqual( 0, clientTicket.Handle ); clientTicket.Cancel(); // // We should get another callback // while ( !finished ) + { + if ( stopwatch.Elapsed.TotalSeconds > 5 ) + throw new System.Exception( "Took too long waiting for AuthSessionResponse.AuthTicketCanceled" ); + await Task.Delay( 10 ); + } Assert.AreEqual( response, AuthSessionResponse.AuthTicketCanceled ); diff --git a/Facepunch.Steamworks.Test/InventoryTest.cs b/Facepunch.Steamworks.Test/InventoryTest.cs deleted file mode 100644 index ebb3c63..0000000 --- a/Facepunch.Steamworks.Test/InventoryTest.cs +++ /dev/null @@ -1,295 +0,0 @@ -using System; -using System.Diagnostics; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System.Linq; - -namespace Facepunch.Steamworks.Test -{ - [DeploymentItem( "steam_api64.dll" )] - [TestClass] - public class Inventory - { - [TestMethod] - public void InventoryDefinitions() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - while ( client.Inventory.Definitions == null ) - { - client.Update(); - System.Threading.Thread.Sleep( 10 ); - } - - Assert.IsNotNull( client.Inventory.Definitions ); - Assert.AreNotEqual( 0, client.Inventory.Definitions.Length ); - - foreach ( var i in client.Inventory.Definitions.Where( x => x.PriceCategory != "" ) ) - { - Console.WriteLine( "{0}: {1} ({2})", i.Id, i.Name, i.Type ); - Console.WriteLine( " itemshortname: {0}", i.GetStringProperty( "itemshortname" ) ); - Console.WriteLine( " workshopdownload: {0}", i.GetStringProperty( "workshopdownload" ) ); - Console.WriteLine( " IconUrl: {0}", i.IconUrl ); - Console.WriteLine( " IconLargeUrl: {0}", i.IconLargeUrl ); - Console.WriteLine( " PriceRaw: {0}", i.PriceCategory ); - Console.WriteLine( " PriceDollars: {0}", i.PriceDollars ); - } - } - } - - [TestMethod] - public void InventoryDefinitionExchange() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - while ( client.Inventory.Definitions == null ) - { - client.Update(); - System.Threading.Thread.Sleep( 10 ); - } - - Assert.IsNotNull( client.Inventory.Definitions ); - Assert.AreNotEqual( 0, client.Inventory.Definitions.Length ); - - foreach ( var i in client.Inventory.Definitions ) - { - if ( i.Recipes == null ) continue; - - Console.WriteLine( "Ways To Create " + i.Name ); - - foreach ( var r in i.Recipes ) - { - Console.WriteLine( " " + string.Join( ", ", r.Ingredients.Select( x => x.Count + " x " + x.Definition.Name ) ) ); - } - } - } - } - - [TestMethod] - public void InventoryDefinitionIngredients() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - while ( client.Inventory.Definitions == null ) - { - client.Update(); - System.Threading.Thread.Sleep( 10 ); - } - - Assert.IsNotNull( client.Inventory.Definitions ); - Assert.AreNotEqual( 0, client.Inventory.Definitions.Length ); - - foreach ( var i in client.Inventory.Definitions ) - { - if ( i.IngredientFor == null ) continue; - - Console.WriteLine( i.Name + " Can Be Used to Make" ); - - foreach ( var r in i.IngredientFor ) - { - Console.WriteLine( " " + r.Result.Name ); - } - } - } - } - - [TestMethod] - public void InventoryItemList() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - while ( client.Inventory.Definitions == null ) - { - client.Update(); - System.Threading.Thread.Sleep( 10 ); - } - - bool CallbackCalled = false; - - // OnUpdate hsould be called when we receive a list of our items - client.Inventory.OnUpdate += () => { CallbackCalled = true; }; - - // tell steam to download the items - client.Inventory.Refresh(); - - // Wait for the items - var timeout = Stopwatch.StartNew(); - while ( client.Inventory.Items == null ) - { - client.Update(); - System.Threading.Thread.Sleep( 1000 ); - - if ( timeout.Elapsed.TotalSeconds > 10 ) - break; - } - - // make sure callback was called - Assert.IsTrue( CallbackCalled ); - - // Make sure items are valid - foreach ( var item in client.Inventory.Items ) - { - Assert.IsNotNull( item ); - Assert.IsNotNull( item.Definition ); - - Console.WriteLine( item.Definition.Name + " - " + item.Id ); - } - } - } - - [TestMethod] - public void InventoryItemProperties() - { - using (var client = new Facepunch.Steamworks.Client(252490)) - { - while ( true ) - { - client.Update(); - - if (client.Inventory.Items == null) continue; - - foreach (var item in client.Inventory.Items) - { - Console.WriteLine($"{item.Id} ({item.Definition.Name})"); - - foreach (var property in item.Properties) - { - Console.WriteLine($" {property.Key} = {property.Value}"); - } - - Console.WriteLine(""); - } - - return; - } - } - } - - [TestMethod] - public void Deserialize() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - while ( client.Inventory.Definitions == null ) - { - client.Update(); - System.Threading.Thread.Sleep( 10 ); - } - - Assert.IsTrue( client.IsValid ); - Assert.IsNotNull(client.Inventory.Definitions); - Assert.AreNotEqual(0, client.Inventory.Definitions.Length); - - client.Inventory.Refresh(); - - var stopwatch = Stopwatch.StartNew(); - - // - // Block until we have the items - // - while ( client.Inventory.SerializedItems == null ) - { - client.Update(); - - if (stopwatch.Elapsed.Seconds > 10) - throw new System.Exception("Getting SerializedItems took too long"); - } - - Assert.IsNotNull( client.Inventory.SerializedItems ); - Assert.IsTrue( client.Inventory.SerializedItems.Length > 4 ); - /* - using ( var server = new Facepunch.Steamworks.Server( 252490, new ServerInit( "rust", "Rust" ) ) ) - { - server.LogOnAnonymous(); - Assert.IsTrue( server.IsValid ); - - var result = server.Inventory.Deserialize( client.Inventory.SerializedItems ); - - stopwatch = Stopwatch.StartNew(); - - while (result.IsPending) - { - server.Update(); - - if (stopwatch.Elapsed.Seconds > 10) - throw new System.Exception("result took too long"); - } - - Assert.IsFalse( result.IsPending ); - Assert.IsNotNull( result.Items ); - - foreach ( var item in result.Items ) - { - Console.WriteLine( "Item: {0} ({1})", item.Id, item.DefinitionId ); - Console.WriteLine( "Item: {0} ({1})", item.Id, item.DefinitionId ); - } - } - */ - } - } - - [TestMethod] - public void PurchaseItems() - { - using (var client = new Facepunch.Steamworks.Client(252490)) - { - while ( client.Inventory.Definitions == null ) - { - client.Update(); - System.Threading.Thread.Sleep( 10 ); - } - - Assert.IsNotNull(client.Inventory.Definitions); - Assert.AreNotEqual(0, client.Inventory.Definitions.Length); - - while ( client.Inventory.Currency == null ) - { - client.Update(); - } - - var shoppingList = client.Inventory.DefinitionsWithPrices.Take(2).ToArray(); - bool waitingForCallback = true; - - if ( !client.Inventory.StartPurchase(shoppingList, ( order, tran ) => - { - Console.WriteLine($"Order: {order}, Transaction {tran}"); - waitingForCallback = false; - - } ) ) - { - throw new Exception("Couldn't Buy!"); - } - - while ( waitingForCallback ) - { - client.Update(); - } - } - } - - [TestMethod] - public void ListPrices() - { - using (var client = new Facepunch.Steamworks.Client(252490)) - { - while ( client.Inventory.Definitions == null ) - { - client.Update(); - System.Threading.Thread.Sleep( 10 ); - } - - Assert.IsNotNull(client.Inventory.Definitions); - Assert.AreNotEqual(0, client.Inventory.Definitions.Length); - - while (client.Inventory.Currency == null) - { - client.Update(); - } - - foreach ( var i in client.Inventory.Definitions.Where( x => x.LocalPrice > 0 ) ) - { - Console.WriteLine( $" {i.Name} - {i.LocalPriceFormatted} ({client.Inventory.Currency})" ); - } - } - } - } -} diff --git a/Facepunch.Steamworks.Test/LeaderboardTest.cs b/Facepunch.Steamworks.Test/LeaderboardTest.cs deleted file mode 100644 index bc298d8..0000000 --- a/Facepunch.Steamworks.Test/LeaderboardTest.cs +++ /dev/null @@ -1,276 +0,0 @@ -using System; -using System.Diagnostics; -using System.Linq; -using System.Threading; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace Facepunch.Steamworks.Test -{ - [TestClass] - [DeploymentItem( "steam_api64.dll" )] - public class Leaderboard - { - [TestMethod] - public void GetLeaderboard() - { - using ( var client = new Steamworks.Client( 252490 ) ) - { - var board = client.GetLeaderboard( "TestLeaderboard", Steamworks.Client.LeaderboardSortMethod.Ascending, Steamworks.Client.LeaderboardDisplayType.Numeric ); - - var time = Stopwatch.StartNew(); - while ( !board.IsValid ) - { - Thread.Sleep( 10 ); - client.Update(); - - if (time.Elapsed.TotalSeconds > 10 ) - { - throw new Exception("board.IsValid took too long"); - } - } - - Assert.IsTrue( board.IsValid ); - Assert.IsFalse( board.IsError ); - Assert.IsNotNull( board.Name ); - - Console.WriteLine( $"Board name is \"{board.Name}\"" ); - Console.WriteLine( $"Board has \"{board.TotalEntries}\" entries" ); - - board.AddScore( true, 86275309, 7, 8, 9 ); - - board.FetchScores( Steamworks.Leaderboard.RequestType.Global, 0, 20 ); - - time = Stopwatch.StartNew(); - while ( board.IsQuerying ) - { - Thread.Sleep( 10 ); - client.Update(); - - if (time.Elapsed.TotalSeconds > 10) - { - throw new Exception("board.IsQuerying took too long"); - } - } - - Assert.IsFalse( board.IsError ); - Assert.IsNotNull( board.Results ); - - foreach ( var entry in board.Results ) - { - Console.WriteLine( $"{entry.GlobalRank}: {entry.SteamId} ({entry.Name}) with {entry.Score}" ); - - if ( entry.SubScores != null ) - Console.WriteLine( " - " + string.Join( ";", entry.SubScores.Select( x => x.ToString() ).ToArray() ) ); - } - } - } - - [TestMethod] - public void GetLeaderboardCallback() - { - using ( var client = new Steamworks.Client( 252490 ) ) - { - var board = client.GetLeaderboard( "TestLeaderboard", Steamworks.Client.LeaderboardSortMethod.Ascending, Steamworks.Client.LeaderboardDisplayType.Numeric ); - - var time = Stopwatch.StartNew(); - while ( !board.IsValid ) - { - Thread.Sleep( 10 ); - client.Update(); - - if (time.Elapsed.TotalSeconds > 10) - { - throw new Exception("board.IsValid took too long"); - } - } - - Assert.IsTrue( board.IsValid ); - Assert.IsFalse( board.IsError ); - Assert.IsNotNull( board.Name ); - - board.AddScore( true, 86275309, 7, 8, 9 ); - - var done = false; - - board.FetchScores( Steamworks.Leaderboard.RequestType.Global, 0, 20, results => - { - foreach ( var entry in results ) - { - Console.WriteLine( $"{entry.GlobalRank}: {entry.SteamId} ({entry.Name}) with {entry.Score}" ); - - if ( entry.SubScores != null ) - Console.WriteLine( " - " + string.Join( ";", entry.SubScores.Select( x => x.ToString() ).ToArray() ) ); - } - - done = true; - }, error => Assert.Fail( error.ToString() ) ); - - while ( !done ) - { - Thread.Sleep( 10 ); - client.Update(); - } - } - } - - [TestMethod] - public void AddScores() - { - using ( var client = new Steamworks.Client( 252490 ) ) - { - var board = client.GetLeaderboard( "TestLeaderboard", Steamworks.Client.LeaderboardSortMethod.Ascending, Steamworks.Client.LeaderboardDisplayType.Numeric ); - - var time = Stopwatch.StartNew(); - while (!board.IsValid) - { - Thread.Sleep(10); - client.Update(); - - if (time.Elapsed.TotalSeconds > 10) - { - throw new Exception("board.IsValid took too long"); - } - } - - Assert.IsTrue( board.IsValid ); - Assert.IsFalse( board.IsError ); - - board.AddScore( true, 1234 ); - - Thread.Sleep( 10 ); - client.Update(); - - board.AddScore( true, 34566 ); - - Thread.Sleep( 10 ); - client.Update(); - - board.AddScore( true, 86275309, 7, 8, 9, 7, 4, 7, 98, 24, 5, 76, 124, 6 ); - - Thread.Sleep( 10 ); - client.Update(); - - board.AddScore( false, 86275309, 7, 8, 9, 7, 4, 7, 98, 24, 5, 76, 124, 6 ); - - Thread.Sleep( 10 ); - client.Update(); - } - } - - [TestMethod] - public void AddScoresCallback() - { - using ( var client = new Steamworks.Client( 252490 ) ) - { - var board = client.GetLeaderboard( "TestLeaderboard", Steamworks.Client.LeaderboardSortMethod.Ascending, Steamworks.Client.LeaderboardDisplayType.Numeric ); - - var time = Stopwatch.StartNew(); - while (!board.IsValid) - { - Thread.Sleep(10); - client.Update(); - - if ( board.IsError ) - { - throw new Exception( "Board is Error" ); - } - - if (time.Elapsed.TotalSeconds > 10) - { - throw new Exception("board.IsValid took too long"); - } - } - - Assert.IsTrue( board.IsValid ); - Assert.IsFalse( board.IsError ); - - var done = false; - - const int score = 5678; - - board.AddScore( false, score, null, result => - { - Assert.IsTrue( result.ScoreChanged ); - Assert.AreEqual( result.Score, score ); - - done = true; - }, error => Assert.Fail( error.ToString() ) ); - - while ( !done ) - { - Thread.Sleep( 10 ); - client.Update(); - } - } - } - - [TestMethod] - public void AddFileAttachment() - { - using ( var client = new Steamworks.Client( 252490 ) ) - { - var board = client.GetLeaderboard( "TestLeaderboard", Steamworks.Client.LeaderboardSortMethod.Ascending, Steamworks.Client.LeaderboardDisplayType.Numeric ); - - var time = Stopwatch.StartNew(); - while (!board.IsValid) - { - Thread.Sleep(10); - client.Update(); - - if (time.Elapsed.TotalSeconds > 10) - { - throw new Exception("board.IsValid took too long"); - } - } - - Assert.IsTrue( board.IsValid ); - Assert.IsFalse( board.IsError ); - - var done = false; - - const int score = 5678; - const string attachment = "Hello world!"; - - var file = client.RemoteStorage.CreateFile( "score/example.txt" ); - file.WriteAllText( attachment ); - - Assert.IsTrue( board.AddScore( false, score, null, result => - { - Assert.IsTrue( result.ScoreChanged ); - - Assert.IsTrue( board.AttachRemoteFile( file, () => - { - done = true; - }, error => Assert.Fail( error.ToString() ) ) ); - }, error => Assert.Fail( error.ToString() ) ) ); - - while ( !done ) - { - Thread.Sleep( 10 ); - client.Update(); - } - - done = false; - - Assert.IsTrue( board.FetchScores( Steamworks.Leaderboard.RequestType.GlobalAroundUser, 0, 0, entries => - { - Assert.AreEqual( 1, entries.Length ); - Assert.IsNotNull( entries[0].AttachedFile ); - - Assert.IsTrue( entries[0].AttachedFile.Download( () => - { - Assert.AreEqual( attachment, entries[0].AttachedFile.ReadAllText() ); - - done = true; - }, error => Assert.Fail( error.ToString() ) ) ); - }, error => Assert.Fail( error.ToString() ) ) ); - - while ( !done ) - { - Thread.Sleep( 10 ); - client.Update(); - } - } - } - } -} \ No newline at end of file diff --git a/Facepunch.Steamworks.Test/LobbyTest.cs b/Facepunch.Steamworks.Test/LobbyTest.cs deleted file mode 100644 index 340cf4d..0000000 --- a/Facepunch.Steamworks.Test/LobbyTest.cs +++ /dev/null @@ -1,389 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using Facepunch.Steamworks; -using System.Text; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace Facepunch.Steamworks.Test -{ - [TestClass] - [DeploymentItem("steam_api64.dll")] - public class Lobby - { - [TestMethod] - public void CreateLobby() - { - using (var client = new Facepunch.Steamworks.Client(252490)) - { - Assert.IsTrue(client.IsValid); - - client.Lobby.Create(Steamworks.Lobby.Type.Public, 10); - - client.Lobby.OnLobbyCreated = (success) => - { - Assert.IsTrue(success); - Assert.IsTrue(client.Lobby.IsValid); - Console.WriteLine("lobby created: " + client.Lobby.CurrentLobby); - Console.WriteLine($"Owner: {client.Lobby.Owner}"); - Console.WriteLine($"Max Members: {client.Lobby.MaxMembers}"); - Console.WriteLine($"Num Members: {client.Lobby.NumMembers}"); - client.Lobby.Leave(); - }; - - var sw = Stopwatch.StartNew(); - - while (sw.Elapsed.TotalSeconds < 3) - { - client.Update(); - System.Threading.Thread.Sleep(10); - } - - } - } - - [TestMethod] - public void GetCreatedLobbyData() - { - using (var client = new Facepunch.Steamworks.Client(252490)) - { - Assert.IsTrue(client.IsValid); - - client.Lobby.Create(Steamworks.Lobby.Type.Public, 10); - - client.Lobby.OnLobbyCreated = (success) => - { - Assert.IsTrue(success); - Assert.IsTrue(client.Lobby.IsValid); - Console.WriteLine("lobby created: " + client.Lobby.CurrentLobby); - foreach (KeyValuePair data in client.Lobby.CurrentLobbyData.GetAllData()) - { - if (data.Key == "appid") - { - Assert.IsTrue(data.Value == "252490"); - } - Console.WriteLine($"{data.Key} {data.Value}"); - } - client.Lobby.Leave(); - }; - - var sw = Stopwatch.StartNew(); - - while (sw.Elapsed.TotalSeconds < 3) - { - client.Update(); - System.Threading.Thread.Sleep(10); - } - - } - } - - [TestMethod] - public void UpdateLobbyData() - { - using (var client = new Facepunch.Steamworks.Client(252490)) - { - Assert.IsTrue(client.IsValid); - - client.Lobby.Create(Steamworks.Lobby.Type.Public, 10); - - client.Lobby.OnLobbyCreated = (success) => - { - Assert.IsTrue(success); - Assert.IsTrue(client.Lobby.IsValid); - Console.WriteLine("lobby created: " + client.Lobby.CurrentLobby); - - client.Lobby.Name = "My Updated Lobby Name"; - client.Lobby.CurrentLobbyData.SetData("testkey", "testvalue"); - client.Lobby.LobbyType = Steamworks.Lobby.Type.Private; - client.Lobby.MaxMembers = 5; - client.Lobby.Joinable = false; - - foreach (KeyValuePair data in client.Lobby.CurrentLobbyData.GetAllData()) - { - if (data.Key == "appid") - { - Assert.IsTrue(data.Value == "252490"); - } - - if (data.Key == "testkey") - { - Assert.IsTrue(data.Value == "testvalue"); - } - - if (data.Key == "lobbytype") - { - Assert.IsTrue(data.Value == Steamworks.Lobby.Type.Private.ToString()); - } - - Console.WriteLine($"{data.Key} {data.Value}"); - } - - - - }; - - - client.Lobby.OnLobbyDataUpdated = () => - { - Console.WriteLine("lobby data updated"); - Console.WriteLine(client.Lobby.MaxMembers); - Console.WriteLine(client.Lobby.Joinable); - }; - - - - var sw = Stopwatch.StartNew(); - - while (sw.Elapsed.TotalSeconds < 3) - { - client.Update(); - System.Threading.Thread.Sleep(10); - } - - client.Lobby.Leave(); - - } - } - - [TestMethod] - public void RefreshLobbyList() - { - using (var client = new Facepunch.Steamworks.Client(252490)) - { - Assert.IsTrue(client.IsValid); - - client.Lobby.OnLobbyCreated = (success) => - { - Assert.IsTrue(success); - Assert.IsTrue(client.Lobby.IsValid); - Console.WriteLine("lobby created: " + client.Lobby.CurrentLobby); - client.LobbyList.Refresh(); - }; - - client.LobbyList.OnLobbiesUpdated = () => - { - Console.WriteLine("lobbies updating"); - if (client.LobbyList.Finished) - { - Console.WriteLine("lobbies finished updating"); - Console.WriteLine($"found {client.LobbyList.Lobbies.Count} lobbies"); - - foreach (LobbyList.Lobby lobby in client.LobbyList.Lobbies) - { - Console.WriteLine($"Found Lobby: {lobby.Name}"); - } - - client.Lobby.Leave(); - - } - - }; - - client.Lobby.Create(Steamworks.Lobby.Type.Public, 10); - - var sw = Stopwatch.StartNew(); - - while (sw.Elapsed.TotalSeconds < 3) - { - client.Update(); - System.Threading.Thread.Sleep(10); - } - - } - } - - [TestMethod] - public void RefreshLobbyListWithFilter() - { - using (var client = new Facepunch.Steamworks.Client(252490)) - { - Assert.IsTrue(client.IsValid); - - client.Lobby.OnLobbyCreated = (success) => - { - Assert.IsTrue(success); - Assert.IsTrue(client.Lobby.IsValid); - Console.WriteLine("lobby created: " + client.Lobby.CurrentLobby); - client.Lobby.CurrentLobbyData.SetData("testkey", "testvalue"); - }; - - client.Lobby.OnLobbyDataUpdated = () => - { - var filter = new LobbyList.Filter(); - filter.StringFilters.Add("testkey", "testvalue"); - client.LobbyList.Refresh(filter); - }; - - client.LobbyList.OnLobbiesUpdated = () => - { - Console.WriteLine("lobbies updating"); - if (client.LobbyList.Finished) - { - Console.WriteLine("lobbies finished updating"); - Console.WriteLine($"found {client.LobbyList.Lobbies.Count} lobbies"); - - foreach (LobbyList.Lobby lobby in client.LobbyList.Lobbies) - { - Console.WriteLine($"Found Lobby: {lobby.Name}"); - } - - } - - }; - - client.Lobby.Create(Steamworks.Lobby.Type.Public, 10); - - var sw = Stopwatch.StartNew(); - - while (sw.Elapsed.TotalSeconds < 5) - { - client.Update(); - System.Threading.Thread.Sleep(10); - } - - client.Lobby.Leave(); - - } - } - - [TestMethod] - public void RefreshLobbyListWithFilterAndGetLobbyDataFromListLobby() - { - using (var client = new Facepunch.Steamworks.Client(755870)) - { - Assert.IsTrue(client.IsValid); - - client.Lobby.OnLobbyCreated = (success) => - { - Assert.IsTrue(success); - Assert.IsTrue(client.Lobby.IsValid); - Console.WriteLine("lobby created: " + client.Lobby.CurrentLobby); - client.Lobby.CurrentLobbyData.SetData("testkey", "testvalue"); - }; - - client.Lobby.OnLobbyDataUpdated = () => - { - var filter = new LobbyList.Filter(); - filter.StringFilters.Add("testkey", "testvalue"); - client.LobbyList.Refresh(filter); - }; - - client.LobbyList.OnLobbiesUpdated = () => - { - Console.WriteLine("lobbies updating"); - if (client.LobbyList.Finished) - { - Console.WriteLine("lobbies finished updating"); - Console.WriteLine($"found {client.LobbyList.Lobbies.Count} lobbies"); - - foreach (LobbyList.Lobby lobby in client.LobbyList.Lobbies) - { - foreach (var pair in lobby.GetAllData()) - { - Console.WriteLine(string.Format("Key: {0,-36} Value: {1}", pair.Key, pair.Value)); - } - } - } - }; - - client.Lobby.Create(Steamworks.Lobby.Type.Public, 10); - - var sw = Stopwatch.StartNew(); - - while (sw.Elapsed.TotalSeconds < 5) - { - client.Update(); - System.Threading.Thread.Sleep(10); - } - - client.Lobby.Leave(); - - } - } - - [TestMethod] - public void SendChatMessage() - { - using (var client = new Facepunch.Steamworks.Client(252490)) - { - Assert.IsTrue(client.IsValid); - string testString = "Hello, World"; - - client.Lobby.OnLobbyCreated = (success) => - { - Assert.IsTrue(success); - Assert.IsTrue(client.Lobby.IsValid); - Console.WriteLine("lobby created: " + client.Lobby.CurrentLobby); - client.Lobby.CurrentLobbyData.SetData("testkey", "testvalue"); - client.Lobby.SendChatMessage(testString); - }; - - client.Lobby.OnChatMessageRecieved = (steamID, bytes, length) => - { - string message = Encoding.UTF8.GetString(bytes, 0, length); - Console.WriteLine("message recieved"); - Assert.IsTrue(message == testString); - }; - - client.Lobby.OnChatStringRecieved = (steamID, message) => - { - Console.WriteLine("message recieved"); - Assert.IsTrue(message == testString); - }; - - client.Lobby.Create(Steamworks.Lobby.Type.Public, 10); - - var sw = Stopwatch.StartNew(); - - while (sw.Elapsed.TotalSeconds < 5) - { - client.Update(); - System.Threading.Thread.Sleep(10); - } - - client.Lobby.Leave(); - - } - } - - [TestMethod] - public void SetGetUserMetadata() - { - using (var client = new Facepunch.Steamworks.Client(252490)) - { - Assert.IsTrue(client.IsValid); - - client.Lobby.OnLobbyCreated = (success) => - { - Assert.IsTrue(success); - Assert.IsTrue(client.Lobby.IsValid); - Console.WriteLine("lobby created: " + client.Lobby.CurrentLobby); - client.Lobby.SetMemberData("testkey", "testvalue"); - }; - - client.Lobby.OnLobbyMemberDataUpdated = (steamID) => - { - var friend = new global::Steamworks.Friend( steamID ); - Console.WriteLine( friend.Name + " updated data"); - Assert.IsTrue(client.Lobby.GetMemberData(steamID, "testkey") == "testvalue"); - Console.WriteLine("testkey is now: " + client.Lobby.GetMemberData(steamID, "testkey")); - }; - - client.Lobby.Create(Steamworks.Lobby.Type.Public, 10); - - var sw = Stopwatch.StartNew(); - - while (sw.Elapsed.TotalSeconds < 5) - { - client.Update(); - System.Threading.Thread.Sleep(10); - } - - client.Lobby.Leave(); - - } - } - - } -} diff --git a/Facepunch.Steamworks.Test/NetworkingTest.cs b/Facepunch.Steamworks.Test/NetworkingTest.cs deleted file mode 100644 index e4013d0..0000000 --- a/Facepunch.Steamworks.Test/NetworkingTest.cs +++ /dev/null @@ -1,114 +0,0 @@ -using System; -using System.Diagnostics; -using System.Text; -using System.Threading; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace Facepunch.Steamworks.Test -{ - [TestClass] - [DeploymentItem( "steam_api64.dll" )] - public partial class Networking - { - [TestMethod] - public void PeerToPeerSend() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - var TestString = "This string will be transformed to bytes, sent over the Steam P2P network, then converted back to a string."; - var OutputReceived = false; - var data = Encoding.UTF8.GetBytes( TestString ); - - // - // Enable listening on this channel - // - client.Networking.SetListenChannel( 0, true ); - - client.Networking.OnP2PData = ( steamid, bytes, length, channel ) => - { - var str = Encoding.UTF8.GetString( bytes, 0, length ); - Assert.AreEqual( str, TestString ); - Assert.AreEqual( steamid, client.SteamId ); - OutputReceived = true; - - Console.WriteLine( "Got: " + str ); - }; - - client.Networking.OnIncomingConnection = ( steamid ) => - { - Console.WriteLine( "Incoming P2P Connection: " + steamid ); - return true; - }; - - client.Networking.OnConnectionFailed = ( steamid, error ) => - { - Console.WriteLine( "Connection Error: " + steamid + " - " + error ); - }; - - client.Networking.SendP2PPacket( client.SteamId, data, data.Length ); - - while( true ) - { - Thread.Sleep( 10 ); - client.Update(); - - if ( OutputReceived ) - break; - } - } - } - - [TestMethod] - public void PeerToPeerFailure() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - var TestString = "This string will be transformed to bytes, sent over the Steam P2P network, then converted back to a string."; - var TimeoutReceived = false; - var data = Encoding.UTF8.GetBytes( TestString ); - - client.Networking.OnIncomingConnection = ( steamid ) => - { - Console.WriteLine( "Incoming P2P Connection: " + steamid ); - - return true; - }; - - client.Networking.OnConnectionFailed = ( steamid, error ) => - { - Console.WriteLine( "Connection Error: " + steamid + " - " + error ); - TimeoutReceived = true; - }; - - ulong rand = (ulong) new Random().Next( 1024 * 16 ); - - // Send to an invalid, not listening steamid - if ( !client.Networking.SendP2PPacket( client.SteamId + rand, data, data.Length ) ) - { - Console.WriteLine( "Couldn't send packet" ); - return; - } - - var sw = Stopwatch.StartNew(); - - while ( true ) - { - Thread.Sleep( 10 ); - client.Update(); - - // - // Timout is usually around 15 seconds - // - if ( TimeoutReceived ) - break; - - if ( sw.Elapsed.TotalSeconds > 30 ) - { - Assert.Fail( "Didn't time out" ); - } - } - } - } - - } -} diff --git a/Facepunch.Steamworks.Test/RemoteStorageTest.cs b/Facepunch.Steamworks.Test/RemoteStorageTest.cs deleted file mode 100644 index 31891d2..0000000 --- a/Facepunch.Steamworks.Test/RemoteStorageTest.cs +++ /dev/null @@ -1,85 +0,0 @@ -using System; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace Facepunch.Steamworks.Test -{ - [TestClass] - [DeploymentItem( "steam_api64.dll" )] - public class RemoteStorage - { - [TestMethod] - public void GetQuota() - { - using ( var client = new Steamworks.Client( 252490 ) ) - { - ulong total = client.RemoteStorage.QuotaTotal; - var available = client.RemoteStorage.QuotaRemaining; - - Console.WriteLine( $"Total quota: {total} bytes" ); - Console.WriteLine( $"Available: {available} bytes" ); - } - } - - [TestMethod] - public void WriteFile() - { - using ( var client = new Steamworks.Client( 252490 ) ) - { - var file = client.RemoteStorage.CreateFile( "test.txt" ); - - const string text = "Hello world!"; - - file.WriteAllText( text ); - - Assert.IsTrue( file.Exists ); - - var read = file.ReadAllText(); - Assert.AreEqual( text, read ); - } - } - - [TestMethod] - public void ReadText() - { - using ( var client = new Steamworks.Client( 252490 ) ) - { - var text = client.RemoteStorage.ReadString( "test.txt" ); - - Assert.IsNotNull( text ); - Assert.AreEqual( text, "Hello world!" ); - } - } - - [TestMethod] - public void WriteText() - { - using ( var client = new Steamworks.Client( 252490 ) ) - { - var result = client.RemoteStorage.WriteString( "test.txt", "Hello world!" ); - Assert.IsTrue( result ); - } - } - - [TestMethod] - public void WriteFiles() - { - using ( var client = new Steamworks.Client( 252490 ) ) - { - for ( var i = 0; i < 10; ++i ) - { - client.RemoteStorage - .CreateFile( $"test_{i}/example.txt" ) - .WriteAllText( Guid.NewGuid().ToString() ); - } - - Console.WriteLine( $"File count: {client.RemoteStorage.FileCount}" ); - - foreach ( var file in client.RemoteStorage.Files ) - { - DateTime t = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc).AddSeconds(file.FileTimestamp); - Console.WriteLine( $"- {file.FileName} ({file.SizeInBytes} bytes), modified {t:O}" ); - } - } - } - } -} diff --git a/Facepunch.Steamworks.Test/ServerlistTest.cs b/Facepunch.Steamworks.Test/ServerlistTest.cs index 1de984e..a6a1f97 100644 --- a/Facepunch.Steamworks.Test/ServerlistTest.cs +++ b/Facepunch.Steamworks.Test/ServerlistTest.cs @@ -19,9 +19,9 @@ namespace Steamworks var ipstr = "185.38.150.40"; var ip = IPAddress.Parse( ipstr ); - var ip_int = Facepunch.Steamworks.Utility.IpToInt32( ip ); + var ip_int = Utility.IpToInt32( ip ); - var ip_back = Facepunch.Steamworks.Utility.Int32ToIp( ip_int ); + var ip_back = Utility.Int32ToIp( ip_int ); Console.WriteLine( "ipstr: " + ipstr ); Console.WriteLine( "ip: " + ip ); diff --git a/Facepunch.Steamworks.Test/StatsTest.cs b/Facepunch.Steamworks.Test/StatsTest.cs deleted file mode 100644 index 7919f40..0000000 --- a/Facepunch.Steamworks.Test/StatsTest.cs +++ /dev/null @@ -1,72 +0,0 @@ -using System; -using System.Text; -using System.Threading; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace Facepunch.Steamworks.Test -{ - [TestClass] - [DeploymentItem( "steam_api64.dll" )] - public class Stats - { - [TestMethod] - public void UpdateStats() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - client.Stats.UpdateStats(); - } - } - - [TestMethod] - public void UpdateSUpdateGlobalStatstats() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - client.Stats.UpdateGlobalStats( 1 ); - client.Stats.UpdateGlobalStats( 3 ); - client.Stats.UpdateGlobalStats( 7 ); - } - } - - [TestMethod] - public void GetClientFloat() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - var v = client.Stats.GetFloat( "deaths" ); - Console.WriteLine( v ); - } - } - - [TestMethod] - public void GetClientInt() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - var v = client.Stats.GetInt( "deaths" ); - Console.WriteLine( v ); - } - } - - [TestMethod] - public void GetGlobalFloat() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - var v = client.Stats.GetGlobalFloat( "deaths" ); - Console.WriteLine( v ); - } - } - - [TestMethod] - public void GetGlobalInt() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - var v = client.Stats.GetGlobalInt( "deaths" ); - Console.WriteLine( v ); - } - } - } -} diff --git a/Facepunch.Steamworks.Test/UserTest.cs b/Facepunch.Steamworks.Test/UserTest.cs index 64f2fdd..eebac6d 100644 --- a/Facepunch.Steamworks.Test/UserTest.cs +++ b/Facepunch.Steamworks.Test/UserTest.cs @@ -69,7 +69,7 @@ namespace Steamworks var result = User.BeginAuthSession( ticket.Data, User.SteamId ); Console.WriteLine( $"result: { result }" ); - Assert.AreEqual( result, SteamNative.BeginAuthSessionResult.OK ); + Assert.AreEqual( result, BeginAuthSessionResult.OK ); User.EndAuthSession( User.SteamId ); } diff --git a/Facepunch.Steamworks.Test/WorkshopTest.cs b/Facepunch.Steamworks.Test/WorkshopTest.cs deleted file mode 100644 index c3ca33a..0000000 --- a/Facepunch.Steamworks.Test/WorkshopTest.cs +++ /dev/null @@ -1,541 +0,0 @@ -using System; -using System.Text; -using System.Threading; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System.Linq; -using System.Diagnostics; -using Facepunch.Steamworks.Callbacks; - -namespace Facepunch.Steamworks.Test -{ - [TestClass] - [DeploymentItem( "steam_api64.dll" )] - public class WorkshopTest - { - [TestMethod] - public void Query() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - var Query = client.Workshop.CreateQuery(); - Query.Order = Workshop.Order.RankedByTrend; - - Query.Run(); - - // Block, wait for result - // (don't do this in realtime) - Query.Block(); - - Assert.IsFalse( Query.IsRunning ); - Assert.IsTrue( Query.TotalResults > 0 ); - Assert.IsTrue( Query.Items.Length > 0 ); - - Console.WriteLine( "Query.TotalResults: {0}", Query.TotalResults ); - Console.WriteLine( "Query.Items.Length: {0}", Query.Items.Length ); - - // results - - Console.WriteLine( "Searching" ); - - Query.Order = Workshop.Order.RankedByTextSearch; - Query.QueryType = Workshop.QueryType.MicrotransactionItems; - Query.SearchText = "black"; - Query.RequireTags.Add( "LongTShirt Skin" ); - Query.Run(); - - // Block, wait for result - // (don't do this in realtime) - Query.Block(); - - Console.WriteLine( "Query.TotalResults: {0}", Query.TotalResults ); - Console.WriteLine( "Query.Items.Length: {0}", Query.Items.Length ); - - Assert.IsTrue( Query.TotalResults > 0 ); - Assert.IsTrue( Query.Items.Length > 0 ); - - foreach ( var item in Query.Items ) - { - Console.WriteLine( "{0}", item.Title ); - Console.WriteLine( "\t WebsiteViews: {0}", item.WebsiteViews ); - Console.WriteLine( "\t VotesUp: {0}", item.VotesUp ); - Console.WriteLine( "\t PreviewUrl: {0}", item.PreviewImageUrl ); - - Assert.IsTrue( item.PreviewImageUrl.Contains( "http" ) ); - } - } - } - - [TestMethod] - public void QueryMyFiles() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - var Query = client.Workshop.CreateQuery(); - - Query.UserId = client.SteamId; - Query.UserQueryType = Workshop.UserQueryType.Published; - - Query.Run(); - - // Block, wait for result - // (don't do this in realtime) - Query.Block(); - - Assert.IsFalse( Query.IsRunning ); - Assert.IsTrue( Query.TotalResults > 0 ); - Assert.IsTrue( Query.Items.Length > 0 ); - - Console.WriteLine( "Query.TotalResults: {0}", Query.TotalResults ); - Console.WriteLine( "Query.Items.Length: {0}", Query.Items.Length ); - - foreach ( var item in Query.Items ) - { - Console.WriteLine( "{0}", item.Title ); - Console.WriteLine( "\t WebsiteViews: {0}", item.WebsiteViews ); - Console.WriteLine( "\t VotesUp: {0}", item.VotesUp ); - Console.WriteLine( "\t PreviewUrl: {0}", item.PreviewImageUrl ); - Console.WriteLine( "\t Directory: {0}", item.Directory ); - - Assert.IsTrue( item.PreviewImageUrl.Contains( "http" ) ); - } - } - } - - [TestMethod] - public void QueryTagRequire() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - using ( var Query = client.Workshop.CreateQuery() ) - { - Query.RequireTags.Add( "LongTShirt Skin" ); - Query.Run(); - - Query.Block(); - - Assert.IsFalse( Query.IsRunning ); - Assert.IsTrue( Query.TotalResults > 0 ); - Assert.IsTrue( Query.Items.Length > 0 ); - - Console.WriteLine( "Query.TotalResults: {0}", Query.TotalResults ); - Console.WriteLine( "Query.Items.Length: {0}", Query.Items.Length ); - - Assert.IsTrue( Query.TotalResults > 0 ); - Assert.IsTrue( Query.Items.Length > 0 ); - - foreach ( var item in Query.Items ) - { - Console.WriteLine( "{0}", item.Title ); - Console.WriteLine( "\t{0}", string.Join( ";", item.Tags ) ); - - Assert.IsTrue( item.Tags.Contains( "longtshirt skin" ) ); - } - } - } - } - - [TestMethod] - public void QueryTagRequireMultiple() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - using ( var Query = client.Workshop.CreateQuery() ) - { - Query.RequireTags.Add( "LongTShirt Skin" ); - Query.RequireTags.Add( "version2" ); - Query.RequireAllTags = true; - Query.Run(); - - Query.Block(); - - Assert.IsFalse( Query.IsRunning ); - Assert.IsTrue( Query.TotalResults > 0 ); - Assert.IsTrue( Query.Items.Length > 0 ); - - Console.WriteLine( "Query.TotalResults: {0}", Query.TotalResults ); - Console.WriteLine( "Query.Items.Length: {0}", Query.Items.Length ); - - Assert.IsTrue( Query.TotalResults > 0 ); - Assert.IsTrue( Query.Items.Length > 0 ); - - foreach ( var item in Query.Items ) - { - Console.WriteLine( "{0}", item.Title ); - Console.WriteLine( "\t{0}", string.Join( ";", item.Tags ) ); - - Assert.IsTrue( item.Tags.Contains( "longtshirt skin" ) ); - Assert.IsTrue( item.Tags.Contains( "version2" ) ); - } - } - } - } - - [TestMethod] - public void QueryTagExclude() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - using ( var Query = client.Workshop.CreateQuery() ) - { - Query.RequireTags.Add( "LongTShirt Skin" ); - Query.ExcludeTags.Add( "version2" ); - Query.Run(); - - Query.Block(); - - Assert.IsFalse( Query.IsRunning ); - Assert.IsTrue( Query.TotalResults > 0 ); - Assert.IsTrue( Query.Items.Length > 0 ); - - Console.WriteLine( "Query.TotalResults: {0}", Query.TotalResults ); - Console.WriteLine( "Query.Items.Length: {0}", Query.Items.Length ); - - Assert.IsTrue( Query.TotalResults > 0 ); - Assert.IsTrue( Query.Items.Length > 0 ); - - foreach ( var item in Query.Items ) - { - Console.WriteLine( "{0}", item.Title ); - Console.WriteLine( "\t{0}", string.Join( ";", item.Tags ) ); - - Assert.IsTrue( item.Tags.Contains( "longtshirt skin" ) ); - Assert.IsFalse( item.Tags.Contains( "version2" ) ); - } - } - } - } - - [TestMethod] - public void QueryFile() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - using ( var Query = client.Workshop.CreateQuery() ) - { - Query.FileId.Add( 751993251 ); - Query.Run(); - - Assert.IsTrue( Query.IsRunning ); - - Query.Block(); - - Assert.IsFalse( Query.IsRunning ); - Assert.AreEqual( Query.TotalResults, 1 ); - Assert.AreEqual( Query.Items.Length, 1 ); - - Console.WriteLine( "Query.TotalResults: {0}", Query.TotalResults ); - Console.WriteLine( "Query.Items.Length: {0}", Query.Items.Length ); - - Assert.AreEqual( Query.Items[0].Id, 751993251 ); - } - } - } - - [TestMethod] - public void QueryCallback() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - using ( var Query = client.Workshop.CreateQuery() ) - { - var gotCallback = false; - - Query.OnResult = ( q ) => - { - Assert.AreEqual( q.Items.Length, 1 ); - Console.WriteLine( "Query.TotalResults: {0}", q.TotalResults ); - Console.WriteLine( "Query.Items.Length: {0}", q.Items.Length ); - - gotCallback = true; - }; - - Query.FileId.Add( 751993251 ); - Query.Run(); - - Assert.IsTrue( Query.IsRunning ); - - client.UpdateWhile( () => gotCallback == false ); - - Assert.IsFalse( Query.IsRunning ); - Assert.AreEqual( Query.TotalResults, 1 ); - - Assert.AreEqual( Query.Items[0].Id, 751993251 ); - } - } - } - - [TestMethod] - public void QueryFiles() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - using ( var Query = client.Workshop.CreateQuery() ) - { - Query.FileId.Add( 751993251 ); - Query.FileId.Add( 747266909 ); - Query.Run(); - - Assert.IsTrue( Query.IsRunning ); - - Query.Block(); - - Assert.IsFalse( Query.IsRunning ); - Assert.AreEqual( Query.TotalResults, 2 ); - Assert.AreEqual( Query.Items.Length, 2 ); - - Console.WriteLine( "Query.TotalResults: {0}", Query.TotalResults ); - Console.WriteLine( "Query.Items.Length: {0}", Query.Items.Length ); - - Assert.IsTrue( Query.Items.Any( x => x.Id == 751993251 ) ); - Assert.IsTrue( Query.Items.Any( x => x.Id == 747266909 ) ); - } - } - } - - [TestMethod] - public void Query_255() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - using ( var Query = client.Workshop.CreateQuery() ) - { - Query.PerPage = 255; - Query.Run(); - - Assert.IsTrue( Query.IsRunning ); - - Query.Block(); - - Assert.IsFalse( Query.IsRunning ); - Assert.AreEqual( Query.Items.Length, 255 ); - - Console.WriteLine( "Query.TotalResults: {0}", Query.TotalResults ); - Console.WriteLine( "Query.Items.Length: {0}", Query.Items.Length ); - } - } - } - - [TestMethod] - public void Query_28() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - using ( var Query = client.Workshop.CreateQuery() ) - { - Query.PerPage = 28; - Query.Run(); - Query.Block(); - - var firstPage = Query.Items; - Assert.AreEqual( firstPage.Length, 28 ); - - Console.WriteLine( "Page 2" ); - Query.Page++; - Query.Run(); - Query.Block(); - - - var secondPage = Query.Items; - Assert.AreEqual( secondPage.Length, 28 ); - - Console.WriteLine( "Page 3" ); - Query.Page++; - Query.Run(); - Query.Block(); - - var thirdPage = Query.Items; - Assert.AreEqual( thirdPage.Length, 28 ); - - foreach ( var i in firstPage ) - { - Assert.IsFalse( secondPage.Any( x => x.Id == i.Id ) ); - Assert.IsFalse( thirdPage.Any( x => x.Id == i.Id ) ); - } - - foreach ( var i in secondPage ) - { - Assert.IsFalse( firstPage.Any( x => x.Id == i.Id ) ); - Assert.IsFalse( thirdPage.Any( x => x.Id == i.Id ) ); - } - - foreach ( var i in thirdPage ) - { - Assert.IsFalse( secondPage.Any( x => x.Id == i.Id ) ); - Assert.IsFalse( firstPage.Any( x => x.Id == i.Id ) ); - } - } - } - } - - [TestMethod] - public void DownloadFile() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - var item = client.Workshop.GetItem( 844466101 ); - - var time = Stopwatch.StartNew(); - if ( !item.Installed ) - { - item.Download(); - - while ( !item.Installed ) - { - Thread.Sleep( 500 ); - client.Update(); - Console.WriteLine( "Download Progress: {0}", item.DownloadProgress ); - - if (time.Elapsed.Seconds > 30) - throw new Exception("item.Installed Took Too Long"); - } - } - - Assert.IsNotNull( item.Directory ); - Assert.AreNotEqual( 0, item.Size ); - - Console.WriteLine( "item.Installed: {0}", item.Installed ); - Console.WriteLine( "item.Downloading: {0}", item.Downloading ); - Console.WriteLine( "item.DownloadPending: {0}", item.DownloadPending ); - Console.WriteLine( "item.Directory: {0}", item.Directory ); - Console.WriteLine( "item.Size: {0}mb", (item.Size / 1024 / 1024) ); - } - } - - [TestMethod] - [TestCategory( "Run Manually" )] - public void CreatePublish() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - var item = client.Workshop.CreateItem( Workshop.ItemType.Microtransaction ); - - item.Title = "Facepunch.Steamworks Unit test"; - item.Tags.Add( "Apple" ); - item.Tags.Add( "Banana" ); - - // Make a folder - var testFolder = new System.IO.DirectoryInfo("BlahBlah"); - if (!testFolder.Exists) testFolder.Create(); - - item.Folder = testFolder.FullName; - - // Upload a file of random bytes - var rand = new Random(); - var testFile = new byte[1024 * 1024 * 32]; - rand.NextBytes(testFile); - System.IO.File.WriteAllBytes( testFolder.FullName + "/testfile1.bin", testFile); - - - Console.WriteLine(item.Folder); - - item.OnChangesSubmitted += result => - { - Console.WriteLine( "OnChangesSubmitted called: " + result ); - Assert.AreEqual( Result.OK, result ); - }; - - try - { - item.Publish(); - - while ( item.Publishing ) - { - client.Update(); - Thread.Sleep( 10 ); - - Console.WriteLine("Progress: " + item.Progress); - Console.WriteLine("BytesUploaded: " + item.BytesUploaded); - Console.WriteLine("BytesTotal: " + item.BytesTotal); - } - - Assert.IsFalse( item.Publishing ); - Assert.AreNotEqual( 0, item.Id ); - Assert.IsNull( item.Error, item.Error ); - - Console.WriteLine( "item.Id: {0}", item.Id ); - - using ( var Query = client.Workshop.CreateQuery() ) - { - Query.FileId.Add( item.Id ); - Query.Run(); - - Query.Block(); - - var itemInfo = Query.Items[0]; - - Assert.AreEqual( itemInfo.Id, item.Id ); - Assert.AreEqual( itemInfo.OwnerId, client.SteamId ); - Assert.AreEqual( itemInfo.Title, item.Title ); - Assert.IsTrue( itemInfo.Tags.Contains( "apple" ), "Missing Tag" ); - Assert.IsTrue( itemInfo.Tags.Contains( "banana" ), "Missing Tag" ); - } - } - finally - { - Console.WriteLine( "Deleting: {0}", item.Id ); - item.Delete(); - - System.IO.File.Delete(testFolder.FullName + "/testfile.bin"); - } - } - } - - [TestMethod] - public void UserQuery() - { - using ( var client = new Facepunch.Steamworks.Client( 252490 ) ) - { - Assert.IsTrue( client.IsValid ); - - var Query = client.Workshop.CreateQuery(); - - Query.UserId = 76561197960279927; - Query.UserQueryType = Workshop.UserQueryType.Published; - - Query.Run(); - - // Block, wait for result - // (don't do this in realtime) - Query.Block(); - - Assert.IsFalse( Query.IsRunning ); - Assert.IsTrue( Query.TotalResults > 0 ); - Assert.IsTrue( Query.Items.Length > 0 ); - - Console.WriteLine( "Query.TotalResults: {0}", Query.TotalResults ); - Console.WriteLine( "Query.Items.Length: {0}", Query.Items.Length ); - - foreach ( var item in Query.Items ) - { - Console.WriteLine( "{0}", item.Title ); - Assert.AreEqual( item.OwnerId, 76561197960279927 ); - } - } - } - - } -} diff --git a/Facepunch.Steamworks/Redux/Apps.cs b/Facepunch.Steamworks/Apps.cs similarity index 94% rename from Facepunch.Steamworks/Redux/Apps.cs rename to Facepunch.Steamworks/Apps.cs index 7c956c6..6e01eed 100644 --- a/Facepunch.Steamworks/Redux/Apps.cs +++ b/Facepunch.Steamworks/Apps.cs @@ -1,5 +1,4 @@ -using SteamNative; -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; @@ -95,7 +94,7 @@ namespace Steamworks /// /// Returns the time of the purchase of the app /// - public static DateTime PurchaseTime( AppId appid ) => Facepunch.Steamworks.Utility.Epoch.ToDateTime( Internal.GetEarliestPurchaseUnixTime( appid.Value ) ); + public static DateTime PurchaseTime( AppId appid ) => Utility.Epoch.ToDateTime( Internal.GetEarliestPurchaseUnixTime( appid.Value ) ); /// /// Checks if the user is subscribed to the current app through a free weekend @@ -109,12 +108,12 @@ namespace Steamworks /// public static IEnumerable DlcInformation() { - var appid = default( SteamNative.AppId_t ); + var appid = default( AppId_t ); var available = false; for ( int i = 0; i < Internal.GetDLCCount(); i++ ) { - var sb = SteamNative.Helpers.TakeStringBuilder(); + var sb = Helpers.TakeStringBuilder(); if ( !Internal.BGetDLCDataByIndex( i, ref appid, ref available, sb, sb.Capacity ) ) continue; @@ -145,7 +144,7 @@ namespace Steamworks { get { - var sb = SteamNative.Helpers.TakeStringBuilder(); + var sb = Helpers.TakeStringBuilder(); if ( !Internal.GetCurrentBetaName( sb, sb.Capacity ) ) return null; @@ -167,7 +166,7 @@ namespace Steamworks /// public static IEnumerable InstalledDepots( AppId appid ) { - var depots = new SteamNative.DepotId_t[32]; + var depots = new DepotId_t[32]; uint count = 0; count = Internal.GetInstalledDepots( appid.Value, depots, (uint) depots.Length ); @@ -184,7 +183,7 @@ namespace Steamworks /// public static string AppInstallDir( AppId appid ) { - var sb = SteamNative.Helpers.TakeStringBuilder(); + var sb = Helpers.TakeStringBuilder(); if ( Internal.GetAppInstallDir( appid.Value, sb, (uint) sb.Capacity ) == 0 ) return null; @@ -246,7 +245,7 @@ namespace Steamworks return new FileDetails { - Found = r.Value.Result == SteamNative.Result.OK, + Found = r.Value.Result == Result.OK, SizeInBytes = r.Value.FileSize, Flags = r.Value.Flags, Sha1 = string.Join( "", r.Value.FileSHA.Select( x => x.ToString( "x" ) ) ) @@ -265,7 +264,7 @@ namespace Steamworks { get { - var sb = SteamNative.Helpers.TakeStringBuilder(); + var sb = Helpers.TakeStringBuilder(); var len = Internal.GetLaunchCommandLine( sb, sb.Capacity ); return sb.ToString(); } diff --git a/Facepunch.Steamworks/BaseSteamworks.cs b/Facepunch.Steamworks/BaseSteamworks.cs deleted file mode 100644 index 6c6e719..0000000 --- a/Facepunch.Steamworks/BaseSteamworks.cs +++ /dev/null @@ -1,215 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Facepunch.Steamworks.Interop; - -namespace Facepunch.Steamworks -{ - /// - /// Implements shared functionality between Steamworks.Client and Steamworks.Server - /// - public class BaseSteamworks : IDisposable - { - /// - /// Current running program's AppId - /// - public uint AppId { get; internal set; } - - public Networking Networking { get; internal set; } - public Inventory Inventory { get; internal set; } - public Workshop Workshop { get; internal set; } - - internal event Action OnUpdate; - - internal Interop.NativeInterface native; - - private List CallbackHandles = new List(); - private List CallResults = new List(); - protected bool disposed = false; - - - protected BaseSteamworks( uint appId ) - { - if ( IntPtr.Size == 4 ) - throw new System.Exception( "Sorry - 32bit processes aren't supported. It's 2019 or later, come on!" ); - - AppId = appId; - - // - // No need for the "steam_appid.txt" file any more - // - System.Environment.SetEnvironmentVariable("SteamAppId", AppId.ToString()); - System.Environment.SetEnvironmentVariable("SteamGameId", AppId.ToString()); - } - - ~BaseSteamworks() - { - Dispose(); - } - - public virtual void Dispose() - { - if ( disposed ) return; - - Callbacks.Clear(); - - foreach ( var h in CallbackHandles ) - { - h.Dispose(); - } - CallbackHandles.Clear(); - - foreach ( var h in CallResults ) - { - h.Dispose(); - } - CallResults.Clear(); - - if ( Workshop != null ) - { - Workshop.Dispose(); - Workshop = null; - } - - if ( Inventory != null ) - { - Inventory.Dispose(); - Inventory = null; - } - - if ( Networking != null ) - { - Networking.Dispose(); - Networking = null; - } - - if ( native != null ) - { - native.Dispose(); - native = null; - } - - System.Environment.SetEnvironmentVariable("SteamAppId", null ); - System.Environment.SetEnvironmentVariable("SteamGameId", null ); - disposed = true; - } - - protected void SetupCommonInterfaces() - { - Networking = new Steamworks.Networking( this, native.networking ); - Inventory = new Steamworks.Inventory( this, native.inventory, IsGameServer ); - Workshop = new Steamworks.Workshop( this, native.ugc, native.remoteStorage ); - } - - /// - /// Returns true if this instance has initialized properly. - /// If this returns false you should Dispose and throw an error. - /// - public bool IsValid - { - get { return native != null; } - } - - - internal virtual bool IsGameServer { get { return false; } } - - internal void RegisterCallbackHandle( SteamNative.CallbackHandle handle ) - { - CallbackHandles.Add( handle ); - } - - internal void RegisterCallResult( SteamNative.CallResult handle ) - { - CallResults.Add( handle ); - } - - internal void UnregisterCallResult( SteamNative.CallResult handle ) - { - CallResults.Remove( handle ); - } - - public virtual void Update() - { - Networking.Update(); - - RunUpdateCallbacks(); - } - - /// - /// This gets called automatically in Update. Only call it manually if you know why you're doing it. - /// - public void RunUpdateCallbacks() - { - if ( OnUpdate != null ) - OnUpdate(); - - for( int i=0; i < CallResults.Count; i++ ) - { - CallResults[i].Try(); - } - } - - /// - /// Run Update until func returns false. - /// This will cause your program to lock up until it finishes. - /// This is useful for things like tests or command line utilities etc. - /// - public void UpdateWhile( Func func ) - { - const int sleepMs = 1; - - while ( func() ) - { - Update(); -#if NET_CORE - System.Threading.Tasks.Task.Delay( sleepMs ).Wait(); -#else - System.Threading.Thread.Sleep( sleepMs ); -#endif - } - } - - /// - /// Debug function, called for every callback. Only really used to confirm that callbacks are working properly. - /// - public Action OnAnyCallback; - - Dictionary>> Callbacks = new Dictionary>>(); - - internal List> CallbackList( Type T ) - { - List> list = null; - - if ( !Callbacks.TryGetValue( T, out list ) ) - { - list = new List>(); - Callbacks[T] = list; - } - - return list; - } - - internal void OnCallback( T data ) - { - var list = CallbackList( typeof( T ) ); - - foreach ( var i in list ) - { - i( data ); - } - - if ( OnAnyCallback != null ) - { - OnAnyCallback.Invoke( data ); - } - } - - internal void RegisterCallback( Action func ) - { - var list = CallbackList( typeof( T ) ); - list.Add( ( o ) => func( (T) o ) ); - } - - } -} \ No newline at end of file diff --git a/Facepunch.Steamworks/Callbacks/Callback.VTable.cs b/Facepunch.Steamworks/Callbacks/Callback.VTable.cs new file mode 100644 index 0000000..834fdff --- /dev/null +++ b/Facepunch.Steamworks/Callbacks/Callback.VTable.cs @@ -0,0 +1,41 @@ +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; + +namespace Steamworks +{ + internal partial class Callback + { + [StructLayout( LayoutKind.Sequential, Pack = 1 )] + public class VTable + { + [UnmanagedFunctionPointer( CallingConvention.StdCall )] public delegate void ResultD( IntPtr pvParam ); + [UnmanagedFunctionPointer( CallingConvention.StdCall )] public delegate void ResultWithInfoD( IntPtr pvParam, bool bIOFailure, SteamAPICall_t hSteamAPICall ); + [UnmanagedFunctionPointer( CallingConvention.StdCall )] public delegate int GetSizeD(); + + public ResultD ResultA; + public ResultWithInfoD ResultB; + public GetSizeD GetSize; + + internal static IntPtr GetVTable( ResultD onResultThis, ResultWithInfoD onResultWithInfoThis, GetSizeD onGetSizeThis, List allocations ) + { + var vTablePtr = Marshal.AllocHGlobal( Marshal.SizeOf( typeof( Callback.VTable ) ) ); + + var vTable = new Callback.VTable + { + ResultA = onResultThis, + ResultB = onResultWithInfoThis, + GetSize = onGetSizeThis, + }; + + allocations.Add( GCHandle.Alloc( vTable.ResultA ) ); + allocations.Add( GCHandle.Alloc( vTable.ResultB ) ); + allocations.Add( GCHandle.Alloc( vTable.GetSize ) ); + + Marshal.StructureToPtr( vTable, vTablePtr, false ); + + return vTablePtr; + } + } + }; +} diff --git a/Facepunch.Steamworks/Callbacks/Callback.VTableThis.cs b/Facepunch.Steamworks/Callbacks/Callback.VTableThis.cs new file mode 100644 index 0000000..1dab22c --- /dev/null +++ b/Facepunch.Steamworks/Callbacks/Callback.VTableThis.cs @@ -0,0 +1,42 @@ +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; + +namespace Steamworks +{ + internal partial class Callback + { + [StructLayout( LayoutKind.Sequential, Pack = 1 )] + public class VTableThis + { + [UnmanagedFunctionPointer( CallingConvention.ThisCall )] public delegate void ResultD( IntPtr thisptr, IntPtr pvParam ); + [UnmanagedFunctionPointer( CallingConvention.ThisCall )] public delegate void ResultWithInfoD( IntPtr thisptr, IntPtr pvParam, bool bIOFailure, SteamAPICall_t hSteamAPICall ); + + internal static IntPtr GetVTable( ResultD onResultThis, ResultWithInfoD onResultWithInfoThis, GetSizeD onGetSizeThis, List allocations ) + { + var vTablePtr = Marshal.AllocHGlobal( Marshal.SizeOf( typeof( Callback.VTableThis ) ) ); + + var vTable = new Callback.VTableThis + { + ResultA = onResultThis, + ResultB = onResultWithInfoThis, + GetSize = onGetSizeThis, + }; + + allocations.Add( GCHandle.Alloc( vTable.ResultA ) ); + allocations.Add( GCHandle.Alloc( vTable.ResultB ) ); + allocations.Add( GCHandle.Alloc( vTable.GetSize ) ); + + Marshal.StructureToPtr( vTable, vTablePtr, false ); + + return vTablePtr; + } + + [UnmanagedFunctionPointer( CallingConvention.ThisCall )] public delegate int GetSizeD( IntPtr thisptr ); + + public ResultD ResultA; + public ResultWithInfoD ResultB; + public GetSizeD GetSize; + } + }; +} diff --git a/Facepunch.Steamworks/Callbacks/Callback.VTableWin.cs b/Facepunch.Steamworks/Callbacks/Callback.VTableWin.cs new file mode 100644 index 0000000..402c1e3 --- /dev/null +++ b/Facepunch.Steamworks/Callbacks/Callback.VTableWin.cs @@ -0,0 +1,41 @@ +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; + +namespace Steamworks +{ + internal partial class Callback + { + [StructLayout( LayoutKind.Sequential, Pack = 1 )] + public class VTableWin + { + [UnmanagedFunctionPointer( CallingConvention.StdCall )] public delegate void ResultD( IntPtr pvParam ); + [UnmanagedFunctionPointer( CallingConvention.StdCall )] public delegate void ResultWithInfoD( IntPtr pvParam, bool bIOFailure, SteamAPICall_t hSteamAPICall ); + [UnmanagedFunctionPointer( CallingConvention.StdCall )] public delegate int GetSizeD(); + + public ResultWithInfoD ResultB; + public ResultD ResultA; + public GetSizeD GetSize; + + internal static IntPtr GetVTable( ResultD onResultThis, ResultWithInfoD onResultWithInfoThis, GetSizeD onGetSizeThis, List allocations ) + { + var vTablePtr = Marshal.AllocHGlobal( Marshal.SizeOf( typeof( Callback.VTableWin ) ) ); + + var vTable = new Callback.VTableWin + { + ResultA = onResultThis, + ResultB = onResultWithInfoThis, + GetSize = onGetSizeThis, + }; + + allocations.Add( GCHandle.Alloc( vTable.ResultA ) ); + allocations.Add( GCHandle.Alloc( vTable.ResultB ) ); + allocations.Add( GCHandle.Alloc( vTable.GetSize ) ); + + Marshal.StructureToPtr( vTable, vTablePtr, false ); + + return vTablePtr; + } + } + }; +} diff --git a/Facepunch.Steamworks/Callbacks/Callback.VTableWinThis.cs b/Facepunch.Steamworks/Callbacks/Callback.VTableWinThis.cs new file mode 100644 index 0000000..0f3ba6a --- /dev/null +++ b/Facepunch.Steamworks/Callbacks/Callback.VTableWinThis.cs @@ -0,0 +1,41 @@ +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; + +namespace Steamworks +{ + internal partial class Callback + { + [StructLayout( LayoutKind.Sequential, Pack = 1 )] + public class VTableWinThis + { + [UnmanagedFunctionPointer( CallingConvention.ThisCall )] public delegate void ResultD( IntPtr thisptr, IntPtr pvParam ); + [UnmanagedFunctionPointer( CallingConvention.ThisCall )] public delegate void ResultWithInfoD( IntPtr thisptr, IntPtr pvParam, bool bIOFailure, SteamAPICall_t hSteamAPICall ); + [UnmanagedFunctionPointer( CallingConvention.ThisCall )] public delegate int GetSizeD( IntPtr thisptr ); + + public ResultWithInfoD ResultB; + public ResultD ResultA; + public GetSizeD GetSize; + + internal static IntPtr GetVTable( ResultD onResultThis, ResultWithInfoD onResultWithInfoThis, GetSizeD onGetSizeThis, List allocations ) + { + var vTablePtr = Marshal.AllocHGlobal( Marshal.SizeOf( typeof( Callback.VTableWinThis ) ) ); + + var vTable = new Callback.VTableWinThis + { + ResultA = onResultThis, + ResultB = onResultWithInfoThis, + GetSize = onGetSizeThis, + }; + + allocations.Add( GCHandle.Alloc( vTable.ResultA ) ); + allocations.Add( GCHandle.Alloc( vTable.ResultB ) ); + allocations.Add( GCHandle.Alloc( vTable.GetSize ) ); + + Marshal.StructureToPtr( vTable, vTablePtr, false ); + + return vTablePtr; + } + } + }; +} diff --git a/Facepunch.Steamworks/Callbacks/Callback.cs b/Facepunch.Steamworks/Callbacks/Callback.cs new file mode 100644 index 0000000..e0994db --- /dev/null +++ b/Facepunch.Steamworks/Callbacks/Callback.cs @@ -0,0 +1,20 @@ +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; + +namespace Steamworks +{ + [StructLayout( LayoutKind.Sequential )] + internal partial class Callback + { + internal enum Flags : byte + { + Registered = 0x01, + GameServer = 0x02 + } + + public IntPtr vTablePtr; + public byte CallbackFlags; + public int CallbackId; + }; +} diff --git a/Facepunch.Steamworks/Callbacks/Events.cs b/Facepunch.Steamworks/Callbacks/Events.cs index 8426c5d..d3d8118 100644 --- a/Facepunch.Steamworks/Callbacks/Events.cs +++ b/Facepunch.Steamworks/Callbacks/Events.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks { @@ -61,15 +60,14 @@ namespace Steamworks // // Create the functions we need for the vtable // - if ( Facepunch.Steamworks.Config.UseThisCall ) + if ( Config.UseThisCall ) { // // Create the VTable by manually allocating the memory and copying across // - if ( Platform.IsWindows ) + if ( Config.Os == OsType.Windows ) { vTablePtr = Callback.VTableWinThis.GetVTable( OnResultThis, OnResultWithInfoThis, OnGetSizeThis, Allocations ); - } else { @@ -81,7 +79,7 @@ namespace Steamworks // // Create the VTable by manually allocating the memory and copying across // - if ( Platform.IsWindows ) + if ( Config.Os == OsType.Windows ) { vTablePtr = Callback.VTableWin.GetVTable( OnResult, OnResultWithInfo, OnGetSize, Allocations ); } @@ -111,13 +109,13 @@ namespace Steamworks } [MonoPInvokeCallback] internal void OnResultThis( IntPtr self, IntPtr param ) => OnResult( param ); - [MonoPInvokeCallback] internal void OnResultWithInfoThis( IntPtr self, IntPtr param, bool failure, SteamNative.SteamAPICall_t call ) => OnResultWithInfo( param, failure, call ); + [MonoPInvokeCallback] internal void OnResultWithInfoThis( IntPtr self, IntPtr param, bool failure, SteamAPICall_t call ) => OnResultWithInfo( param, failure, call ); [MonoPInvokeCallback] internal int OnGetSizeThis( IntPtr self ) => OnGetSize(); [MonoPInvokeCallback] internal int OnGetSize() => template.GetStructSize(); [MonoPInvokeCallback] internal void OnResult( IntPtr param ) => OnResultWithInfo( param, false, 0 ); [MonoPInvokeCallback] - internal void OnResultWithInfo( IntPtr param, bool failure, SteamNative.SteamAPICall_t call ) + internal void OnResultWithInfo( IntPtr param, bool failure, SteamAPICall_t call ) { if ( failure ) return; diff --git a/Facepunch.Steamworks/Callbacks/Result.cs b/Facepunch.Steamworks/Callbacks/Result.cs index 8324271..7222221 100644 --- a/Facepunch.Steamworks/Callbacks/Result.cs +++ b/Facepunch.Steamworks/Callbacks/Result.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks { diff --git a/Facepunch.Steamworks/Redux/Classes/AuthTicket.cs b/Facepunch.Steamworks/Classes/AuthTicket.cs similarity index 100% rename from Facepunch.Steamworks/Redux/Classes/AuthTicket.cs rename to Facepunch.Steamworks/Classes/AuthTicket.cs diff --git a/Facepunch.Steamworks/Client.cs b/Facepunch.Steamworks/Client.cs deleted file mode 100644 index 2ca3c29..0000000 --- a/Facepunch.Steamworks/Client.cs +++ /dev/null @@ -1,283 +0,0 @@ -using System; -using System.IO; -using System.Runtime.InteropServices; - -namespace Facepunch.Steamworks -{ - public partial class Client : BaseSteamworks - { - /// - /// A singleton accessor to get the current client instance. - /// - public static Client Instance { get; private set; } - - /// - /// Current user's Username - /// - public string Username { get; private set; } - - /// - /// Current user's SteamId - /// - public ulong SteamId { get; private set; } - - /// - /// If we're sharing this game, this is the owner of it. - /// - public ulong OwnerSteamId { get; private set; } - - /// - /// Current Beta name, if we're using a beta branch. - /// - public string BetaName { get; private set; } - - /// - /// The BuildId of the current build - /// - public int BuildId { get; private set; } - - /// - /// The folder in which this app is installed - /// - public DirectoryInfo InstallFolder { get; private set; } - - - /// - /// The 2 digit ISO 3166-1-alpha-2 format country code (e.g. "US" or "UK") - /// - public string CurrentCountry { get; } - - /// - /// The currently selected language - /// - public string CurrentLanguage { get; } - - - /// - /// List of languages available to the game - /// - public string[] AvailableLanguages { get; } - - public ServerList ServerList { get; private set; } - public LobbyList LobbyList { get; private set; } - public Achievements Achievements { get; private set; } - public Stats Stats { get; private set; } - public MicroTransactions MicroTransactions { get; private set; } - public RemoteStorage RemoteStorage { get; private set; } - - public Client( uint appId ) : base( appId ) - { - if ( Instance != null ) - { - throw new System.Exception( "Only one Facepunch.Steamworks.Client can exist - dispose the old one before trying to create a new one." ); - } - - Instance = this; - native = new Interop.NativeInterface(); - - // - // Get other interfaces - // - if ( !native.InitClient( this ) ) - { - native.Dispose(); - native = null; - Instance = null; - return; - } - - // - // Register Callbacks - // - - SteamNative.Callbacks.RegisterCallbacks( this ); - - // - // Setup interfaces that client and server both have - // - SetupCommonInterfaces(); - - // - // Client only interfaces - // - ServerList = new ServerList( this ); - LobbyList = new LobbyList(this); - Stats = new Stats( this ); - Achievements = new Achievements( this ); - MicroTransactions = new MicroTransactions( this ); - RemoteStorage = new RemoteStorage( this ); - - Stats.UpdateStats(); - - // - // Cache common, unchanging info - // - AppId = appId; - Username = native.friends.GetPersonaName(); - SteamId = native.user.GetSteamID(); - BetaName = native.apps.GetCurrentBetaName(); - OwnerSteamId = native.apps.GetAppOwner(); - var appInstallDir = native.apps.GetAppInstallDir(AppId); - - if (!String.IsNullOrEmpty(appInstallDir) && Directory.Exists(appInstallDir)) - InstallFolder = new DirectoryInfo(appInstallDir); - - BuildId = native.apps.GetAppBuildId(); - CurrentCountry = native.utils.GetIPCountry(); - CurrentLanguage = native.apps.GetCurrentGameLanguage(); - AvailableLanguages = native.apps.GetAvailableGameLanguages().Split( new[] {';'}, StringSplitOptions.RemoveEmptyEntries ); // TODO: Assumed colon separated - - // - // Run update, first call does some initialization - // - Update(); - } - - ~Client() - { - Dispose(); - } - - /// - /// Should be called at least once every frame - /// - public override void Update() - { - if ( !IsValid ) - return; - - RunCallbacks(); - base.Update(); - } - - /// - /// This is called in Update() - there's no need to call it manually unless you're running your own Update - /// - public void RunCallbacks() - { - native.api.SteamAPI_RunCallbacks(); - } - - /// - /// Call when finished to shut down the Steam client. - /// - public override void Dispose() - { - if ( disposed ) return; - - if ( ServerList != null ) - { - ServerList.Dispose(); - ServerList = null; - } - - if (LobbyList != null) - { - LobbyList.Dispose(); - LobbyList = null; - } - - if ( Stats != null ) - { - Stats.Dispose(); - Stats = null; - } - - if ( Achievements != null ) - { - Achievements.Dispose(); - Achievements = null; - } - - if ( MicroTransactions != null ) - { - MicroTransactions.Dispose(); - MicroTransactions = null; - } - - if ( RemoteStorage != null ) - { - RemoteStorage.Dispose(); - RemoteStorage = null; - } - - if ( Instance == this ) - { - Instance = null; - } - - base.Dispose(); - } - - public enum LeaderboardSortMethod - { - None = 0, - Ascending = 1, // top-score is lowest number - Descending = 2, // top-score is highest number - }; - - // the display type (used by the Steam Community web site) for a leaderboard - public enum LeaderboardDisplayType - { - None = 0, - Numeric = 1, // simple numerical score - TimeSeconds = 2, // the score represents a time, in seconds - TimeMilliSeconds = 3, // the score represents a time, in milliseconds - }; - - public Leaderboard GetLeaderboard( string name, LeaderboardSortMethod sortMethod = LeaderboardSortMethod.None, LeaderboardDisplayType displayType = LeaderboardDisplayType.None ) - { - var board = new Leaderboard( this ); - native.userstats.FindOrCreateLeaderboard( name, (SteamNative.LeaderboardSortMethod)sortMethod, (SteamNative.LeaderboardDisplayType)displayType, board.OnBoardCreated ); - return board; - } - - /// - /// Checks if the current user's Steam client is connected and logged on to the Steam servers. - /// If it's not then no real-time services provided by the Steamworks API will be enabled. - /// The Steam client will automatically be trying to recreate the connection as often as possible. - /// All of the API calls that rely on this will check internally. - /// - public bool IsLoggedOn => native.user.BLoggedOn(); - - /// - /// True if we're subscribed/authorised to be running this app - /// - public bool IsSubscribed => native.apps.BIsSubscribed(); - - /// - /// True if we're a cybercafe account - /// - public bool IsCybercafe => native.apps.BIsCybercafe(); - - /// - /// True if we're subscribed/authorised to be running this app, but only temporarily - /// due to a free weekend etc. - /// - public bool IsSubscribedFromFreeWeekend => native.apps.BIsSubscribedFromFreeWeekend(); - - /// - /// True if we're in low violence mode (germans are only allowed to see the insides of bodies in porn) - /// - public bool IsLowViolence => native.apps.BIsLowViolence(); - - /// - /// Checks if your executable was launched through Steam and relaunches it through Steam if it wasn't. - /// If this returns true then it starts the Steam client if required and launches your game again through it, - /// and you should quit your process as soon as possible. This effectively runs steam://run/AppId so it may - /// not relaunch the exact executable that called it, as it will always relaunch from the version installed - /// in your Steam library folder. - /// If it returns false, then your game was launched by the Steam client and no action needs to be taken. - /// One exception is if a steam_appid.txt file is present then this will return false regardless. This allows - /// you to develop and test without launching your game through the Steam client. Make sure to remove the - /// steam_appid.txt file when uploading the game to your Steam depot! - /// - public static bool RestartIfNecessary( uint appid ) - { - using ( var api = new SteamNative.SteamApi() ) - { - return api.SteamAPI_RestartAppIfNecessary( appid ); - } - } - } -} diff --git a/Facepunch.Steamworks/Client/Achievements.cs b/Facepunch.Steamworks/Client/Achievements.cs deleted file mode 100644 index 40abfc5..0000000 --- a/Facepunch.Steamworks/Client/Achievements.cs +++ /dev/null @@ -1,263 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using SteamNative; - -namespace Facepunch.Steamworks -{ - public class Achievements : IDisposable - { - internal Client client; - - public Achievement[] All { get; private set; } - - public event Action OnUpdated; - public event Action OnAchievementStateChanged; - - private List unlockedRecently = new List(); - - internal Achievements( Client c ) - { - client = c; - - All = new Achievement[0]; - c.RegisterCallback( UserStatsReceived ); - c.RegisterCallback( UserStatsStored ); - - Refresh(); - } - - public void Refresh() - { - var old = All; - - All = Enumerable.Range( 0, (int)client.native.userstats.GetNumAchievements() ) - .Select( x => - { - if ( old != null ) - { - var name = client.native.userstats.GetAchievementName( (uint)x ); - var found = old.FirstOrDefault( y => y.Id == name ); - if ( found != null ) - { - if ( found.Refresh() ) - { - unlockedRecently.Add( found ); - } - return found; - } - } - - return new Achievement( client, x ); - } ) - .ToArray(); - - foreach ( var i in unlockedRecently ) - { - OnUnlocked( i ); - } - - unlockedRecently.Clear(); - } - - internal void OnUnlocked( Achievement a ) - { - OnAchievementStateChanged?.Invoke( a ); - } - - public void Dispose() - { - client = null; - } - - /// - /// Find an achievement by name. Will be null if not found, or not ready. - /// - public Achievement Find( string identifier ) - { - return All.FirstOrDefault( x => x.Id == identifier ); - } - - /// - /// Unlock an achievement by identifier. If apply is true this will happen as expected - /// and the achievement overlay will popup etc. If it's false then you'll have to manually - /// call Stats.StoreStats() to actually trigger it. - /// - public bool Trigger( string identifier, bool apply = true ) - { - var a = Find( identifier ); - if ( a == null ) return false; - - return a.Trigger( apply ); - } - - /// - /// Reset an achievement by identifier - /// - public bool Reset( string identifier ) - { - return client.native.userstats.ClearAchievement( identifier ); - } - - private void UserStatsReceived( UserStatsReceived_t stats ) - { - if ( stats.GameID != client.AppId ) return; - - Refresh(); - - OnUpdated?.Invoke(); - } - - private void UserStatsStored( UserStatsStored_t stats ) - { - if ( stats.GameID != client.AppId ) return; - - Refresh(); - - OnUpdated?.Invoke(); - } - } - - public class Achievement - { - private Client client; - - public string Id { get; private set; } - public string Name { get; private set; } - public string Description { get; private set; } - - /// - /// True if unlocked - /// - public bool State { get; private set; } - - /// - /// Should hold the unlock time if State is true - /// - public DateTime UnlockTime { get; private set; } - - private int iconId { get; set; } = -1; - private int refreshCount = 0; - - /// - /// Returns the percentage of users who have unlocked the specified achievement, or -1 if no data available. - /// - public float GlobalUnlockedPercentage - { - get - { - if ( State ) - return 1; - - float pct = 0; - - if ( !client.native.userstats.GetAchievementAchievedPercent( Id, out pct ) ) - return -1.0f; - - return pct; - } - } - - private Image _icon; - - public Image Icon - { - get - { - if ( iconId <= 0 ) return null; - - if ( _icon == null ) - { - _icon = new Image(); - _icon.Id = iconId; - } - - if ( _icon.IsLoaded ) - return _icon; - - if ( !_icon.TryLoad( client.native.utils ) ) - return null; - - return _icon; - } - } - - public Achievement( Client client, int index ) - { - this.client = client; - - Id = client.native.userstats.GetAchievementName( (uint) index ); - Name = client.native.userstats.GetAchievementDisplayAttribute( Id, "name" ); - Description = client.native.userstats.GetAchievementDisplayAttribute( Id, "desc" ); - - iconId = client.native.userstats.GetAchievementIcon( Id ); - - Refresh(); - } - - /// - /// Make this achievement earned - /// - public bool Trigger( bool apply = true ) - { - if ( State ) - return false; - - State = true; - UnlockTime = DateTime.Now; - - var r = client.native.userstats.SetAchievement( Id ); - - if ( apply ) - { - client.Stats.StoreStats(); - } - - client.Achievements.OnUnlocked( this ); - - return r; - } - - /// - /// Reset this achievement to not achieved - /// - public bool Reset() - { - State = false; - UnlockTime = DateTime.Now; - - return client.native.userstats.ClearAchievement( Id ); - } - - /// - /// Refresh the unlock state. You shouldn't need to call this manually - /// but it's here if you have to for some reason. Retuns true if state changed (meaning, probably unlocked) - /// - public bool Refresh() - { - bool previousState = State; - - bool state = false; - uint unlockTime; - - State = false; - - if ( client.native.userstats.GetAchievementAndUnlockTime( Id, ref state, out unlockTime ) ) - { - State = state; - UnlockTime = Utility.Epoch.ToDateTime( unlockTime ); - } - - refreshCount++; - - if ( previousState != State && refreshCount > 1 ) - { - return true; - } - - return false; - } - } - -} diff --git a/Facepunch.Steamworks/Client/Image.cs b/Facepunch.Steamworks/Client/Image.cs deleted file mode 100644 index 03d3ed5..0000000 --- a/Facepunch.Steamworks/Client/Image.cs +++ /dev/null @@ -1,80 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Facepunch.Steamworks -{ - public class Image - { - public int Id { get; internal set; } - public int Width { get; internal set; } - public int Height { get; internal set; } - - public byte[] Data { get; internal set; } - - public bool IsLoaded { get; internal set; } - - /// - /// Return true if this image couldn't be loaded for some reason - /// - public bool IsError { get; internal set; } - - unsafe internal bool TryLoad( SteamNative.SteamUtils utils ) - { - if ( IsLoaded ) return true; - - uint width = 0, height = 0; - - if ( utils.GetImageSize( Id, out width, out height ) == false ) - { - IsError = true; - return false; - } - - var buffer = new byte[ width * height * 4 ]; - - fixed ( byte* ptr = buffer ) - { - if ( utils.GetImageRGBA( Id, (IntPtr) ptr, buffer.Length ) == false ) - { - IsError = true; - return false; - } - } - - Width = (int) width; - Height = (int) height; - Data = buffer; - IsLoaded = true; - IsError = false; - - return true; - } - - public Color GetPixel( int x, int y ) - { - if ( !IsLoaded ) throw new System.Exception( "Image not loaded" ); - if ( x < 0 || x >= Width ) throw new System.Exception( "x out of bounds" ); - if ( y < 0 || y >= Height ) throw new System.Exception( "y out of bounds" ); - - Color c = new Color(); - - var i = ( y * Width + x ) * 4; - - c.r = Data[i + 0]; - c.g = Data[i + 1]; - c.b = Data[i + 2]; - c.a = Data[i + 3]; - - return c; - } - } - - public struct Color - { - public byte r, g, b, a; - } -} - - diff --git a/Facepunch.Steamworks/Client/Leaderboard.cs b/Facepunch.Steamworks/Client/Leaderboard.cs deleted file mode 100644 index ad5c6ae..0000000 --- a/Facepunch.Steamworks/Client/Leaderboard.cs +++ /dev/null @@ -1,390 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Facepunch.Steamworks.Callbacks; -using SteamNative; -using Result = SteamNative.Result; - -namespace Facepunch.Steamworks -{ - public class Leaderboard : IDisposable - { - /// - /// Type of leaderboard request - /// - public enum RequestType - { - /// - /// Query everyone and everything - /// - Global = LeaderboardDataRequest.Global, - - /// - /// Query entries near to this user's rank - /// - GlobalAroundUser = LeaderboardDataRequest.GlobalAroundUser, - - /// - /// Only show friends of this user - /// - Friends = LeaderboardDataRequest.Friends - } - - private static readonly int[] subEntriesBuffer = new int[512]; - - internal ulong BoardId; - public ulong GetBoardId() - { - return BoardId; - } - internal Client client; - - private readonly Queue _onCreated = new Queue(); - - /// - /// The results from the last query. Can be null. - /// - public Entry[] Results; - - internal Leaderboard( Client c ) - { - client = c; - } - - /// - /// The name of this board, as retrieved from Steam - /// - public string Name { get; private set; } - - /// - /// The total number of entries on this board - /// - public int TotalEntries { get; private set; } - - /// - /// Returns true if this board is valid, ie, we've received - /// a positive response from Steam about it. - /// - public bool IsValid => BoardId != 0; - - /// - /// Returns true if we asked steam about this board but it returned - /// an error. - /// - public bool IsError { get; private set; } - - /// - /// Returns true if we're querying scores - /// - public bool IsQuerying { get; private set; } - - public void Dispose() - { - client = null; - } - - private void DispatchOnCreatedCallbacks() - { - while ( _onCreated.Count > 0 ) - { - _onCreated.Dequeue()(); - } - } - - private bool DeferOnCreated( Action onValid, FailureCallback onFailure = null ) - { - if ( IsValid || IsError ) return false; - - _onCreated.Enqueue( () => - { - if ( IsValid ) onValid(); - else onFailure?.Invoke( Callbacks.Result.Fail ); - } ); - - return true; - } - - /// - /// Called when the leaderboard information is successfully recieved from Steam - /// - public Action OnBoardInformation; - - internal void OnBoardCreated( LeaderboardFindResult_t result, bool error ) - { - Console.WriteLine( $"result.LeaderboardFound: {result.LeaderboardFound}" ); - Console.WriteLine( $"result.SteamLeaderboard: {result.SteamLeaderboard}" ); - - if ( error || ( result.LeaderboardFound == 0 ) ) - { - IsError = true; - } - else - { - BoardId = result.SteamLeaderboard; - - if ( IsValid ) - { - Name = client.native.userstats.GetLeaderboardName( BoardId ); - TotalEntries = client.native.userstats.GetLeaderboardEntryCount( BoardId ); - - OnBoardInformation?.Invoke(); - } - } - - DispatchOnCreatedCallbacks(); - } - - /// - /// Add a score to this leaderboard. - /// Subscores are totally optional, and can be used for other game defined data such as laps etc.. although - /// they have no bearing on sorting at all - /// If onlyIfBeatsOldScore is true, the score will only be updated if it beats the existing score, else it will always - /// be updated. Beating the existing score is subjective - and depends on how your leaderboard was set up as to whether - /// that means higher or lower. - /// - public bool AddScore( bool onlyIfBeatsOldScore, int score, params int[] subscores ) - { - if ( IsError ) return false; - if ( !IsValid ) return DeferOnCreated( () => AddScore( onlyIfBeatsOldScore, score, subscores ) ); - - var flags = LeaderboardUploadScoreMethod.ForceUpdate; - if ( onlyIfBeatsOldScore ) flags = LeaderboardUploadScoreMethod.KeepBest; - - client.native.userstats.UploadLeaderboardScore( BoardId, flags, score, subscores, subscores.Length ); - - return true; - } - - /// - /// Callback invoked by when score submission - /// is complete. - /// - /// If successful, information about the new entry - public delegate void AddScoreCallback( AddScoreResult result ); - - /// - /// Information about a newly submitted score. - /// - public struct AddScoreResult - { - public int Score; - public bool ScoreChanged; - public int GlobalRankNew; - public int GlobalRankPrevious; - } - - /// - /// Add a score to this leaderboard. - /// Subscores are totally optional, and can be used for other game defined data such as laps etc.. although - /// they have no bearing on sorting at all - /// If onlyIfBeatsOldScore is true, the score will only be updated if it beats the existing score, else it will always - /// be updated. - /// Information about the newly submitted score is passed to the optional . - /// - public bool AddScore( bool onlyIfBeatsOldScore, int score, int[] subscores = null, AddScoreCallback onSuccess = null, FailureCallback onFailure = null ) - { - if ( IsError ) return false; - if ( !IsValid ) return DeferOnCreated( () => AddScore( onlyIfBeatsOldScore, score, subscores, onSuccess, onFailure ), onFailure ); - - if ( subscores == null ) subscores = new int[0]; - - var flags = LeaderboardUploadScoreMethod.ForceUpdate; - if ( onlyIfBeatsOldScore ) flags = LeaderboardUploadScoreMethod.KeepBest; - - client.native.userstats.UploadLeaderboardScore( BoardId, flags, score, subscores, subscores.Length, ( result, error ) => - { - if ( !error && result.Success != 0 ) - { - onSuccess?.Invoke( new AddScoreResult - { - Score = result.Score, - ScoreChanged = result.ScoreChanged != 0, - GlobalRankNew = result.GlobalRankNew, - GlobalRankPrevious = result.GlobalRankPrevious - } ); - } - else - { - onFailure?.Invoke( error ? Callbacks.Result.IOFailure : Callbacks.Result.Fail ); - } - } ); - - return true; - } - - /// - /// Callback invoked by when file attachment is complete. - /// - public delegate void AttachRemoteFileCallback(); - - /// - /// Attempt to attach a file to the current user's leaderboard entry. - /// Can be useful for storing replays along with scores. - /// - /// True if the file attachment process has started - public bool AttachRemoteFile( RemoteFile file, AttachRemoteFileCallback onSuccess = null, FailureCallback onFailure = null ) - { - if ( IsError ) return false; - if ( !IsValid ) return DeferOnCreated( () => AttachRemoteFile( file, onSuccess, onFailure ), onFailure ); - - if ( file.IsShared ) - { - var handle = client.native.userstats.AttachLeaderboardUGC( BoardId, file.UGCHandle, ( result, error ) => - { - if ( !error && result.Result == Result.OK ) - { - onSuccess?.Invoke(); - } - else - { - onFailure?.Invoke( result.Result == 0 ? Callbacks.Result.IOFailure : (Callbacks.Result) result.Result ); - } - } ); - - return handle.IsValid; - } - - file.Share( () => - { - if ( !file.IsShared || !AttachRemoteFile( file, onSuccess, onFailure ) ) - { - onFailure?.Invoke( Callbacks.Result.Fail ); - } - }, onFailure ); - return true; - } - - /// - /// Fetch a subset of scores. The scores end up in Results. - /// - /// Returns true if we have started the query - public bool FetchScores( RequestType RequestType, int start, int end ) - { - if ( !IsValid ) return false; - if ( IsQuerying ) return false; - - client.native.userstats.DownloadLeaderboardEntries( BoardId, (LeaderboardDataRequest) RequestType, start, end, OnScores ); - - Results = null; - IsQuerying = true; - return true; - } - - private unsafe void ReadScores( LeaderboardScoresDownloaded_t result, List dest ) - { - for ( var i = 0; i < result.CEntryCount; i++ ) - fixed ( int* ptr = subEntriesBuffer ) - { - var entry = new LeaderboardEntry_t(); - if ( client.native.userstats.GetDownloadedLeaderboardEntry( result.SteamLeaderboardEntries, i, ref entry, (IntPtr) ptr, subEntriesBuffer.Length ) ) - dest.Add( new Entry - { - GlobalRank = entry.GlobalRank, - Score = entry.Score, - SteamId = entry.SteamIDUser, - SubScores = entry.CDetails == 0 ? null : subEntriesBuffer.Take( entry.CDetails ).ToArray(), - // Name = client.Friends.GetName( entry.SteamIDUser ), - AttachedFile = (entry.UGC >> 32) == 0xffffffff ? null : new RemoteFile( client.RemoteStorage, entry.UGC ) - } ); - } - } - - [ThreadStatic] private static List _sEntryBuffer; - - /// - /// Callback invoked by when - /// a query is complete. - /// - public delegate void FetchScoresCallback( Entry[] results ); - - /// - /// Fetch a subset of scores. The scores are passed to . - /// - /// Returns true if we have started the query - public bool FetchScores( RequestType RequestType, int start, int end, FetchScoresCallback onSuccess, FailureCallback onFailure = null ) - { - if ( IsError ) return false; - if ( !IsValid ) return DeferOnCreated( () => FetchScores( RequestType, start, end, onSuccess, onFailure ), onFailure ); - - client.native.userstats.DownloadLeaderboardEntries( BoardId, (LeaderboardDataRequest) RequestType, start, end, ( result, error ) => - { - if ( error ) - { - onFailure?.Invoke( Callbacks.Result.IOFailure ); - } - else - { - if ( _sEntryBuffer == null ) _sEntryBuffer = new List(); - else _sEntryBuffer.Clear(); - - ReadScores( result, _sEntryBuffer ); - onSuccess( _sEntryBuffer.ToArray() ); - } - } ); - - return true; - } - - public unsafe bool FetchUsersScores( RequestType RequestType, UInt64[] steamIds, FetchScoresCallback onSuccess, FailureCallback onFailure = null ) - { - - if ( IsError ) return false; - if ( !IsValid ) return DeferOnCreated( () => FetchUsersScores( RequestType, steamIds, onSuccess, onFailure ), onFailure ); - - fixed(ulong* pointer = steamIds){ - - client.native.userstats.DownloadLeaderboardEntriesForUsers(BoardId, (IntPtr)pointer, steamIds.Length, (result, error) => - { - if (error) - { - onFailure?.Invoke(Callbacks.Result.IOFailure); - } - else - { - if (_sEntryBuffer == null) _sEntryBuffer = new List(); - else _sEntryBuffer.Clear(); - - ReadScores(result, _sEntryBuffer); - onSuccess(_sEntryBuffer.ToArray()); - } - }); - } - - return true; - } - - private void OnScores( LeaderboardScoresDownloaded_t result, bool error ) - { - IsQuerying = false; - - if ( client == null ) return; - if ( error ) return; - - // Entry count may have changed - TotalEntries = client.native.userstats.GetLeaderboardEntryCount(BoardId); - - var list = new List(); - ReadScores( result, list ); - - Results = list.ToArray(); - } - - /// - /// A single entry in a leaderboard - /// - public struct Entry - { - public ulong SteamId; - public int Score; - public int[] SubScores; - public int GlobalRank; - public RemoteFile AttachedFile; - - /// - /// Note that the player's name might not be immediately available. - /// If that's the case you'll have to use Friends.GetName to find the name - /// - public string Name; - } - } -} diff --git a/Facepunch.Steamworks/Client/Lobby.LobbyData.cs b/Facepunch.Steamworks/Client/Lobby.LobbyData.cs deleted file mode 100644 index 63e4e84..0000000 --- a/Facepunch.Steamworks/Client/Lobby.LobbyData.cs +++ /dev/null @@ -1,112 +0,0 @@ -using System.Collections.Generic; - -namespace Facepunch.Steamworks -{ - public partial class Lobby - { - /// - /// Class to hold global lobby data. This is stuff like maps/modes/etc. Data set here can be filtered by LobbyList. - /// - public class LobbyData - { - internal Client client; - internal ulong lobby; - internal Dictionary data; - - public LobbyData( Client c, ulong l ) - { - client = c; - lobby = l; - data = new Dictionary(); - } - - /// - /// Get the lobby value for the specific key - /// - /// The key to find - /// The value at key - public string GetData( string k ) - { - if ( data.ContainsKey( k ) ) - { - return data[k]; - } - - return "ERROR: key not found"; - } - - /// - /// Get a list of all the data in the Lobby - /// - /// Dictionary of all the key/value pairs in the data - public Dictionary GetAllData() - { - Dictionary returnData = new Dictionary(); - foreach ( KeyValuePair item in data ) - { - returnData.Add( item.Key, item.Value ); - } - return returnData; - } - - /// - /// Set the value for specified Key. Note that the keys "joinable", "appid", "name", and "lobbytype" are reserved for internal library use. - /// - /// The key to set the value for - /// The value of the Key - /// True if data successfully set - public bool SetData( string k, string v ) - { - if ( data.ContainsKey( k ) ) - { - if ( data[k] == v ) { return true; } - if ( client.native.matchmaking.SetLobbyData( lobby, k, v ) ) - { - data[k] = v; - return true; - } - } - else - { - if ( client.native.matchmaking.SetLobbyData( lobby, k, v ) ) - { - data.Add( k, v ); - return true; - } - } - - return false; - } - - /// - /// Remove the key from the LobbyData. Note that the keys "joinable", "appid", "name", and "lobbytype" are reserved for internal library use. - /// - /// The key to remove - /// True if Key successfully removed - public bool RemoveData( string k ) - { - if ( data.ContainsKey( k ) ) - { - if ( client.native.matchmaking.DeleteLobbyData( lobby, k ) ) - { - data.Remove( k ); - return true; - } - } - - return false; - } - - } - - /*not implemented - - //set the game server of the lobby - client.native.matchmaking.GetLobbyGameServer; - client.native.matchmaking.SetLobbyGameServer; - - //used with game server stuff - SteamNative.LobbyGameCreated_t - */ - } -} diff --git a/Facepunch.Steamworks/Client/Lobby.cs b/Facepunch.Steamworks/Client/Lobby.cs deleted file mode 100644 index fb2c163..0000000 --- a/Facepunch.Steamworks/Client/Lobby.cs +++ /dev/null @@ -1,599 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using SteamNative; - -namespace Facepunch.Steamworks -{ - public partial class Client : IDisposable - { - Lobby _lobby; - - public Lobby Lobby - { - get - { - if ( _lobby == null ) - _lobby = new Steamworks.Lobby( this ); - return _lobby; - } - } - } - public partial class Lobby : IDisposable - { - //The type of lobby you are creating - public enum Type : int - { - Private = SteamNative.LobbyType.Private, - FriendsOnly = SteamNative.LobbyType.FriendsOnly, - Public = SteamNative.LobbyType.Public, - Invisible = SteamNative.LobbyType.Invisible, - Error //happens if you try to get this when you aren't in a valid lobby - } - - internal Client client; - - public Lobby( Client c ) - { - client = c; - - // For backwards compatibility - OnLobbyJoinRequested = Join; - - client.RegisterCallback( OnLobbyDataUpdatedAPI ); - client.RegisterCallback( OnLobbyChatMessageRecievedAPI ); - client.RegisterCallback( OnLobbyStateUpdatedAPI ); - client.RegisterCallback( OnLobbyJoinRequestedAPI ); - client.RegisterCallback( OnUserInvitedToLobbyAPI ); - client.RegisterCallback( OnLobbyMemberPersonaChangeAPI ); - } - - /// - /// The CSteamID of the lobby we're currently in. - /// - public ulong CurrentLobby { get; private set; } - - /// - /// The LobbyData of the CurrentLobby. Note this is the global data for the lobby. Use SetMemberData to set specific member data. - /// - public LobbyData CurrentLobbyData { get; private set; } - - /// - /// Returns true if this lobby is valid, ie, we've succesffuly created and/or joined a lobby. - /// - public bool IsValid => CurrentLobby != 0; - - /// - /// Join a Lobby through its LobbyID. OnLobbyJoined is called with the result of the Join attempt. - /// - /// CSteamID of lobby to join - public void Join( ulong lobbyID ) - { - Leave(); - client.native.matchmaking.JoinLobby( lobbyID, OnLobbyJoinedAPI ); - } - - void OnLobbyJoinedAPI( LobbyEnter_t callback, bool error ) - { - if ( error || (callback.EChatRoomEnterResponse != (uint)(SteamNative.ChatRoomEnterResponse.Success)) ) - { - if ( OnLobbyJoined != null ) { OnLobbyJoined( false ); } - return; - } - - CurrentLobby = callback.SteamIDLobby; - UpdateLobbyData(); - if ( OnLobbyJoined != null ) { OnLobbyJoined( true ); } - } - - /// - /// Called when a lobby has been attempted joined. Returns true if lobby was successfuly joined, false if not. - /// - public Action OnLobbyJoined; - - /// - /// Creates a lobby and returns the created lobby. You auto join the created lobby. The lobby is stored in Client.Lobby.CurrentLobby if successful. - /// - /// The Lobby.Type of Lobby to be created - /// The maximum amount of people you want to be able to be in this lobby, including yourself - public void Create( Lobby.Type lobbyType, int maxMembers ) - { - client.native.matchmaking.CreateLobby( (SteamNative.LobbyType)lobbyType, maxMembers, OnLobbyCreatedAPI ); - createdLobbyType = lobbyType; - } - - internal Type createdLobbyType; - - internal void OnLobbyCreatedAPI( LobbyCreated_t callback, bool error ) - { - //from SpaceWarClient.cpp 793 - if ( error || (callback.Result != Result.OK) ) - { - if ( OnLobbyCreated != null ) { OnLobbyCreated( false ); } - return; - } - - //set owner specific properties - Owner = client.SteamId; - CurrentLobby = callback.SteamIDLobby; - CurrentLobbyData = new LobbyData( client, CurrentLobby ); - Name = client.Username + "'s Lobby"; - CurrentLobbyData.SetData( "appid", client.AppId.ToString() ); - LobbyType = createdLobbyType; - CurrentLobbyData.SetData( "lobbytype", LobbyType.ToString() ); - Joinable = true; - if ( OnLobbyCreated != null ) { OnLobbyCreated( true ); } - } - - /// - /// Callback for when lobby is created. Parameter resolves true when the Lobby was successfully created - /// - public Action OnLobbyCreated; - - /// - /// Sets user data for the Lobby. Things like Character, Skin, Ready, etc. Can only set your own member data - /// - public void SetMemberData( string key, string value ) - { - if ( CurrentLobby == 0 ) { return; } - client.native.matchmaking.SetLobbyMemberData( CurrentLobby, key, value ); - } - - /// - /// Get the per-user metadata from this lobby. Can get data from any user - /// - /// ulong SteamID of the user you want to get data from - /// String key of the type of data you want to get - /// - public string GetMemberData( ulong steamID, string key ) - { - if ( CurrentLobby == 0 ) { return "ERROR: NOT IN ANY LOBBY"; } - return client.native.matchmaking.GetLobbyMemberData( CurrentLobby, steamID, key ); - } - - internal void OnLobbyDataUpdatedAPI( LobbyDataUpdate_t callback ) - { - if ( callback.SteamIDLobby != CurrentLobby ) return; - - if ( callback.SteamIDLobby == CurrentLobby ) //actual lobby data was updated by owner - { - UpdateLobbyData(); - } - - if ( UserIsInCurrentLobby( callback.SteamIDMember ) ) //some member of this lobby updated their information - { - if ( OnLobbyMemberDataUpdated != null ) { OnLobbyMemberDataUpdated( callback.SteamIDMember ); } - } - } - - /// - /// Updates the LobbyData property to have the data for the current lobby, if any - /// - internal void UpdateLobbyData() - { - int dataCount = client.native.matchmaking.GetLobbyDataCount( CurrentLobby ); - CurrentLobbyData = new LobbyData( client, CurrentLobby ); - for ( int i = 0; i < dataCount; i++ ) - { - if ( client.native.matchmaking.GetLobbyDataByIndex( CurrentLobby, i, out string key, out string value ) ) - { - CurrentLobbyData.SetData( key, value ); - } - } - - if ( OnLobbyDataUpdated != null ) { OnLobbyDataUpdated(); } - } - - /// - /// Called when the lobby data itself has been updated. Called when someone has joined/left, Owner has updated data, etc. - /// - public Action OnLobbyDataUpdated; - - /// - /// Called when a member of the lobby has updated either their personal Lobby metadata or someone's global steam state has changed (like a display name). Parameter is the user who changed. - /// - public Action OnLobbyMemberDataUpdated; - - - public Type LobbyType - { - get - { - if ( !IsValid ) { return Type.Error; } //if we're currently in a valid server - - //we know that we've set the lobby type via the lobbydata in the creation function - //ps this is important because steam doesn't have an easy way to get lobby type (why idk) - string lobbyType = CurrentLobbyData.GetData( "lobbytype" ); - switch ( lobbyType ) - { - case "Private": - return Type.Private; - case "FriendsOnly": - return Type.FriendsOnly; - case "Invisible": - return Type.Invisible; - case "Public": - return Type.Public; - default: - return Type.Error; - } - } - set - { - if ( !IsValid ) { return; } - if ( client.native.matchmaking.SetLobbyType( CurrentLobby, (SteamNative.LobbyType)value ) ) - { - CurrentLobbyData.SetData( "lobbytype", value.ToString() ); - } - } - } - - private static byte[] chatMessageData = new byte[1024 * 4]; - - private unsafe void OnLobbyChatMessageRecievedAPI( LobbyChatMsg_t callback ) - { - //from Client.Networking - if ( callback.SteamIDLobby != CurrentLobby ) - return; - - SteamNative.CSteamID steamid = 1; - ChatEntryType chatEntryType; // "If set then this will just always return k_EChatEntryTypeChatMsg. This can usually just be set to NULL." - int readData = 0; - fixed ( byte* p = chatMessageData ) - { - readData = client.native.matchmaking.GetLobbyChatEntry( CurrentLobby, (int)callback.ChatID, out steamid, (IntPtr)p, chatMessageData.Length, out chatEntryType ); - } - - - OnChatMessageRecieved?.Invoke( steamid, chatMessageData, readData ); - - if ( readData > 0 ) - { - OnChatStringRecieved?.Invoke( steamid, Encoding.UTF8.GetString( chatMessageData, 0, readData ) ); - } - } - - /// - /// Callback to get chat messages. Use Encoding.UTF8.GetString to retrive the message. - /// - public Action OnChatMessageRecieved; - - /// - /// Like OnChatMessageRecieved but the data is converted to a string - /// - public Action OnChatStringRecieved; - - /// - /// Broadcasts a chat message to the all the users in the lobby users in the lobby (including the local user) will receive a LobbyChatMsg_t callback. - /// - /// True if message successfully sent - public unsafe bool SendChatMessage( string message ) - { - var data = Encoding.UTF8.GetBytes( message ); - fixed ( byte* p = data ) - { - // pvMsgBody can be binary or text data, up to 4k - // if pvMsgBody is text, cubMsgBody should be strlen( text ) + 1, to include the null terminator - return client.native.matchmaking.SendLobbyChatMsg( CurrentLobby, (IntPtr)p, data.Length ); - } - } - - /// - /// Enums to catch the state of a user when their state has changed - /// - public enum MemberStateChange - { - Entered = ChatMemberStateChange.Entered, - Left = ChatMemberStateChange.Left, - Disconnected = ChatMemberStateChange.Disconnected, - Kicked = ChatMemberStateChange.Kicked, - Banned = ChatMemberStateChange.Banned, - } - - internal void OnLobbyStateUpdatedAPI( LobbyChatUpdate_t callback ) - { - if ( callback.SteamIDLobby != CurrentLobby ) - return; - - MemberStateChange change = (MemberStateChange)callback.GfChatMemberStateChange; - ulong initiator = callback.SteamIDMakingChange; - ulong affected = callback.SteamIDUserChanged; - - OnLobbyStateChanged?.Invoke( change, initiator, affected ); - } - - /// - /// Called when the state of the Lobby is somehow shifted. Usually when someone joins or leaves the lobby. - /// The first ulong is the SteamID of the user that initiated the change. - /// The second ulong is the person that was affected - /// - public Action OnLobbyStateChanged; - - /// - /// The name of the lobby as a property for easy getting/setting. Note that this is setting LobbyData, which you cannot do unless you are the Owner of the lobby - /// - public string Name - { - get - { - if ( !IsValid ) { return ""; } - return CurrentLobbyData.GetData( "name" ); - } - set - { - if ( !IsValid ) { return; } - CurrentLobbyData.SetData( "name", value ); - } - } - - /// - /// returns true if we're the current owner - /// - public bool IsOwner - { - get - { - return Owner == client.SteamId; - } - } - - /// - /// The Owner of the current lobby. Returns 0 if you are not in a valid lobby. - /// - public ulong Owner - { - get - { - if ( IsValid ) - { - return client.native.matchmaking.GetLobbyOwner( CurrentLobby ); - } - return 0; - } - set - { - if ( Owner == value ) return; - client.native.matchmaking.SetLobbyOwner( CurrentLobby, value ); - } - } - - /// - /// Is the Lobby joinable by other people? Defaults to true; - /// - public bool Joinable - { - get - { - if ( !IsValid ) { return false; } - string joinable = CurrentLobbyData.GetData( "joinable" ); - switch ( joinable ) - { - case "true": - return true; - case "false": - return false; - default: - return false; - } - } - set - { - if ( !IsValid ) { return; } - if ( client.native.matchmaking.SetLobbyJoinable( CurrentLobby, value ) ) - { - CurrentLobbyData.SetData( "joinable", value.ToString() ); - } - } - } - - /// - /// How many people can be in the Lobby - /// - public int MaxMembers - { - get - { - if ( !IsValid ) { return 0; } //0 is default, but value is inited when lobby is created. - return client.native.matchmaking.GetLobbyMemberLimit( CurrentLobby ); - } - set - { - if ( !IsValid ) { return; } - client.native.matchmaking.SetLobbyMemberLimit( CurrentLobby, value ); - } - } - - /// - /// How many people are currently in the Lobby - /// - public int NumMembers - { - get { return client.native.matchmaking.GetNumLobbyMembers( CurrentLobby ); } - } - - /// - /// Leave the CurrentLobby. - /// - public void Leave() - { - if ( CurrentLobby != 0 ) - { - client.native.matchmaking.LeaveLobby( CurrentLobby ); - } - - CurrentLobby = 0; - CurrentLobbyData = null; - } - - public void Dispose() - { - client = null; - } - - /// - /// Get an array of all the CSteamIDs in the CurrentLobby. - /// Note that you must be in the Lobby you are trying to request the MemberIDs from. - /// Returns an empty array if you aren't in a lobby. - /// - /// Array of member SteamIDs - public ulong[] GetMemberIDs() - { - ulong[] memIDs = new ulong[NumMembers]; - for ( int i = 0; i < NumMembers; i++ ) - { - memIDs[i] = client.native.matchmaking.GetLobbyMemberByIndex( CurrentLobby, i ); - } - return memIDs; - } - - /// - /// Check to see if a user is in your CurrentLobby - /// - /// SteamID of the user to check for - /// - public bool UserIsInCurrentLobby( ulong steamID ) - { - if ( CurrentLobby == 0 ) - return false; - - ulong[] mems = GetMemberIDs(); - - for ( int i = 0; i < mems.Length; i++ ) - { - if ( mems[i] == steamID ) - return true; - } - - return false; - } - - /// - /// Invites the specified user to the CurrentLobby the user is in. - /// - /// ulong ID of person to invite - public bool InviteUserToLobby( ulong friendID ) - { - return client.native.matchmaking.InviteUserToLobby( CurrentLobby, friendID ); - } - - internal void OnUserInvitedToLobbyAPI( LobbyInvite_t callback ) - { - if ( callback.GameID != client.AppId ) return; - if ( OnUserInvitedToLobby != null ) { OnUserInvitedToLobby( callback.SteamIDLobby, callback.SteamIDUser ); } - - } - - /// - /// Activates the steam overlay to invite friends to the CurrentLobby the user is in. - /// - public void OpenFriendInviteOverlay() - { - client.native.friends.ActivateGameOverlayInviteDialog(CurrentLobby); - } - - /// - /// Called when a user invites the current user to a lobby. The first parameter is the lobby the user was invited to, the second is the CSteamID of the person who invited this user - /// - public Action OnUserInvitedToLobby; - - /// - /// Called when a user accepts an invitation to a lobby while the game is running. The parameter is a lobby id. - /// - public Action OnLobbyJoinRequested; - - /// - /// Joins a lobby if a request was made to join the lobby through the friends list or an invite - /// - internal void OnLobbyJoinRequestedAPI( GameLobbyJoinRequested_t callback ) - { - if (OnLobbyJoinRequested != null) { OnLobbyJoinRequested(callback.SteamIDLobby); } - } - - /// - /// Makes sure we send an update callback if a Lobby user updates their information - /// - internal void OnLobbyMemberPersonaChangeAPI( PersonaStateChange_t callback ) - { - if ( !UserIsInCurrentLobby( callback.SteamID ) ) return; - if ( OnLobbyMemberDataUpdated != null ) { OnLobbyMemberDataUpdated( callback.SteamID ); } - } - - /// - /// Sets the game server associated with the lobby. - /// This can only be set by the owner of the lobby. - /// Either the IP/Port or the Steam ID of the game server must be valid, depending on how you want the clients to be able to connect. - /// - public bool SetGameServer( System.Net.IPAddress ip, int port, ulong serverSteamId = 0 ) - { - if ( !IsValid || !IsOwner ) return false; - - var ipint = System.Net.IPAddress.NetworkToHostOrder( ip.Address ); - client.native.matchmaking.SetLobbyGameServer( CurrentLobby, (uint)ipint, (ushort)port, serverSteamId ); - return true; - } - - /// - /// Gets the details of a game server set in a lobby. - /// - public System.Net.IPAddress GameServerIp - { - get - { - uint ip; - ushort port; - CSteamID steamid; - - if ( !client.native.matchmaking.GetLobbyGameServer( CurrentLobby, out ip, out port, out steamid ) || ip == 0 ) - return null; - - return new System.Net.IPAddress( System.Net.IPAddress.HostToNetworkOrder( ip ) ); - } - } - - /// - /// Gets the details of a game server set in a lobby. - /// - public int GameServerPort - { - get - { - uint ip; - ushort port; - CSteamID steamid; - - if ( !client.native.matchmaking.GetLobbyGameServer( CurrentLobby, out ip, out port, out steamid ) ) - return 0; - - return (int)port; - } - } - - /// - /// Gets the details of a game server set in a lobby. - /// - public ulong GameServerSteamId - { - get - { - uint ip; - ushort port; - CSteamID steamid; - - if ( !client.native.matchmaking.GetLobbyGameServer( CurrentLobby, out ip, out port, out steamid ) ) - return 0; - - return steamid; - } - } - - /*not implemented - - //set the game server of the lobby - client.native.matchmaking.GetLobbyGameServer; - client.native.matchmaking.SetLobbyGameServer; - - //used with game server stuff - SteamNative.LobbyGameCreated_t - */ - } -} diff --git a/Facepunch.Steamworks/Client/LobbyList.Lobby.cs b/Facepunch.Steamworks/Client/LobbyList.Lobby.cs deleted file mode 100644 index 43a1dbe..0000000 --- a/Facepunch.Steamworks/Client/LobbyList.Lobby.cs +++ /dev/null @@ -1,77 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace Facepunch.Steamworks -{ - public partial class LobbyList - { - public class Lobby - { - private Dictionary lobbyData; - internal Client Client; - public string Name { get; private set; } - public ulong LobbyID { get; private set; } - public ulong Owner { get; private set; } - public int MemberLimit{ get; private set; } - public int NumMembers{ get; private set; } - public string LobbyType { get; private set; } - - /// - /// Get the lobby value for the specific key - /// - /// The key to find - /// The value at key - public string GetData(string k) - { - if (lobbyData.TryGetValue(k, out var v)) - return v; - - return string.Empty; - } - - /// - /// Get a list of all the data in the Lobby - /// - /// Dictionary of all the key/value pairs in the data - public Dictionary GetAllData() - { - var returnData = new Dictionary(); - - foreach ( var item in lobbyData) - { - returnData.Add(item.Key, item.Value); - } - - return returnData; - } - - internal static Lobby FromSteam(Client client, ulong lobby) - { - var lobbyData = new Dictionary(); - int dataCount = client.native.matchmaking.GetLobbyDataCount(lobby); - - for (int i = 0; i < dataCount; i++) - { - if (client.native.matchmaking.GetLobbyDataByIndex(lobby, i, out var datakey, out var datavalue)) - { - lobbyData.Add(datakey, datavalue); - } - } - - return new Lobby() - { - Client = client, - LobbyID = lobby, - Name = client.native.matchmaking.GetLobbyData(lobby, "name"), - LobbyType = client.native.matchmaking.GetLobbyData(lobby, "lobbytype"), - MemberLimit = client.native.matchmaking.GetLobbyMemberLimit(lobby), - Owner = client.native.matchmaking.GetLobbyOwner(lobby), - NumMembers = client.native.matchmaking.GetNumLobbyMembers(lobby), - lobbyData = lobbyData - }; - - } - } - } -} diff --git a/Facepunch.Steamworks/Client/LobbyList.cs b/Facepunch.Steamworks/Client/LobbyList.cs deleted file mode 100644 index 4470973..0000000 --- a/Facepunch.Steamworks/Client/LobbyList.cs +++ /dev/null @@ -1,185 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using SteamNative; - -namespace Facepunch.Steamworks -{ - public partial class LobbyList : IDisposable - { - internal Client client; - - //The list of retrieved lobbies - public List Lobbies { get; private set; } - - //True when all the possible lobbies have had their data updated - //if the number of lobbies is now equal to the initial request number, we've found all lobbies - public bool Finished { get; private set; } - - //The number of possible lobbies we can get data from - internal List requests; - - internal LobbyList(Client client) - { - this.client = client; - Lobbies = new List(); - requests = new List(); - } - - /// - /// Refresh the List of Lobbies. If no filter is passed in, a default one is created that filters based on AppId ("appid"). - /// - /// - public void Refresh ( Filter filter = null) - { - //init out values - Lobbies.Clear(); - requests.Clear(); - Finished = false; - - if (filter == null) - { - filter = new Filter(); - filter.StringFilters.Add("appid", client.AppId.ToString()); - client.native.matchmaking.RequestLobbyList(OnLobbyList); - return; - } - - client.native.matchmaking.AddRequestLobbyListDistanceFilter((SteamNative.LobbyDistanceFilter)filter.DistanceFilter); - - if (filter.SlotsAvailable != null) - { - client.native.matchmaking.AddRequestLobbyListFilterSlotsAvailable((int)filter.SlotsAvailable); - } - - if (filter.MaxResults != null) - { - client.native.matchmaking.AddRequestLobbyListResultCountFilter((int)filter.MaxResults); - } - - foreach (KeyValuePair fil in filter.StringFilters) - { - client.native.matchmaking.AddRequestLobbyListStringFilter(fil.Key, fil.Value, SteamNative.LobbyComparison.Equal); - } - foreach (KeyValuePair fil in filter.NearFilters) - { - client.native.matchmaking.AddRequestLobbyListNearValueFilter(fil.Key, fil.Value); - } - //foreach (KeyValuePair> fil in filter.NumericalFilters) - //{ - // client.native.matchmaking.AddRequestLobbyListNumericalFilter(fil.Key, fil.Value.Value, (SteamNative.LobbyComparison)fil.Value.Key); - //} - - - // this will never return lobbies that are full (via the actual api) - client.native.matchmaking.RequestLobbyList(OnLobbyList); - - } - - - void OnLobbyList(LobbyMatchList_t callback, bool error) - { - if (error) return; - - //how many lobbies matched - uint lobbiesMatching = callback.LobbiesMatching; - - // lobbies are returned in order of closeness to the user, so add them to the list in that order - for (int i = 0; i < lobbiesMatching; i++) - { - //add the lobby to the list of requests - ulong lobby = client.native.matchmaking.GetLobbyByIndex(i); - requests.Add(lobby); - - //cast to a LobbyList.Lobby - Lobby newLobby = Lobby.FromSteam(client, lobby); - if (newLobby.Name != "") - { - //if the lobby is valid add it to the valid return lobbies - Lobbies.Add(newLobby); - checkFinished(); - } - else - { - //else we need to get the info for the missing lobby - client.native.matchmaking.RequestLobbyData(lobby); - client.RegisterCallback( OnLobbyDataUpdated ); - } - - } - - checkFinished(); - - if (OnLobbiesUpdated != null) { OnLobbiesUpdated(); } - } - - void checkFinished() - { - if (Lobbies.Count == requests.Count) - { - Finished = true; - return; - } - Finished = false; - } - - void OnLobbyDataUpdated(LobbyDataUpdate_t callback) - { - if (callback.Success == 1) //1 if success, 0 if failure - { - //find the lobby that has been updated - Lobby lobby = Lobbies.Find(x => x.LobbyID == callback.SteamIDLobby); - - //if this lobby isn't yet in the list of lobbies, we know that we should add it - if (lobby == null) - { - Lobbies.Add(lobby); - checkFinished(); - } - - //otherwise lobby data in general was updated and you should listen to see what changed - if (OnLobbiesUpdated != null) { OnLobbiesUpdated(); } - } - - - } - - public Action OnLobbiesUpdated; - - public void Dispose() - { - client = null; - } - - public class Filter - { - // Filters that match actual metadata keys exactly - public Dictionary StringFilters = new Dictionary(); - // Filters that are of string key and int value for that key to be close to - public Dictionary NearFilters = new Dictionary(); - //Filters that are of string key and int value, with a comparison filter to say how we should relate to the value - //public Dictionary> NumericalFilters = new Dictionary>(); - public Distance DistanceFilter = Distance.Worldwide; - public int? SlotsAvailable { get; set; } - public int? MaxResults { get; set; } - - public enum Distance : int - { - Close = SteamNative.LobbyDistanceFilter.Close, - Default = SteamNative.LobbyDistanceFilter.Default, - Far = SteamNative.LobbyDistanceFilter.Far, - Worldwide = SteamNative.LobbyDistanceFilter.Worldwide - } - - public enum Comparison : int - { - EqualToOrLessThan = SteamNative.LobbyComparison.EqualToOrLessThan, - LessThan = SteamNative.LobbyComparison.LessThan, - Equal = SteamNative.LobbyComparison.Equal, - GreaterThan = SteamNative.LobbyComparison.GreaterThan, - EqualToOrGreaterThan = SteamNative.LobbyComparison.EqualToOrGreaterThan, - NotEqual = SteamNative.LobbyComparison.NotEqual - } - } - } -} diff --git a/Facepunch.Steamworks/Client/MicroTransactions.cs b/Facepunch.Steamworks/Client/MicroTransactions.cs deleted file mode 100644 index 240b35b..0000000 --- a/Facepunch.Steamworks/Client/MicroTransactions.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices; -using System.Text; -using SteamNative; - -namespace Facepunch.Steamworks -{ - public class MicroTransactions : IDisposable - { - internal Client client; - - public delegate void AuthorizationResponse( bool authorized, int appId, ulong orderId ); - - /// - /// Called on the MicroTxnAuthorizationResponse_t event - /// - public event AuthorizationResponse OnAuthorizationResponse; - - internal MicroTransactions( Client c ) - { - client = c; - - client.RegisterCallback( onMicroTxnAuthorizationResponse ); - } - - private void onMicroTxnAuthorizationResponse( MicroTxnAuthorizationResponse_t arg1 ) - { - if ( OnAuthorizationResponse != null ) - { - OnAuthorizationResponse( arg1.Authorized == 1, (int) arg1.AppID, arg1.OrderID ); - } - } - - public void Dispose() - { - client = null; - } - } -} diff --git a/Facepunch.Steamworks/Client/RemoteStorage.File.cs b/Facepunch.Steamworks/Client/RemoteStorage.File.cs deleted file mode 100644 index 80851d5..0000000 --- a/Facepunch.Steamworks/Client/RemoteStorage.File.cs +++ /dev/null @@ -1,323 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using Facepunch.Steamworks.Callbacks; -using SteamNative; -using Result = SteamNative.Result; - -namespace Facepunch.Steamworks -{ - /// - /// Represents a file stored in a user's Steam Cloud. - /// - public class RemoteFile - { - internal readonly RemoteStorage remoteStorage; - - private readonly bool _isUgc; - private string _fileName; - private int _sizeInBytes = -1; - private long _timestamp = 0; - private UGCHandle_t _handle; - private ulong _ownerId; - - private bool _isDownloading; - private byte[] _downloadedData; - - /// - /// Check if the file exists. - /// - public bool Exists { get; internal set; } - - public bool IsDownloading { get { return _isUgc && _isDownloading && _downloadedData == null; } } - - public bool IsDownloaded { get { return !_isUgc || _downloadedData != null; } } - - /// - /// If true, the file is available for other users to download. - /// - public bool IsShared { get { return _handle.Value != 0; } } - - internal UGCHandle_t UGCHandle { get { return _handle; } } - - public ulong SharingId { get { return UGCHandle.Value; } } - - /// - /// Name and path of the file. - /// - public string FileName - { - get - { - if ( _fileName != null ) return _fileName; - GetUGCDetails(); - return _fileName; - } - } - - /// - /// Steam ID of the file's owner. - /// - public ulong OwnerId - { - get - { - if ( _ownerId != 0 ) return _ownerId; - GetUGCDetails(); - return _ownerId; - } - } - - /// - /// Total size of the file in bytes. - /// - public int SizeInBytes - { - get - { - if ( _sizeInBytes != -1 ) return _sizeInBytes; - if ( _isUgc ) throw new NotImplementedException(); - _sizeInBytes = remoteStorage.native.GetFileSize( FileName ); - return _sizeInBytes; - } - internal set { _sizeInBytes = value; } - } - - /// - /// Date modified timestamp in epoch format. - /// - public long FileTimestamp - { - get - { - if ( _timestamp != 0 ) return _timestamp; - if (_isUgc) throw new NotImplementedException(); - _timestamp = remoteStorage.native.GetFileTimestamp(FileName); - return _timestamp; - } - internal set { _timestamp = value; } - } - - internal RemoteFile( RemoteStorage r, UGCHandle_t handle ) - { - Exists = true; - - remoteStorage = r; - - _isUgc = true; - _handle = handle; - } - - internal RemoteFile( RemoteStorage r, string name, ulong ownerId, int sizeInBytes = -1, long timestamp = 0 ) - { - remoteStorage = r; - - _isUgc = false; - _fileName = name; - _ownerId = ownerId; - _sizeInBytes = sizeInBytes; - _timestamp = timestamp; - } - - /// - /// Creates a used to write to this file. - /// - public RemoteFileWriteStream OpenWrite() - { - if (_isUgc) throw new InvalidOperationException("Cannot write to a shared file."); - - return new RemoteFileWriteStream( remoteStorage, this ); - } - - /// - /// Write a byte array to this file, replacing any existing contents. - /// - public void WriteAllBytes( byte[] buffer ) - { - using ( var stream = OpenWrite() ) - { - stream.Write( buffer, 0, buffer.Length ); - } - } - - /// - /// Write a string to this file, replacing any existing contents. - /// - public void WriteAllText( string text, Encoding encoding = null ) - { - if ( encoding == null ) encoding = Encoding.UTF8; - WriteAllBytes( encoding.GetBytes( text ) ); - } - - /// - /// Callback invoked by when a file download is complete. - /// - public delegate void DownloadCallback(); - - /// - /// Gets the number of bytes downloaded and the total number of bytes expected while - /// this file is downloading. - /// - /// True if the file is downloading - public bool GetDownloadProgress( out int bytesDownloaded, out int bytesExpected ) - { - return remoteStorage.native.GetUGCDownloadProgress( _handle, out bytesDownloaded, out bytesExpected ); - } - - /// - /// Attempts to start downloading a shared file. - /// - /// True if the download has successfully started - public bool Download( DownloadCallback onSuccess = null, FailureCallback onFailure = null ) - { - if ( !_isUgc ) return false; - if ( _isDownloading ) return false; - if ( IsDownloaded ) return false; - - _isDownloading = true; - - remoteStorage.native.UGCDownload( _handle, 1000, ( result, error ) => - { - _isDownloading = false; - - if ( error || result.Result != Result.OK ) - { - onFailure?.Invoke( result.Result == 0 ? Callbacks.Result.IOFailure : (Callbacks.Result) result.Result ); - return; - } - - _ownerId = result.SteamIDOwner; - _sizeInBytes = result.SizeInBytes; - _fileName = result.PchFileName; - - unsafe - { - _downloadedData = new byte[_sizeInBytes]; - fixed ( byte* bufferPtr = _downloadedData ) - { - remoteStorage.native.UGCRead( _handle, (IntPtr) bufferPtr, _sizeInBytes, 0, UGCReadAction.ontinueReading ); - } - } - - onSuccess?.Invoke(); - } ); - - return true; - } - - /// - /// Opens a stream used to read from this file. - /// - /// - public Stream OpenRead() - { - return new MemoryStream( ReadAllBytes(), false ); - } - - /// - /// Reads the entire contents of the file as a byte array. - /// - public unsafe byte[] ReadAllBytes() - { - if ( _isUgc ) - { - if ( !IsDownloaded ) throw new Exception( "Cannot read a file that hasn't been downloaded." ); - return _downloadedData; - } - - var size = SizeInBytes; - var buffer = new byte[size]; - - fixed ( byte* bufferPtr = buffer ) - { - remoteStorage.native.FileRead( FileName, (IntPtr) bufferPtr, size ); - } - - return buffer; - } - - /// - /// Reads the entire contents of the file as a string. - /// - public string ReadAllText( Encoding encoding = null ) - { - if ( encoding == null ) encoding = Encoding.UTF8; - return encoding.GetString( ReadAllBytes() ); - } - - /// - /// Callback invoked by when file sharing is complete. - /// - public delegate void ShareCallback(); - - /// - /// Attempt to publish this file for other users to download. - /// - /// True if we have started attempting to share - public bool Share( ShareCallback onSuccess = null, FailureCallback onFailure = null ) - { - if ( _isUgc ) return false; - - // Already shared - if ( _handle.Value != 0 ) return false; - - remoteStorage.native.FileShare( FileName, ( result, error ) => - { - if ( !error && result.Result == Result.OK ) - { - _handle.Value = result.File; - onSuccess?.Invoke(); - } - else - { - onFailure?.Invoke( result.Result == 0 ? Callbacks.Result.IOFailure : (Callbacks.Result) result.Result ); - } - } ); - - return true; - } - - /// - /// Delete this file from remote storage. - /// - /// True if the file could be deleted - public bool Delete() - { - if ( !Exists ) return false; - if ( _isUgc ) return false; - if ( !remoteStorage.native.FileDelete( FileName ) ) return false; - - Exists = false; - remoteStorage.InvalidateFiles(); - - return true; - } - - /// - /// Remove this file from remote storage, while keeping a local copy. - /// Writing to this file again will re-add it to the cloud. - /// - /// True if the file was forgotten - public bool Forget() - { - if ( !Exists ) return false; - if ( _isUgc ) return false; - - return remoteStorage.native.FileForget( FileName ); - } - - private void GetUGCDetails() - { - if ( !_isUgc ) throw new InvalidOperationException(); - - var appId = new AppId_t { Value = remoteStorage.native.steamworks.AppId }; - - CSteamID ownerId; - remoteStorage.native.GetUGCDetails( _handle, ref appId, out _fileName, out ownerId ); - - _ownerId = ownerId.Value; - } - } -} diff --git a/Facepunch.Steamworks/Client/RemoteStorage.FileStream.cs b/Facepunch.Steamworks/Client/RemoteStorage.FileStream.cs deleted file mode 100644 index 6b6a7b6..0000000 --- a/Facepunch.Steamworks/Client/RemoteStorage.FileStream.cs +++ /dev/null @@ -1,94 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using SteamNative; - -namespace Facepunch.Steamworks -{ - /// - /// Stream used to write to a . - /// - public class RemoteFileWriteStream : Stream - { - internal readonly RemoteStorage remoteStorage; - - private readonly UGCFileWriteStreamHandle_t _handle; - private readonly RemoteFile _file; - - private int _written; - private bool _closed; - - internal RemoteFileWriteStream( RemoteStorage r, RemoteFile file ) - { - remoteStorage = r; - - _handle = remoteStorage.native.FileWriteStreamOpen( file.FileName ); - _file = file; - } - - public override void Flush() { } - - public override int Read( byte[] buffer, int offset, int count ) - { - throw new NotImplementedException(); - } - - public override long Seek( long offset, SeekOrigin origin ) - { - throw new NotImplementedException(); - } - - public override void SetLength( long value ) - { - throw new NotImplementedException(); - } - - public override unsafe void Write( byte[] buffer, int offset, int count ) - { - if ( _closed ) throw new ObjectDisposedException( ToString() ); - - fixed ( byte* bufferPtr = buffer ) - { - if ( remoteStorage.native.FileWriteStreamWriteChunk( _handle, (IntPtr)(bufferPtr + offset), count ) ) - { - _written += count; - } - } - } - - public override bool CanRead => false; - public override bool CanSeek => false; - public override bool CanWrite => true; - public override long Length => _written; - public override long Position { get { return _written; } set { throw new NotImplementedException(); } } - - /// - /// Close the stream without saving the file to remote storage. - /// - public void Cancel() - { - if ( _closed ) return; - - _closed = true; - remoteStorage.native.FileWriteStreamCancel( _handle ); - } - - public override void Close() - { - if ( _closed ) return; - - _closed = true; - remoteStorage.native.FileWriteStreamClose( _handle ); - - _file.remoteStorage.OnWrittenNewFile( _file ); - } - - protected override void Dispose( bool disposing ) - { - if ( disposing ) Close(); - base.Dispose( disposing ); - } - } -} diff --git a/Facepunch.Steamworks/Client/RemoteStorage.cs b/Facepunch.Steamworks/Client/RemoteStorage.cs deleted file mode 100644 index 0330afa..0000000 --- a/Facepunch.Steamworks/Client/RemoteStorage.cs +++ /dev/null @@ -1,269 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using SteamNative; - -namespace Facepunch.Steamworks -{ - /// - /// Handles Steam Cloud related actions. - /// - public class RemoteStorage : IDisposable - { - private static string NormalizePath( string path ) - { - // TODO: DUMB HACK ALERT - - return SteamNative.Platform.IsWindows - ? new FileInfo( $"x:/{path}" ).FullName.Substring( 3 ) - : new FileInfo( $"/x/{path}" ).FullName.Substring( 3 ); - } - - internal Client client; - internal SteamNative.SteamRemoteStorage native; - - private bool _filesInvalid = true; - private readonly List _files = new List(); - - internal RemoteStorage( Client c ) - { - client = c; - native = client.native.remoteStorage; - } - - /// - /// True if Steam Cloud is currently enabled by the current user. - /// - public bool IsCloudEnabledForAccount - { - get { return native.IsCloudEnabledForAccount(); } - } - - /// - /// True if Steam Cloud is currently enabled for this app by the current user. - /// - public bool IsCloudEnabledForApp - { - get { return native.IsCloudEnabledForApp(); } - } - - /// - /// Gets the total number of files in the current user's remote storage for the current game. - /// - public int FileCount - { - get { return native.GetFileCount(); } - } - - /// - /// Gets all files in the current user's remote storage for the current game. - /// - public IEnumerable Files - { - get - { - UpdateFiles(); - return _files; - } - } - - /// - /// Creates a new with the given . - /// If a file exists at that path it will be overwritten. - /// - public RemoteFile CreateFile( string path ) - { - path = NormalizePath( path ); - - InvalidateFiles(); - var existing = Files.FirstOrDefault( x => x.FileName == path ); - return existing ?? new RemoteFile( this, path, client.SteamId, 0 ); - } - - /// - /// Opens the file if it exists, else returns null; - /// - public RemoteFile OpenFile( string path ) - { - path = NormalizePath( path ); - - InvalidateFiles(); - var existing = Files.FirstOrDefault( x => x.FileName == path ); - return existing; - } - - /// - /// Opens a previously shared - /// with the given . - /// - public RemoteFile OpenSharedFile( ulong sharingId ) - { - return new RemoteFile( this, sharingId ); - } - - /// - /// Write all text to the file at the specified path. This - /// overwrites the contents - it does not append. - /// - public bool WriteString( string path, string text, Encoding encoding = null ) - { - var file = CreateFile( path ); - file.WriteAllText( text, encoding ); - return file.Exists; - } - - /// - /// Write all data to the file at the specified path. This - /// overwrites the contents - it does not append. - /// - public bool WriteBytes( string path, byte[] data ) - { - var file = CreateFile( path ); - file.WriteAllBytes( data ); - return file.Exists; - } - - /// - /// Read the entire contents of the file as a string. - /// Returns null if the file isn't found. - /// - public string ReadString( string path, Encoding encoding = null ) - { - var file = OpenFile( path ); - if ( file == null ) return null; - return file.ReadAllText( encoding ); - } - - /// - /// Read the entire contents of the file as raw data. - /// Returns null if the file isn't found. - /// - public byte[] ReadBytes( string path ) - { - var file = OpenFile( path ); - if ( file == null ) return null; - return file.ReadAllBytes(); - } - - internal void OnWrittenNewFile( RemoteFile file ) - { - if ( _files.Any( x => x.FileName == file.FileName ) ) return; - - _files.Add( file ); - file.Exists = true; - - InvalidateFiles(); - } - - internal void InvalidateFiles() - { - _filesInvalid = true; - } - - private void UpdateFiles() - { - if ( !_filesInvalid ) return; - _filesInvalid = false; - - foreach ( var file in _files ) - { - file.Exists = false; - } - - var count = FileCount; - for ( var i = 0; i < count; ++i ) - { - int size; - var name = NormalizePath( native.GetFileNameAndSize( i, out size ) ); - var timestamp = native.GetFileTimestamp(name); - - var existing = _files.FirstOrDefault( x => x.FileName == name ); - if ( existing == null ) - { - existing = new RemoteFile( this, name, client.SteamId, size, timestamp ); - _files.Add( existing ); - } - else - { - existing.SizeInBytes = size; - existing.FileTimestamp = timestamp; - } - - existing.Exists = true; - } - - for ( var i = _files.Count - 1; i >= 0; --i ) - { - if ( !_files[i].Exists ) _files.RemoveAt( i ); - } - } - - /// - /// Gets whether a file exists in remote storage at the given . - /// - public bool FileExists( string path ) - { - return native.FileExists( path ); - } - - public void Dispose() - { - client = null; - native = null; - } - - /// - /// Number of bytes used out of the user's total quota - /// - public ulong QuotaUsed - { - get - { - ulong totalBytes = 0; - ulong availableBytes = 0; - - if ( !native.GetQuota( out totalBytes, out availableBytes ) ) - return 0; - - return totalBytes - availableBytes; - } - } - - /// - /// Total quota size in bytes - /// - public ulong QuotaTotal - { - get - { - ulong totalBytes = 0; - ulong availableBytes = 0; - - if ( !native.GetQuota( out totalBytes, out availableBytes ) ) - return 0; - - return totalBytes; - } - } - - - /// - /// Number of bytes remaining out of the user's total quota - /// - public ulong QuotaRemaining - { - get - { - ulong totalBytes = 0; - ulong availableBytes = 0; - - if ( !native.GetQuota( out totalBytes, out availableBytes ) ) - return 0; - - return availableBytes; - } - } - } -} diff --git a/Facepunch.Steamworks/Client/Screenshots.cs b/Facepunch.Steamworks/Client/Screenshots.cs deleted file mode 100644 index 32be36c..0000000 --- a/Facepunch.Steamworks/Client/Screenshots.cs +++ /dev/null @@ -1,80 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Facepunch.Steamworks -{ - public partial class Client : IDisposable - { - Screenshots _screenshots; - - public Screenshots Screenshots - { - get - { - if ( _screenshots == null ) - _screenshots = new Screenshots( this ); - - return _screenshots; - } - } - } - - public class Screenshots - { - internal Client client; - - internal Screenshots( Client c ) - { - client = c; - } - - public void Trigger() - { - client.native.screenshots.TriggerScreenshot(); - } - - public unsafe void Write( byte[] rgbData, int width, int height ) - { - if ( rgbData == null ) - { - throw new ArgumentNullException( nameof(rgbData) ); - } - - if ( width < 1 ) - { - throw new ArgumentOutOfRangeException( nameof(width), width, - $"Expected {nameof(width)} to be at least 1." ); - } - - if ( height < 1 ) - { - throw new ArgumentOutOfRangeException( nameof(height), height, - $"Expected {nameof(height)} to be at least 1." ); - } - - var size = width * height * 3; - if ( rgbData.Length < size ) - { - throw new ArgumentException( nameof(rgbData), - $"Expected {nameof(rgbData)} to contain at least {size} elements (actual size: {rgbData.Length})." ); - } - - fixed ( byte* ptr = rgbData ) - { - client.native.screenshots.WriteScreenshot( (IntPtr) ptr, (uint) rgbData.Length, width, height ); - } - } - - public unsafe void AddScreenshotToLibrary( string filename, string thumbnailFilename, int width, int height) - { - client.native.screenshots.AddScreenshotToLibrary(filename, thumbnailFilename, width, height); - } - - public unsafe void AddScreenshotToLibrary( string filename, int width, int height) - { - client.native.screenshots.AddScreenshotToLibrary(filename, null, width, height); - } - } -} diff --git a/Facepunch.Steamworks/Client/ServerList.cs b/Facepunch.Steamworks/Client/ServerList.cs deleted file mode 100644 index ceae9e4..0000000 --- a/Facepunch.Steamworks/Client/ServerList.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.InteropServices; -using System.Text; -using SteamNative; - -namespace Facepunch.Steamworks -{ - public partial class ServerList : IDisposable - { - internal Client client; - - internal ServerList( Client client ) - { - this.client = client; - - UpdateFavouriteList(); - } - - HashSet FavouriteHash = new HashSet(); - HashSet HistoryHash = new HashSet(); - - internal void UpdateFavouriteList() - { - FavouriteHash.Clear(); - HistoryHash.Clear(); - - for ( int i=0; i< client.native.matchmaking.GetFavoriteGameCount(); i++ ) - { - AppId_t appid = 0; - uint ip; - ushort conPort; - ushort queryPort; - uint lastplayed; - uint flags; - - client.native.matchmaking.GetFavoriteGame( i, ref appid, out ip, out conPort, out queryPort, out flags, out lastplayed ); - - ulong encoded = ip; - encoded = encoded << 32; - encoded = encoded | (uint)conPort; - - // if ( ( flags & Server.k_unFavoriteFlagFavorite ) == Server.k_unFavoriteFlagFavorite ) - // FavouriteHash.Add( encoded ); - - // if ( ( flags & Server.k_unFavoriteFlagFavorite ) == Server.k_unFavoriteFlagFavorite ) - // HistoryHash.Add( encoded ); - } - } - - public void Dispose() - { - client = null; - } - } -} diff --git a/Facepunch.Steamworks/Client/Stats.cs b/Facepunch.Steamworks/Client/Stats.cs deleted file mode 100644 index ba77319..0000000 --- a/Facepunch.Steamworks/Client/Stats.cs +++ /dev/null @@ -1,121 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Facepunch.Steamworks -{ - public class Stats : IDisposable - { - internal Client client; - - internal Stats( Client c ) - { - client = c; - } - - public bool StoreStats() - { - return client.native.userstats.StoreStats(); - } - - public void UpdateStats() - { - client.native.userstats.RequestCurrentStats(); - } - - public void UpdateGlobalStats( int days = 1 ) - { - client.native.userstats.GetNumberOfCurrentPlayers(); - client.native.userstats.RequestGlobalAchievementPercentages(); - client.native.userstats.RequestGlobalStats( days ); - } - - public int GetInt( string name ) - { - int data = 0; - client.native.userstats.GetStat( name, out data ); - return data; - } - - public long GetGlobalInt( string name ) - { - long data = 0; - client.native.userstats.GetGlobalStat( name, out data ); - return data; - } - - public float GetFloat( string name ) - { - float data = 0; - client.native.userstats.GetStat0( name, out data ); - return data; - } - - public double GetGlobalFloat( string name ) - { - double data = 0; - client.native.userstats.GetGlobalStat0( name, out data ); - return data; - } - - /// - /// Set a stat value. This will automatically call StoreStats() after a successful call - /// unless you pass false as the last argument. - /// - public bool Set( string name, int value, bool store = true ) - { - var r = client.native.userstats.SetStat( name, value ); - - if ( store ) - { - return r && client.native.userstats.StoreStats(); - } - - return r; - } - - /// - /// Set a stat value. This will automatically call StoreStats() after a successful call - /// unless you pass false as the last argument. - /// - public bool Set( string name, float value, bool store = true ) - { - var r = client.native.userstats.SetStat0( name, value ); - - if ( store ) - { - return r && client.native.userstats.StoreStats(); - } - - return r; - } - - /// - /// Adds this amount to the named stat. Internally this calls Get() and adds - /// to that value. Steam doesn't provide a mechanism for atomically increasing - /// stats like this, this functionality is added here as a convenience. - /// - public bool Add( string name, int amount = 1, bool store = true ) - { - var val = GetInt( name ); - val += amount; - return Set( name, val, store ); - } - - /// - /// Practically wipes the slate clean for this user. If includeAchievements is true, will wipe - /// any achievements too. - /// - /// - public bool ResetAll( bool includeAchievements ) - { - return client.native.userstats.ResetAllStats( includeAchievements ); - } - - public void Dispose() - { - client = null; - } - } -} diff --git a/Facepunch.Steamworks/Config.cs b/Facepunch.Steamworks/Config.cs index 9c5baa4..910f072 100644 --- a/Facepunch.Steamworks/Config.cs +++ b/Facepunch.Steamworks/Config.cs @@ -1,14 +1,17 @@ using System; -namespace Facepunch.Steamworks +namespace Steamworks { public static class Config { - /// - /// Should be called before creating any interfaces, to configure Steam for Unity. - /// - /// Please pass in Application.platform.ToString() - public static void ForUnity( string platform ) + public static OsType Os { get; set; } + public static bool PackSmall => Os != OsType.Windows; + + /// + /// Should be called before creating any interfaces, to configure Steam for Unity. + /// + /// Please pass in Application.platform.ToString() + public static void ForUnity( string platform ) { // // Windows Config @@ -20,21 +23,21 @@ namespace Facepunch.Steamworks // if (IntPtr.Size == 4) UseThisCall = false; - ForcePlatform( OperatingSystem.Windows ); + Os = OsType.Windows; } if ( platform == "OSXEditor" || platform == "OSXPlayer" || platform == "OSXDashboardPlayer" ) { - ForcePlatform( OperatingSystem.macOS ); + Os = OsType.macOS; } if ( platform == "LinuxPlayer" || platform == "LinuxEditor" ) { - ForcePlatform( OperatingSystem.Linux ); + Os = OsType.Linux; } - Console.WriteLine( "Facepunch.Steamworks Unity: " + platform ); - Console.WriteLine( "Facepunch.Steamworks Os: " + SteamNative.Platform.Os ); + Console.WriteLine( "Steamworks Unity: " + platform ); + Console.WriteLine( "Steamworks Os: " + Os ); } /// @@ -47,17 +50,12 @@ namespace Facepunch.Steamworks /// /// public static bool UseThisCall { get; set; } = true; - - - /// - /// You can force the platform to a particular one here. - /// This is useful if you're on OSX because some versions of mono don't have a way - /// to tell which platform we're running - /// - public static void ForcePlatform( Facepunch.Steamworks.OperatingSystem os ) - { - SteamNative.Platform.Os = os; - } - } + + public enum OsType + { + Windows, + Linux, + macOS, + } } diff --git a/Facepunch.Steamworks/Redux/Friends.cs b/Facepunch.Steamworks/Friends.cs similarity index 92% rename from Facepunch.Steamworks/Redux/Friends.cs rename to Facepunch.Steamworks/Friends.cs index f361f0f..fffe909 100644 --- a/Facepunch.Steamworks/Redux/Friends.cs +++ b/Facepunch.Steamworks/Friends.cs @@ -3,8 +3,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using Facepunch.Steamworks; -using SteamNative; namespace Steamworks { @@ -76,7 +74,7 @@ namespace Steamworks /// Called when the user tries to join a lobby from their friends list /// game client should attempt to connect to specified lobby when this is received /// - public static event Action OnGameLobbyJoinRequested; + public static event Action OnGameLobbyJoinRequested; /// /// Callback indicating updated data about friends rich presence information @@ -164,7 +162,7 @@ namespace Steamworks /// "friendrequestaccept" - Opens the overlay in minimal mode prompting the user to accept an incoming friend invite. /// "friendrequestignore" - Opens the overlay in minimal mode prompting the user to ignore an incoming friend invite. /// - public static void OpenUserOverlay( CSteamID id, string type ) => Internal.ActivateGameOverlayToUser( type, id ); + public static void OpenUserOverlay( SteamId id, string type ) => Internal.ActivateGameOverlayToUser( type, id ); /// /// Activates the Steam Overlay to the Steam store page for the provided app. @@ -179,15 +177,15 @@ namespace Steamworks /// /// Activates the Steam Overlay to open the invite dialog. Invitations sent from this dialog will be for the provided lobby. /// - public static void OpenGameInviteOverlay( CSteamID lobby ) => Internal.ActivateGameOverlayInviteDialog( lobby ); + public static void OpenGameInviteOverlay( SteamId lobby ) => Internal.ActivateGameOverlayInviteDialog( lobby ); /// /// Mark a target user as 'played with'. /// NOTE: The current user must be in game with the other player for the association to work. /// - public static void SetPlayedWith( CSteamID steamid ) => Internal.SetPlayedWith( steamid ); + public static void SetPlayedWith( SteamId steamid ) => Internal.SetPlayedWith( steamid ); - static async Task CacheUserInformationAsync( CSteamID steamid, bool nameonly ) + static async Task CacheUserInformationAsync( SteamId steamid, bool nameonly ) { // Got it straight away, skip any waiting. if ( !Internal.RequestUserInformation( steamid, nameonly ) ) @@ -206,19 +204,19 @@ namespace Steamworks await Task.Delay( 500 ); } - public static async Task GetSmallAvatarAsync( CSteamID steamid ) + public static async Task GetSmallAvatarAsync( SteamId steamid ) { await CacheUserInformationAsync( steamid, false ); return Utils.GetImage( Internal.GetSmallFriendAvatar( steamid ) ); } - public static async Task GetMediumAvatarAsync( CSteamID steamid ) + public static async Task GetMediumAvatarAsync( SteamId steamid ) { await CacheUserInformationAsync( steamid, false ); return Utils.GetImage( Internal.GetMediumFriendAvatar( steamid ) ); } - public static async Task GetLargeAvatarAsync( CSteamID steamid ) + public static async Task GetLargeAvatarAsync( SteamId steamid ) { await CacheUserInformationAsync( steamid, false ); diff --git a/Facepunch.Steamworks/Redux/GameServer.cs b/Facepunch.Steamworks/GameServer.cs similarity index 98% rename from Facepunch.Steamworks/Redux/GameServer.cs rename to Facepunch.Steamworks/GameServer.cs index 8aafa69..7c51552 100644 --- a/Facepunch.Steamworks/Redux/GameServer.cs +++ b/Facepunch.Steamworks/GameServer.cs @@ -4,7 +4,6 @@ using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using Facepunch.Steamworks; -using SteamNative; namespace Steamworks { @@ -37,7 +36,7 @@ namespace Steamworks /// /// User has been authed or rejected /// - public static event Action OnValidateAuthTicketResponse; + public static event Action OnValidateAuthTicketResponse; public static void Init( AppId appid, ServerInit init ) { @@ -308,7 +307,7 @@ namespace Steamworks { var result = Internal.BeginAuthSession( (IntPtr)p, data.Length, steamid ); - if ( result == SteamNative.BeginAuthSessionResult.OK ) + if ( result == BeginAuthSessionResult.OK ) return true; return false; diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamApps.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamApps.cs index deef74c..83adb12 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamApps.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamApps.cs @@ -2,7 +2,6 @@ using System; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks.Internal @@ -280,13 +279,13 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void GetAppOwnerDelegate( IntPtr self, ref CSteamID retVal ); + public delegate void GetAppOwnerDelegate( IntPtr self, ref SteamId retVal ); private GetAppOwnerDelegate GetAppOwnerDelegatePointer; #endregion - public CSteamID GetAppOwner() + public SteamId GetAppOwner() { - var retVal = default( CSteamID ); + var retVal = default( SteamId ); GetAppOwnerDelegatePointer( Self, ref retVal ); return retVal; } diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamFriends.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamFriends.cs index cf5c815..afd6daf 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamFriends.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamFriends.cs @@ -2,7 +2,6 @@ using System; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks.Internal @@ -138,46 +137,46 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void GetFriendByIndexDelegate( IntPtr self, ref CSteamID retVal, int iFriend, int iFriendFlags ); + public delegate void GetFriendByIndexDelegate( IntPtr self, ref SteamId retVal, int iFriend, int iFriendFlags ); private GetFriendByIndexDelegate GetFriendByIndexDelegatePointer; #endregion - public CSteamID GetFriendByIndex( int iFriend, int iFriendFlags ) + public SteamId GetFriendByIndex( int iFriend, int iFriendFlags ) { - var retVal = default( CSteamID ); + var retVal = default( SteamId ); GetFriendByIndexDelegatePointer( Self, ref retVal, iFriend, iFriendFlags ); return retVal; } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate FriendRelationship GetFriendRelationshipDelegate( IntPtr self, CSteamID steamIDFriend ); + public delegate FriendRelationship GetFriendRelationshipDelegate( IntPtr self, SteamId steamIDFriend ); private GetFriendRelationshipDelegate GetFriendRelationshipDelegatePointer; #endregion - public FriendRelationship GetFriendRelationship( CSteamID steamIDFriend ) + public FriendRelationship GetFriendRelationship( SteamId steamIDFriend ) { return GetFriendRelationshipDelegatePointer( Self, steamIDFriend ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate PersonaState GetFriendPersonaStateDelegate( IntPtr self, CSteamID steamIDFriend ); + public delegate PersonaState GetFriendPersonaStateDelegate( IntPtr self, SteamId steamIDFriend ); private GetFriendPersonaStateDelegate GetFriendPersonaStateDelegatePointer; #endregion - public PersonaState GetFriendPersonaState( CSteamID steamIDFriend ) + public PersonaState GetFriendPersonaState( SteamId steamIDFriend ) { return GetFriendPersonaStateDelegatePointer( Self, steamIDFriend ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate IntPtr GetFriendPersonaNameDelegate( IntPtr self, CSteamID steamIDFriend ); + public delegate IntPtr GetFriendPersonaNameDelegate( IntPtr self, SteamId steamIDFriend ); private GetFriendPersonaNameDelegate GetFriendPersonaNameDelegatePointer; #endregion - public string GetFriendPersonaName( CSteamID steamIDFriend ) + public string GetFriendPersonaName( SteamId steamIDFriend ) { return GetString( GetFriendPersonaNameDelegatePointer( Self, steamIDFriend ) ); } @@ -185,44 +184,44 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool GetFriendGamePlayedDelegate( IntPtr self, CSteamID steamIDFriend, ref FriendGameInfo_t pFriendGameInfo ); + public delegate bool GetFriendGamePlayedDelegate( IntPtr self, SteamId steamIDFriend, ref FriendGameInfo_t pFriendGameInfo ); private GetFriendGamePlayedDelegate GetFriendGamePlayedDelegatePointer; #endregion - public bool GetFriendGamePlayed( CSteamID steamIDFriend, ref FriendGameInfo_t pFriendGameInfo ) + public bool GetFriendGamePlayed( SteamId steamIDFriend, ref FriendGameInfo_t pFriendGameInfo ) { return GetFriendGamePlayedDelegatePointer( Self, steamIDFriend, ref pFriendGameInfo ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate IntPtr GetFriendPersonaNameHistoryDelegate( IntPtr self, CSteamID steamIDFriend, int iPersonaName ); + public delegate IntPtr GetFriendPersonaNameHistoryDelegate( IntPtr self, SteamId steamIDFriend, int iPersonaName ); private GetFriendPersonaNameHistoryDelegate GetFriendPersonaNameHistoryDelegatePointer; #endregion - public string GetFriendPersonaNameHistory( CSteamID steamIDFriend, int iPersonaName ) + public string GetFriendPersonaNameHistory( SteamId steamIDFriend, int iPersonaName ) { return GetString( GetFriendPersonaNameHistoryDelegatePointer( Self, steamIDFriend, iPersonaName ) ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate int GetFriendSteamLevelDelegate( IntPtr self, CSteamID steamIDFriend ); + public delegate int GetFriendSteamLevelDelegate( IntPtr self, SteamId steamIDFriend ); private GetFriendSteamLevelDelegate GetFriendSteamLevelDelegatePointer; #endregion - public int GetFriendSteamLevel( CSteamID steamIDFriend ) + public int GetFriendSteamLevel( SteamId steamIDFriend ) { return GetFriendSteamLevelDelegatePointer( Self, steamIDFriend ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate IntPtr GetPlayerNicknameDelegate( IntPtr self, CSteamID steamIDPlayer ); + public delegate IntPtr GetPlayerNicknameDelegate( IntPtr self, SteamId steamIDPlayer ); private GetPlayerNicknameDelegate GetPlayerNicknameDelegatePointer; #endregion - public string GetPlayerNickname( CSteamID steamIDPlayer ) + public string GetPlayerNickname( SteamId steamIDPlayer ) { return GetString( GetPlayerNicknameDelegatePointer( Self, steamIDPlayer ) ); } @@ -273,11 +272,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void GetFriendsGroupMembersListDelegate( IntPtr self, FriendsGroupID_t friendsGroupID, [In,Out] CSteamID[] pOutSteamIDMembers, int nMembersCount ); + public delegate void GetFriendsGroupMembersListDelegate( IntPtr self, FriendsGroupID_t friendsGroupID, [In,Out] SteamId[] pOutSteamIDMembers, int nMembersCount ); private GetFriendsGroupMembersListDelegate GetFriendsGroupMembersListDelegatePointer; #endregion - public void GetFriendsGroupMembersList( FriendsGroupID_t friendsGroupID, [In,Out] CSteamID[] pOutSteamIDMembers, int nMembersCount ) + public void GetFriendsGroupMembersList( FriendsGroupID_t friendsGroupID, [In,Out] SteamId[] pOutSteamIDMembers, int nMembersCount ) { GetFriendsGroupMembersListDelegatePointer( Self, friendsGroupID, pOutSteamIDMembers, nMembersCount ); } @@ -285,11 +284,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool HasFriendDelegate( IntPtr self, CSteamID steamIDFriend, int iFriendFlags ); + public delegate bool HasFriendDelegate( IntPtr self, SteamId steamIDFriend, int iFriendFlags ); private HasFriendDelegate HasFriendDelegatePointer; #endregion - public bool HasFriend( CSteamID steamIDFriend, int iFriendFlags ) + public bool HasFriend( SteamId steamIDFriend, int iFriendFlags ) { return HasFriendDelegatePointer( Self, steamIDFriend, iFriendFlags ); } @@ -307,35 +306,35 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void GetClanByIndexDelegate( IntPtr self, ref CSteamID retVal, int iClan ); + public delegate void GetClanByIndexDelegate( IntPtr self, ref SteamId retVal, int iClan ); private GetClanByIndexDelegate GetClanByIndexDelegatePointer; #endregion - public CSteamID GetClanByIndex( int iClan ) + public SteamId GetClanByIndex( int iClan ) { - var retVal = default( CSteamID ); + var retVal = default( SteamId ); GetClanByIndexDelegatePointer( Self, ref retVal, iClan ); return retVal; } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate IntPtr GetClanNameDelegate( IntPtr self, CSteamID steamIDClan ); + public delegate IntPtr GetClanNameDelegate( IntPtr self, SteamId steamIDClan ); private GetClanNameDelegate GetClanNameDelegatePointer; #endregion - public string GetClanName( CSteamID steamIDClan ) + public string GetClanName( SteamId steamIDClan ) { return GetString( GetClanNameDelegatePointer( Self, steamIDClan ) ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate IntPtr GetClanTagDelegate( IntPtr self, CSteamID steamIDClan ); + public delegate IntPtr GetClanTagDelegate( IntPtr self, SteamId steamIDClan ); private GetClanTagDelegate GetClanTagDelegatePointer; #endregion - public string GetClanTag( CSteamID steamIDClan ) + public string GetClanTag( SteamId steamIDClan ) { return GetString( GetClanTagDelegatePointer( Self, steamIDClan ) ); } @@ -343,46 +342,46 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool GetClanActivityCountsDelegate( IntPtr self, CSteamID steamIDClan, ref int pnOnline, ref int pnInGame, ref int pnChatting ); + public delegate bool GetClanActivityCountsDelegate( IntPtr self, SteamId steamIDClan, ref int pnOnline, ref int pnInGame, ref int pnChatting ); private GetClanActivityCountsDelegate GetClanActivityCountsDelegatePointer; #endregion - public bool GetClanActivityCounts( CSteamID steamIDClan, ref int pnOnline, ref int pnInGame, ref int pnChatting ) + public bool GetClanActivityCounts( SteamId steamIDClan, ref int pnOnline, ref int pnInGame, ref int pnChatting ) { return GetClanActivityCountsDelegatePointer( Self, steamIDClan, ref pnOnline, ref pnInGame, ref pnChatting ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate SteamAPICall_t DownloadClanActivityCountsDelegate( IntPtr self, [In,Out] CSteamID[] psteamIDClans, int cClansToRequest ); + public delegate SteamAPICall_t DownloadClanActivityCountsDelegate( IntPtr self, [In,Out] SteamId[] psteamIDClans, int cClansToRequest ); private DownloadClanActivityCountsDelegate DownloadClanActivityCountsDelegatePointer; #endregion - public async Task DownloadClanActivityCounts( [In,Out] CSteamID[] psteamIDClans, int cClansToRequest ) + public async Task DownloadClanActivityCounts( [In,Out] SteamId[] psteamIDClans, int cClansToRequest ) { return await (new Result( DownloadClanActivityCountsDelegatePointer( Self, psteamIDClans, cClansToRequest ) )).GetResult(); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate int GetFriendCountFromSourceDelegate( IntPtr self, CSteamID steamIDSource ); + public delegate int GetFriendCountFromSourceDelegate( IntPtr self, SteamId steamIDSource ); private GetFriendCountFromSourceDelegate GetFriendCountFromSourceDelegatePointer; #endregion - public int GetFriendCountFromSource( CSteamID steamIDSource ) + public int GetFriendCountFromSource( SteamId steamIDSource ) { return GetFriendCountFromSourceDelegatePointer( Self, steamIDSource ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void GetFriendFromSourceByIndexDelegate( IntPtr self, ref CSteamID retVal, CSteamID steamIDSource, int iFriend ); + public delegate void GetFriendFromSourceByIndexDelegate( IntPtr self, ref SteamId retVal, SteamId steamIDSource, int iFriend ); private GetFriendFromSourceByIndexDelegate GetFriendFromSourceByIndexDelegatePointer; #endregion - public CSteamID GetFriendFromSourceByIndex( CSteamID steamIDSource, int iFriend ) + public SteamId GetFriendFromSourceByIndex( SteamId steamIDSource, int iFriend ) { - var retVal = default( CSteamID ); + var retVal = default( SteamId ); GetFriendFromSourceByIndexDelegatePointer( Self, ref retVal, steamIDSource, iFriend ); return retVal; } @@ -390,22 +389,22 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool IsUserInSourceDelegate( IntPtr self, CSteamID steamIDUser, CSteamID steamIDSource ); + public delegate bool IsUserInSourceDelegate( IntPtr self, SteamId steamIDUser, SteamId steamIDSource ); private IsUserInSourceDelegate IsUserInSourceDelegatePointer; #endregion - public bool IsUserInSource( CSteamID steamIDUser, CSteamID steamIDSource ) + public bool IsUserInSource( SteamId steamIDUser, SteamId steamIDSource ) { return IsUserInSourceDelegatePointer( Self, steamIDUser, steamIDSource ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void SetInGameVoiceSpeakingDelegate( IntPtr self, CSteamID steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bSpeaking ); + public delegate void SetInGameVoiceSpeakingDelegate( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bSpeaking ); private SetInGameVoiceSpeakingDelegate SetInGameVoiceSpeakingDelegatePointer; #endregion - public void SetInGameVoiceSpeaking( CSteamID steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bSpeaking ) + public void SetInGameVoiceSpeaking( SteamId steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bSpeaking ) { SetInGameVoiceSpeakingDelegatePointer( Self, steamIDUser, bSpeaking ); } @@ -423,11 +422,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void ActivateGameOverlayToUserDelegate( IntPtr self, string pchDialog, CSteamID steamID ); + public delegate void ActivateGameOverlayToUserDelegate( IntPtr self, string pchDialog, SteamId steamID ); private ActivateGameOverlayToUserDelegate ActivateGameOverlayToUserDelegatePointer; #endregion - public void ActivateGameOverlayToUser( string pchDialog, CSteamID steamID ) + public void ActivateGameOverlayToUser( string pchDialog, SteamId steamID ) { ActivateGameOverlayToUserDelegatePointer( Self, pchDialog, steamID ); } @@ -456,55 +455,55 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void SetPlayedWithDelegate( IntPtr self, CSteamID steamIDUserPlayedWith ); + public delegate void SetPlayedWithDelegate( IntPtr self, SteamId steamIDUserPlayedWith ); private SetPlayedWithDelegate SetPlayedWithDelegatePointer; #endregion - public void SetPlayedWith( CSteamID steamIDUserPlayedWith ) + public void SetPlayedWith( SteamId steamIDUserPlayedWith ) { SetPlayedWithDelegatePointer( Self, steamIDUserPlayedWith ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void ActivateGameOverlayInviteDialogDelegate( IntPtr self, CSteamID steamIDLobby ); + public delegate void ActivateGameOverlayInviteDialogDelegate( IntPtr self, SteamId steamIDLobby ); private ActivateGameOverlayInviteDialogDelegate ActivateGameOverlayInviteDialogDelegatePointer; #endregion - public void ActivateGameOverlayInviteDialog( CSteamID steamIDLobby ) + public void ActivateGameOverlayInviteDialog( SteamId steamIDLobby ) { ActivateGameOverlayInviteDialogDelegatePointer( Self, steamIDLobby ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate int GetSmallFriendAvatarDelegate( IntPtr self, CSteamID steamIDFriend ); + public delegate int GetSmallFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend ); private GetSmallFriendAvatarDelegate GetSmallFriendAvatarDelegatePointer; #endregion - public int GetSmallFriendAvatar( CSteamID steamIDFriend ) + public int GetSmallFriendAvatar( SteamId steamIDFriend ) { return GetSmallFriendAvatarDelegatePointer( Self, steamIDFriend ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate int GetMediumFriendAvatarDelegate( IntPtr self, CSteamID steamIDFriend ); + public delegate int GetMediumFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend ); private GetMediumFriendAvatarDelegate GetMediumFriendAvatarDelegatePointer; #endregion - public int GetMediumFriendAvatar( CSteamID steamIDFriend ) + public int GetMediumFriendAvatar( SteamId steamIDFriend ) { return GetMediumFriendAvatarDelegatePointer( Self, steamIDFriend ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate int GetLargeFriendAvatarDelegate( IntPtr self, CSteamID steamIDFriend ); + public delegate int GetLargeFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend ); private GetLargeFriendAvatarDelegate GetLargeFriendAvatarDelegatePointer; #endregion - public int GetLargeFriendAvatar( CSteamID steamIDFriend ) + public int GetLargeFriendAvatar( SteamId steamIDFriend ) { return GetLargeFriendAvatarDelegatePointer( Self, steamIDFriend ); } @@ -512,59 +511,59 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool RequestUserInformationDelegate( IntPtr self, CSteamID steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bRequireNameOnly ); + public delegate bool RequestUserInformationDelegate( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bRequireNameOnly ); private RequestUserInformationDelegate RequestUserInformationDelegatePointer; #endregion - public bool RequestUserInformation( CSteamID steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bRequireNameOnly ) + public bool RequestUserInformation( SteamId steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bRequireNameOnly ) { return RequestUserInformationDelegatePointer( Self, steamIDUser, bRequireNameOnly ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate SteamAPICall_t RequestClanOfficerListDelegate( IntPtr self, CSteamID steamIDClan ); + public delegate SteamAPICall_t RequestClanOfficerListDelegate( IntPtr self, SteamId steamIDClan ); private RequestClanOfficerListDelegate RequestClanOfficerListDelegatePointer; #endregion - public async Task RequestClanOfficerList( CSteamID steamIDClan ) + public async Task RequestClanOfficerList( SteamId steamIDClan ) { return await (new Result( RequestClanOfficerListDelegatePointer( Self, steamIDClan ) )).GetResult(); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void GetClanOwnerDelegate( IntPtr self, ref CSteamID retVal, CSteamID steamIDClan ); + public delegate void GetClanOwnerDelegate( IntPtr self, ref SteamId retVal, SteamId steamIDClan ); private GetClanOwnerDelegate GetClanOwnerDelegatePointer; #endregion - public CSteamID GetClanOwner( CSteamID steamIDClan ) + public SteamId GetClanOwner( SteamId steamIDClan ) { - var retVal = default( CSteamID ); + var retVal = default( SteamId ); GetClanOwnerDelegatePointer( Self, ref retVal, steamIDClan ); return retVal; } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate int GetClanOfficerCountDelegate( IntPtr self, CSteamID steamIDClan ); + public delegate int GetClanOfficerCountDelegate( IntPtr self, SteamId steamIDClan ); private GetClanOfficerCountDelegate GetClanOfficerCountDelegatePointer; #endregion - public int GetClanOfficerCount( CSteamID steamIDClan ) + public int GetClanOfficerCount( SteamId steamIDClan ) { return GetClanOfficerCountDelegatePointer( Self, steamIDClan ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void GetClanOfficerByIndexDelegate( IntPtr self, ref CSteamID retVal, CSteamID steamIDClan, int iOfficer ); + public delegate void GetClanOfficerByIndexDelegate( IntPtr self, ref SteamId retVal, SteamId steamIDClan, int iOfficer ); private GetClanOfficerByIndexDelegate GetClanOfficerByIndexDelegatePointer; #endregion - public CSteamID GetClanOfficerByIndex( CSteamID steamIDClan, int iOfficer ) + public SteamId GetClanOfficerByIndex( SteamId steamIDClan, int iOfficer ) { - var retVal = default( CSteamID ); + var retVal = default( SteamId ); GetClanOfficerByIndexDelegatePointer( Self, ref retVal, steamIDClan, iOfficer ); return retVal; } @@ -605,44 +604,44 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate IntPtr GetFriendRichPresenceDelegate( IntPtr self, CSteamID steamIDFriend, string pchKey ); + public delegate IntPtr GetFriendRichPresenceDelegate( IntPtr self, SteamId steamIDFriend, string pchKey ); private GetFriendRichPresenceDelegate GetFriendRichPresenceDelegatePointer; #endregion - public string GetFriendRichPresence( CSteamID steamIDFriend, string pchKey ) + public string GetFriendRichPresence( SteamId steamIDFriend, string pchKey ) { return GetString( GetFriendRichPresenceDelegatePointer( Self, steamIDFriend, pchKey ) ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate int GetFriendRichPresenceKeyCountDelegate( IntPtr self, CSteamID steamIDFriend ); + public delegate int GetFriendRichPresenceKeyCountDelegate( IntPtr self, SteamId steamIDFriend ); private GetFriendRichPresenceKeyCountDelegate GetFriendRichPresenceKeyCountDelegatePointer; #endregion - public int GetFriendRichPresenceKeyCount( CSteamID steamIDFriend ) + public int GetFriendRichPresenceKeyCount( SteamId steamIDFriend ) { return GetFriendRichPresenceKeyCountDelegatePointer( Self, steamIDFriend ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate IntPtr GetFriendRichPresenceKeyByIndexDelegate( IntPtr self, CSteamID steamIDFriend, int iKey ); + public delegate IntPtr GetFriendRichPresenceKeyByIndexDelegate( IntPtr self, SteamId steamIDFriend, int iKey ); private GetFriendRichPresenceKeyByIndexDelegate GetFriendRichPresenceKeyByIndexDelegatePointer; #endregion - public string GetFriendRichPresenceKeyByIndex( CSteamID steamIDFriend, int iKey ) + public string GetFriendRichPresenceKeyByIndex( SteamId steamIDFriend, int iKey ) { return GetString( GetFriendRichPresenceKeyByIndexDelegatePointer( Self, steamIDFriend, iKey ) ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void RequestFriendRichPresenceDelegate( IntPtr self, CSteamID steamIDFriend ); + public delegate void RequestFriendRichPresenceDelegate( IntPtr self, SteamId steamIDFriend ); private RequestFriendRichPresenceDelegate RequestFriendRichPresenceDelegatePointer; #endregion - public void RequestFriendRichPresence( CSteamID steamIDFriend ) + public void RequestFriendRichPresence( SteamId steamIDFriend ) { RequestFriendRichPresenceDelegatePointer( Self, steamIDFriend ); } @@ -650,11 +649,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool InviteUserToGameDelegate( IntPtr self, CSteamID steamIDFriend, string pchConnectString ); + public delegate bool InviteUserToGameDelegate( IntPtr self, SteamId steamIDFriend, string pchConnectString ); private InviteUserToGameDelegate InviteUserToGameDelegatePointer; #endregion - public bool InviteUserToGame( CSteamID steamIDFriend, string pchConnectString ) + public bool InviteUserToGame( SteamId steamIDFriend, string pchConnectString ) { return InviteUserToGameDelegatePointer( Self, steamIDFriend, pchConnectString ); } @@ -672,46 +671,46 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void GetCoplayFriendDelegate( IntPtr self, ref CSteamID retVal, int iCoplayFriend ); + public delegate void GetCoplayFriendDelegate( IntPtr self, ref SteamId retVal, int iCoplayFriend ); private GetCoplayFriendDelegate GetCoplayFriendDelegatePointer; #endregion - public CSteamID GetCoplayFriend( int iCoplayFriend ) + public SteamId GetCoplayFriend( int iCoplayFriend ) { - var retVal = default( CSteamID ); + var retVal = default( SteamId ); GetCoplayFriendDelegatePointer( Self, ref retVal, iCoplayFriend ); return retVal; } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate int GetFriendCoplayTimeDelegate( IntPtr self, CSteamID steamIDFriend ); + public delegate int GetFriendCoplayTimeDelegate( IntPtr self, SteamId steamIDFriend ); private GetFriendCoplayTimeDelegate GetFriendCoplayTimeDelegatePointer; #endregion - public int GetFriendCoplayTime( CSteamID steamIDFriend ) + public int GetFriendCoplayTime( SteamId steamIDFriend ) { return GetFriendCoplayTimeDelegatePointer( Self, steamIDFriend ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate AppId_t GetFriendCoplayGameDelegate( IntPtr self, CSteamID steamIDFriend ); + public delegate AppId_t GetFriendCoplayGameDelegate( IntPtr self, SteamId steamIDFriend ); private GetFriendCoplayGameDelegate GetFriendCoplayGameDelegatePointer; #endregion - public AppId_t GetFriendCoplayGame( CSteamID steamIDFriend ) + public AppId_t GetFriendCoplayGame( SteamId steamIDFriend ) { return GetFriendCoplayGameDelegatePointer( Self, steamIDFriend ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate SteamAPICall_t JoinClanChatRoomDelegate( IntPtr self, CSteamID steamIDClan ); + public delegate SteamAPICall_t JoinClanChatRoomDelegate( IntPtr self, SteamId steamIDClan ); private JoinClanChatRoomDelegate JoinClanChatRoomDelegatePointer; #endregion - public async Task JoinClanChatRoom( CSteamID steamIDClan ) + public async Task JoinClanChatRoom( SteamId steamIDClan ) { return await (new Result( JoinClanChatRoomDelegatePointer( Self, steamIDClan ) )).GetResult(); } @@ -719,35 +718,35 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool LeaveClanChatRoomDelegate( IntPtr self, CSteamID steamIDClan ); + public delegate bool LeaveClanChatRoomDelegate( IntPtr self, SteamId steamIDClan ); private LeaveClanChatRoomDelegate LeaveClanChatRoomDelegatePointer; #endregion - public bool LeaveClanChatRoom( CSteamID steamIDClan ) + public bool LeaveClanChatRoom( SteamId steamIDClan ) { return LeaveClanChatRoomDelegatePointer( Self, steamIDClan ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate int GetClanChatMemberCountDelegate( IntPtr self, CSteamID steamIDClan ); + public delegate int GetClanChatMemberCountDelegate( IntPtr self, SteamId steamIDClan ); private GetClanChatMemberCountDelegate GetClanChatMemberCountDelegatePointer; #endregion - public int GetClanChatMemberCount( CSteamID steamIDClan ) + public int GetClanChatMemberCount( SteamId steamIDClan ) { return GetClanChatMemberCountDelegatePointer( Self, steamIDClan ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void GetChatMemberByIndexDelegate( IntPtr self, ref CSteamID retVal, CSteamID steamIDClan, int iUser ); + public delegate void GetChatMemberByIndexDelegate( IntPtr self, ref SteamId retVal, SteamId steamIDClan, int iUser ); private GetChatMemberByIndexDelegate GetChatMemberByIndexDelegatePointer; #endregion - public CSteamID GetChatMemberByIndex( CSteamID steamIDClan, int iUser ) + public SteamId GetChatMemberByIndex( SteamId steamIDClan, int iUser ) { - var retVal = default( CSteamID ); + var retVal = default( SteamId ); GetChatMemberByIndexDelegatePointer( Self, ref retVal, steamIDClan, iUser ); return retVal; } @@ -755,22 +754,22 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool SendClanChatMessageDelegate( IntPtr self, CSteamID steamIDClanChat, string pchText ); + public delegate bool SendClanChatMessageDelegate( IntPtr self, SteamId steamIDClanChat, string pchText ); private SendClanChatMessageDelegate SendClanChatMessageDelegatePointer; #endregion - public bool SendClanChatMessage( CSteamID steamIDClanChat, string pchText ) + public bool SendClanChatMessage( SteamId steamIDClanChat, string pchText ) { return SendClanChatMessageDelegatePointer( Self, steamIDClanChat, pchText ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate int GetClanChatMessageDelegate( IntPtr self, CSteamID steamIDClanChat, int iMessage, IntPtr prgchText, int cchTextMax, ref ChatEntryType peChatEntryType, ref CSteamID psteamidChatter ); + public delegate int GetClanChatMessageDelegate( IntPtr self, SteamId steamIDClanChat, int iMessage, IntPtr prgchText, int cchTextMax, ref ChatEntryType peChatEntryType, ref SteamId psteamidChatter ); private GetClanChatMessageDelegate GetClanChatMessageDelegatePointer; #endregion - public int GetClanChatMessage( CSteamID steamIDClanChat, int iMessage, IntPtr prgchText, int cchTextMax, ref ChatEntryType peChatEntryType, ref CSteamID psteamidChatter ) + public int GetClanChatMessage( SteamId steamIDClanChat, int iMessage, IntPtr prgchText, int cchTextMax, ref ChatEntryType peChatEntryType, ref SteamId psteamidChatter ) { return GetClanChatMessageDelegatePointer( Self, steamIDClanChat, iMessage, prgchText, cchTextMax, ref peChatEntryType, ref psteamidChatter ); } @@ -778,11 +777,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool IsClanChatAdminDelegate( IntPtr self, CSteamID steamIDClanChat, CSteamID steamIDUser ); + public delegate bool IsClanChatAdminDelegate( IntPtr self, SteamId steamIDClanChat, SteamId steamIDUser ); private IsClanChatAdminDelegate IsClanChatAdminDelegatePointer; #endregion - public bool IsClanChatAdmin( CSteamID steamIDClanChat, CSteamID steamIDUser ) + public bool IsClanChatAdmin( SteamId steamIDClanChat, SteamId steamIDUser ) { return IsClanChatAdminDelegatePointer( Self, steamIDClanChat, steamIDUser ); } @@ -790,11 +789,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool IsClanChatWindowOpenInSteamDelegate( IntPtr self, CSteamID steamIDClanChat ); + public delegate bool IsClanChatWindowOpenInSteamDelegate( IntPtr self, SteamId steamIDClanChat ); private IsClanChatWindowOpenInSteamDelegate IsClanChatWindowOpenInSteamDelegatePointer; #endregion - public bool IsClanChatWindowOpenInSteam( CSteamID steamIDClanChat ) + public bool IsClanChatWindowOpenInSteam( SteamId steamIDClanChat ) { return IsClanChatWindowOpenInSteamDelegatePointer( Self, steamIDClanChat ); } @@ -802,11 +801,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool OpenClanChatWindowInSteamDelegate( IntPtr self, CSteamID steamIDClanChat ); + public delegate bool OpenClanChatWindowInSteamDelegate( IntPtr self, SteamId steamIDClanChat ); private OpenClanChatWindowInSteamDelegate OpenClanChatWindowInSteamDelegatePointer; #endregion - public bool OpenClanChatWindowInSteam( CSteamID steamIDClanChat ) + public bool OpenClanChatWindowInSteam( SteamId steamIDClanChat ) { return OpenClanChatWindowInSteamDelegatePointer( Self, steamIDClanChat ); } @@ -814,11 +813,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool CloseClanChatWindowInSteamDelegate( IntPtr self, CSteamID steamIDClanChat ); + public delegate bool CloseClanChatWindowInSteamDelegate( IntPtr self, SteamId steamIDClanChat ); private CloseClanChatWindowInSteamDelegate CloseClanChatWindowInSteamDelegatePointer; #endregion - public bool CloseClanChatWindowInSteam( CSteamID steamIDClanChat ) + public bool CloseClanChatWindowInSteam( SteamId steamIDClanChat ) { return CloseClanChatWindowInSteamDelegatePointer( Self, steamIDClanChat ); } @@ -838,44 +837,44 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool ReplyToFriendMessageDelegate( IntPtr self, CSteamID steamIDFriend, string pchMsgToSend ); + public delegate bool ReplyToFriendMessageDelegate( IntPtr self, SteamId steamIDFriend, string pchMsgToSend ); private ReplyToFriendMessageDelegate ReplyToFriendMessageDelegatePointer; #endregion - public bool ReplyToFriendMessage( CSteamID steamIDFriend, string pchMsgToSend ) + public bool ReplyToFriendMessage( SteamId steamIDFriend, string pchMsgToSend ) { return ReplyToFriendMessageDelegatePointer( Self, steamIDFriend, pchMsgToSend ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate int GetFriendMessageDelegate( IntPtr self, CSteamID steamIDFriend, int iMessageID, IntPtr pvData, int cubData, ref ChatEntryType peChatEntryType ); + public delegate int GetFriendMessageDelegate( IntPtr self, SteamId steamIDFriend, int iMessageID, IntPtr pvData, int cubData, ref ChatEntryType peChatEntryType ); private GetFriendMessageDelegate GetFriendMessageDelegatePointer; #endregion - public int GetFriendMessage( CSteamID steamIDFriend, int iMessageID, IntPtr pvData, int cubData, ref ChatEntryType peChatEntryType ) + public int GetFriendMessage( SteamId steamIDFriend, int iMessageID, IntPtr pvData, int cubData, ref ChatEntryType peChatEntryType ) { return GetFriendMessageDelegatePointer( Self, steamIDFriend, iMessageID, pvData, cubData, ref peChatEntryType ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate SteamAPICall_t GetFollowerCountDelegate( IntPtr self, CSteamID steamID ); + public delegate SteamAPICall_t GetFollowerCountDelegate( IntPtr self, SteamId steamID ); private GetFollowerCountDelegate GetFollowerCountDelegatePointer; #endregion - public async Task GetFollowerCount( CSteamID steamID ) + public async Task GetFollowerCount( SteamId steamID ) { return await (new Result( GetFollowerCountDelegatePointer( Self, steamID ) )).GetResult(); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate SteamAPICall_t IsFollowingDelegate( IntPtr self, CSteamID steamID ); + public delegate SteamAPICall_t IsFollowingDelegate( IntPtr self, SteamId steamID ); private IsFollowingDelegate IsFollowingDelegatePointer; #endregion - public async Task IsFollowing( CSteamID steamID ) + public async Task IsFollowing( SteamId steamID ) { return await (new Result( IsFollowingDelegatePointer( Self, steamID ) )).GetResult(); } @@ -894,11 +893,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool IsClanPublicDelegate( IntPtr self, CSteamID steamIDClan ); + public delegate bool IsClanPublicDelegate( IntPtr self, SteamId steamIDClan ); private IsClanPublicDelegate IsClanPublicDelegatePointer; #endregion - public bool IsClanPublic( CSteamID steamIDClan ) + public bool IsClanPublic( SteamId steamIDClan ) { return IsClanPublicDelegatePointer( Self, steamIDClan ); } @@ -906,11 +905,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool IsClanOfficialGameGroupDelegate( IntPtr self, CSteamID steamIDClan ); + public delegate bool IsClanOfficialGameGroupDelegate( IntPtr self, SteamId steamIDClan ); private IsClanOfficialGameGroupDelegate IsClanOfficialGameGroupDelegatePointer; #endregion - public bool IsClanOfficialGameGroup( CSteamID steamIDClan ) + public bool IsClanOfficialGameGroup( SteamId steamIDClan ) { return IsClanOfficialGameGroupDelegatePointer( Self, steamIDClan ); } diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamGameServer.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamGameServer.cs index 2fde8ac..9694071 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamGameServer.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamGameServer.cs @@ -2,7 +2,6 @@ using System; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks.Internal @@ -178,13 +177,13 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void GetSteamIDDelegate( IntPtr self, ref CSteamID retVal ); + public delegate void GetSteamIDDelegate( IntPtr self, ref SteamId retVal ); private GetSteamIDDelegate GetSteamIDDelegatePointer; #endregion - public CSteamID GetSteamID() + public SteamId GetSteamID() { - var retVal = default( CSteamID ); + var retVal = default( SteamId ); GetSteamIDDelegatePointer( Self, ref retVal ); return retVal; } @@ -336,35 +335,35 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool SendUserConnectAndAuthenticateDelegate( IntPtr self, uint unIPClient, IntPtr pvAuthBlob, uint cubAuthBlobSize, ref CSteamID pSteamIDUser ); + public delegate bool SendUserConnectAndAuthenticateDelegate( IntPtr self, uint unIPClient, IntPtr pvAuthBlob, uint cubAuthBlobSize, ref SteamId pSteamIDUser ); private SendUserConnectAndAuthenticateDelegate SendUserConnectAndAuthenticateDelegatePointer; #endregion - public bool SendUserConnectAndAuthenticate( uint unIPClient, IntPtr pvAuthBlob, uint cubAuthBlobSize, ref CSteamID pSteamIDUser ) + public bool SendUserConnectAndAuthenticate( uint unIPClient, IntPtr pvAuthBlob, uint cubAuthBlobSize, ref SteamId pSteamIDUser ) { return SendUserConnectAndAuthenticateDelegatePointer( Self, unIPClient, pvAuthBlob, cubAuthBlobSize, ref pSteamIDUser ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void CreateUnauthenticatedUserConnectionDelegate( IntPtr self, ref CSteamID retVal ); + public delegate void CreateUnauthenticatedUserConnectionDelegate( IntPtr self, ref SteamId retVal ); private CreateUnauthenticatedUserConnectionDelegate CreateUnauthenticatedUserConnectionDelegatePointer; #endregion - public CSteamID CreateUnauthenticatedUserConnection() + public SteamId CreateUnauthenticatedUserConnection() { - var retVal = default( CSteamID ); + var retVal = default( SteamId ); CreateUnauthenticatedUserConnectionDelegatePointer( Self, ref retVal ); return retVal; } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void SendUserDisconnectDelegate( IntPtr self, CSteamID steamIDUser ); + public delegate void SendUserDisconnectDelegate( IntPtr self, SteamId steamIDUser ); private SendUserDisconnectDelegate SendUserDisconnectDelegatePointer; #endregion - public void SendUserDisconnect( CSteamID steamIDUser ) + public void SendUserDisconnect( SteamId steamIDUser ) { SendUserDisconnectDelegatePointer( Self, steamIDUser ); } @@ -372,11 +371,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool BUpdateUserDataDelegate( IntPtr self, CSteamID steamIDUser, string pchPlayerName, uint uScore ); + public delegate bool BUpdateUserDataDelegate( IntPtr self, SteamId steamIDUser, string pchPlayerName, uint uScore ); private BUpdateUserDataDelegate BUpdateUserDataDelegatePointer; #endregion - public bool BUpdateUserData( CSteamID steamIDUser, string pchPlayerName, uint uScore ) + public bool BUpdateUserData( SteamId steamIDUser, string pchPlayerName, uint uScore ) { return BUpdateUserDataDelegatePointer( Self, steamIDUser, pchPlayerName, uScore ); } @@ -394,22 +393,22 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate BeginAuthSessionResult BeginAuthSessionDelegate( IntPtr self, IntPtr pAuthTicket, int cbAuthTicket, CSteamID steamID ); + public delegate BeginAuthSessionResult BeginAuthSessionDelegate( IntPtr self, IntPtr pAuthTicket, int cbAuthTicket, SteamId steamID ); private BeginAuthSessionDelegate BeginAuthSessionDelegatePointer; #endregion - public BeginAuthSessionResult BeginAuthSession( IntPtr pAuthTicket, int cbAuthTicket, CSteamID steamID ) + public BeginAuthSessionResult BeginAuthSession( IntPtr pAuthTicket, int cbAuthTicket, SteamId steamID ) { return BeginAuthSessionDelegatePointer( Self, pAuthTicket, cbAuthTicket, steamID ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void EndAuthSessionDelegate( IntPtr self, CSteamID steamID ); + public delegate void EndAuthSessionDelegate( IntPtr self, SteamId steamID ); private EndAuthSessionDelegate EndAuthSessionDelegatePointer; #endregion - public void EndAuthSession( CSteamID steamID ) + public void EndAuthSession( SteamId steamID ) { EndAuthSessionDelegatePointer( Self, steamID ); } @@ -427,11 +426,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate UserHasLicenseForAppResult UserHasLicenseForAppDelegate( IntPtr self, CSteamID steamID, AppId_t appID ); + public delegate UserHasLicenseForAppResult UserHasLicenseForAppDelegate( IntPtr self, SteamId steamID, AppId_t appID ); private UserHasLicenseForAppDelegate UserHasLicenseForAppDelegatePointer; #endregion - public UserHasLicenseForAppResult UserHasLicenseForApp( CSteamID steamID, AppId_t appID ) + public UserHasLicenseForAppResult UserHasLicenseForApp( SteamId steamID, AppId_t appID ) { return UserHasLicenseForAppDelegatePointer( Self, steamID, appID ); } @@ -439,11 +438,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] [return: MarshalAs( UnmanagedType.I1 )] - public delegate bool RequestUserGroupStatusDelegate( IntPtr self, CSteamID steamIDUser, CSteamID steamIDGroup ); + public delegate bool RequestUserGroupStatusDelegate( IntPtr self, SteamId steamIDUser, SteamId steamIDGroup ); private RequestUserGroupStatusDelegate RequestUserGroupStatusDelegatePointer; #endregion - public bool RequestUserGroupStatus( CSteamID steamIDUser, CSteamID steamIDGroup ) + public bool RequestUserGroupStatus( SteamId steamIDUser, SteamId steamIDGroup ) { return RequestUserGroupStatusDelegatePointer( Self, steamIDUser, steamIDGroup ); } @@ -539,22 +538,22 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate SteamAPICall_t AssociateWithClanDelegate( IntPtr self, CSteamID steamIDClan ); + public delegate SteamAPICall_t AssociateWithClanDelegate( IntPtr self, SteamId steamIDClan ); private AssociateWithClanDelegate AssociateWithClanDelegatePointer; #endregion - public async Task AssociateWithClan( CSteamID steamIDClan ) + public async Task AssociateWithClan( SteamId steamIDClan ) { return await (new Result( AssociateWithClanDelegatePointer( Self, steamIDClan ) )).GetResult(); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate SteamAPICall_t ComputeNewPlayerCompatibilityDelegate( IntPtr self, CSteamID steamIDNewPlayer ); + public delegate SteamAPICall_t ComputeNewPlayerCompatibilityDelegate( IntPtr self, SteamId steamIDNewPlayer ); private ComputeNewPlayerCompatibilityDelegate ComputeNewPlayerCompatibilityDelegatePointer; #endregion - public async Task ComputeNewPlayerCompatibility( CSteamID steamIDNewPlayer ) + public async Task ComputeNewPlayerCompatibility( SteamId steamIDNewPlayer ) { return await (new Result( ComputeNewPlayerCompatibilityDelegatePointer( Self, steamIDNewPlayer ) )).GetResult(); } diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamMatchmakingServers.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamMatchmakingServers.cs index 7d1813f..33dea69 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamMatchmakingServers.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamMatchmakingServers.cs @@ -2,7 +2,6 @@ using System; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks.Internal diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamMusic.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamMusic.cs index 6e0d62c..153f8af 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamMusic.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamMusic.cs @@ -2,7 +2,6 @@ using System; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks.Internal diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamParentalSettings.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamParentalSettings.cs index ffa8de8..0baf7e4 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamParentalSettings.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamParentalSettings.cs @@ -2,7 +2,6 @@ using System; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks.Internal diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamUser.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamUser.cs index caef035..dfa2e5e 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamUser.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamUser.cs @@ -2,7 +2,6 @@ using System; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks.Internal @@ -74,24 +73,24 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void GetSteamIDDelegate( IntPtr self, ref CSteamID retVal ); + public delegate void GetSteamIDDelegate( IntPtr self, ref SteamId retVal ); private GetSteamIDDelegate GetSteamIDDelegatePointer; #endregion - public CSteamID GetSteamID() + public SteamId GetSteamID() { - var retVal = default( CSteamID ); + var retVal = default( SteamId ); GetSteamIDDelegatePointer( Self, ref retVal ); return retVal; } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate int InitiateGameConnectionDelegate( IntPtr self, IntPtr pAuthBlob, int cbMaxAuthBlob, CSteamID steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs( UnmanagedType.U1 )] bool bSecure ); + public delegate int InitiateGameConnectionDelegate( IntPtr self, IntPtr pAuthBlob, int cbMaxAuthBlob, SteamId steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs( UnmanagedType.U1 )] bool bSecure ); private InitiateGameConnectionDelegate InitiateGameConnectionDelegatePointer; #endregion - public int InitiateGameConnection( IntPtr pAuthBlob, int cbMaxAuthBlob, CSteamID steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs( UnmanagedType.U1 )] bool bSecure ) + public int InitiateGameConnection( IntPtr pAuthBlob, int cbMaxAuthBlob, SteamId steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs( UnmanagedType.U1 )] bool bSecure ) { return InitiateGameConnectionDelegatePointer( Self, pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure ); } @@ -109,11 +108,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void TrackAppUsageEventDelegate( IntPtr self, CGameID gameID, int eAppUsageEvent, string pchExtraInfo ); + public delegate void TrackAppUsageEventDelegate( IntPtr self, GameId gameID, int eAppUsageEvent, string pchExtraInfo ); private TrackAppUsageEventDelegate TrackAppUsageEventDelegatePointer; #endregion - public void TrackAppUsageEvent( CGameID gameID, int eAppUsageEvent, string pchExtraInfo ) + public void TrackAppUsageEvent( GameId gameID, int eAppUsageEvent, string pchExtraInfo ) { TrackAppUsageEventDelegatePointer( Self, gameID, eAppUsageEvent, pchExtraInfo ); } @@ -209,22 +208,22 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate BeginAuthSessionResult BeginAuthSessionDelegate( IntPtr self, IntPtr pAuthTicket, int cbAuthTicket, CSteamID steamID ); + public delegate BeginAuthSessionResult BeginAuthSessionDelegate( IntPtr self, IntPtr pAuthTicket, int cbAuthTicket, SteamId steamID ); private BeginAuthSessionDelegate BeginAuthSessionDelegatePointer; #endregion - public BeginAuthSessionResult BeginAuthSession( IntPtr pAuthTicket, int cbAuthTicket, CSteamID steamID ) + public BeginAuthSessionResult BeginAuthSession( IntPtr pAuthTicket, int cbAuthTicket, SteamId steamID ) { return BeginAuthSessionDelegatePointer( Self, pAuthTicket, cbAuthTicket, steamID ); } #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void EndAuthSessionDelegate( IntPtr self, CSteamID steamID ); + public delegate void EndAuthSessionDelegate( IntPtr self, SteamId steamID ); private EndAuthSessionDelegate EndAuthSessionDelegatePointer; #endregion - public void EndAuthSession( CSteamID steamID ) + public void EndAuthSession( SteamId steamID ) { EndAuthSessionDelegatePointer( Self, steamID ); } @@ -242,11 +241,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate UserHasLicenseForAppResult UserHasLicenseForAppDelegate( IntPtr self, CSteamID steamID, AppId_t appID ); + public delegate UserHasLicenseForAppResult UserHasLicenseForAppDelegate( IntPtr self, SteamId steamID, AppId_t appID ); private UserHasLicenseForAppDelegate UserHasLicenseForAppDelegatePointer; #endregion - public UserHasLicenseForAppResult UserHasLicenseForApp( CSteamID steamID, AppId_t appID ) + public UserHasLicenseForAppResult UserHasLicenseForApp( SteamId steamID, AppId_t appID ) { return UserHasLicenseForAppDelegatePointer( Self, steamID, appID ); } @@ -265,11 +264,11 @@ namespace Steamworks.Internal #region FunctionMeta [UnmanagedFunctionPointer( CallingConvention.ThisCall )] - public delegate void AdvertiseGameDelegate( IntPtr self, CSteamID steamIDGameServer, uint unIPServer, ushort usPortServer ); + public delegate void AdvertiseGameDelegate( IntPtr self, SteamId steamIDGameServer, uint unIPServer, ushort usPortServer ); private AdvertiseGameDelegate AdvertiseGameDelegatePointer; #endregion - public void AdvertiseGame( CSteamID steamIDGameServer, uint unIPServer, ushort usPortServer ) + public void AdvertiseGame( SteamId steamIDGameServer, uint unIPServer, ushort usPortServer ) { AdvertiseGameDelegatePointer( Self, steamIDGameServer, unIPServer, usPortServer ); } diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamUtils.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamUtils.cs index 7f01ea5..2d9d914 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamUtils.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamUtils.cs @@ -2,7 +2,6 @@ using System; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks.Internal diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamVideo.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamVideo.cs index 3c92f33..bd3cf51 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamVideo.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamVideo.cs @@ -2,7 +2,6 @@ using System; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks.Internal diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Constants.cs b/Facepunch.Steamworks/Generated/SteamConstants.cs similarity index 99% rename from Facepunch.Steamworks/SteamNative/SteamNative.Constants.cs rename to Facepunch.Steamworks/Generated/SteamConstants.cs index dca17e2..01ed49b 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Constants.cs +++ b/Facepunch.Steamworks/Generated/SteamConstants.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; using System.Linq; -namespace SteamNative +namespace Steamworks { internal static class CallbackIdentifiers { diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Enums.cs b/Facepunch.Steamworks/Generated/SteamEnums.cs similarity index 99% rename from Facepunch.Steamworks/SteamNative/SteamNative.Enums.cs rename to Facepunch.Steamworks/Generated/SteamEnums.cs index 6bd3f5f..a07424d 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Enums.cs +++ b/Facepunch.Steamworks/Generated/SteamEnums.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; using System.Linq; -namespace SteamNative +namespace Steamworks { // // EUniverse diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Structs.cs b/Facepunch.Steamworks/Generated/SteamStructs.cs similarity index 78% rename from Facepunch.Steamworks/SteamNative/SteamNative.Structs.cs rename to Facepunch.Steamworks/Generated/SteamStructs.cs index b608295..97e4a03 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Structs.cs +++ b/Facepunch.Steamworks/Generated/SteamStructs.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; using System.Linq; -namespace SteamNative +namespace Steamworks { public struct CallbackMsg_t { @@ -12,8 +12,8 @@ namespace SteamNative internal int ParamCount; // m_cubParam int #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public CallbackMsg_t Fill( IntPtr p ) => Platform.PackSmall ? ((CallbackMsg_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((CallbackMsg_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public CallbackMsg_t Fill( IntPtr p ) => Config.PackSmall ? ((CallbackMsg_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((CallbackMsg_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -48,8 +48,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUser + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamServerConnectFailure_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamServerConnectFailure_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamServerConnectFailure_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamServerConnectFailure_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -80,8 +80,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUser + 3; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamServersDisconnected_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamServersDisconnected_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamServersDisconnected_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamServersDisconnected_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -112,8 +112,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUser + 13; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((ClientGameServerDeny_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ClientGameServerDeny_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((ClientGameServerDeny_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ClientGameServerDeny_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -144,32 +144,32 @@ namespace SteamNative public struct ValidateAuthTicketResponse_t : Steamworks.ISteamCallback { - internal ulong SteamID; // m_SteamID class CSteamID + internal SteamId SteamID; // m_SteamID class CSteamID internal AuthSessionResponse AuthSessionResponse; // m_eAuthSessionResponse enum EAuthSessionResponse - internal ulong OwnerSteamID; // m_OwnerSteamID class CSteamID + internal SteamId OwnerSteamID; // m_OwnerSteamID class CSteamID #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUser + 43; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((ValidateAuthTicketResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ValidateAuthTicketResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((ValidateAuthTicketResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ValidateAuthTicketResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamID; // m_SteamID class CSteamID + internal SteamId SteamID; // m_SteamID class CSteamID internal AuthSessionResponse AuthSessionResponse; // m_eAuthSessionResponse enum EAuthSessionResponse - internal ulong OwnerSteamID; // m_OwnerSteamID class CSteamID + internal SteamId OwnerSteamID; // m_OwnerSteamID class CSteamID public static implicit operator ValidateAuthTicketResponse_t ( ValidateAuthTicketResponse_t.Pack4 d ) => new ValidateAuthTicketResponse_t{ SteamID = d.SteamID,AuthSessionResponse = d.AuthSessionResponse,OwnerSteamID = d.OwnerSteamID, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamID; // m_SteamID class CSteamID + internal SteamId SteamID; // m_SteamID class CSteamID internal AuthSessionResponse AuthSessionResponse; // m_eAuthSessionResponse enum EAuthSessionResponse - internal ulong OwnerSteamID; // m_OwnerSteamID class CSteamID + internal SteamId OwnerSteamID; // m_OwnerSteamID class CSteamID public static implicit operator ValidateAuthTicketResponse_t ( ValidateAuthTicketResponse_t.Pack8 d ) => new ValidateAuthTicketResponse_t{ SteamID = d.SteamID,AuthSessionResponse = d.AuthSessionResponse,OwnerSteamID = d.OwnerSteamID, }; } @@ -184,8 +184,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUser + 52; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((MicroTxnAuthorizationResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MicroTxnAuthorizationResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((MicroTxnAuthorizationResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MicroTxnAuthorizationResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -216,8 +216,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUser + 54; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((EncryptedAppTicketResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((EncryptedAppTicketResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((EncryptedAppTicketResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((EncryptedAppTicketResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -245,8 +245,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUser + 63; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GetAuthSessionTicketResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GetAuthSessionTicketResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GetAuthSessionTicketResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GetAuthSessionTicketResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -276,8 +276,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUser + 64; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GameWebCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameWebCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GameWebCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameWebCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -307,8 +307,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUser + 65; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((StoreAuthURLResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((StoreAuthURLResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((StoreAuthURLResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((StoreAuthURLResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -342,8 +342,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUser + 66; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((MarketEligibilityResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MarketEligibilityResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((MarketEligibilityResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MarketEligibilityResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -376,37 +376,37 @@ namespace SteamNative public struct FriendGameInfo_t { - internal ulong GameID; // m_gameID class CGameID + internal GameId GameID; // m_gameID class CGameID internal uint GameIP; // m_unGameIP uint32 internal ushort GamePort; // m_usGamePort uint16 internal ushort QueryPort; // m_usQueryPort uint16 - internal ulong SteamIDLobby; // m_steamIDLobby class CSteamID + internal SteamId SteamIDLobby; // m_steamIDLobby class CSteamID #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public FriendGameInfo_t Fill( IntPtr p ) => Platform.PackSmall ? ((FriendGameInfo_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FriendGameInfo_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public FriendGameInfo_t Fill( IntPtr p ) => Config.PackSmall ? ((FriendGameInfo_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FriendGameInfo_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong GameID; // m_gameID class CGameID + internal GameId GameID; // m_gameID class CGameID internal uint GameIP; // m_unGameIP uint32 internal ushort GamePort; // m_usGamePort uint16 internal ushort QueryPort; // m_usQueryPort uint16 - internal ulong SteamIDLobby; // m_steamIDLobby class CSteamID + internal SteamId SteamIDLobby; // m_steamIDLobby class CSteamID public static implicit operator FriendGameInfo_t ( FriendGameInfo_t.Pack4 d ) => new FriendGameInfo_t{ GameID = d.GameID,GameIP = d.GameIP,GamePort = d.GamePort,QueryPort = d.QueryPort,SteamIDLobby = d.SteamIDLobby, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong GameID; // m_gameID class CGameID + internal GameId GameID; // m_gameID class CGameID internal uint GameIP; // m_unGameIP uint32 internal ushort GamePort; // m_usGamePort uint16 internal ushort QueryPort; // m_usQueryPort uint16 - internal ulong SteamIDLobby; // m_steamIDLobby class CSteamID + internal SteamId SteamIDLobby; // m_steamIDLobby class CSteamID public static implicit operator FriendGameInfo_t ( FriendGameInfo_t.Pack8 d ) => new FriendGameInfo_t{ GameID = d.GameID,GameIP = d.GameIP,GamePort = d.GamePort,QueryPort = d.QueryPort,SteamIDLobby = d.SteamIDLobby, }; } @@ -419,8 +419,8 @@ namespace SteamNative internal byte IPublishedToFriendsSessionInstance; // m_uiPublishedToFriendsSessionInstance uint8 #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public FriendSessionStateInfo_t Fill( IntPtr p ) => Platform.PackSmall ? ((FriendSessionStateInfo_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FriendSessionStateInfo_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public FriendSessionStateInfo_t Fill( IntPtr p ) => Config.PackSmall ? ((FriendSessionStateInfo_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FriendSessionStateInfo_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -450,8 +450,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 4; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((PersonaStateChange_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((PersonaStateChange_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((PersonaStateChange_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((PersonaStateChange_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -480,8 +480,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 31; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GameOverlayActivated_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameOverlayActivated_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GameOverlayActivated_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameOverlayActivated_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -511,8 +511,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 32; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GameServerChangeRequested_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameServerChangeRequested_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GameServerChangeRequested_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameServerChangeRequested_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -541,29 +541,29 @@ namespace SteamNative public struct GameLobbyJoinRequested_t : Steamworks.ISteamCallback { - internal ulong SteamIDLobby; // m_steamIDLobby class CSteamID - internal ulong SteamIDFriend; // m_steamIDFriend class CSteamID + internal SteamId SteamIDLobby; // m_steamIDLobby class CSteamID + internal SteamId SteamIDFriend; // m_steamIDFriend class CSteamID #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 33; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GameLobbyJoinRequested_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameLobbyJoinRequested_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GameLobbyJoinRequested_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameLobbyJoinRequested_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDLobby; // m_steamIDLobby class CSteamID - internal ulong SteamIDFriend; // m_steamIDFriend class CSteamID + internal SteamId SteamIDLobby; // m_steamIDLobby class CSteamID + internal SteamId SteamIDFriend; // m_steamIDFriend class CSteamID public static implicit operator GameLobbyJoinRequested_t ( GameLobbyJoinRequested_t.Pack4 d ) => new GameLobbyJoinRequested_t{ SteamIDLobby = d.SteamIDLobby,SteamIDFriend = d.SteamIDFriend, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDLobby; // m_steamIDLobby class CSteamID - internal ulong SteamIDFriend; // m_steamIDFriend class CSteamID + internal SteamId SteamIDLobby; // m_steamIDLobby class CSteamID + internal SteamId SteamIDFriend; // m_steamIDFriend class CSteamID public static implicit operator GameLobbyJoinRequested_t ( GameLobbyJoinRequested_t.Pack8 d ) => new GameLobbyJoinRequested_t{ SteamIDLobby = d.SteamIDLobby,SteamIDFriend = d.SteamIDFriend, }; } @@ -572,21 +572,21 @@ namespace SteamNative public struct AvatarImageLoaded_t : Steamworks.ISteamCallback { - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID internal int Image; // m_iImage int internal int Wide; // m_iWide int internal int Tall; // m_iTall int #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 34; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((AvatarImageLoaded_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((AvatarImageLoaded_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((AvatarImageLoaded_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((AvatarImageLoaded_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID internal int Image; // m_iImage int internal int Wide; // m_iWide int internal int Tall; // m_iTall int @@ -594,10 +594,10 @@ namespace SteamNative public static implicit operator AvatarImageLoaded_t ( AvatarImageLoaded_t.Pack4 d ) => new AvatarImageLoaded_t{ SteamID = d.SteamID,Image = d.Image,Wide = d.Wide,Tall = d.Tall, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID internal int Image; // m_iImage int internal int Wide; // m_iWide int internal int Tall; // m_iTall int @@ -609,30 +609,30 @@ namespace SteamNative public struct ClanOfficerListResponse_t : Steamworks.ISteamCallback { - internal ulong SteamIDClan; // m_steamIDClan class CSteamID + internal SteamId SteamIDClan; // m_steamIDClan class CSteamID internal int COfficers; // m_cOfficers int internal byte Success; // m_bSuccess uint8 #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 35; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((ClanOfficerListResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ClanOfficerListResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((ClanOfficerListResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ClanOfficerListResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDClan; // m_steamIDClan class CSteamID + internal SteamId SteamIDClan; // m_steamIDClan class CSteamID internal int COfficers; // m_cOfficers int internal byte Success; // m_bSuccess uint8 public static implicit operator ClanOfficerListResponse_t ( ClanOfficerListResponse_t.Pack4 d ) => new ClanOfficerListResponse_t{ SteamIDClan = d.SteamIDClan,COfficers = d.COfficers,Success = d.Success, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDClan; // m_steamIDClan class CSteamID + internal SteamId SteamIDClan; // m_steamIDClan class CSteamID internal int COfficers; // m_cOfficers int internal byte Success; // m_bSuccess uint8 @@ -643,28 +643,28 @@ namespace SteamNative public struct FriendRichPresenceUpdate_t : Steamworks.ISteamCallback { - internal ulong SteamIDFriend; // m_steamIDFriend class CSteamID + internal SteamId SteamIDFriend; // m_steamIDFriend class CSteamID internal uint AppID; // m_nAppID AppId_t #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 36; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((FriendRichPresenceUpdate_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FriendRichPresenceUpdate_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((FriendRichPresenceUpdate_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FriendRichPresenceUpdate_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDFriend; // m_steamIDFriend class CSteamID + internal SteamId SteamIDFriend; // m_steamIDFriend class CSteamID internal uint AppID; // m_nAppID AppId_t public static implicit operator FriendRichPresenceUpdate_t ( FriendRichPresenceUpdate_t.Pack4 d ) => new FriendRichPresenceUpdate_t{ SteamIDFriend = d.SteamIDFriend,AppID = d.AppID, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDFriend; // m_steamIDFriend class CSteamID + internal SteamId SteamIDFriend; // m_steamIDFriend class CSteamID internal uint AppID; // m_nAppID AppId_t public static implicit operator FriendRichPresenceUpdate_t ( FriendRichPresenceUpdate_t.Pack8 d ) => new FriendRichPresenceUpdate_t{ SteamIDFriend = d.SteamIDFriend,AppID = d.AppID, }; @@ -674,30 +674,30 @@ namespace SteamNative public struct GameRichPresenceJoinRequested_t : Steamworks.ISteamCallback { - internal ulong SteamIDFriend; // m_steamIDFriend class CSteamID + internal SteamId SteamIDFriend; // m_steamIDFriend class CSteamID [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] internal string Connect; // m_rgchConnect char [256] #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 37; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GameRichPresenceJoinRequested_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameRichPresenceJoinRequested_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GameRichPresenceJoinRequested_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameRichPresenceJoinRequested_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDFriend; // m_steamIDFriend class CSteamID + internal SteamId SteamIDFriend; // m_steamIDFriend class CSteamID [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] internal string Connect; // m_rgchConnect char [256] public static implicit operator GameRichPresenceJoinRequested_t ( GameRichPresenceJoinRequested_t.Pack4 d ) => new GameRichPresenceJoinRequested_t{ SteamIDFriend = d.SteamIDFriend,Connect = d.Connect, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDFriend; // m_steamIDFriend class CSteamID + internal SteamId SteamIDFriend; // m_steamIDFriend class CSteamID [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] internal string Connect; // m_rgchConnect char [256] @@ -708,31 +708,31 @@ namespace SteamNative public struct GameConnectedClanChatMsg_t : Steamworks.ISteamCallback { - internal ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDClanChat; // m_steamIDClanChat class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID internal int MessageID; // m_iMessageID int #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 38; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GameConnectedClanChatMsg_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameConnectedClanChatMsg_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GameConnectedClanChatMsg_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameConnectedClanChatMsg_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDClanChat; // m_steamIDClanChat class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID internal int MessageID; // m_iMessageID int public static implicit operator GameConnectedClanChatMsg_t ( GameConnectedClanChatMsg_t.Pack4 d ) => new GameConnectedClanChatMsg_t{ SteamIDClanChat = d.SteamIDClanChat,SteamIDUser = d.SteamIDUser,MessageID = d.MessageID, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDClanChat; // m_steamIDClanChat class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID internal int MessageID; // m_iMessageID int public static implicit operator GameConnectedClanChatMsg_t ( GameConnectedClanChatMsg_t.Pack8 d ) => new GameConnectedClanChatMsg_t{ SteamIDClanChat = d.SteamIDClanChat,SteamIDUser = d.SteamIDUser,MessageID = d.MessageID, }; @@ -742,29 +742,29 @@ namespace SteamNative public struct GameConnectedChatJoin_t : Steamworks.ISteamCallback { - internal ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDClanChat; // m_steamIDClanChat class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 39; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GameConnectedChatJoin_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameConnectedChatJoin_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GameConnectedChatJoin_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameConnectedChatJoin_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDClanChat; // m_steamIDClanChat class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID public static implicit operator GameConnectedChatJoin_t ( GameConnectedChatJoin_t.Pack4 d ) => new GameConnectedChatJoin_t{ SteamIDClanChat = d.SteamIDClanChat,SteamIDUser = d.SteamIDUser, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDClanChat; // m_steamIDClanChat class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID public static implicit operator GameConnectedChatJoin_t ( GameConnectedChatJoin_t.Pack8 d ) => new GameConnectedChatJoin_t{ SteamIDClanChat = d.SteamIDClanChat,SteamIDUser = d.SteamIDUser, }; } @@ -773,8 +773,8 @@ namespace SteamNative public struct GameConnectedChatLeave_t : Steamworks.ISteamCallback { - internal ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDClanChat; // m_steamIDClanChat class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID [MarshalAs(UnmanagedType.I1)] internal bool Kicked; // m_bKicked _Bool [MarshalAs(UnmanagedType.I1)] @@ -782,15 +782,15 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 40; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GameConnectedChatLeave_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameConnectedChatLeave_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GameConnectedChatLeave_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameConnectedChatLeave_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDClanChat; // m_steamIDClanChat class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID [MarshalAs(UnmanagedType.I1)] internal bool Kicked; // m_bKicked _Bool [MarshalAs(UnmanagedType.I1)] @@ -799,11 +799,11 @@ namespace SteamNative public static implicit operator GameConnectedChatLeave_t ( GameConnectedChatLeave_t.Pack4 d ) => new GameConnectedChatLeave_t{ SteamIDClanChat = d.SteamIDClanChat,SteamIDUser = d.SteamIDUser,Kicked = d.Kicked,Dropped = d.Dropped, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDClanChat; // m_steamIDClanChat class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID [MarshalAs(UnmanagedType.I1)] internal bool Kicked; // m_bKicked _Bool [MarshalAs(UnmanagedType.I1)] @@ -821,8 +821,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 41; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((DownloadClanActivityCountsResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((DownloadClanActivityCountsResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((DownloadClanActivityCountsResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((DownloadClanActivityCountsResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -847,28 +847,28 @@ namespace SteamNative public struct JoinClanChatRoomCompletionResult_t : Steamworks.ISteamCallback { - internal ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID + internal SteamId SteamIDClanChat; // m_steamIDClanChat class CSteamID internal ChatRoomEnterResponse ChatRoomEnterResponse; // m_eChatRoomEnterResponse enum EChatRoomEnterResponse #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 42; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((JoinClanChatRoomCompletionResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((JoinClanChatRoomCompletionResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((JoinClanChatRoomCompletionResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((JoinClanChatRoomCompletionResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID + internal SteamId SteamIDClanChat; // m_steamIDClanChat class CSteamID internal ChatRoomEnterResponse ChatRoomEnterResponse; // m_eChatRoomEnterResponse enum EChatRoomEnterResponse public static implicit operator JoinClanChatRoomCompletionResult_t ( JoinClanChatRoomCompletionResult_t.Pack4 d ) => new JoinClanChatRoomCompletionResult_t{ SteamIDClanChat = d.SteamIDClanChat,ChatRoomEnterResponse = d.ChatRoomEnterResponse, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID + internal SteamId SteamIDClanChat; // m_steamIDClanChat class CSteamID internal ChatRoomEnterResponse ChatRoomEnterResponse; // m_eChatRoomEnterResponse enum EChatRoomEnterResponse public static implicit operator JoinClanChatRoomCompletionResult_t ( JoinClanChatRoomCompletionResult_t.Pack8 d ) => new JoinClanChatRoomCompletionResult_t{ SteamIDClanChat = d.SteamIDClanChat,ChatRoomEnterResponse = d.ChatRoomEnterResponse, }; @@ -878,28 +878,28 @@ namespace SteamNative public struct GameConnectedFriendChatMsg_t : Steamworks.ISteamCallback { - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID internal int MessageID; // m_iMessageID int #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 43; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GameConnectedFriendChatMsg_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameConnectedFriendChatMsg_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GameConnectedFriendChatMsg_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GameConnectedFriendChatMsg_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID internal int MessageID; // m_iMessageID int public static implicit operator GameConnectedFriendChatMsg_t ( GameConnectedFriendChatMsg_t.Pack4 d ) => new GameConnectedFriendChatMsg_t{ SteamIDUser = d.SteamIDUser,MessageID = d.MessageID, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID internal int MessageID; // m_iMessageID int public static implicit operator GameConnectedFriendChatMsg_t ( GameConnectedFriendChatMsg_t.Pack8 d ) => new GameConnectedFriendChatMsg_t{ SteamIDUser = d.SteamIDUser,MessageID = d.MessageID, }; @@ -910,30 +910,30 @@ namespace SteamNative public struct FriendsGetFollowerCount_t : Steamworks.ISteamCallback { internal Result Result; // m_eResult enum EResult - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID internal int Count; // m_nCount int #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 44; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((FriendsGetFollowerCount_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FriendsGetFollowerCount_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((FriendsGetFollowerCount_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FriendsGetFollowerCount_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { internal Result Result; // m_eResult enum EResult - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID internal int Count; // m_nCount int public static implicit operator FriendsGetFollowerCount_t ( FriendsGetFollowerCount_t.Pack4 d ) => new FriendsGetFollowerCount_t{ Result = d.Result,SteamID = d.SteamID,Count = d.Count, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal Result Result; // m_eResult enum EResult - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID internal int Count; // m_nCount int public static implicit operator FriendsGetFollowerCount_t ( FriendsGetFollowerCount_t.Pack8 d ) => new FriendsGetFollowerCount_t{ Result = d.Result,SteamID = d.SteamID,Count = d.Count, }; @@ -944,32 +944,32 @@ namespace SteamNative public struct FriendsIsFollowing_t : Steamworks.ISteamCallback { internal Result Result; // m_eResult enum EResult - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID [MarshalAs(UnmanagedType.I1)] internal bool IsFollowing; // m_bIsFollowing _Bool #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 45; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((FriendsIsFollowing_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FriendsIsFollowing_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((FriendsIsFollowing_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FriendsIsFollowing_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { internal Result Result; // m_eResult enum EResult - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID [MarshalAs(UnmanagedType.I1)] internal bool IsFollowing; // m_bIsFollowing _Bool public static implicit operator FriendsIsFollowing_t ( FriendsIsFollowing_t.Pack4 d ) => new FriendsIsFollowing_t{ Result = d.Result,SteamID = d.SteamID,IsFollowing = d.IsFollowing, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal Result Result; // m_eResult enum EResult - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID [MarshalAs(UnmanagedType.I1)] internal bool IsFollowing; // m_bIsFollowing _Bool @@ -988,8 +988,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 46; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((FriendsEnumerateFollowingList_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FriendsEnumerateFollowingList_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((FriendsEnumerateFollowingList_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FriendsEnumerateFollowingList_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1004,7 +1004,7 @@ namespace SteamNative public static implicit operator FriendsEnumerateFollowingList_t ( FriendsEnumerateFollowingList_t.Pack4 d ) => new FriendsEnumerateFollowingList_t{ Result = d.Result,GSteamID = d.GSteamID,ResultsReturned = d.ResultsReturned,TotalResultCount = d.TotalResultCount, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal Result Result; // m_eResult enum EResult @@ -1028,8 +1028,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamFriends + 47; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SetPersonaNameResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SetPersonaNameResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SetPersonaNameResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SetPersonaNameResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1064,8 +1064,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUtils + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LowBatteryPower_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LowBatteryPower_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LowBatteryPower_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LowBatteryPower_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1094,8 +1094,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUtils + 3; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamAPICallCompleted_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamAPICallCompleted_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamAPICallCompleted_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamAPICallCompleted_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1126,8 +1126,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUtils + 5; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((CheckFileSignature_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((CheckFileSignature_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((CheckFileSignature_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((CheckFileSignature_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1156,8 +1156,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUtils + 14; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GamepadTextInputDismissed_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GamepadTextInputDismissed_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GamepadTextInputDismissed_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GamepadTextInputDismissed_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1190,8 +1190,8 @@ namespace SteamNative internal string Value; // m_szValue char [256] #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public MatchMakingKeyValuePair_t Fill( IntPtr p ) => Platform.PackSmall ? ((MatchMakingKeyValuePair_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MatchMakingKeyValuePair_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public MatchMakingKeyValuePair_t Fill( IntPtr p ) => Config.PackSmall ? ((MatchMakingKeyValuePair_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MatchMakingKeyValuePair_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1225,8 +1225,8 @@ namespace SteamNative internal uint IP; // m_unIP uint32 #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public servernetadr_t Fill( IntPtr p ) => Platform.PackSmall ? ((servernetadr_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((servernetadr_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public servernetadr_t Fill( IntPtr p ) => Config.PackSmall ? ((servernetadr_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((servernetadr_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1279,11 +1279,11 @@ namespace SteamNative internal string ServerName; // m_szServerName char [64] [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] internal string GameTags; // m_szGameTags char [128] - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public gameserveritem_t Fill( IntPtr p ) => Platform.PackSmall ? ((gameserveritem_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((gameserveritem_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public gameserveritem_t Fill( IntPtr p ) => Config.PackSmall ? ((gameserveritem_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((gameserveritem_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1315,12 +1315,12 @@ namespace SteamNative internal string ServerName; // m_szServerName char [64] [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] internal string GameTags; // m_szGameTags char [128] - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID public static implicit operator gameserveritem_t ( gameserveritem_t.Pack4 d ) => new gameserveritem_t{ NetAdr = d.NetAdr,Ping = d.Ping,HadSuccessfulResponse = d.HadSuccessfulResponse,DoNotRefresh = d.DoNotRefresh,GameDir = d.GameDir,Map = d.Map,GameDescription = d.GameDescription,AppID = d.AppID,Players = d.Players,MaxPlayers = d.MaxPlayers,BotPlayers = d.BotPlayers,Password = d.Password,Secure = d.Secure,TimeLastPlayed = d.TimeLastPlayed,ServerVersion = d.ServerVersion,ServerName = d.ServerName,GameTags = d.GameTags,SteamID = d.SteamID, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal servernetadr_t NetAdr; // m_NetAdr class servernetadr_t @@ -1349,7 +1349,7 @@ namespace SteamNative internal string ServerName; // m_szServerName char [64] [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] internal string GameTags; // m_szGameTags char [128] - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID public static implicit operator gameserveritem_t ( gameserveritem_t.Pack8 d ) => new gameserveritem_t{ NetAdr = d.NetAdr,Ping = d.Ping,HadSuccessfulResponse = d.HadSuccessfulResponse,DoNotRefresh = d.DoNotRefresh,GameDir = d.GameDir,Map = d.Map,GameDescription = d.GameDescription,AppID = d.AppID,Players = d.Players,MaxPlayers = d.MaxPlayers,BotPlayers = d.BotPlayers,Password = d.Password,Secure = d.Secure,TimeLastPlayed = d.TimeLastPlayed,ServerVersion = d.ServerVersion,ServerName = d.ServerName,GameTags = d.GameTags,SteamID = d.SteamID, }; } @@ -1362,8 +1362,8 @@ namespace SteamNative internal ulong LocationID; // m_ulLocationID uint64 #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public SteamPartyBeaconLocation_t Fill( IntPtr p ) => Platform.PackSmall ? ((SteamPartyBeaconLocation_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamPartyBeaconLocation_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public SteamPartyBeaconLocation_t Fill( IntPtr p ) => Config.PackSmall ? ((SteamPartyBeaconLocation_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamPartyBeaconLocation_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1399,8 +1399,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMatchmaking + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((FavoritesListChanged_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FavoritesListChanged_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((FavoritesListChanged_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FavoritesListChanged_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1443,8 +1443,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMatchmaking + 3; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LobbyInvite_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyInvite_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LobbyInvite_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyInvite_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1479,8 +1479,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMatchmaking + 4; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LobbyEnter_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyEnter_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LobbyEnter_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyEnter_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1517,8 +1517,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMatchmaking + 5; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LobbyDataUpdate_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyDataUpdate_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LobbyDataUpdate_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyDataUpdate_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1552,8 +1552,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMatchmaking + 6; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LobbyChatUpdate_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyChatUpdate_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LobbyChatUpdate_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyChatUpdate_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1589,8 +1589,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMatchmaking + 7; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LobbyChatMsg_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyChatMsg_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LobbyChatMsg_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyChatMsg_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1626,8 +1626,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMatchmaking + 9; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LobbyGameCreated_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyGameCreated_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LobbyGameCreated_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyGameCreated_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1660,8 +1660,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMatchmaking + 10; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LobbyMatchList_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyMatchList_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LobbyMatchList_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyMatchList_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1690,8 +1690,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMatchmaking + 12; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LobbyKicked_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyKicked_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LobbyKicked_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyKicked_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1723,8 +1723,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMatchmaking + 13; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LobbyCreated_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyCreated_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LobbyCreated_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LobbyCreated_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1751,12 +1751,12 @@ namespace SteamNative { [MarshalAs(UnmanagedType.I1)] internal bool GameBootInviteExists; // m_bGameBootInviteExists _Bool - internal ulong SteamIDLobby; // m_steamIDLobby class CSteamID + internal SteamId SteamIDLobby; // m_steamIDLobby class CSteamID #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMatchmaking + 15; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((PSNGameBootInviteResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((PSNGameBootInviteResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((PSNGameBootInviteResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((PSNGameBootInviteResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1764,17 +1764,17 @@ namespace SteamNative { [MarshalAs(UnmanagedType.I1)] internal bool GameBootInviteExists; // m_bGameBootInviteExists _Bool - internal ulong SteamIDLobby; // m_steamIDLobby class CSteamID + internal SteamId SteamIDLobby; // m_steamIDLobby class CSteamID public static implicit operator PSNGameBootInviteResult_t ( PSNGameBootInviteResult_t.Pack4 d ) => new PSNGameBootInviteResult_t{ GameBootInviteExists = d.GameBootInviteExists,SteamIDLobby = d.SteamIDLobby, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { [MarshalAs(UnmanagedType.I1)] internal bool GameBootInviteExists; // m_bGameBootInviteExists _Bool - internal ulong SteamIDLobby; // m_steamIDLobby class CSteamID + internal SteamId SteamIDLobby; // m_steamIDLobby class CSteamID public static implicit operator PSNGameBootInviteResult_t ( PSNGameBootInviteResult_t.Pack8 d ) => new PSNGameBootInviteResult_t{ GameBootInviteExists = d.GameBootInviteExists,SteamIDLobby = d.SteamIDLobby, }; } @@ -1787,8 +1787,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMatchmaking + 16; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((FavoritesListAccountsUpdated_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FavoritesListAccountsUpdated_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((FavoritesListAccountsUpdated_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FavoritesListAccountsUpdated_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1813,15 +1813,15 @@ namespace SteamNative { internal ulong LSearchID; // m_ullSearchID uint64 internal Result Result; // m_eResult enum EResult - internal ulong LobbyID; // m_lobbyID class CSteamID - internal ulong SteamIDEndedSearch; // m_steamIDEndedSearch class CSteamID + internal SteamId LobbyID; // m_lobbyID class CSteamID + internal SteamId SteamIDEndedSearch; // m_steamIDEndedSearch class CSteamID internal int SecondsRemainingEstimate; // m_nSecondsRemainingEstimate int32 internal int CPlayersSearching; // m_cPlayersSearching int32 #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameSearch + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SearchForGameProgressCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SearchForGameProgressCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SearchForGameProgressCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SearchForGameProgressCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1829,21 +1829,21 @@ namespace SteamNative { internal ulong LSearchID; // m_ullSearchID uint64 internal Result Result; // m_eResult enum EResult - internal ulong LobbyID; // m_lobbyID class CSteamID - internal ulong SteamIDEndedSearch; // m_steamIDEndedSearch class CSteamID + internal SteamId LobbyID; // m_lobbyID class CSteamID + internal SteamId SteamIDEndedSearch; // m_steamIDEndedSearch class CSteamID internal int SecondsRemainingEstimate; // m_nSecondsRemainingEstimate int32 internal int CPlayersSearching; // m_cPlayersSearching int32 public static implicit operator SearchForGameProgressCallback_t ( SearchForGameProgressCallback_t.Pack4 d ) => new SearchForGameProgressCallback_t{ LSearchID = d.LSearchID,Result = d.Result,LobbyID = d.LobbyID,SteamIDEndedSearch = d.SteamIDEndedSearch,SecondsRemainingEstimate = d.SecondsRemainingEstimate,CPlayersSearching = d.CPlayersSearching, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal ulong LSearchID; // m_ullSearchID uint64 internal Result Result; // m_eResult enum EResult - internal ulong LobbyID; // m_lobbyID class CSteamID - internal ulong SteamIDEndedSearch; // m_steamIDEndedSearch class CSteamID + internal SteamId LobbyID; // m_lobbyID class CSteamID + internal SteamId SteamIDEndedSearch; // m_steamIDEndedSearch class CSteamID internal int SecondsRemainingEstimate; // m_nSecondsRemainingEstimate int32 internal int CPlayersSearching; // m_cPlayersSearching int32 @@ -1858,14 +1858,14 @@ namespace SteamNative internal Result Result; // m_eResult enum EResult internal int CountPlayersInGame; // m_nCountPlayersInGame int32 internal int CountAcceptedGame; // m_nCountAcceptedGame int32 - internal ulong SteamIDHost; // m_steamIDHost class CSteamID + internal SteamId SteamIDHost; // m_steamIDHost class CSteamID [MarshalAs(UnmanagedType.I1)] internal bool FinalCallback; // m_bFinalCallback _Bool #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameSearch + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SearchForGameResultCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SearchForGameResultCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SearchForGameResultCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SearchForGameResultCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1875,21 +1875,21 @@ namespace SteamNative internal Result Result; // m_eResult enum EResult internal int CountPlayersInGame; // m_nCountPlayersInGame int32 internal int CountAcceptedGame; // m_nCountAcceptedGame int32 - internal ulong SteamIDHost; // m_steamIDHost class CSteamID + internal SteamId SteamIDHost; // m_steamIDHost class CSteamID [MarshalAs(UnmanagedType.I1)] internal bool FinalCallback; // m_bFinalCallback _Bool public static implicit operator SearchForGameResultCallback_t ( SearchForGameResultCallback_t.Pack4 d ) => new SearchForGameResultCallback_t{ LSearchID = d.LSearchID,Result = d.Result,CountPlayersInGame = d.CountPlayersInGame,CountAcceptedGame = d.CountAcceptedGame,SteamIDHost = d.SteamIDHost,FinalCallback = d.FinalCallback, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal ulong LSearchID; // m_ullSearchID uint64 internal Result Result; // m_eResult enum EResult internal int CountPlayersInGame; // m_nCountPlayersInGame int32 internal int CountAcceptedGame; // m_nCountAcceptedGame int32 - internal ulong SteamIDHost; // m_steamIDHost class CSteamID + internal SteamId SteamIDHost; // m_steamIDHost class CSteamID [MarshalAs(UnmanagedType.I1)] internal bool FinalCallback; // m_bFinalCallback _Bool @@ -1905,8 +1905,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameSearch + 11; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RequestPlayersForGameProgressCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RequestPlayersForGameProgressCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RequestPlayersForGameProgressCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RequestPlayersForGameProgressCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1933,8 +1933,8 @@ namespace SteamNative { internal Result Result; // m_eResult enum EResult internal ulong LSearchID; // m_ullSearchID uint64 - internal ulong SteamIDPlayerFound; // m_SteamIDPlayerFound class CSteamID - internal ulong SteamIDLobby; // m_SteamIDLobby class CSteamID + internal SteamId SteamIDPlayerFound; // m_SteamIDPlayerFound class CSteamID + internal SteamId SteamIDLobby; // m_SteamIDLobby class CSteamID internal PlayerAcceptState_t PlayerAcceptState; // m_ePlayerAcceptState PlayerAcceptState_t internal int PlayerIndex; // m_nPlayerIndex int32 internal int TotalPlayersFound; // m_nTotalPlayersFound int32 @@ -1944,8 +1944,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameSearch + 12; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RequestPlayersForGameResultCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RequestPlayersForGameResultCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RequestPlayersForGameResultCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RequestPlayersForGameResultCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -1953,8 +1953,8 @@ namespace SteamNative { internal Result Result; // m_eResult enum EResult internal ulong LSearchID; // m_ullSearchID uint64 - internal ulong SteamIDPlayerFound; // m_SteamIDPlayerFound class CSteamID - internal ulong SteamIDLobby; // m_SteamIDLobby class CSteamID + internal SteamId SteamIDPlayerFound; // m_SteamIDPlayerFound class CSteamID + internal SteamId SteamIDLobby; // m_SteamIDLobby class CSteamID internal PlayerAcceptState_t PlayerAcceptState; // m_ePlayerAcceptState PlayerAcceptState_t internal int PlayerIndex; // m_nPlayerIndex int32 internal int TotalPlayersFound; // m_nTotalPlayersFound int32 @@ -1965,13 +1965,13 @@ namespace SteamNative public static implicit operator RequestPlayersForGameResultCallback_t ( RequestPlayersForGameResultCallback_t.Pack4 d ) => new RequestPlayersForGameResultCallback_t{ Result = d.Result,LSearchID = d.LSearchID,SteamIDPlayerFound = d.SteamIDPlayerFound,SteamIDLobby = d.SteamIDLobby,PlayerAcceptState = d.PlayerAcceptState,PlayerIndex = d.PlayerIndex,TotalPlayersFound = d.TotalPlayersFound,TotalPlayersAcceptedGame = d.TotalPlayersAcceptedGame,SuggestedTeamIndex = d.SuggestedTeamIndex,LUniqueGameID = d.LUniqueGameID, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal Result Result; // m_eResult enum EResult internal ulong LSearchID; // m_ullSearchID uint64 - internal ulong SteamIDPlayerFound; // m_SteamIDPlayerFound class CSteamID - internal ulong SteamIDLobby; // m_SteamIDLobby class CSteamID + internal SteamId SteamIDPlayerFound; // m_SteamIDPlayerFound class CSteamID + internal SteamId SteamIDLobby; // m_SteamIDLobby class CSteamID internal PlayerAcceptState_t PlayerAcceptState; // m_ePlayerAcceptState PlayerAcceptState_t internal int PlayerIndex; // m_nPlayerIndex int32 internal int TotalPlayersFound; // m_nTotalPlayersFound int32 @@ -1992,8 +1992,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameSearch + 13; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RequestPlayersForGameFinalResultCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RequestPlayersForGameFinalResultCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RequestPlayersForGameFinalResultCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RequestPlayersForGameFinalResultCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2022,12 +2022,12 @@ namespace SteamNative { internal Result Result; // m_eResult enum EResult internal ulong UllUniqueGameID; // ullUniqueGameID uint64 - internal ulong SteamIDPlayer; // steamIDPlayer class CSteamID + internal SteamId SteamIDPlayer; // steamIDPlayer class CSteamID #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameSearch + 14; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SubmitPlayerResultResultCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SubmitPlayerResultResultCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SubmitPlayerResultResultCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SubmitPlayerResultResultCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2035,17 +2035,17 @@ namespace SteamNative { internal Result Result; // m_eResult enum EResult internal ulong UllUniqueGameID; // ullUniqueGameID uint64 - internal ulong SteamIDPlayer; // steamIDPlayer class CSteamID + internal SteamId SteamIDPlayer; // steamIDPlayer class CSteamID public static implicit operator SubmitPlayerResultResultCallback_t ( SubmitPlayerResultResultCallback_t.Pack4 d ) => new SubmitPlayerResultResultCallback_t{ Result = d.Result,UllUniqueGameID = d.UllUniqueGameID,SteamIDPlayer = d.SteamIDPlayer, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal Result Result; // m_eResult enum EResult internal ulong UllUniqueGameID; // ullUniqueGameID uint64 - internal ulong SteamIDPlayer; // steamIDPlayer class CSteamID + internal SteamId SteamIDPlayer; // steamIDPlayer class CSteamID public static implicit operator SubmitPlayerResultResultCallback_t ( SubmitPlayerResultResultCallback_t.Pack8 d ) => new SubmitPlayerResultResultCallback_t{ Result = d.Result,UllUniqueGameID = d.UllUniqueGameID,SteamIDPlayer = d.SteamIDPlayer, }; } @@ -2059,8 +2059,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameSearch + 15; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((EndGameResultCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((EndGameResultCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((EndGameResultCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((EndGameResultCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2087,14 +2087,14 @@ namespace SteamNative { internal Result Result; // m_eResult enum EResult internal ulong BeaconID; // m_ulBeaconID PartyBeaconID_t - internal ulong SteamIDBeaconOwner; // m_SteamIDBeaconOwner class CSteamID + internal SteamId SteamIDBeaconOwner; // m_SteamIDBeaconOwner class CSteamID [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] internal string ConnectString; // m_rgchConnectString char [256] #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamParties + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((JoinPartyCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((JoinPartyCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((JoinPartyCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((JoinPartyCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2102,19 +2102,19 @@ namespace SteamNative { internal Result Result; // m_eResult enum EResult internal ulong BeaconID; // m_ulBeaconID PartyBeaconID_t - internal ulong SteamIDBeaconOwner; // m_SteamIDBeaconOwner class CSteamID + internal SteamId SteamIDBeaconOwner; // m_SteamIDBeaconOwner class CSteamID [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] internal string ConnectString; // m_rgchConnectString char [256] public static implicit operator JoinPartyCallback_t ( JoinPartyCallback_t.Pack4 d ) => new JoinPartyCallback_t{ Result = d.Result,BeaconID = d.BeaconID,SteamIDBeaconOwner = d.SteamIDBeaconOwner,ConnectString = d.ConnectString, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal Result Result; // m_eResult enum EResult internal ulong BeaconID; // m_ulBeaconID PartyBeaconID_t - internal ulong SteamIDBeaconOwner; // m_SteamIDBeaconOwner class CSteamID + internal SteamId SteamIDBeaconOwner; // m_SteamIDBeaconOwner class CSteamID [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] internal string ConnectString; // m_rgchConnectString char [256] @@ -2130,8 +2130,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamParties + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((CreateBeaconCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((CreateBeaconCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((CreateBeaconCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((CreateBeaconCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2157,28 +2157,28 @@ namespace SteamNative public struct ReservationNotificationCallback_t : Steamworks.ISteamCallback { internal ulong BeaconID; // m_ulBeaconID PartyBeaconID_t - internal ulong SteamIDJoiner; // m_steamIDJoiner class CSteamID + internal SteamId SteamIDJoiner; // m_steamIDJoiner class CSteamID #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamParties + 3; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((ReservationNotificationCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ReservationNotificationCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((ReservationNotificationCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ReservationNotificationCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { internal ulong BeaconID; // m_ulBeaconID PartyBeaconID_t - internal ulong SteamIDJoiner; // m_steamIDJoiner class CSteamID + internal SteamId SteamIDJoiner; // m_steamIDJoiner class CSteamID public static implicit operator ReservationNotificationCallback_t ( ReservationNotificationCallback_t.Pack4 d ) => new ReservationNotificationCallback_t{ BeaconID = d.BeaconID,SteamIDJoiner = d.SteamIDJoiner, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal ulong BeaconID; // m_ulBeaconID PartyBeaconID_t - internal ulong SteamIDJoiner; // m_steamIDJoiner class CSteamID + internal SteamId SteamIDJoiner; // m_steamIDJoiner class CSteamID public static implicit operator ReservationNotificationCallback_t ( ReservationNotificationCallback_t.Pack8 d ) => new ReservationNotificationCallback_t{ BeaconID = d.BeaconID,SteamIDJoiner = d.SteamIDJoiner, }; } @@ -2191,8 +2191,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamParties + 4; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((ChangeNumOpenSlotsCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ChangeNumOpenSlotsCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((ChangeNumOpenSlotsCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ChangeNumOpenSlotsCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2219,8 +2219,8 @@ namespace SteamNative internal int NumStrings; // m_nNumStrings int32 #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public SteamParamStringArray_t Fill( IntPtr p ) => Platform.PackSmall ? ((SteamParamStringArray_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamParamStringArray_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public SteamParamStringArray_t Fill( IntPtr p ) => Config.PackSmall ? ((SteamParamStringArray_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamParamStringArray_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2251,8 +2251,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageAppSyncedClient_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageAppSyncedClient_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageAppSyncedClient_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageAppSyncedClient_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2285,8 +2285,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageAppSyncedServer_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageAppSyncedServer_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageAppSyncedServer_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageAppSyncedServer_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2323,8 +2323,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 3; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageAppSyncProgress_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageAppSyncProgress_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageAppSyncProgress_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageAppSyncProgress_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2364,8 +2364,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 5; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageAppSyncStatusCheck_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageAppSyncStatusCheck_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageAppSyncStatusCheck_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageAppSyncStatusCheck_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2397,8 +2397,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 7; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageFileShareResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageFileShareResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageFileShareResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageFileShareResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2434,8 +2434,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 9; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStoragePublishFileResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStoragePublishFileResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStoragePublishFileResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStoragePublishFileResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2469,8 +2469,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 11; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageDeletePublishedFileResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageDeletePublishedFileResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageDeletePublishedFileResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageDeletePublishedFileResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2503,8 +2503,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 12; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageEnumerateUserPublishedFilesResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageEnumerateUserPublishedFilesResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageEnumerateUserPublishedFilesResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageEnumerateUserPublishedFilesResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2540,8 +2540,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 13; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageSubscribePublishedFileResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageSubscribePublishedFileResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageSubscribePublishedFileResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageSubscribePublishedFileResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2576,8 +2576,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 14; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageEnumerateUserSubscribedFilesResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageEnumerateUserSubscribedFilesResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageEnumerateUserSubscribedFilesResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageEnumerateUserSubscribedFilesResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2617,8 +2617,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 15; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageUnsubscribePublishedFileResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageUnsubscribePublishedFileResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageUnsubscribePublishedFileResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageUnsubscribePublishedFileResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2650,8 +2650,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 16; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageUpdatePublishedFileResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageUpdatePublishedFileResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageUpdatePublishedFileResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageUpdatePublishedFileResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2690,8 +2690,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 17; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageDownloadUGCResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageDownloadUGCResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageDownloadUGCResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageDownloadUGCResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2758,8 +2758,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 18; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageGetPublishedFileDetailsResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageGetPublishedFileDetailsResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageGetPublishedFileDetailsResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageGetPublishedFileDetailsResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2850,8 +2850,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 19; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageEnumerateWorkshopFilesResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageEnumerateWorkshopFilesResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageEnumerateWorkshopFilesResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageEnumerateWorkshopFilesResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2899,8 +2899,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 20; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageGetPublishedItemVoteDetailsResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageGetPublishedItemVoteDetailsResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageGetPublishedItemVoteDetailsResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageGetPublishedItemVoteDetailsResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2938,8 +2938,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 21; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStoragePublishedFileSubscribed_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStoragePublishedFileSubscribed_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStoragePublishedFileSubscribed_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStoragePublishedFileSubscribed_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -2969,8 +2969,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 22; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStoragePublishedFileUnsubscribed_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStoragePublishedFileUnsubscribed_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStoragePublishedFileUnsubscribed_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStoragePublishedFileUnsubscribed_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3000,8 +3000,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 23; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStoragePublishedFileDeleted_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStoragePublishedFileDeleted_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStoragePublishedFileDeleted_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStoragePublishedFileDeleted_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3031,8 +3031,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 24; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageUpdateUserPublishedItemVoteResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageUpdateUserPublishedItemVoteResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageUpdateUserPublishedItemVoteResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageUpdateUserPublishedItemVoteResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3063,8 +3063,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 25; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageUserVoteDetails_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageUserVoteDetails_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageUserVoteDetails_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageUserVoteDetails_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3099,8 +3099,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 26; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageEnumerateUserSharedWorkshopFilesResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageEnumerateUserSharedWorkshopFilesResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageEnumerateUserSharedWorkshopFilesResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageEnumerateUserSharedWorkshopFilesResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3137,8 +3137,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 27; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageSetUserPublishedFileActionResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageSetUserPublishedFileActionResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageSetUserPublishedFileActionResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageSetUserPublishedFileActionResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3176,8 +3176,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 28; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageEnumeratePublishedFilesByUserActionResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageEnumeratePublishedFilesByUserActionResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageEnumeratePublishedFilesByUserActionResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageEnumeratePublishedFilesByUserActionResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3220,8 +3220,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 29; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStoragePublishFileProgress_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStoragePublishFileProgress_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStoragePublishFileProgress_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStoragePublishFileProgress_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3254,8 +3254,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 30; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStoragePublishedFileUpdated_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStoragePublishedFileUpdated_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStoragePublishedFileUpdated_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStoragePublishedFileUpdated_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3286,8 +3286,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 31; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageFileWriteAsyncComplete_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageFileWriteAsyncComplete_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageFileWriteAsyncComplete_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageFileWriteAsyncComplete_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3317,8 +3317,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientRemoteStorage + 32; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoteStorageFileReadAsyncComplete_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageFileReadAsyncComplete_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoteStorageFileReadAsyncComplete_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoteStorageFileReadAsyncComplete_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3347,21 +3347,21 @@ namespace SteamNative public struct LeaderboardEntry_t { - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID internal int GlobalRank; // m_nGlobalRank int32 internal int Score; // m_nScore int32 internal int CDetails; // m_cDetails int32 internal ulong UGC; // m_hUGC UGCHandle_t #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public LeaderboardEntry_t Fill( IntPtr p ) => Platform.PackSmall ? ((LeaderboardEntry_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LeaderboardEntry_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public LeaderboardEntry_t Fill( IntPtr p ) => Config.PackSmall ? ((LeaderboardEntry_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LeaderboardEntry_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID internal int GlobalRank; // m_nGlobalRank int32 internal int Score; // m_nScore int32 internal int CDetails; // m_cDetails int32 @@ -3373,7 +3373,7 @@ namespace SteamNative [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID internal int GlobalRank; // m_nGlobalRank int32 internal int Score; // m_nScore int32 internal int CDetails; // m_cDetails int32 @@ -3388,12 +3388,12 @@ namespace SteamNative { internal ulong GameID; // m_nGameID uint64 internal Result Result; // m_eResult enum EResult - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUserStats + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((UserStatsReceived_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((UserStatsReceived_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((UserStatsReceived_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((UserStatsReceived_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3401,17 +3401,17 @@ namespace SteamNative { internal ulong GameID; // m_nGameID uint64 internal Result Result; // m_eResult enum EResult - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID public static implicit operator UserStatsReceived_t ( UserStatsReceived_t.Pack4 d ) => new UserStatsReceived_t{ GameID = d.GameID,Result = d.Result,SteamIDUser = d.SteamIDUser, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal ulong GameID; // m_nGameID uint64 internal Result Result; // m_eResult enum EResult - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID public static implicit operator UserStatsReceived_t ( UserStatsReceived_t.Pack8 d ) => new UserStatsReceived_t{ GameID = d.GameID,Result = d.Result,SteamIDUser = d.SteamIDUser, }; } @@ -3425,8 +3425,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUserStats + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((UserStatsStored_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((UserStatsStored_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((UserStatsStored_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((UserStatsStored_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3461,8 +3461,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUserStats + 3; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((UserAchievementStored_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((UserAchievementStored_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((UserAchievementStored_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((UserAchievementStored_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3502,8 +3502,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUserStats + 4; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LeaderboardFindResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LeaderboardFindResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LeaderboardFindResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LeaderboardFindResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3534,8 +3534,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUserStats + 5; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LeaderboardScoresDownloaded_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LeaderboardScoresDownloaded_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LeaderboardScoresDownloaded_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LeaderboardScoresDownloaded_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3571,8 +3571,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUserStats + 6; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LeaderboardScoreUploaded_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LeaderboardScoreUploaded_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LeaderboardScoreUploaded_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LeaderboardScoreUploaded_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3610,8 +3610,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUserStats + 7; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((NumberOfCurrentPlayers_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((NumberOfCurrentPlayers_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((NumberOfCurrentPlayers_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((NumberOfCurrentPlayers_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3636,26 +3636,26 @@ namespace SteamNative public struct UserStatsUnloaded_t : Steamworks.ISteamCallback { - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUserStats + 8; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((UserStatsUnloaded_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((UserStatsUnloaded_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((UserStatsUnloaded_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((UserStatsUnloaded_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID public static implicit operator UserStatsUnloaded_t ( UserStatsUnloaded_t.Pack4 d ) => new UserStatsUnloaded_t{ SteamIDUser = d.SteamIDUser, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID public static implicit operator UserStatsUnloaded_t ( UserStatsUnloaded_t.Pack8 d ) => new UserStatsUnloaded_t{ SteamIDUser = d.SteamIDUser, }; } @@ -3664,7 +3664,7 @@ namespace SteamNative public struct UserAchievementIconFetched_t : Steamworks.ISteamCallback { - internal ulong GameID; // m_nGameID class CGameID + internal GameId GameID; // m_nGameID class CGameID [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] internal string AchievementName; // m_rgchAchievementName char [128] [MarshalAs(UnmanagedType.I1)] @@ -3673,14 +3673,14 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUserStats + 9; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((UserAchievementIconFetched_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((UserAchievementIconFetched_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((UserAchievementIconFetched_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((UserAchievementIconFetched_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong GameID; // m_nGameID class CGameID + internal GameId GameID; // m_nGameID class CGameID [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] internal string AchievementName; // m_rgchAchievementName char [128] [MarshalAs(UnmanagedType.I1)] @@ -3693,7 +3693,7 @@ namespace SteamNative [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong GameID; // m_nGameID class CGameID + internal GameId GameID; // m_nGameID class CGameID [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] internal string AchievementName; // m_rgchAchievementName char [128] [MarshalAs(UnmanagedType.I1)] @@ -3712,8 +3712,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUserStats + 10; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GlobalAchievementPercentagesReady_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GlobalAchievementPercentagesReady_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GlobalAchievementPercentagesReady_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GlobalAchievementPercentagesReady_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3743,8 +3743,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUserStats + 11; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LeaderboardUGCSet_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LeaderboardUGCSet_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LeaderboardUGCSet_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LeaderboardUGCSet_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3775,8 +3775,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUserStats + 12; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((PS3TrophiesInstalled_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((PS3TrophiesInstalled_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((PS3TrophiesInstalled_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((PS3TrophiesInstalled_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3808,8 +3808,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUserStats + 12; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GlobalStatsReceived_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GlobalStatsReceived_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GlobalStatsReceived_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GlobalStatsReceived_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3838,8 +3838,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamApps + 5; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((DlcInstalled_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((DlcInstalled_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((DlcInstalled_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((DlcInstalled_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3867,8 +3867,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamApps + 8; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RegisterActivationCodeResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RegisterActivationCodeResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RegisterActivationCodeResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RegisterActivationCodeResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3901,8 +3901,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamApps + 21; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((AppProofOfPurchaseKeyResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((AppProofOfPurchaseKeyResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((AppProofOfPurchaseKeyResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((AppProofOfPurchaseKeyResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3941,8 +3941,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamApps + 23; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((FileDetailsResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FileDetailsResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((FileDetailsResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((FileDetailsResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -3983,8 +3983,8 @@ namespace SteamNative internal ushort RemotePort; // m_nRemotePort uint16 #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public P2PSessionState_t Fill( IntPtr p ) => Platform.PackSmall ? ((P2PSessionState_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((P2PSessionState_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public P2PSessionState_t Fill( IntPtr p ) => Config.PackSmall ? ((P2PSessionState_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((P2PSessionState_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4021,26 +4021,26 @@ namespace SteamNative public struct P2PSessionRequest_t : Steamworks.ISteamCallback { - internal ulong SteamIDRemote; // m_steamIDRemote class CSteamID + internal SteamId SteamIDRemote; // m_steamIDRemote class CSteamID #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamNetworking + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((P2PSessionRequest_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((P2PSessionRequest_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((P2PSessionRequest_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((P2PSessionRequest_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDRemote; // m_steamIDRemote class CSteamID + internal SteamId SteamIDRemote; // m_steamIDRemote class CSteamID public static implicit operator P2PSessionRequest_t ( P2PSessionRequest_t.Pack4 d ) => new P2PSessionRequest_t{ SteamIDRemote = d.SteamIDRemote, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDRemote; // m_steamIDRemote class CSteamID + internal SteamId SteamIDRemote; // m_steamIDRemote class CSteamID public static implicit operator P2PSessionRequest_t ( P2PSessionRequest_t.Pack8 d ) => new P2PSessionRequest_t{ SteamIDRemote = d.SteamIDRemote, }; } @@ -4049,28 +4049,28 @@ namespace SteamNative public struct P2PSessionConnectFail_t : Steamworks.ISteamCallback { - internal ulong SteamIDRemote; // m_steamIDRemote class CSteamID + internal SteamId SteamIDRemote; // m_steamIDRemote class CSteamID internal byte P2PSessionError; // m_eP2PSessionError uint8 #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamNetworking + 3; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((P2PSessionConnectFail_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((P2PSessionConnectFail_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((P2PSessionConnectFail_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((P2PSessionConnectFail_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDRemote; // m_steamIDRemote class CSteamID + internal SteamId SteamIDRemote; // m_steamIDRemote class CSteamID internal byte P2PSessionError; // m_eP2PSessionError uint8 public static implicit operator P2PSessionConnectFail_t ( P2PSessionConnectFail_t.Pack4 d ) => new P2PSessionConnectFail_t{ SteamIDRemote = d.SteamIDRemote,P2PSessionError = d.P2PSessionError, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDRemote; // m_steamIDRemote class CSteamID + internal SteamId SteamIDRemote; // m_steamIDRemote class CSteamID internal byte P2PSessionError; // m_eP2PSessionError uint8 public static implicit operator P2PSessionConnectFail_t ( P2PSessionConnectFail_t.Pack8 d ) => new P2PSessionConnectFail_t{ SteamIDRemote = d.SteamIDRemote,P2PSessionError = d.P2PSessionError, }; @@ -4082,13 +4082,13 @@ namespace SteamNative { internal uint Socket; // m_hSocket SNetSocket_t internal uint ListenSocket; // m_hListenSocket SNetListenSocket_t - internal ulong SteamIDRemote; // m_steamIDRemote class CSteamID + internal SteamId SteamIDRemote; // m_steamIDRemote class CSteamID internal int SNetSocketState; // m_eSNetSocketState int #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamNetworking + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SocketStatusCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SocketStatusCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SocketStatusCallback_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SocketStatusCallback_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4096,18 +4096,18 @@ namespace SteamNative { internal uint Socket; // m_hSocket SNetSocket_t internal uint ListenSocket; // m_hListenSocket SNetListenSocket_t - internal ulong SteamIDRemote; // m_steamIDRemote class CSteamID + internal SteamId SteamIDRemote; // m_steamIDRemote class CSteamID internal int SNetSocketState; // m_eSNetSocketState int public static implicit operator SocketStatusCallback_t ( SocketStatusCallback_t.Pack4 d ) => new SocketStatusCallback_t{ Socket = d.Socket,ListenSocket = d.ListenSocket,SteamIDRemote = d.SteamIDRemote,SNetSocketState = d.SNetSocketState, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal uint Socket; // m_hSocket SNetSocket_t internal uint ListenSocket; // m_hListenSocket SNetListenSocket_t - internal ulong SteamIDRemote; // m_steamIDRemote class CSteamID + internal SteamId SteamIDRemote; // m_steamIDRemote class CSteamID internal int SNetSocketState; // m_eSNetSocketState int public static implicit operator SocketStatusCallback_t ( SocketStatusCallback_t.Pack8 d ) => new SocketStatusCallback_t{ Socket = d.Socket,ListenSocket = d.ListenSocket,SteamIDRemote = d.SteamIDRemote,SNetSocketState = d.SNetSocketState, }; @@ -4122,8 +4122,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamScreenshots + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((ScreenshotReady_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ScreenshotReady_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((ScreenshotReady_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ScreenshotReady_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4152,8 +4152,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMusic + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((VolumeHasChanged_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((VolumeHasChanged_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((VolumeHasChanged_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((VolumeHasChanged_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4181,8 +4181,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMusicRemote + 9; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((MusicPlayerWantsShuffled_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MusicPlayerWantsShuffled_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((MusicPlayerWantsShuffled_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MusicPlayerWantsShuffled_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4212,8 +4212,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMusicRemote + 10; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((MusicPlayerWantsLooped_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MusicPlayerWantsLooped_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((MusicPlayerWantsLooped_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MusicPlayerWantsLooped_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4242,8 +4242,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMusic + 11; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((MusicPlayerWantsVolume_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MusicPlayerWantsVolume_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((MusicPlayerWantsVolume_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MusicPlayerWantsVolume_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4270,8 +4270,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMusic + 12; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((MusicPlayerSelectsQueueEntry_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MusicPlayerSelectsQueueEntry_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((MusicPlayerSelectsQueueEntry_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MusicPlayerSelectsQueueEntry_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4298,8 +4298,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMusic + 13; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((MusicPlayerSelectsPlaylistEntry_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MusicPlayerSelectsPlaylistEntry_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((MusicPlayerSelectsPlaylistEntry_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MusicPlayerSelectsPlaylistEntry_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4326,8 +4326,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMusicRemote + 14; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((MusicPlayerWantsPlayingRepeatStatus_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MusicPlayerWantsPlayingRepeatStatus_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((MusicPlayerWantsPlayingRepeatStatus_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((MusicPlayerWantsPlayingRepeatStatus_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4359,8 +4359,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientHTTP + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTTPRequestCompleted_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTTPRequestCompleted_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTTPRequestCompleted_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTTPRequestCompleted_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4398,8 +4398,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientHTTP + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTTPRequestHeadersReceived_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTTPRequestHeadersReceived_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTTPRequestHeadersReceived_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTTPRequestHeadersReceived_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4431,8 +4431,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientHTTP + 3; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTTPRequestDataReceived_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTTPRequestDataReceived_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTTPRequestDataReceived_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTTPRequestDataReceived_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4497,8 +4497,8 @@ namespace SteamNative internal uint NumChildren; // m_unNumChildren uint32 #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public SteamUGCDetails_t Fill( IntPtr p ) => Platform.PackSmall ? ((SteamUGCDetails_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamUGCDetails_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public SteamUGCDetails_t Fill( IntPtr p ) => Config.PackSmall ? ((SteamUGCDetails_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamUGCDetails_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4598,8 +4598,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamUGCQueryCompleted_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamUGCQueryCompleted_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamUGCQueryCompleted_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamUGCQueryCompleted_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4642,8 +4642,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamUGCRequestUGCDetailsResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamUGCRequestUGCDetailsResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamUGCRequestUGCDetailsResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamUGCRequestUGCDetailsResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4677,8 +4677,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 3; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((CreateItemResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((CreateItemResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((CreateItemResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((CreateItemResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4714,8 +4714,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 4; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SubmitItemUpdateResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SubmitItemUpdateResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SubmitItemUpdateResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SubmitItemUpdateResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4750,8 +4750,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 6; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((DownloadItemResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((DownloadItemResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((DownloadItemResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((DownloadItemResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4785,8 +4785,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 7; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((UserFavoriteItemsListChanged_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((UserFavoriteItemsListChanged_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((UserFavoriteItemsListChanged_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((UserFavoriteItemsListChanged_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4822,8 +4822,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 8; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SetUserItemVoteResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SetUserItemVoteResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SetUserItemVoteResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SetUserItemVoteResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4863,8 +4863,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 9; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GetUserItemVoteResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GetUserItemVoteResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GetUserItemVoteResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GetUserItemVoteResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4905,8 +4905,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 10; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((StartPlaytimeTrackingResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((StartPlaytimeTrackingResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((StartPlaytimeTrackingResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((StartPlaytimeTrackingResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4933,8 +4933,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 11; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((StopPlaytimeTrackingResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((StopPlaytimeTrackingResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((StopPlaytimeTrackingResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((StopPlaytimeTrackingResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4963,8 +4963,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 12; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((AddUGCDependencyResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((AddUGCDependencyResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((AddUGCDependencyResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((AddUGCDependencyResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -4997,8 +4997,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 13; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoveUGCDependencyResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoveUGCDependencyResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoveUGCDependencyResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoveUGCDependencyResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5031,8 +5031,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 14; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((AddAppDependencyResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((AddAppDependencyResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((AddAppDependencyResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((AddAppDependencyResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5065,8 +5065,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 15; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((RemoveAppDependencyResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoveAppDependencyResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((RemoveAppDependencyResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((RemoveAppDependencyResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5102,8 +5102,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 16; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GetAppDependenciesResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GetAppDependenciesResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GetAppDependenciesResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GetAppDependenciesResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5141,8 +5141,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 17; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((DeleteItemResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((DeleteItemResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((DeleteItemResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((DeleteItemResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5171,8 +5171,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamAppList + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamAppInstalled_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamAppInstalled_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamAppInstalled_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamAppInstalled_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5199,8 +5199,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamAppList + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamAppUninstalled_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamAppUninstalled_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamAppUninstalled_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamAppUninstalled_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5227,8 +5227,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_BrowserReady_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_BrowserReady_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_BrowserReady_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_BrowserReady_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5265,8 +5265,8 @@ namespace SteamNative internal uint UnPageSerial; // unPageSerial uint32 #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public HTML_NeedsPaint_t Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_NeedsPaint_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_NeedsPaint_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public HTML_NeedsPaint_t Fill( IntPtr p ) => Config.PackSmall ? ((HTML_NeedsPaint_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_NeedsPaint_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5319,8 +5319,8 @@ namespace SteamNative internal bool BIsRedirect; // bIsRedirect _Bool #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public HTML_StartRequest_t Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_StartRequest_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_StartRequest_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public HTML_StartRequest_t Fill( IntPtr p ) => Config.PackSmall ? ((HTML_StartRequest_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_StartRequest_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5356,8 +5356,8 @@ namespace SteamNative internal uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public HTML_CloseBrowser_t Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_CloseBrowser_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_CloseBrowser_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public HTML_CloseBrowser_t Fill( IntPtr p ) => Config.PackSmall ? ((HTML_CloseBrowser_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_CloseBrowser_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5391,8 +5391,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 5; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_URLChanged_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_URLChanged_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_URLChanged_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_URLChanged_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5435,8 +5435,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 6; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_FinishedRequest_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_FinishedRequest_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_FinishedRequest_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_FinishedRequest_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5468,8 +5468,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 7; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_OpenLinkInNewTab_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_OpenLinkInNewTab_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_OpenLinkInNewTab_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_OpenLinkInNewTab_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5499,8 +5499,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 8; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_ChangedTitle_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_ChangedTitle_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_ChangedTitle_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_ChangedTitle_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5531,8 +5531,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 9; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_SearchResults_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_SearchResults_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_SearchResults_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_SearchResults_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5567,8 +5567,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 10; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_CanGoBackAndForward_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_CanGoBackAndForward_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_CanGoBackAndForward_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_CanGoBackAndForward_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5609,8 +5609,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 11; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_HorizontalScroll_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_HorizontalScroll_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_HorizontalScroll_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_HorizontalScroll_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5655,8 +5655,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 12; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_VerticalScroll_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_VerticalScroll_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_VerticalScroll_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_VerticalScroll_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5702,8 +5702,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 13; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_LinkAtPosition_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_LinkAtPosition_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_LinkAtPosition_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_LinkAtPosition_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5745,8 +5745,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 14; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_JSAlert_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_JSAlert_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_JSAlert_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_JSAlert_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5776,8 +5776,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 15; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_JSConfirm_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_JSConfirm_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_JSConfirm_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_JSConfirm_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5808,8 +5808,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 16; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_FileOpenDialog_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_FileOpenDialog_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_FileOpenDialog_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_FileOpenDialog_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5846,8 +5846,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 21; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_NewWindow_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_NewWindow_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_NewWindow_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_NewWindow_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5887,8 +5887,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 22; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_SetCursor_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_SetCursor_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_SetCursor_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_SetCursor_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5918,8 +5918,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 23; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_StatusText_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_StatusText_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_StatusText_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_StatusText_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5949,8 +5949,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 24; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_ShowToolTip_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_ShowToolTip_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_ShowToolTip_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_ShowToolTip_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -5980,8 +5980,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 25; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_UpdateToolTip_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_UpdateToolTip_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_UpdateToolTip_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_UpdateToolTip_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6010,8 +6010,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 26; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_HideToolTip_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_HideToolTip_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_HideToolTip_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_HideToolTip_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6039,8 +6039,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamHTMLSurface + 27; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((HTML_BrowserRestarted_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_BrowserRestarted_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((HTML_BrowserRestarted_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((HTML_BrowserRestarted_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6071,8 +6071,8 @@ namespace SteamNative internal ushort Flags; // m_unFlags uint16 #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public SteamItemDetails_t Fill( IntPtr p ) => Platform.PackSmall ? ((SteamItemDetails_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamItemDetails_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public SteamItemDetails_t Fill( IntPtr p ) => Config.PackSmall ? ((SteamItemDetails_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamItemDetails_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6106,8 +6106,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientInventory + 0; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamInventoryResultReady_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamInventoryResultReady_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamInventoryResultReady_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamInventoryResultReady_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6136,8 +6136,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientInventory + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamInventoryFullUpdate_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamInventoryFullUpdate_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamInventoryFullUpdate_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamInventoryFullUpdate_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6161,22 +6161,22 @@ namespace SteamNative public struct SteamInventoryEligiblePromoItemDefIDs_t : Steamworks.ISteamCallback { internal Result Result; // m_result enum EResult - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID internal int UmEligiblePromoItemDefs; // m_numEligiblePromoItemDefs int [MarshalAs(UnmanagedType.I1)] internal bool CachedData; // m_bCachedData _Bool #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientInventory + 3; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamInventoryEligiblePromoItemDefIDs_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamInventoryEligiblePromoItemDefIDs_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamInventoryEligiblePromoItemDefIDs_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamInventoryEligiblePromoItemDefIDs_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { internal Result Result; // m_result enum EResult - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID internal int UmEligiblePromoItemDefs; // m_numEligiblePromoItemDefs int [MarshalAs(UnmanagedType.I1)] internal bool CachedData; // m_bCachedData _Bool @@ -6184,11 +6184,11 @@ namespace SteamNative public static implicit operator SteamInventoryEligiblePromoItemDefIDs_t ( SteamInventoryEligiblePromoItemDefIDs_t.Pack4 d ) => new SteamInventoryEligiblePromoItemDefIDs_t{ Result = d.Result,SteamID = d.SteamID,UmEligiblePromoItemDefs = d.UmEligiblePromoItemDefs,CachedData = d.CachedData, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal Result Result; // m_result enum EResult - internal ulong SteamID; // m_steamID class CSteamID + internal SteamId SteamID; // m_steamID class CSteamID internal int UmEligiblePromoItemDefs; // m_numEligiblePromoItemDefs int [MarshalAs(UnmanagedType.I1)] internal bool CachedData; // m_bCachedData _Bool @@ -6206,8 +6206,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientInventory + 4; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamInventoryStartPurchaseResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamInventoryStartPurchaseResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamInventoryStartPurchaseResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamInventoryStartPurchaseResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6240,8 +6240,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientInventory + 5; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamInventoryRequestPricesResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamInventoryRequestPricesResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamInventoryRequestPricesResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamInventoryRequestPricesResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6272,8 +6272,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientVideo + 5; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((BroadcastUploadStop_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((BroadcastUploadStop_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((BroadcastUploadStop_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((BroadcastUploadStop_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6303,8 +6303,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientVideo + 11; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GetVideoURLResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GetVideoURLResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GetVideoURLResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GetVideoURLResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6338,8 +6338,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientVideo + 24; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GetOPFSettingsResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GetOPFSettingsResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GetOPFSettingsResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GetOPFSettingsResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6364,29 +6364,29 @@ namespace SteamNative public struct GSClientApprove_t : Steamworks.ISteamCallback { - internal ulong SteamID; // m_SteamID class CSteamID - internal ulong OwnerSteamID; // m_OwnerSteamID class CSteamID + internal SteamId SteamID; // m_SteamID class CSteamID + internal SteamId OwnerSteamID; // m_OwnerSteamID class CSteamID #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameServer + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GSClientApprove_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSClientApprove_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GSClientApprove_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSClientApprove_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamID; // m_SteamID class CSteamID - internal ulong OwnerSteamID; // m_OwnerSteamID class CSteamID + internal SteamId SteamID; // m_SteamID class CSteamID + internal SteamId OwnerSteamID; // m_OwnerSteamID class CSteamID public static implicit operator GSClientApprove_t ( GSClientApprove_t.Pack4 d ) => new GSClientApprove_t{ SteamID = d.SteamID,OwnerSteamID = d.OwnerSteamID, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamID; // m_SteamID class CSteamID - internal ulong OwnerSteamID; // m_OwnerSteamID class CSteamID + internal SteamId SteamID; // m_SteamID class CSteamID + internal SteamId OwnerSteamID; // m_OwnerSteamID class CSteamID public static implicit operator GSClientApprove_t ( GSClientApprove_t.Pack8 d ) => new GSClientApprove_t{ SteamID = d.SteamID,OwnerSteamID = d.OwnerSteamID, }; } @@ -6395,21 +6395,21 @@ namespace SteamNative public struct GSClientDeny_t : Steamworks.ISteamCallback { - internal ulong SteamID; // m_SteamID class CSteamID + internal SteamId SteamID; // m_SteamID class CSteamID internal DenyReason DenyReason; // m_eDenyReason enum EDenyReason [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] internal string OptionalText; // m_rgchOptionalText char [128] #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameServer + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GSClientDeny_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSClientDeny_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GSClientDeny_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSClientDeny_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamID; // m_SteamID class CSteamID + internal SteamId SteamID; // m_SteamID class CSteamID internal DenyReason DenyReason; // m_eDenyReason enum EDenyReason [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] internal string OptionalText; // m_rgchOptionalText char [128] @@ -6417,10 +6417,10 @@ namespace SteamNative public static implicit operator GSClientDeny_t ( GSClientDeny_t.Pack4 d ) => new GSClientDeny_t{ SteamID = d.SteamID,DenyReason = d.DenyReason,OptionalText = d.OptionalText, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamID; // m_SteamID class CSteamID + internal SteamId SteamID; // m_SteamID class CSteamID internal DenyReason DenyReason; // m_eDenyReason enum EDenyReason [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] internal string OptionalText; // m_rgchOptionalText char [128] @@ -6432,28 +6432,28 @@ namespace SteamNative public struct GSClientKick_t : Steamworks.ISteamCallback { - internal ulong SteamID; // m_SteamID class CSteamID + internal SteamId SteamID; // m_SteamID class CSteamID internal DenyReason DenyReason; // m_eDenyReason enum EDenyReason #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameServer + 3; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GSClientKick_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSClientKick_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GSClientKick_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSClientKick_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamID; // m_SteamID class CSteamID + internal SteamId SteamID; // m_SteamID class CSteamID internal DenyReason DenyReason; // m_eDenyReason enum EDenyReason public static implicit operator GSClientKick_t ( GSClientKick_t.Pack4 d ) => new GSClientKick_t{ SteamID = d.SteamID,DenyReason = d.DenyReason, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamID; // m_SteamID class CSteamID + internal SteamId SteamID; // m_SteamID class CSteamID internal DenyReason DenyReason; // m_eDenyReason enum EDenyReason public static implicit operator GSClientKick_t ( GSClientKick_t.Pack8 d ) => new GSClientKick_t{ SteamID = d.SteamID,DenyReason = d.DenyReason, }; @@ -6471,8 +6471,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameServer + 6; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GSClientAchievementStatus_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSClientAchievementStatus_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GSClientAchievementStatus_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSClientAchievementStatus_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6507,8 +6507,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUser + 15; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GSPolicyResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSPolicyResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GSPolicyResponse_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSPolicyResponse_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6538,8 +6538,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameServer + 7; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GSGameplayStats_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSGameplayStats_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GSGameplayStats_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSGameplayStats_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6568,8 +6568,8 @@ namespace SteamNative public struct GSClientGroupStatus_t : Steamworks.ISteamCallback { - internal ulong SteamIDUser; // m_SteamIDUser class CSteamID - internal ulong SteamIDGroup; // m_SteamIDGroup class CSteamID + internal SteamId SteamIDUser; // m_SteamIDUser class CSteamID + internal SteamId SteamIDGroup; // m_SteamIDGroup class CSteamID [MarshalAs(UnmanagedType.I1)] internal bool Member; // m_bMember _Bool [MarshalAs(UnmanagedType.I1)] @@ -6577,15 +6577,15 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameServer + 8; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GSClientGroupStatus_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSClientGroupStatus_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GSClientGroupStatus_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSClientGroupStatus_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDUser; // m_SteamIDUser class CSteamID - internal ulong SteamIDGroup; // m_SteamIDGroup class CSteamID + internal SteamId SteamIDUser; // m_SteamIDUser class CSteamID + internal SteamId SteamIDGroup; // m_SteamIDGroup class CSteamID [MarshalAs(UnmanagedType.I1)] internal bool Member; // m_bMember _Bool [MarshalAs(UnmanagedType.I1)] @@ -6594,11 +6594,11 @@ namespace SteamNative public static implicit operator GSClientGroupStatus_t ( GSClientGroupStatus_t.Pack4 d ) => new GSClientGroupStatus_t{ SteamIDUser = d.SteamIDUser,SteamIDGroup = d.SteamIDGroup,Member = d.Member,Officer = d.Officer, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDUser; // m_SteamIDUser class CSteamID - internal ulong SteamIDGroup; // m_SteamIDGroup class CSteamID + internal SteamId SteamIDUser; // m_SteamIDUser class CSteamID + internal SteamId SteamIDGroup; // m_SteamIDGroup class CSteamID [MarshalAs(UnmanagedType.I1)] internal bool Member; // m_bMember _Bool [MarshalAs(UnmanagedType.I1)] @@ -6622,8 +6622,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameServer + 9; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GSReputation_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSReputation_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GSReputation_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSReputation_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6664,8 +6664,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameServer + 10; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((AssociateWithClanResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((AssociateWithClanResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((AssociateWithClanResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((AssociateWithClanResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6692,12 +6692,12 @@ namespace SteamNative internal int CPlayersThatDontLikeCandidate; // m_cPlayersThatDontLikeCandidate int internal int CPlayersThatCandidateDoesntLike; // m_cPlayersThatCandidateDoesntLike int internal int CClanPlayersThatDontLikeCandidate; // m_cClanPlayersThatDontLikeCandidate int - internal ulong SteamIDCandidate; // m_SteamIDCandidate class CSteamID + internal SteamId SteamIDCandidate; // m_SteamIDCandidate class CSteamID #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameServer + 11; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((ComputeNewPlayerCompatibilityResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ComputeNewPlayerCompatibilityResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((ComputeNewPlayerCompatibilityResult_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ComputeNewPlayerCompatibilityResult_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6707,19 +6707,19 @@ namespace SteamNative internal int CPlayersThatDontLikeCandidate; // m_cPlayersThatDontLikeCandidate int internal int CPlayersThatCandidateDoesntLike; // m_cPlayersThatCandidateDoesntLike int internal int CClanPlayersThatDontLikeCandidate; // m_cClanPlayersThatDontLikeCandidate int - internal ulong SteamIDCandidate; // m_SteamIDCandidate class CSteamID + internal SteamId SteamIDCandidate; // m_SteamIDCandidate class CSteamID public static implicit operator ComputeNewPlayerCompatibilityResult_t ( ComputeNewPlayerCompatibilityResult_t.Pack4 d ) => new ComputeNewPlayerCompatibilityResult_t{ Result = d.Result,CPlayersThatDontLikeCandidate = d.CPlayersThatDontLikeCandidate,CPlayersThatCandidateDoesntLike = d.CPlayersThatCandidateDoesntLike,CClanPlayersThatDontLikeCandidate = d.CClanPlayersThatDontLikeCandidate,SteamIDCandidate = d.SteamIDCandidate, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal Result Result; // m_eResult enum EResult internal int CPlayersThatDontLikeCandidate; // m_cPlayersThatDontLikeCandidate int internal int CPlayersThatCandidateDoesntLike; // m_cPlayersThatCandidateDoesntLike int internal int CClanPlayersThatDontLikeCandidate; // m_cClanPlayersThatDontLikeCandidate int - internal ulong SteamIDCandidate; // m_SteamIDCandidate class CSteamID + internal SteamId SteamIDCandidate; // m_SteamIDCandidate class CSteamID public static implicit operator ComputeNewPlayerCompatibilityResult_t ( ComputeNewPlayerCompatibilityResult_t.Pack8 d ) => new ComputeNewPlayerCompatibilityResult_t{ Result = d.Result,CPlayersThatDontLikeCandidate = d.CPlayersThatDontLikeCandidate,CPlayersThatCandidateDoesntLike = d.CPlayersThatCandidateDoesntLike,CClanPlayersThatDontLikeCandidate = d.CClanPlayersThatDontLikeCandidate,SteamIDCandidate = d.SteamIDCandidate, }; } @@ -6729,28 +6729,28 @@ namespace SteamNative public struct GSStatsReceived_t : Steamworks.ISteamCallback { internal Result Result; // m_eResult enum EResult - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameServerStats + 0; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GSStatsReceived_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSStatsReceived_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GSStatsReceived_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSStatsReceived_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { internal Result Result; // m_eResult enum EResult - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID public static implicit operator GSStatsReceived_t ( GSStatsReceived_t.Pack4 d ) => new GSStatsReceived_t{ Result = d.Result,SteamIDUser = d.SteamIDUser, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal Result Result; // m_eResult enum EResult - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID public static implicit operator GSStatsReceived_t ( GSStatsReceived_t.Pack8 d ) => new GSStatsReceived_t{ Result = d.Result,SteamIDUser = d.SteamIDUser, }; } @@ -6760,28 +6760,28 @@ namespace SteamNative public struct GSStatsStored_t : Steamworks.ISteamCallback { internal Result Result; // m_eResult enum EResult - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameServerStats + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GSStatsStored_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSStatsStored_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GSStatsStored_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSStatsStored_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { internal Result Result; // m_eResult enum EResult - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID public static implicit operator GSStatsStored_t ( GSStatsStored_t.Pack4 d ) => new GSStatsStored_t{ Result = d.Result,SteamIDUser = d.SteamIDUser, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { internal Result Result; // m_eResult enum EResult - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID public static implicit operator GSStatsStored_t ( GSStatsStored_t.Pack8 d ) => new GSStatsStored_t{ Result = d.Result,SteamIDUser = d.SteamIDUser, }; } @@ -6790,26 +6790,26 @@ namespace SteamNative public struct GSStatsUnloaded_t : Steamworks.ISteamCallback { - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUserStats + 8; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GSStatsUnloaded_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSStatsUnloaded_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GSStatsUnloaded_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GSStatsUnloaded_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] public struct Pack4 { - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID public static implicit operator GSStatsUnloaded_t ( GSStatsUnloaded_t.Pack4 d ) => new GSStatsUnloaded_t{ SteamIDUser = d.SteamIDUser, }; } - [StructLayout( LayoutKind.Sequential, Pack = 4 )] + [StructLayout( LayoutKind.Sequential, Pack = 8 )] public struct Pack8 { - internal ulong SteamIDUser; // m_steamIDUser class CSteamID + internal SteamId SteamIDUser; // m_steamIDUser class CSteamID public static implicit operator GSStatsUnloaded_t ( GSStatsUnloaded_t.Pack8 d ) => new GSStatsUnloaded_t{ SteamIDUser = d.SteamIDUser, }; } @@ -6821,8 +6821,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamMusic + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((PlaybackStatusHasChanged_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((PlaybackStatusHasChanged_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((PlaybackStatusHasChanged_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((PlaybackStatusHasChanged_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6846,8 +6846,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientVideo + 4; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((BroadcastUploadStart_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((BroadcastUploadStart_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((BroadcastUploadStart_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((BroadcastUploadStart_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6871,8 +6871,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamApps + 14; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((NewUrlLaunchParameters_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((NewUrlLaunchParameters_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((NewUrlLaunchParameters_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((NewUrlLaunchParameters_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6898,8 +6898,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientUGC + 5; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((ItemInstalled_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ItemInstalled_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((ItemInstalled_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ItemInstalled_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6931,8 +6931,8 @@ namespace SteamNative internal bool BActive; // bActive bool #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public InputAnalogActionData_t Fill( IntPtr p ) => Platform.PackSmall ? ((InputAnalogActionData_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((InputAnalogActionData_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public InputAnalogActionData_t Fill( IntPtr p ) => Config.PackSmall ? ((InputAnalogActionData_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((InputAnalogActionData_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -6975,8 +6975,8 @@ namespace SteamNative internal float RotVelZ; // rotVelZ float #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public InputMotionData_t Fill( IntPtr p ) => Platform.PackSmall ? ((InputMotionData_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((InputMotionData_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public InputMotionData_t Fill( IntPtr p ) => Config.PackSmall ? ((InputMotionData_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((InputMotionData_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -7023,8 +7023,8 @@ namespace SteamNative internal bool BActive; // bActive bool #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public InputDigitalActionData_t Fill( IntPtr p ) => Platform.PackSmall ? ((InputDigitalActionData_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((InputDigitalActionData_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public InputDigitalActionData_t Fill( IntPtr p ) => Config.PackSmall ? ((InputDigitalActionData_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((InputDigitalActionData_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -7056,8 +7056,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.ClientInventory + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamInventoryDefinitionUpdate_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamInventoryDefinitionUpdate_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamInventoryDefinitionUpdate_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamInventoryDefinitionUpdate_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -7081,8 +7081,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamParentalSettings + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamParentalSettingsChanged_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamParentalSettingsChanged_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamParentalSettingsChanged_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamParentalSettingsChanged_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -7106,8 +7106,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUser + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamServersConnected_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamServersConnected_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamServersConnected_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamServersConnected_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -7130,8 +7130,8 @@ namespace SteamNative { #region Marshalling - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public NewLaunchQueryParameters_t Fill( IntPtr p ) => Platform.PackSmall ? ((NewLaunchQueryParameters_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((NewLaunchQueryParameters_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public NewLaunchQueryParameters_t Fill( IntPtr p ) => Config.PackSmall ? ((NewLaunchQueryParameters_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((NewLaunchQueryParameters_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -7156,8 +7156,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameCoordinator + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GCMessageAvailable_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GCMessageAvailable_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GCMessageAvailable_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GCMessageAvailable_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -7183,8 +7183,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamGameCoordinator + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((GCMessageFailed_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GCMessageFailed_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((GCMessageFailed_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((GCMessageFailed_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -7208,8 +7208,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamScreenshots + 2; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((ScreenshotRequested_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ScreenshotRequested_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((ScreenshotRequested_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((ScreenshotRequested_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -7233,8 +7233,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUser + 25; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((LicensesUpdated_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LicensesUpdated_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((LicensesUpdated_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((LicensesUpdated_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -7258,8 +7258,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUtils + 4; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((SteamShutdown_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamShutdown_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((SteamShutdown_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((SteamShutdown_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -7283,8 +7283,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUtils + 1; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((IPCountry_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((IPCountry_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((IPCountry_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((IPCountry_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -7309,8 +7309,8 @@ namespace SteamNative #region ISteamCallback public int GetCallbackId() => CallbackIdentifiers.SteamUser + 17; - public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) ); - public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? ((IPCFailure_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((IPCFailure_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); + public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) ); + public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? ((IPCFailure_t)(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : ((IPCFailure_t)(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) )); #endregion #region Packed Versions [StructLayout( LayoutKind.Sequential, Pack = 4 )] @@ -7331,197 +7331,4 @@ namespace SteamNative #endregion } - internal static class Callbacks - { - internal static void RegisterCallbacks( Facepunch.Steamworks.BaseSteamworks steamworks ) - { - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - new CallbackHandle( steamworks ); - } - } } diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Types.cs b/Facepunch.Steamworks/Generated/SteamTypes.cs similarity index 96% rename from Facepunch.Steamworks/SteamNative/SteamNative.Types.cs rename to Facepunch.Steamworks/Generated/SteamTypes.cs index 18828a8..9694bab 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Types.cs +++ b/Facepunch.Steamworks/Generated/SteamTypes.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; using System.Linq; -namespace SteamNative +namespace Steamworks { public struct GID_t { @@ -754,34 +754,4 @@ namespace SteamNative } } - public struct CGameID - { - public ulong Value; - - public static implicit operator CGameID( ulong value ) - { - return new CGameID(){ Value = value }; - } - - public static implicit operator ulong( CGameID value ) - { - return value.Value; - } - } - - public struct CSteamID - { - public ulong Value; - - public static implicit operator CSteamID( ulong value ) - { - return new CSteamID(){ Value = value }; - } - - public static implicit operator ulong( CSteamID value ) - { - return value.Value; - } - } - } diff --git a/Facepunch.Steamworks/Interfaces/Inventory.Definition.cs b/Facepunch.Steamworks/Interfaces/Inventory.Definition.cs deleted file mode 100644 index 996ac19..0000000 --- a/Facepunch.Steamworks/Interfaces/Inventory.Definition.cs +++ /dev/null @@ -1,384 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Runtime.InteropServices; -using System.Text; -using SteamNative; - -namespace Facepunch.Steamworks -{ - public partial class Inventory - { - /// - /// An item definition. This describes an item in your Steam inventory, but is - /// not unique to that item. For example, this might be a tshirt, but you might be able to own - /// multiple tshirts. - /// - public class Definition - { - internal Inventory inventory; - - public int Id { get; private set; } - public string Name { get; set; } - public string Description { get; set; } - - /// - /// URL to an image specified by the schema, else empty - /// - public string IconUrl { get; set; } - - /// - /// URL to an image specified by the schema, else empty - /// - public string IconLargeUrl { get; set; } - - /// - /// Type can be whatever the schema defines. - /// - public string Type { get; set; } - - /// - /// If this item can be created using other items this string will contain a comma seperated - /// list of definition ids that can be used, ie "100,101;102x5;103x3,104x3" - /// - public string ExchangeSchema { get; set; } - - /// - /// A list of recepies for creating this item. Can be null if none. - /// - public Recipe[] Recipes { get; set; } - - /// - /// A list of recepies we're included in - /// - public Recipe[] IngredientFor { get; set; } - - public DateTime Created { get; set; } - public DateTime Modified { get; set; } - - /// - /// The raw contents of price_category from the schema - /// - public string PriceCategory { get; set; } - - /// - /// The dollar price from PriceRaw - /// - public double PriceDollars { get; internal set; } - - - /// - /// The price in the local player's currency. The local player's currency - /// is available in Invetory.Currency - /// - public double LocalPrice { get; internal set; } - - /// - /// Local Price but probably how you want to display it (ie, $3.99, £1.99 etc ) - /// - public string LocalPriceFormatted { get; internal set; } - - /// - /// Returns true if this item can be sold on the marketplace - /// - public bool Marketable { get; set; } - - public bool IsGenerator - { - get { return Type == "generator"; } - } - - private Dictionary customProperties; - - internal Definition( Inventory i, int id ) - { - inventory = i; - Id = id; - - SetupCommonProperties(); - UpdatePrice(); - } - - /// - /// If you're manually occupying the Definition (because maybe you're on a server - /// and want to hack around the fact that definitions aren't presented to you), - /// you can use this to set propertis. - /// - public void SetProperty( string name, string value ) - { - if ( customProperties == null ) - customProperties = new Dictionary(); - - if ( !customProperties.ContainsKey( name ) ) - customProperties.Add( name, value ); - else - customProperties[name] = value; - } - - /// - /// Read a raw property from the definition schema - /// - public T GetProperty( string name ) - { - string val = GetStringProperty( name ); - - if ( string.IsNullOrEmpty( val ) ) - return default( T ); - - try - { - return (T)Convert.ChangeType( val, typeof( T ) ); - } - catch ( System.Exception ) - { - return default( T ); - } - } - - /// - /// Read a raw property from the definition schema - /// - public string GetStringProperty( string name ) - { - string val = string.Empty; - - if ( customProperties != null && customProperties.ContainsKey( name ) ) - return customProperties[name]; - - if ( !inventory.inventory.GetItemDefinitionProperty( Id, name, out val ) ) - return string.Empty; - - return val; - } - - /// - /// Read and cache a raw property from the definition schema to make accessing it faster in the future - /// - public string GetCachedStringProperty( string name ) - { - string val = string.Empty; - - if ( customProperties == null ) - customProperties = new Dictionary(); - - if ( !customProperties.TryGetValue( name, out val ) ) - { - inventory.inventory.GetItemDefinitionProperty( Id, name, out val ); - customProperties.Add( name, val ); - } - - return val; - } - - /// - /// Read a raw property from the definition schema - /// - public bool GetBoolProperty( string name ) - { - string val = GetStringProperty( name ); - - if ( val.Length == 0 ) return false; - if ( val[0] == '0' || val[0] == 'F'|| val[0] == 'f' ) return false; - - return true; - } - - internal void SetupCommonProperties() - { - Name = GetStringProperty( "name" ); - Description = GetStringProperty( "description" ); - Created = GetProperty( "timestamp" ); - Modified = GetProperty( "modified" ); - ExchangeSchema = GetStringProperty( "exchange" ); - IconUrl = GetStringProperty( "icon_url" ); - IconLargeUrl = GetStringProperty( "icon_url_large" ); - Type = GetStringProperty( "type" ); - PriceCategory = GetStringProperty( "price_category" ); - Marketable = GetBoolProperty( "marketable" ); - - if ( !string.IsNullOrEmpty( PriceCategory ) ) - { - PriceDollars = PriceCategoryToFloat( PriceCategory ); - } - } - - /// - /// Trigger an item drop. Call this when it's a good time to award - /// an item drop to a player. This won't automatically result in giving - /// an item to a player. Just call it every minute or so, or on launch. - /// ItemDefinition is usually a generator - /// - public void TriggerItemDrop() - { - inventory.TriggerItemDrop( Id ); - } - - /// - /// Trigger a promo item drop. You can call this at startup, it won't - /// give users multiple promo drops. - /// - public void TriggerPromoDrop() - { - inventory.TriggerPromoDrop( Id ); - } - - internal void Link( Definition[] definitions ) - { - LinkExchange( definitions ); - } - - private void LinkExchange( Definition[] definitions ) - { - if ( string.IsNullOrEmpty( ExchangeSchema ) ) return; - - var parts = ExchangeSchema.Split( new[] { ';' }, StringSplitOptions.RemoveEmptyEntries ); - - Recipes = parts.Select( x => Recipe.FromString( x, definitions, this ) ).ToArray(); - } - - internal void InRecipe( Recipe r ) - { - if ( IngredientFor == null ) - IngredientFor = new Recipe[0]; - - var list = new List( IngredientFor ); - list.Add( r ); - - IngredientFor = list.ToArray(); - } - - internal void UpdatePrice() - { - if ( inventory.inventory.GetItemPrice( Id, out ulong price, out ulong basePrice ) ) - { - LocalPrice = price / 100.0; - LocalPriceFormatted = Utility.FormatPrice( inventory.Currency, price ); - } - else - { - LocalPrice = 0; - LocalPriceFormatted = null; - } - } - } - - /// - /// Trigger a promo item drop. You can call this at startup, it won't - /// give users multiple promo drops. - /// - public void TriggerPromoDrop( int definitionId ) - { - SteamNative.SteamInventoryResult_t result = 0; - inventory.AddPromoItem( ref result, definitionId ); - inventory.DestroyResult( result ); - } - - /// - /// Trigger an item drop for this user. This is for timed drops. For promo - /// drops use TriggerPromoDrop. - /// - public void TriggerItemDrop( int definitionId ) - { - SteamNative.SteamInventoryResult_t result = 0; - inventory.TriggerItemDrop( ref result, definitionId ); - inventory.DestroyResult( result ); - } - - /// - /// Grant all promotional items the user is eligible for. - /// - public void GrantAllPromoItems() - { - SteamNative.SteamInventoryResult_t result = 0; - inventory.GrantPromoItems( ref result ); - inventory.DestroyResult( result ); - } - - /// - /// Represents a crafting recepie which was defined using the exchange - /// section in the item schema. - /// - public struct Recipe - { - public struct Ingredient - { - /// - /// The definition ID of the ingredient. - /// - public int DefinitionId; - - /// - /// If we don't know about this item definition this might be null. - /// In which case, DefinitionId should still hold the correct id. - /// - public Definition Definition; - - /// - /// The amount of this item needed. Generally this will be 1. - /// - public int Count; - - internal static Ingredient FromString( string part, Definition[] definitions ) - { - var i = new Ingredient(); - i.Count = 1; - - try - { - - if ( part.Contains( 'x' ) ) - { - var idx = part.IndexOf( 'x' ); - - int count = 0; - if ( int.TryParse( part.Substring( idx + 1 ), out count ) ) - i.Count = count; - - part = part.Substring( 0, idx ); - } - - i.DefinitionId = int.Parse( part ); - i.Definition = definitions.FirstOrDefault( x => x.Id == i.DefinitionId ); - - } - catch ( System.Exception ) - { - return i; - } - - return i; - } - } - - /// - /// The item that this will create. - /// - public Definition Result; - - /// - /// The items, with quantity required to create this item. - /// - public Ingredient[] Ingredients; - - internal static Recipe FromString( string part, Definition[] definitions, Definition Result ) - { - var r = new Recipe(); - r.Result = Result; - var parts = part.Split( new[] { ',' }, StringSplitOptions.RemoveEmptyEntries ); - - r.Ingredients = parts.Select( x => Ingredient.FromString( x, definitions ) ).Where( x => x.DefinitionId != 0 ).ToArray(); - - foreach ( var i in r.Ingredients ) - { - if ( i.Definition == null ) - continue; - - i.Definition.InRecipe( r ); - } - - return r; - } - } - } -} diff --git a/Facepunch.Steamworks/Interfaces/Inventory.Item.cs b/Facepunch.Steamworks/Interfaces/Inventory.Item.cs deleted file mode 100644 index 8ed1982..0000000 --- a/Facepunch.Steamworks/Interfaces/Inventory.Item.cs +++ /dev/null @@ -1,183 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.InteropServices; -using System.Text; - -namespace Facepunch.Steamworks -{ - public partial class Inventory - { - /// - /// An item in your inventory. - /// - public class Item : IEquatable - { - internal Item( Inventory Inventory, ulong Id, int Quantity, int DefinitionId ) - { - this.Inventory = Inventory; - this.Id = Id; - this.Quantity = Quantity; - this.DefinitionId = DefinitionId; - } - - public struct Amount - { - public Item Item; - public int Quantity; - } - - public ulong Id; - public int Quantity; - - public int DefinitionId; - - internal Inventory Inventory; - - public Dictionary Properties { get; internal set; } - - private Definition _cachedDefinition; - - /// - /// Careful, this might not be available. Especially on a game server. - /// - public Definition Definition - { - get - { - if ( _cachedDefinition != null ) - return _cachedDefinition; - - _cachedDefinition = Inventory.FindDefinition( DefinitionId ); - return _cachedDefinition; - } - } - - public bool TradeLocked; - - public bool Equals(Item other) - { - if (ReferenceEquals(null, other)) return false; - if (ReferenceEquals(this, other)) return true; - return Id == other.Id; - } - - public override bool Equals(object obj) - { - if (ReferenceEquals(null, obj)) return false; - if (ReferenceEquals(this, obj)) return true; - if (obj.GetType() != this.GetType()) return false; - return Equals((Item)obj); - } - - public override int GetHashCode() - { - return Id.GetHashCode(); - } - - public static bool operator ==(Item left, Item right) - { - return Equals(left, right); - } - - public static bool operator !=(Item left, Item right) - { - return !Equals(left, right); - } - - /// - /// Consumes items from a user's inventory. If the quantity of the given item goes to zero, it is permanently removed. - /// Once an item is removed it cannot be recovered.This is not for the faint of heart - if your game implements item removal at all, - /// a high-friction UI confirmation process is highly recommended.ConsumeItem can be restricted to certain item definitions or fully - /// blocked via the Steamworks website to minimize support/abuse issues such as the classic "my brother borrowed my laptop and deleted all of my rare items". - /// - public Result Consume( int amount = 1 ) - { - SteamNative.SteamInventoryResult_t resultHandle = -1; - if ( !Inventory.inventory.ConsumeItem( ref resultHandle, Id, (uint)amount ) ) - return null; - - return new Result( Inventory, resultHandle, true ); - } - - /// - /// Split stack into two items - /// - public Result SplitStack( int quantity = 1 ) - { - SteamNative.SteamInventoryResult_t resultHandle = -1; - if ( !Inventory.inventory.TransferItemQuantity( ref resultHandle, Id, (uint)quantity, ulong.MaxValue ) ) - return null; - - return new Result( Inventory, resultHandle, true ); - } - - SteamNative.SteamInventoryUpdateHandle_t updateHandle; - - private void UpdatingProperties() - { - if (!Inventory.EnableItemProperties) - throw new InvalidOperationException("Item properties are disabled."); - - if (updateHandle != 0) return; - - updateHandle = Inventory.inventory.StartUpdateProperties(); - } - - public bool SetProperty( string name, string value ) - { - UpdatingProperties(); - Properties[name] = value.ToString(); - return Inventory.inventory.SetProperty(updateHandle, Id, name, value); - } - - public bool SetProperty(string name, bool value) - { - UpdatingProperties(); - Properties[name] = value.ToString(); - return Inventory.inventory.SetProperty0(updateHandle, Id, name, value); - } - - public bool SetProperty(string name, long value) - { - UpdatingProperties(); - Properties[name] = value.ToString(); - return Inventory.inventory.SetProperty1(updateHandle, Id, name, value); - } - - public bool SetProperty(string name, float value) - { - UpdatingProperties(); - Properties[name] = value.ToString(); - return Inventory.inventory.SetProperty2(updateHandle, Id, name, value); - } - - /// - /// Called to finalize any changes made using SetProperty - /// - public bool SubmitProperties() - { - if (updateHandle == 0) - throw new Exception("SubmitProperties called without updating properties"); - - try - { - SteamNative.SteamInventoryResult_t result = -1; - - if (!Inventory.inventory.SubmitUpdateProperties(updateHandle, ref result)) - { - return false; - } - - Inventory.inventory.DestroyResult(result); - - return true; - } - finally - { - updateHandle = 0; - } - } - } - } -} diff --git a/Facepunch.Steamworks/Interfaces/Inventory.Result.cs b/Facepunch.Steamworks/Interfaces/Inventory.Result.cs deleted file mode 100644 index 7038ce6..0000000 --- a/Facepunch.Steamworks/Interfaces/Inventory.Result.cs +++ /dev/null @@ -1,216 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.InteropServices; -using System.Text; -using SteamNative; - -namespace Facepunch.Steamworks -{ - public partial class Inventory - { - public class Result : IDisposable - { - internal static Dictionary< int, Result > Pending; - internal Inventory inventory; - - private SteamNative.SteamInventoryResult_t Handle { get; set; } = -1; - - /// - /// Called when result is successfully returned - /// - public Action OnResult; - - /// - /// Items that exist, or that have been created, or changed - /// - public Item[] Items { get; internal set; } - - /// - /// Items that have been removed or somehow destroyed - /// - public Item[] Removed { get; internal set; } - - /// - /// Items that have been consumed, like in a craft or something - /// - public Item[] Consumed { get; internal set; } - - protected bool _gotResult = false; - - /// - /// Returns true if this result is still pending - /// - public bool IsPending - { - get - { - if ( _gotResult ) return false; - - if ( Status() == Callbacks.Result.OK ) - { - Fill(); - return false; - } - - return Status() == Callbacks.Result.Pending; - } - } - - internal uint Timestamp { get; private set; } - - internal bool IsSuccess - { - get - { - if ( Items != null ) return true; - if ( Handle == -1 ) return false; - return Status() == Callbacks.Result.OK; - } - } - - internal Callbacks.Result Status() - { - if ( Handle == -1 ) return Callbacks.Result.InvalidParam; - return (Callbacks.Result)inventory.inventory.GetResultStatus( Handle ); - } - - internal Result( Inventory inventory, int Handle, bool pending ) - { - if ( pending ) - { - Pending.Add( Handle, this ); - } - - this.Handle = Handle; - this.inventory = inventory; - } - - - internal void Fill() - { - if ( _gotResult ) - return; - - if ( Items != null ) - return; - - if ( Status() != Callbacks.Result.OK ) - return; - - _gotResult = true; - - Timestamp = inventory.inventory.GetResultTimestamp( Handle ); - - SteamNative.SteamItemDetails_t[] steamItems = inventory.inventory.GetResultItems( Handle ); - - if ( steamItems == null ) - return; - - var tempItems = new List(); - var tempRemoved = new List(); - var tempConsumed = new List(); - - for ( int i=0; i< steamItems.Length; i++ ) - { - var item = inventory.ItemFrom( Handle, steamItems[i], i ); - if ( item == null ) - { - continue; - } - - if ( ( steamItems[i].Flags & (int)SteamNative.SteamItemFlags.Removed ) != 0 ) - { - tempRemoved.Add(item); - } - else if ((steamItems[i].Flags & (int)SteamNative.SteamItemFlags.Consumed) != 0) - { - tempConsumed.Add(item); - } - else - { - tempItems.Add(item); - } - } - - Items = tempItems.ToArray(); - Removed = tempRemoved.ToArray(); - Consumed = tempConsumed.ToArray(); - - if ( OnResult != null ) - { - OnResult( this ); - } - } - - internal void OnSteamResult( SteamInventoryResultReady_t data ) - { - var success = data.Result == SteamNative.Result.OK; - - if ( success ) - { - Fill(); - } - } - - internal unsafe byte[] Serialize() - { - uint size = 0; - - if ( !inventory.inventory.SerializeResult( Handle, IntPtr.Zero, out size ) ) - return null; - - var data = new byte[size]; - - fixed ( byte* ptr = data ) - { - if ( !inventory.inventory.SerializeResult( Handle, (IntPtr)ptr, out size ) ) - return null; - } - - return data; - } - - public void Dispose() - { - if ( Handle != -1 && inventory != null ) - { - inventory.inventory.DestroyResult( Handle ); - Handle = -1; - } - - inventory = null; - } - } - - internal Item ItemFrom( SteamInventoryResult_t handle, SteamItemDetails_t detail, int index ) - { - Dictionary props = null; - - if ( EnableItemProperties && inventory.GetResultItemProperty(handle, (uint) index, null, out string propertyNames) ) - { - props = new Dictionary(); - - foreach ( var propertyName in propertyNames.Split( ',' ) ) - { - if ( inventory.GetResultItemProperty(handle, (uint)index, propertyName, out string propertyValue ) ) - { - if (propertyName == "error") - { - Console.Write("Steam item error: "); - Console.WriteLine(propertyValue); - return null; - } - - props.Add(propertyName, propertyValue); - } - } - } - - var item = new Item( this, detail.ItemId, detail.Quantity, detail.Definition ); - item.Properties = props; - - return item; - } - } -} diff --git a/Facepunch.Steamworks/Interfaces/Inventory.cs b/Facepunch.Steamworks/Interfaces/Inventory.cs deleted file mode 100644 index 8ecc908..0000000 --- a/Facepunch.Steamworks/Interfaces/Inventory.cs +++ /dev/null @@ -1,487 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Runtime.InteropServices; -using System.Text; -using SteamNative; - -namespace Facepunch.Steamworks -{ - public partial class Inventory : IDisposable - { - /// - /// Called when the local client's items are first retrieved, and when they change. - /// Obviously not called on the server. - /// - public event Action OnUpdate; - - /// - /// A list of items owned by this user. You should call Refresh() before trying to access this, - /// and then wait until it's non null or listen to OnUpdate to find out immediately when it's populated. - /// - public Item[] Items; - - /// - /// You can send this data to a server, or another player who can then deserialize it - /// and get a verified list of items. - /// - public byte[] SerializedItems; - - /// - /// Serialized data exprires after an hour. This is the time the value in SerializedItems will expire. - /// - public DateTime SerializedExpireTime; - - /// - /// Controls whether per-item properties () are available or not. Default true. - /// This can improve performance of full inventory updates. - /// - public bool EnableItemProperties = true; - - internal uint LastTimestamp = 0; - - internal SteamNative.SteamInventory inventory; - - private bool IsServer { get; set; } - - public event Action OnDefinitionsUpdated; - - public event Action OnInventoryResultReady; - - internal Inventory( BaseSteamworks steamworks, SteamNative.SteamInventory c, bool server ) - { - IsServer = server; - inventory = c; - - steamworks.RegisterCallback( onDefinitionsUpdated ); - - Result.Pending = new Dictionary(); - - FetchItemDefinitions(); - LoadDefinitions(); - UpdatePrices(); - - if ( !server ) - { - steamworks.RegisterCallback( onResultReady ); - steamworks.RegisterCallback( onFullUpdate ); - - - // - // Get a list of our items immediately - // - Refresh(); - } - } - - /// - /// Should get called when the definitions get updated from Steam. - /// - private void onDefinitionsUpdated( SteamInventoryDefinitionUpdate_t obj ) - { - LoadDefinitions(); - UpdatePrices(); - - if ( OnDefinitionsUpdated != null ) - { - OnDefinitionsUpdated.Invoke(); - } - } - - private bool LoadDefinitions() - { - var ids = inventory.GetItemDefinitionIDs(); - if ( ids == null ) - return false; - - Definitions = ids.Select( x => CreateDefinition( x ) ).ToArray(); - - foreach ( var def in Definitions ) - { - def.Link( Definitions ); - } - - return true; - } - - /// - /// We've received a FULL update - /// - private void onFullUpdate( SteamInventoryFullUpdate_t data ) - { - var result = new Result( this, data.Handle, false ); - result.Fill(); - - onResult( result, true ); - } - - /// - /// A generic result has returned. - /// - private void onResultReady( SteamInventoryResultReady_t data ) - { - Result result; - if ( Result.Pending.TryGetValue( data.Handle, out result ) ) - { - result.OnSteamResult( data ); - - if ( data.Result == SteamNative.Result.OK ) - { - onResult( result, false ); - } - - Result.Pending.Remove( data.Handle ); - result.Dispose(); - } - else - { - result = new Result(this, data.Handle, false); - result.Fill(); - } - - OnInventoryResultReady?.Invoke(result); - } - - private void onResult( Result r, bool isFullUpdate ) - { - if ( r.IsSuccess ) - { - // - // We only serialize FULL updates - // - if ( isFullUpdate ) - { - // - // Only serialize if this result is newer than the last one - // - if ( r.Timestamp < LastTimestamp ) - return; - - SerializedItems = r.Serialize(); - SerializedExpireTime = DateTime.Now.Add( TimeSpan.FromMinutes( 60 ) ); - } - - LastTimestamp = r.Timestamp; - ApplyResult( r, isFullUpdate ); - } - - r.Dispose(); - r = null; - } - - /// - /// Apply this result to our current stack of Items - /// Here we're trying to keep our stack up to date with whatever happens - /// with the crafting, stacking etc - /// - internal void ApplyResult( Result r, bool isFullUpdate ) - { - if ( IsServer ) return; - - if ( r.IsSuccess && r.Items != null ) - { - if ( Items == null ) - Items = new Item[0]; - - if (isFullUpdate) - { - Items = r.Items; - } - else - { - // keep the new item instance because it might have a different quantity, properties, etc - Items = Items - .UnionSelect(r.Items, (oldItem, newItem) => newItem) - .Where(x => !r.Removed.Contains(x)) - .Where(x => !r.Consumed.Contains(x)) - .ToArray(); - } - - // - // Tell everyone we've got new items! - // - OnUpdate?.Invoke(); - } - } - - public void Dispose() - { - inventory = null; - - Items = null; - SerializedItems = null; - - Result.Pending = null; - } - - /// - /// Call this at least every two minutes, every frame doesn't hurt. - /// You should call it when you consider it active play time. - /// IE - your player is alive, and playing. - /// Don't stress on it too much tho cuz it's super hijackable anyway. - /// - [Obsolete( "No longer required, will be removed in a later version" )] - public void PlaytimeHeartbeat() - { - } - - /// - /// Call this to retrieve the items. - /// Note that if this has already been called it won't - /// trigger a call to OnUpdate unless the items have changed - /// - public void Refresh() - { - if ( IsServer ) return; - - SteamNative.SteamInventoryResult_t request = 0; - if ( !inventory.GetAllItems( ref request ) || request == -1 ) - { - Console.WriteLine( "GetAllItems failed!?" ); - return; - } - } - - /// - /// Some definitions aren't sent to the client, and all aren't available on the server. - /// Manually getting a Definition here lets you call functions on those definitions. - /// - public Definition CreateDefinition( int id ) - { - return new Definition( this, id ); - } - - /// - /// Fetch item definitions in case new ones have been added since we've initialized - /// - public void FetchItemDefinitions() - { - inventory.LoadItemDefinitions(); - } - - /// - /// No need to call this manually if you're calling Update - /// - public void Update() - { - - } - - /// - /// A list of items defined for this app. - /// This should be immediately populated and available. - /// - public Definition[] Definitions; - - /// - /// A list of item definitions that have prices and so can be bought. - /// - public IEnumerable DefinitionsWithPrices - { - get - { - if ( Definitions == null ) - yield break; - - for ( int i=0; i< Definitions.Length; i++ ) - { - if (Definitions[i].LocalPrice > 0) - yield return Definitions[i]; - } - } - } - - /// - /// Utility, given a "1;VLV250" string, convert it to a 2.5 - /// - public static float PriceCategoryToFloat( string price ) - { - if ( string.IsNullOrEmpty( price ) ) - return 0.0f; - - price = price.Replace( "1;VLV", "" ); - - int iPrice = 0; - if ( !int.TryParse( price, out iPrice ) ) - return 0.0f; - - return int.Parse( price ) / 100.0f; - } - - /// - /// We might be better off using a dictionary for this, once there's 1000+ definitions - /// - public Definition FindDefinition( int DefinitionId ) - { - if ( Definitions == null ) return null; - - for( int i=0; i< Definitions.Length; i++ ) - { - if ( Definitions[i].Id == DefinitionId ) - return Definitions[i]; - } - - return null; - } - - public unsafe Result Deserialize( byte[] data, int dataLength = -1 ) - { - if (data == null) - throw new ArgumentException("data should nto be null"); - - if ( dataLength == -1 ) - dataLength = data.Length; - - SteamNative.SteamInventoryResult_t resultHandle = -1; - - fixed ( byte* ptr = data ) - { - var result = inventory.DeserializeResult( ref resultHandle, (IntPtr) ptr, (uint)dataLength, false ); - if ( !result || resultHandle == -1 ) - return null; - - var r = new Result( this, resultHandle, false ); - r.Fill(); - return r; - } - } - - /// - /// Crafting! Uses the passed items to buy the target item. - /// You need to have set up the appropriate exchange rules in your item - /// definitions. This assumes all the items passed in aren't stacked. - /// - public Result CraftItem( Item[] list, Definition target ) - { - SteamNative.SteamInventoryResult_t resultHandle = -1; - - var newItems = new SteamNative.SteamItemDef_t[] { new SteamNative.SteamItemDef_t() { Value = target.Id } }; - var newItemC = new uint[] { 1 }; - - var takeItems = list.Select( x => (SteamNative.SteamItemInstanceID_t)x.Id ).ToArray(); - var takeItemsC = list.Select( x => (uint)1 ).ToArray(); - - if ( !inventory.ExchangeItems( ref resultHandle, newItems, newItemC, 1, takeItems, takeItemsC, (uint)takeItems.Length ) ) - return null; - - return new Result( this, resultHandle, true ); - } - - /// - /// Crafting! Uses the passed items to buy the target item. - /// You need to have set up the appropriate exchange rules in your item - /// definitions. - /// - public Result CraftItem( Item.Amount[] list, Definition target ) - { - SteamNative.SteamInventoryResult_t resultHandle = -1; - - var newItems = new SteamNative.SteamItemDef_t[] { new SteamNative.SteamItemDef_t() { Value = target.Id } }; - var newItemC = new uint[] { 1 }; - - var takeItems = list.Select( x => (SteamNative.SteamItemInstanceID_t)x.Item.Id ).ToArray(); - var takeItemsC = list.Select( x => (uint)x.Quantity ).ToArray(); - - if ( !inventory.ExchangeItems( ref resultHandle, newItems, newItemC, 1, takeItems, takeItemsC, (uint)takeItems.Length ) ) - return null; - - return new Result( this, resultHandle, true ); - } - - /// - /// Split stack into two items - /// - public Result SplitStack( Item item, int quantity = 1 ) - { - return item.SplitStack( quantity ); - } - - /// - /// Stack source item onto dest item - /// - public Result Stack( Item source, Item dest, int quantity = 1 ) - { - SteamNative.SteamInventoryResult_t resultHandle = -1; - if ( !inventory.TransferItemQuantity( ref resultHandle, source.Id, (uint)quantity, dest.Id ) ) - return null; - - return new Result( this, resultHandle, true ); - } - - /// - /// This is used to grant a specific item to the user. This should - /// only be used for development prototyping, from a trusted server, - /// or if you don't care about hacked clients granting arbitrary items. - /// This call can be disabled by a setting on Steamworks. - /// - public Result GenerateItem( Definition target, int amount ) - { - SteamNative.SteamInventoryResult_t resultHandle = -1; - - var newItems = new SteamNative.SteamItemDef_t[] { new SteamNative.SteamItemDef_t() { Value = target.Id } }; - var newItemC = new uint[] { (uint) amount }; - - if ( !inventory.GenerateItems( ref resultHandle, newItems, newItemC, 1 ) ) - return null; - - return new Result( this, resultHandle, true ); - } - - public delegate void StartPurchaseSuccess( ulong orderId, ulong transactionId ); - - /// - /// Starts the purchase process for the user, given a "shopping cart" of item definitions that the user would like to buy. - /// The user will be prompted in the Steam Overlay to complete the purchase in their local currency, funding their Steam Wallet if necessary, etc. - /// - /// If was succesful the callback orderId and transactionId will be non 0 - /// - public bool StartPurchase( Definition[] items, StartPurchaseSuccess callback = null ) - { - var itemGroup = items.GroupBy(x => x.Id); - - var newItems = itemGroup.Select( x => new SteamItemDef_t { Value = x.Key } ).ToArray(); - var newItemC = itemGroup.Select( x => (uint) x.Count() ).ToArray(); - - var h = inventory.StartPurchase( newItems, newItemC, (uint) newItemC.Length, ( result, error ) => - { - if ( error ) - { - callback?.Invoke(0, 0); - } - else - { - callback?.Invoke(result.OrderID, result.TransID); - } - }); - - return h != null; - } - - /// - /// This might be null until Steam has actually recieved the prices. - /// - public string Currency { get; private set; } - - public void UpdatePrices() - { - if (IsServer) - return; - - inventory.RequestPrices((result, b) => - { - Currency = result.Currency; - - if ( Definitions == null ) - return; - - for (int i = 0; i < Definitions.Length; i++) - { - Definitions[i].UpdatePrice(); - } - - OnUpdate?.Invoke(); - }); - } - } -} diff --git a/Facepunch.Steamworks/Interfaces/Networking.cs b/Facepunch.Steamworks/Interfaces/Networking.cs deleted file mode 100644 index ee8bca2..0000000 --- a/Facepunch.Steamworks/Interfaces/Networking.cs +++ /dev/null @@ -1,199 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; - -namespace Facepunch.Steamworks -{ - public class Networking : IDisposable - { - private static byte[] ReceiveBuffer = new byte[1024 * 64]; - - public delegate void OnRecievedP2PData( ulong steamid, byte[] data, int dataLength, int channel ); - - public OnRecievedP2PData OnP2PData; - public Func OnIncomingConnection; - public Action OnConnectionFailed; - - private List ListenChannels = new List(); - - private System.Diagnostics.Stopwatch UpdateTimer = System.Diagnostics.Stopwatch.StartNew(); - - internal SteamNative.SteamNetworking networking; - - internal Networking( BaseSteamworks steamworks, SteamNative.SteamNetworking networking ) - { - this.networking = networking; - - steamworks.RegisterCallback( onP2PConnectionRequest ); - steamworks.RegisterCallback( onP2PConnectionFailed ); - } - - public void Dispose() - { - networking = null; - - OnIncomingConnection = null; - OnConnectionFailed = null; - OnP2PData = null; - ListenChannels.Clear(); - } - - - /// - /// No need to call this manually if you're calling Update() - /// - public void Update() - { - if ( OnP2PData == null ) - return; - - // Update every 60th of a second - if ( UpdateTimer.Elapsed.TotalSeconds < 1.0 / 60.0 ) - return; - - UpdateTimer.Reset(); - UpdateTimer.Start(); - - foreach ( var channel in ListenChannels ) - { - while ( ReadP2PPacket( channel ) ) - { - // Nothing Here. - } - } - } - - /// - /// Enable or disable listening on a specific channel. - /// If you donp't enable the channel we won't listen to it, - /// so you won't be able to receive messages on it. - /// - public void SetListenChannel( int ChannelId, bool Listen ) - { - ListenChannels.RemoveAll( x => x == ChannelId ); - - if ( Listen ) - { - ListenChannels.Add( ChannelId ); - } - } - - private void onP2PConnectionRequest( SteamNative.P2PSessionRequest_t o ) - { - if ( OnIncomingConnection != null ) - { - var accept = OnIncomingConnection( o.SteamIDRemote ); - - if ( accept ) - { - networking.AcceptP2PSessionWithUser( o.SteamIDRemote ); - } - else - { - networking.CloseP2PSessionWithUser( o.SteamIDRemote ); - } - - return; - } - - // - // Default is to reject the session - // - networking.CloseP2PSessionWithUser( o.SteamIDRemote ); - } - - public enum SessionError : byte - { - None = 0, - NotRunningApp = 1, // target is not running the same game - NoRightsToApp = 2, // local user doesn't own the app that is running - DestinationNotLoggedIn = 3, // target user isn't connected to Steam - Timeout = 4, // target isn't responding, perhaps not calling AcceptP2PSessionWithUser() - // corporate firewalls can also block this (NAT traversal is not firewall traversal) - // make sure that UDP ports 3478, 4379, and 4380 are open in an outbound direction - Max = 5 - }; - - private void onP2PConnectionFailed( SteamNative.P2PSessionConnectFail_t o ) - { - if ( OnConnectionFailed != null ) - { - OnConnectionFailed( o.SteamIDRemote, (SessionError) o.P2PSessionError ); - } - } - - public enum SendType : int - { - /// - /// Basic UDP send. Packets can't be bigger than 1200 bytes (your typical MTU size). Can be lost, or arrive out of order (rare). - /// The sending API does have some knowledge of the underlying connection, so if there is no NAT-traversal accomplished or - /// there is a recognized adjustment happening on the connection, the packet will be batched until the connection is open again. - /// - - Unreliable = 0, - - /// - /// As above, but if the underlying p2p connection isn't yet established the packet will just be thrown away. Using this on the first - /// packet sent to a remote host almost guarantees the packet will be dropped. - /// This is only really useful for kinds of data that should never buffer up, i.e. voice payload packets - /// - UnreliableNoDelay = 1, - - /// - /// Reliable message send. Can send up to 1MB of data in a single message. - /// Does fragmentation/re-assembly of messages under the hood, as well as a sliding window for efficient sends of large chunks of data. - /// - Reliable = 2, - - /// - /// As above, but applies the Nagle algorithm to the send - sends will accumulate - /// until the current MTU size (typically ~1200 bytes, but can change) or ~200ms has passed (Nagle algorithm). - /// Useful if you want to send a set of smaller messages but have the coalesced into a single packet - /// Since the reliable stream is all ordered, you can do several small message sends with k_EP2PSendReliableWithBuffering and then - /// do a normal k_EP2PSendReliable to force all the buffered data to be sent. - /// - ReliableWithBuffering = 3, - - } - - public unsafe bool SendP2PPacket( ulong steamid, byte[] data, int length, SendType eP2PSendType = SendType.Reliable, int nChannel = 0 ) - { - fixed ( byte* p = data ) - { - return networking.SendP2PPacket( steamid, (IntPtr) p, (uint)length, (SteamNative.P2PSend)(int)eP2PSendType, nChannel ); - } - } - - private unsafe bool ReadP2PPacket( int channel ) - { - uint DataAvailable = 0; - - if ( !networking.IsP2PPacketAvailable( out DataAvailable, channel ) ) - return false; - - if ( ReceiveBuffer.Length < DataAvailable ) - ReceiveBuffer = new byte[ DataAvailable + 1024 ]; - - fixed ( byte* p = ReceiveBuffer ) - { - SteamNative.CSteamID steamid = 1; - if ( !networking.ReadP2PPacket( (IntPtr)p, DataAvailable, out DataAvailable, out steamid, channel ) || DataAvailable == 0 ) - return false; - - OnP2PData?.Invoke( steamid, ReceiveBuffer, (int) DataAvailable, channel ); - return true; - } - } - - /// - /// This should be called when you're done communicating with a user, as this will free up all of the resources allocated for the connection under-the-hood. - /// If the remote user tries to send data to you again, a new onP2PConnectionRequest callback will be posted. - /// - public bool CloseSession( ulong steamId ) - { - return networking.CloseP2PSessionWithUser( steamId ); - } - } -} diff --git a/Facepunch.Steamworks/Interfaces/Workshop.Editor.cs b/Facepunch.Steamworks/Interfaces/Workshop.Editor.cs deleted file mode 100644 index 36bcb33..0000000 --- a/Facepunch.Steamworks/Interfaces/Workshop.Editor.cs +++ /dev/null @@ -1,238 +0,0 @@ -using System; -using System.Collections.Generic; -using SteamNative; -using Result = Facepunch.Steamworks.Callbacks.Result; - -namespace Facepunch.Steamworks -{ - public partial class Workshop - { - public class Editor - { - internal Workshop workshop; - - internal CallbackHandle CreateItem; - internal CallbackHandle SubmitItemUpdate; - internal SteamNative.UGCUpdateHandle_t UpdateHandle; - - public ulong Id { get; internal set; } - public string Title { get; set; } = null; - public string Description { get; set; } = null; - public string Folder { get; set; } = null; - public string PreviewImage { get; set; } = null; - public List Tags { get; set; } = new List(); - public bool Publishing { get; internal set; } - public ItemType? Type { get; set; } - public string Error { get; internal set; } = null; - public string ChangeNote { get; set; } = ""; - public uint WorkshopUploadAppId { get; set; } - public string MetaData { get; set; } = null; - public Dictionary KeyValues { get; set; } = new Dictionary(); - - public enum VisibilityType : int - { - Public = 0, - FriendsOnly = 1, - Private = 2 - } - - public VisibilityType ? Visibility { get; set; } - - public bool NeedToAgreeToWorkshopLegal { get; internal set; } - - /// - /// Called when published changes have finished being submitted. - /// - public event Action OnChangesSubmitted; - - public double Progress - { - get - { - var bt = BytesTotal; - if (bt == 0) return 0; - - return (double)BytesUploaded / (double)bt; - } - } - - private int bytesUploaded = 0; - - public int BytesUploaded - { - get - { - if ( !Publishing ) return bytesUploaded; - if (UpdateHandle == 0) return bytesUploaded; - - ulong b = 0; - ulong t = 0; - - workshop.steamworks.native.ugc.GetItemUpdateProgress( UpdateHandle, out b, out t ); - bytesUploaded = Math.Max( bytesUploaded, (int) b ); - return (int)bytesUploaded; - } - } - - private int bytesTotal = 0; - - public int BytesTotal - { - get - { - if ( !Publishing ) return bytesTotal; - if (UpdateHandle == 0 ) return bytesTotal; - - ulong b = 0; - ulong t = 0; - - workshop.steamworks.native.ugc.GetItemUpdateProgress( UpdateHandle, out b, out t ); - bytesTotal = Math.Max(bytesTotal, (int)t); - return (int)bytesTotal; - } - } - - public void Publish() - { - bytesUploaded = 0; - bytesTotal = 0; - - Publishing = true; - Error = null; - - if ( Id == 0 ) - { - StartCreatingItem(); - return; - } - - PublishChanges(); - } - - private void StartCreatingItem() - { - if ( !Type.HasValue ) - throw new System.Exception( "Editor.Type must be set when creating a new item!" ); - - if ( WorkshopUploadAppId == 0 ) - throw new Exception( "WorkshopUploadAppId should not be 0" ); - - CreateItem = workshop.ugc.CreateItem( WorkshopUploadAppId, (SteamNative.WorkshopFileType)(uint)Type, OnItemCreated ); - } - - private void OnItemCreated( SteamNative.CreateItemResult_t obj, bool Failed ) - { - NeedToAgreeToWorkshopLegal = obj.UserNeedsToAcceptWorkshopLegalAgreement; - CreateItem.Dispose(); - CreateItem = null; - - if ( obj.Result == SteamNative.Result.OK && !Failed ) - { - Error = null; - Id = obj.PublishedFileId; - PublishChanges(); - return; - } - - Error = $"Error creating new file: {obj.Result} ({obj.PublishedFileId})"; - Publishing = false; - - OnChangesSubmitted?.Invoke( (Result) obj.Result ); - } - - private void PublishChanges() - { - if ( WorkshopUploadAppId == 0 ) - throw new Exception( "WorkshopUploadAppId should not be 0" ); - - UpdateHandle = workshop.ugc.StartItemUpdate(WorkshopUploadAppId, Id ); - - if ( Title != null ) - workshop.ugc.SetItemTitle( UpdateHandle, Title ); - - if ( Description != null ) - workshop.ugc.SetItemDescription( UpdateHandle, Description ); - - if ( Folder != null ) - { - var info = new System.IO.DirectoryInfo( Folder ); - - if ( !info.Exists ) - throw new System.Exception( $"Folder doesn't exist ({Folder})" ); - - workshop.ugc.SetItemContent( UpdateHandle, Folder ); - } - - if ( Tags != null && Tags.Count > 0 ) - workshop.ugc.SetItemTags( UpdateHandle, Tags.ToArray() ); - - if ( Visibility.HasValue ) - workshop.ugc.SetItemVisibility( UpdateHandle, (SteamNative.RemoteStoragePublishedFileVisibility)(uint)Visibility.Value ); - - if ( PreviewImage != null ) - { - var info = new System.IO.FileInfo( PreviewImage ); - - if ( !info.Exists ) - throw new System.Exception( $"PreviewImage doesn't exist ({PreviewImage})" ); - - if ( info.Length >= 1024 * 1024 ) - throw new System.Exception( $"PreviewImage should be under 1MB ({info.Length})" ); - - workshop.ugc.SetItemPreview( UpdateHandle, PreviewImage ); - } - - if ( MetaData != null ) - { - workshop.ugc.SetItemMetadata( UpdateHandle, MetaData ); - } - - if ( KeyValues != null ) - { - foreach ( var key in KeyValues ) - { - foreach ( var value in key.Value ) - { - workshop.ugc.AddItemKeyValueTag( UpdateHandle, key.Key, value ); - } - } - } - - /* - workshop.ugc.SetItemUpdateLanguage( UpdateId, const char *pchLanguage ) = 0; // specify the language of the title or description that will be set - workshop.ugc.RemoveItemKeyValueTags( UpdateId, const char *pchKey ) = 0; // remove any existing key-value tags with the specified key - workshop.ugc.AddItemPreviewFile( UpdateId, const char *pszPreviewFile, EItemPreviewType type ) = 0; // add preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size - workshop.ugc.AddItemPreviewVideo( UpdateId, const char *pszVideoID ) = 0; // add preview video for this item - workshop.ugc.UpdateItemPreviewFile( UpdateId, uint32 index, const char *pszPreviewFile ) = 0; // updates an existing preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size - workshop.ugc.UpdateItemPreviewVideo( UpdateId, uint32 index, const char *pszVideoID ) = 0; // updates an existing preview video for this item - workshop.ugc.RemoveItemPreview( UpdateId, uint32 index ) = 0; // remove a preview by index starting at 0 (previews are sorted) - */ - - SubmitItemUpdate = workshop.ugc.SubmitItemUpdate( UpdateHandle, ChangeNote, OnChangesSubmittedInternal ); - } - - private void OnChangesSubmittedInternal( SteamNative.SubmitItemUpdateResult_t obj, bool Failed ) - { - if ( Failed ) - throw new System.Exception( "CreateItemResult_t Failed" ); - - UpdateHandle = 0; - SubmitItemUpdate = null; - NeedToAgreeToWorkshopLegal = obj.UserNeedsToAcceptWorkshopLegalAgreement; - Publishing = false; - - Error = obj.Result != SteamNative.Result.OK - ? $"Error publishing changes: {obj.Result} ({NeedToAgreeToWorkshopLegal})" - : null; - - OnChangesSubmitted?.Invoke( (Result) obj.Result ); - } - - public void Delete() - { - workshop.ugc.DeleteItem( Id ); - Id = 0; - } - } - } -} diff --git a/Facepunch.Steamworks/Interfaces/Workshop.Item.cs b/Facepunch.Steamworks/Interfaces/Workshop.Item.cs deleted file mode 100644 index 46c7032..0000000 --- a/Facepunch.Steamworks/Interfaces/Workshop.Item.cs +++ /dev/null @@ -1,233 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices; -using System.Text; -using SteamNative; - -namespace Facepunch.Steamworks -{ - public partial class Workshop - { - public class Item - { - internal Workshop workshop; - - public string Description { get; private set; } - public ulong Id { get; private set; } - public ulong OwnerId { get; private set; } - public float Score { get; private set; } - public string[] Tags { get; private set; } - public string Title { get; private set; } - public uint VotesDown { get; private set; } - public uint VotesUp { get; private set; } - public DateTime Modified { get; private set; } - public DateTime Created { get; private set; } - - public Item( ulong Id, Workshop workshop ) - { - this.Id = Id; - this.workshop = workshop; - } - - internal static Item From( SteamNative.SteamUGCDetails_t details, Workshop workshop ) - { - var item = new Item( details.PublishedFileId, workshop); - - item.Title = details.Title; - item.Description = details.Description; - item.OwnerId = details.SteamIDOwner; - item.Tags = details.Tags.Split( ',' ).Select( x=> x.ToLower() ).ToArray(); - item.Score = details.Score; - item.VotesUp = details.VotesUp; - item.VotesDown = details.VotesDown; - item.Modified = Utility.Epoch.ToDateTime( details.TimeUpdated ); - item.Created = Utility.Epoch.ToDateTime( details.TimeCreated ); - - return item; - } - - public bool Download( bool highPriority = true ) - { - if ( Installed ) return true; - if ( Downloading ) return true; - - if ( !workshop.ugc.DownloadItem( Id, highPriority ) ) - { - Console.WriteLine( "Download Failed" ); - return false; - } - - workshop.OnFileDownloaded += OnFileDownloaded; - workshop.OnItemInstalled += OnItemInstalled; - return true; - } - - public void Subscribe() - { - workshop.ugc.SubscribeItem(Id); - SubscriptionCount++; - } - - public void UnSubscribe() - { - workshop.ugc.UnsubscribeItem(Id); - SubscriptionCount--; - } - - - private void OnFileDownloaded( ulong fileid, Callbacks.Result result ) - { - if ( fileid != Id ) return; - - workshop.OnFileDownloaded -= OnFileDownloaded; - } - - private void OnItemInstalled( ulong fileid ) - { - if ( fileid != Id ) return; - - workshop.OnItemInstalled -= OnItemInstalled; - } - - public ulong BytesDownloaded { get { UpdateDownloadProgress(); return _BytesDownloaded; } } - public ulong BytesTotalDownload { get { UpdateDownloadProgress(); return _BytesTotal; } } - - public double DownloadProgress - { - get - { - UpdateDownloadProgress(); - if ( _BytesTotal == 0 ) return 0; - return (double)_BytesDownloaded / (double)_BytesTotal; - } - } - - public bool Installed { get { return ( State & ItemState.Installed ) != 0; } } - public bool Downloading { get { return ( State & ItemState.Downloading ) != 0; } } - public bool DownloadPending { get { return ( State & ItemState.DownloadPending ) != 0; } } - public bool Subscribed { get { return ( State & ItemState.Subscribed ) != 0; } } - public bool NeedsUpdate { get { return ( State & ItemState.NeedsUpdate ) != 0; } } - - private SteamNative.ItemState State { get { return ( SteamNative.ItemState) workshop.ugc.GetItemState( Id ); } } - - - private DirectoryInfo _directory; - - public DirectoryInfo Directory - { - get - { - if ( _directory != null ) - return _directory; - - if ( !Installed ) - return null; - - ulong sizeOnDisk; - string folder; - uint timestamp; - - if ( workshop.ugc.GetItemInstallInfo( Id, out sizeOnDisk, out folder, out timestamp ) ) - { - _directory = new DirectoryInfo( folder ); - Size = sizeOnDisk; - - if ( !_directory.Exists ) - { - // Size = 0; - // _directory = null; - } - } - - return _directory; - } - } - - public ulong Size { get; private set; } - - private ulong _BytesDownloaded, _BytesTotal; - - internal void UpdateDownloadProgress() - { - workshop.ugc.GetItemDownloadInfo( Id, out _BytesDownloaded, out _BytesTotal ); - } - - private int YourVote = 0; - - - public void VoteUp() - { - if ( YourVote == 1 ) return; - if ( YourVote == -1 ) VotesDown--; - - VotesUp++; - workshop.ugc.SetUserItemVote( Id, true ); - YourVote = 1; - } - - public void VoteDown() - { - if ( YourVote == -1 ) return; - if ( YourVote == 1 ) VotesUp--; - - VotesDown++; - workshop.ugc.SetUserItemVote( Id, false ); - YourVote = -1; - } - - public Editor Edit() - { - return workshop.EditItem( Id ); - } - - - /// - /// Return a URL to view this item online - /// - public string Url { get { return string.Format( "http://steamcommunity.com/sharedfiles/filedetails/?source=Facepunch.Steamworks&id={0}", Id ); } } - - public string ChangelogUrl { get { return string.Format( "http://steamcommunity.com/sharedfiles/filedetails/changelog/{0}", Id ); } } - - public string CommentsUrl { get { return string.Format( "http://steamcommunity.com/sharedfiles/filedetails/comments/{0}", Id ); } } - - public string DiscussUrl { get { return string.Format( "http://steamcommunity.com/sharedfiles/filedetails/discussions/{0}", Id ); } } - - public string StartsUrl { get { return string.Format( "http://steamcommunity.com/sharedfiles/filedetails/stats/{0}", Id ); } } - - public int SubscriptionCount { get; internal set; } - public int FavouriteCount { get; internal set; } - public int FollowerCount { get; internal set; } - public int WebsiteViews { get; internal set; } - public int ReportScore { get; internal set; } - public string PreviewImageUrl { get; internal set; } - - /* - string _ownerName = null; - - - - public Friend OwnerName - { - get - { - if ( _ownerName == null && workshop.friends != null ) - { - _ownerName = workshop.friends.GetName( OwnerId ); - if ( _ownerName == "[unknown]" ) - { - _ownerName = null; - return string.Empty; - } - } - - if ( _ownerName == null ) - return string.Empty; - - return _ownerName; - } - }*/ - } - } -} diff --git a/Facepunch.Steamworks/Interfaces/Workshop.Query.cs b/Facepunch.Steamworks/Interfaces/Workshop.Query.cs deleted file mode 100644 index 4fd835d..0000000 --- a/Facepunch.Steamworks/Interfaces/Workshop.Query.cs +++ /dev/null @@ -1,262 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Facepunch.Steamworks -{ - public partial class Workshop - { - public class Query : IDisposable - { - internal const int SteamResponseSize = 50; - - internal SteamNative.UGCQueryHandle_t Handle; - internal SteamNative.CallbackHandle Callback; - - /// - /// The AppId you're querying. This defaults to this appid. - /// - public uint AppId { get; set; } - - /// - /// The AppId of the app used to upload the item. This defaults to 0 - /// which means all/any. - /// - public uint UploaderAppId { get; set; } - - public QueryType QueryType { get; set; } = QueryType.Items; - public Order Order { get; set; } = Order.RankedByVote; - - public string SearchText { get; set; } - - public Item[] Items { get; set; } - - public int TotalResults { get; set; } - - public ulong? UserId { get; set; } - - /// - /// If order is RankedByTrend, this value represents how many days to take - /// into account. - /// - public int RankedByTrendDays { get; set; } - - public UserQueryType UserQueryType { get; set; } = UserQueryType.Published; - - /// - /// Called when the query finishes - /// - public Action OnResult; - - /// - /// Page starts at 1 !! - /// - public int Page { get; set; } = 1; - - public int PerPage { get; set; } = SteamResponseSize; - - internal Workshop workshop; - - private int _resultPage = 0; - private int _resultsRemain = 0; - private int _resultSkip = 0; - private List _results; - - public void Run() - { - if ( Callback != null ) - return; - - if ( Page <= 0 ) - throw new System.Exception( "Page should be 1 or above" ); - - var actualOffset = ((Page-1) * PerPage); - - TotalResults = 0; - - _resultSkip = actualOffset % SteamResponseSize; - _resultsRemain = PerPage; - _resultPage = (int) Math.Floor( (float) actualOffset / (float)SteamResponseSize ); - _results = new List(); - - RunInternal(); - } - - unsafe void RunInternal() - { - if ( FileId.Count != 0 ) - { - var fileArray = FileId.Select( x => (SteamNative.PublishedFileId_t)x ).ToArray(); - _resultsRemain = fileArray.Length; - - Handle = workshop.ugc.CreateQueryUGCDetailsRequest( fileArray ); - } - else if ( UserId.HasValue ) - { - uint accountId = (uint)( UserId.Value & 0xFFFFFFFFul ); - Handle = workshop.ugc.CreateQueryUserUGCRequest( accountId, (SteamNative.UserUGCList)( int)UserQueryType, (SteamNative.UGCMatchingUGCType)( int)QueryType, SteamNative.UserUGCListSortOrder.LastUpdatedDesc, UploaderAppId, AppId, (uint)_resultPage + 1 ); - } - else - { - Handle = workshop.ugc.CreateQueryAllUGCRequest( (SteamNative.UGCQuery)(int)Order, (SteamNative.UGCMatchingUGCType)(int)QueryType, UploaderAppId, AppId, (uint)_resultPage + 1 ); - } - - if ( !string.IsNullOrEmpty( SearchText ) ) - workshop.ugc.SetSearchText( Handle, SearchText ); - - foreach ( var tag in RequireTags ) - workshop.ugc.AddRequiredTag( Handle, tag ); - - if ( RequireTags.Count > 0 ) - workshop.ugc.SetMatchAnyTag( Handle, !RequireAllTags ); - - if ( RankedByTrendDays > 0 ) - workshop.ugc.SetRankedByTrendDays( Handle, (uint) RankedByTrendDays ); - - foreach ( var tag in ExcludeTags ) - workshop.ugc.AddExcludedTag( Handle, tag ); - - Callback = workshop.ugc.SendQueryUGCRequest( Handle, ResultCallback ); - } - - void ResultCallback( SteamNative.SteamUGCQueryCompleted_t data, bool bFailed ) - { - if ( bFailed ) - throw new System.Exception( "bFailed!" ); - - var gotFiles = 0; - for ( int i = 0; i < data.NumResultsReturned; i++ ) - { - if ( _resultSkip > 0 ) - { - _resultSkip--; - continue; - } - - SteamNative.SteamUGCDetails_t details = new SteamNative.SteamUGCDetails_t(); - if ( !workshop.ugc.GetQueryUGCResult( data.Handle, (uint)i, ref details ) ) - continue; - - // We already have this file, so skip it - if ( _results.Any( x => x.Id == details.PublishedFileId ) ) - continue; - - var item = Item.From( details, workshop ); - - item.SubscriptionCount = GetStat( data.Handle, i, ItemStatistic.NumSubscriptions ); - item.FavouriteCount = GetStat( data.Handle, i, ItemStatistic.NumFavorites ); - item.FollowerCount = GetStat( data.Handle, i, ItemStatistic.NumFollowers ); - item.WebsiteViews = GetStat( data.Handle, i, ItemStatistic.NumUniqueWebsiteViews ); - item.ReportScore = GetStat( data.Handle, i, ItemStatistic.ReportScore ); - - string url = null; - if ( workshop.ugc.GetQueryUGCPreviewURL( data.Handle, (uint)i, out url ) ) - item.PreviewImageUrl = url; - - _results.Add( item ); - - _resultsRemain--; - gotFiles++; - - if ( _resultsRemain <= 0 ) - break; - } - - TotalResults = TotalResults > data.TotalMatchingResults ? TotalResults : (int)data.TotalMatchingResults; - - Callback.Dispose(); - Callback = null; - - _resultPage++; - - if ( _resultsRemain > 0 && gotFiles > 0 ) - { - RunInternal(); - } - else - { - Items = _results.ToArray(); - - if ( OnResult != null ) - { - OnResult( this ); - } - } - } - - private int GetStat( ulong handle, int index, ItemStatistic stat ) - { - ulong val = 0; - if ( !workshop.ugc.GetQueryUGCStatistic( handle, (uint)index, (SteamNative.ItemStatistic)(uint)stat, out val ) ) - return 0; - - return (int) val; - } - - public bool IsRunning - { - get { return Callback != null; } - } - - /// - /// Only return items with these tags - /// - public List RequireTags { get; set; } = new List(); - - /// - /// If true, return items that have all RequireTags - /// If false, return items that have any tags in RequireTags - /// - public bool RequireAllTags { get; set; } = false; - - /// - /// Don't return any items with this tag - /// - public List ExcludeTags { get; set; } = new List(); - - /// - /// If you're querying for a particular file or files, add them to this. - /// - public List FileId { get; set; } = new List(); - - - - /// - /// Don't call this in production! - /// - public void Block() - { - const int sleepMs = 10; - - workshop.steamworks.Update(); - - while ( IsRunning ) - { -#if NET_CORE - System.Threading.Tasks.Task.Delay( sleepMs ).Wait(); -#else - System.Threading.Thread.Sleep( sleepMs ); -#endif - workshop.steamworks.Update(); - } - } - - public void Dispose() - { - // ReleaseQueryUGCRequest - } - } - - private enum ItemStatistic : uint - { - NumSubscriptions = 0, - NumFavorites = 1, - NumFollowers = 2, - NumUniqueSubscriptions = 3, - NumUniqueFavorites = 4, - NumUniqueFollowers = 5, - NumUniqueWebsiteViews = 6, - ReportScore = 7, - }; - } -} diff --git a/Facepunch.Steamworks/Interfaces/Workshop.cs b/Facepunch.Steamworks/Interfaces/Workshop.cs deleted file mode 100644 index e373b3a..0000000 --- a/Facepunch.Steamworks/Interfaces/Workshop.cs +++ /dev/null @@ -1,286 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.InteropServices; -using SteamNative; - -namespace Facepunch.Steamworks -{ - /// - /// Allows you to interact with Steam's UGC stuff (User Generated Content). - /// To put simply, this allows you to upload a folder of files to Steam. - /// - /// To upload a new file use CreateItem. This returns an Editor object. - /// This object is also used to edit existing items. - /// - /// To get a list of items you can call CreateQuery. From there you can download - /// an item and retrieve the folder that it's downloaded to. - /// - /// Generally there's no need to compress and decompress your uploads, so you should - /// usually be able to use the content straight from the destination folder. - /// - /// - public partial class Workshop : IDisposable - { - static Workshop() - { - Debug.Assert( Marshal.SizeOf( typeof(PublishedFileId_t) ) == Marshal.SizeOf( typeof(ulong) ), - $"sizeof({nameof(PublishedFileId_t)}) != sizeof({nameof(UInt64)})" ); - } - - internal const ulong InvalidHandle = 0xffffffffffffffff; - - internal SteamNative.SteamUGC ugc; - internal BaseSteamworks steamworks; - internal SteamNative.SteamRemoteStorage remoteStorage; - - /// - /// Called when an item has been downloaded. This could have been - /// because of a call to Download. - /// - public event Action OnFileDownloaded; - - /// - /// Called when an item has been installed. This could have been - /// because of a call to Download or because of a subscription triggered - /// via the browser/app. - /// - public event Action OnItemInstalled; - - internal Workshop( BaseSteamworks steamworks, SteamNative.SteamUGC ugc, SteamNative.SteamRemoteStorage remoteStorage ) - { - this.ugc = ugc; - this.steamworks = steamworks; - this.remoteStorage = remoteStorage; - - steamworks.RegisterCallback( onDownloadResult ); - steamworks.RegisterCallback( onItemInstalled ); - } - - /// - /// You should never have to call this manually - /// - public void Dispose() - { - ugc = null; - steamworks = null; - remoteStorage = null; - - OnFileDownloaded = null; - OnItemInstalled = null; - } - - private void onItemInstalled( SteamNative.ItemInstalled_t obj ) - { - if ( OnItemInstalled != null && obj.AppID == Client.Instance.AppId ) - OnItemInstalled( obj.PublishedFileId ); - } - - private void onDownloadResult( SteamNative.DownloadItemResult_t obj ) - { - if ( OnFileDownloaded != null && obj.AppID == Client.Instance.AppId ) - OnFileDownloaded( obj.PublishedFileId, (Callbacks.Result) obj.Result ); - } - - /// - /// Get the IDs of all subscribed workshop items. Not all items may be currently installed. - /// - public unsafe ulong[] GetSubscribedItemIds() - { - var count = ugc.GetNumSubscribedItems(); - var array = new ulong[count]; - - fixed ( ulong* ptr = array ) - { - ugc.GetSubscribedItems( (PublishedFileId_t*) ptr, count ); - } - - return array; - } - - [ThreadStatic] - private static ulong[] _sSubscribedItemBuffer; - - /// - /// Get the IDs of all subscribed workshop items, avoiding repeated allocations. - /// Not all items may be currently installed. - /// - public unsafe int GetSubscribedItemIds( List destList ) - { - const int bufferSize = 1024; - - var count = ugc.GetNumSubscribedItems(); - - if ( count >= bufferSize ) - { - // Fallback for exceptional cases - destList.AddRange( GetSubscribedItemIds() ); - return (int) count; - } - - if ( _sSubscribedItemBuffer == null ) - { - _sSubscribedItemBuffer = new ulong[bufferSize]; - } - - fixed ( ulong* ptr = _sSubscribedItemBuffer) - { - count = ugc.GetSubscribedItems( (PublishedFileId_t*) ptr, bufferSize ); - } - - for ( var i = 0; i < count; ++i ) - { - destList.Add( _sSubscribedItemBuffer[i] ); - } - - return (int) count; - } - - /// - /// Creates a query object, which is used to get a list of items. - /// - /// This could be a list of the most popular items, or a search, - /// or just getting a list of the items you've uploaded. - /// - public Query CreateQuery() - { - return new Query() - { - AppId = steamworks.AppId, - workshop = this, - }; - } - - /// - /// Create a new Editor object with the intention of creating a new item. - /// Your item won't actually be created until you call Publish() on the object. - /// - public Editor CreateItem( ItemType type = ItemType.Community ) - { - return CreateItem(this.steamworks.AppId, type); - } - - /// - /// Create a new Editor object with the intention of creating a new item. - /// Your item won't actually be created until you call Publish() on the object. - /// Your item will be published to the provided appId. - /// - /// You need to add app publish permissions for cross app uploading to work. - public Editor CreateItem( uint workshopUploadAppId, ItemType type = ItemType.Community ) - { - return new Editor() { workshop = this, WorkshopUploadAppId = workshopUploadAppId, Type = type }; - } - - /// - /// Returns a class representing this ItemId. We don't query - /// item name, description etc. We don't verify that item exists. - /// We don't verify that this item belongs to your app. - /// - public Editor EditItem( ulong itemId ) - { - return new Editor() { workshop = this, Id = itemId, WorkshopUploadAppId = steamworks.AppId }; - } - - /// - /// Gets an Item object for a specific item. This doesn't currently - /// query the item's name and description. It's only really useful - /// if you know an item's ID and want to download it, or check its - /// current download status. - /// - public Item GetItem( ulong itemid ) - { - return new Item( itemid, this ); - } - - /// - /// How a query should be ordered. - /// - public enum Order - { - RankedByVote = 0, - RankedByPublicationDate = 1, - AcceptedForGameRankedByAcceptanceDate = 2, - RankedByTrend = 3, - FavoritedByFriendsRankedByPublicationDate = 4, - CreatedByFriendsRankedByPublicationDate = 5, - RankedByNumTimesReported = 6, - CreatedByFollowedUsersRankedByPublicationDate = 7, - NotYetRated = 8, - RankedByTotalVotesAsc = 9, - RankedByVotesUp = 10, - RankedByTextSearch = 11, - RankedByTotalUniqueSubscriptions = 12, - }; - - /// - /// The type of item you are querying for - /// - public enum QueryType - { - /// - /// Both MicrotransactionItems and subscriptionItems - /// - Items = 0, - /// - /// Workshop item that is meant to be voted on for the purpose of selling in-game - /// - MicrotransactionItems = 1, - /// - /// normal Workshop item that can be subscribed to - /// - SubscriptionItems = 2, - Collections = 3, - Artwork = 4, - Videos = 5, - Screenshots = 6, - AllGuides = 7, // both web guides and integrated guides - WebGuides = 8, - IntegratedGuides = 9, - UsableInGame = 10, // ready-to-use items and integrated guides - ControllerBindings = 11, - GameManagedItems = 12, // game managed items (not managed by users) - }; - - /// - /// Used to define the item type when creating - /// - public enum ItemType - { - Community = 0, // normal Workshop item that can be subscribed to - Microtransaction = 1, // Workshop item that is meant to be voted on for the purpose of selling in-game - Collection = 2, // a collection of Workshop or Greenlight items - Art = 3, // artwork - Video = 4, // external video - Screenshot = 5, // screenshot - Game = 6, // Greenlight game entry - Software = 7, // Greenlight software entry - Concept = 8, // Greenlight concept - WebGuide = 9, // Steam web guide - IntegratedGuide = 10, // application integrated guide - Merch = 11, // Workshop merchandise meant to be voted on for the purpose of being sold - ControllerBinding = 12, // Steam Controller bindings - SteamworksAccessInvite = 13, // internal - SteamVideo = 14, // Steam video - GameManagedItem = 15, // managed completely by the game, not the user, and not shown on the web - }; - - /// - /// When querying a specific user's items this defines what - /// type of items you're looking for. - /// - public enum UserQueryType : uint - { - Published = 0, - VotedOn, - VotedUp, - VotedDown, - WillVoteLater, - Favorited, - Subscribed, - UsedOrPlayed, - Followed, - } - - - } -} diff --git a/Facepunch.Steamworks/Interop/Native.cs b/Facepunch.Steamworks/Interop/Native.cs deleted file mode 100644 index 5a3b2af..0000000 --- a/Facepunch.Steamworks/Interop/Native.cs +++ /dev/null @@ -1,243 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using SteamNative; - -namespace Facepunch.Steamworks.Interop -{ - internal class NativeInterface : IDisposable - { - internal SteamNative.SteamApi api; - internal SteamNative.SteamClient client; - internal SteamNative.SteamUser user; - internal SteamNative.SteamApps apps; - internal SteamNative.SteamAppList applist; - internal SteamNative.SteamFriends friends; - internal SteamNative.SteamMatchmakingServers servers; - internal SteamNative.SteamMatchmaking matchmaking; - internal SteamNative.SteamInventory inventory; - internal SteamNative.SteamNetworking networking; - internal SteamNative.SteamUserStats userstats; - internal SteamNative.SteamUtils utils; - internal SteamNative.SteamScreenshots screenshots; - internal SteamNative.SteamHTTP http; - internal SteamNative.SteamUGC ugc; - internal SteamNative.SteamGameServer gameServer; - internal SteamNative.SteamGameServerStats gameServerStats; - internal SteamNative.SteamRemoteStorage remoteStorage; - - private bool isServer; - - internal bool InitClient( BaseSteamworks steamworks ) - { - isServer = false; - - api = new SteamNative.SteamApi(); - - if ( !api.SteamAPI_Init() ) - { - Console.Error.WriteLine( "InitClient: SteamAPI_Init returned false" ); - return false; - } - - var hUser = api.SteamAPI_GetHSteamUser(); - var hPipe = api.SteamAPI_GetHSteamPipe(); - if ( hPipe == 0 ) - { - Console.Error.WriteLine( "InitClient: hPipe == 0" ); - return false; - } - - FillInterfaces( steamworks, hUser, hPipe ); - - if ( !user.IsValid ) - { - Console.Error.WriteLine( "InitClient: ISteamUser is null" ); - return false; - } - - return true; - } - - internal bool InitServer( BaseSteamworks steamworks, uint IpAddress /*uint32*/, ushort usPort /*uint16*/, ushort GamePort /*uint16*/, ushort QueryPort /*uint16*/, int eServerMode /*int*/, string pchVersionString /*const char **/) - { - isServer = true; - - api = new SteamNative.SteamApi(); - - if ( !api.SteamInternal_GameServer_Init( IpAddress, usPort, GamePort, QueryPort, eServerMode, pchVersionString ) ) - { - Console.Error.WriteLine( "InitServer: GameServer_Init returned false" ); - return false; - } - - var hUser = api.SteamGameServer_GetHSteamUser(); - var hPipe = api.SteamGameServer_GetHSteamPipe(); - if ( hPipe == 0 ) - { - Console.Error.WriteLine( "InitServer: hPipe == 0" ); - return false; - } - - FillInterfaces( steamworks, hPipe, hUser ); - - if ( !gameServer.IsValid ) - { - gameServer = null; - throw new System.Exception( "Steam Server: Couldn't load SteamGameServer012" ); - } - - return true; - } - - public void FillInterfaces( BaseSteamworks steamworks, int hpipe, int huser ) - { - var clientPtr = api.SteamInternal_CreateInterface( "SteamClient018" ); - if ( clientPtr == IntPtr.Zero ) - throw new System.Exception( "Steam Server: Couldn't load SteamClient018" ); - - client = new SteamNative.SteamClient( steamworks, clientPtr ); - - user = client.GetISteamUser( huser, hpipe, SteamNative.Defines.STEAMUSER_INTERFACE_VERSION ); - utils = client.GetISteamUtils( hpipe, SteamNative.Defines.STEAMUTILS_INTERFACE_VERSION ); - networking = client.GetISteamNetworking( huser, hpipe, SteamNative.Defines.STEAMNETWORKING_INTERFACE_VERSION ); - gameServerStats = client.GetISteamGameServerStats( huser, hpipe, SteamNative.Defines.STEAMGAMESERVERSTATS_INTERFACE_VERSION ); - http = client.GetISteamHTTP( huser, hpipe, SteamNative.Defines.STEAMHTTP_INTERFACE_VERSION ); - inventory = client.GetISteamInventory( huser, hpipe, SteamNative.Defines.STEAMINVENTORY_INTERFACE_VERSION ); - ugc = client.GetISteamUGC( huser, hpipe, SteamNative.Defines.STEAMUGC_INTERFACE_VERSION ); - apps = client.GetISteamApps( huser, hpipe, SteamNative.Defines.STEAMAPPS_INTERFACE_VERSION ); - gameServer = client.GetISteamGameServer( huser, hpipe, SteamNative.Defines.STEAMGAMESERVER_INTERFACE_VERSION ); - friends = client.GetISteamFriends( huser, hpipe, SteamNative.Defines.STEAMFRIENDS_INTERFACE_VERSION ); - servers = client.GetISteamMatchmakingServers( huser, hpipe, SteamNative.Defines.STEAMMATCHMAKINGSERVERS_INTERFACE_VERSION ); - userstats = client.GetISteamUserStats( huser, hpipe, SteamNative.Defines.STEAMUSERSTATS_INTERFACE_VERSION ); - screenshots = client.GetISteamScreenshots( huser, hpipe, SteamNative.Defines.STEAMSCREENSHOTS_INTERFACE_VERSION ); - remoteStorage = client.GetISteamRemoteStorage( huser, hpipe, SteamNative.Defines.STEAMREMOTESTORAGE_INTERFACE_VERSION ); - matchmaking = client.GetISteamMatchmaking( huser, hpipe, SteamNative.Defines.STEAMMATCHMAKING_INTERFACE_VERSION ); - applist = client.GetISteamAppList( huser, hpipe, SteamNative.Defines.STEAMAPPLIST_INTERFACE_VERSION ); - } - - public void Dispose() - { - if ( user != null ) - { - user.Dispose(); - user = null; - } - - if ( utils != null ) - { - utils.Dispose(); - utils = null; - } - - if ( networking != null ) - { - networking.Dispose(); - networking = null; - } - - if ( gameServerStats != null ) - { - gameServerStats.Dispose(); - gameServerStats = null; - } - - if ( http != null ) - { - http.Dispose(); - http = null; - } - - if ( inventory != null ) - { - inventory.Dispose(); - inventory = null; - } - - if ( ugc != null ) - { - ugc.Dispose(); - ugc = null; - } - - if ( apps != null ) - { - apps.Dispose(); - apps = null; - } - - if ( gameServer != null ) - { - gameServer.Dispose(); - gameServer = null; - } - - if ( friends != null ) - { - friends.Dispose(); - friends = null; - } - - if ( servers != null ) - { - servers.Dispose(); - servers = null; - } - - if ( userstats != null ) - { - userstats.Dispose(); - userstats = null; - } - - if ( screenshots != null ) - { - screenshots.Dispose(); - screenshots = null; - } - - if ( remoteStorage != null ) - { - remoteStorage.Dispose(); - remoteStorage = null; - } - - if ( matchmaking != null ) - { - matchmaking.Dispose(); - matchmaking = null; - } - - if ( applist != null ) - { - applist.Dispose(); - applist = null; - } - - if ( client != null ) - { - client.Dispose(); - client = null; - } - - if ( api != null ) - { - if ( isServer ) - api.SteamGameServer_Shutdown(); - else - api.SteamAPI_Shutdown(); - - // - // The functions above destroy the pipeline handles - // and all of the classes. Trying to call a steam function - // at this point will result in a crash - because any - // pointers we stored are not invalid. - // - - api.Dispose(); - api = null; - } - } - } -} diff --git a/Facepunch.Steamworks/Redux/Music.cs b/Facepunch.Steamworks/Music.cs similarity index 99% rename from Facepunch.Steamworks/Redux/Music.cs rename to Facepunch.Steamworks/Music.cs index 8d68437..911ce89 100644 --- a/Facepunch.Steamworks/Redux/Music.cs +++ b/Facepunch.Steamworks/Music.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks { diff --git a/Facepunch.Steamworks/Redux/Parental.cs b/Facepunch.Steamworks/Parental.cs similarity index 98% rename from Facepunch.Steamworks/Redux/Parental.cs rename to Facepunch.Steamworks/Parental.cs index 4cc49b9..54428ac 100644 --- a/Facepunch.Steamworks/Redux/Parental.cs +++ b/Facepunch.Steamworks/Parental.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks { diff --git a/Facepunch.Steamworks/Server/Stats.cs b/Facepunch.Steamworks/Server/Stats.cs deleted file mode 100644 index a2a3213..0000000 --- a/Facepunch.Steamworks/Server/Stats.cs +++ /dev/null @@ -1,148 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.InteropServices; -using System.Text; - -#if false -namespace Facepunch.Steamworks -{ - /// - /// Allows getting and setting stats on users from the gameserver. These stats - /// should have been set up on the Steamworks website for your app. - /// - public class ServerStats - { - internal Server server; - - internal ServerStats( Server s ) - { - server = s; - } - - [StructLayout( LayoutKind.Sequential )] - public struct StatsReceived - { - public int Result; - public ulong SteamId; - } - - /// - /// Retrieve the stats for this user. If you pass a callback function in - /// this will be called when the stats are recieved, the bool will signify whether - /// it was successful or not. - /// - public void Refresh( ulong steamid, Action Callback = null ) - { - if ( Callback == null ) - { - server.native.gameServerStats.RequestUserStats( steamid ); - return; - } - - server.native.gameServerStats.RequestUserStats( steamid, ( o, failed ) => - { - Callback( steamid, o.Result == SteamNative.Result.OK && !failed ); - } ); - } - - /// - /// Once you've set a stat change on a user you need to commit your changes. - /// You can do that using this function. The callback will let you know if - /// your action succeeded, but most of the time you can fire and forget. - /// - public void Commit( ulong steamid, Action Callback = null ) - { - if ( Callback == null ) - { - server.native.gameServerStats.StoreUserStats( steamid ); - return; - } - - server.native.gameServerStats.StoreUserStats( steamid, ( o, failed ) => - { - Callback( steamid, o.Result == SteamNative.Result.OK && !failed ); - } ); - } - - /// - /// Set the named stat for this user. Setting stats should follow the rules - /// you defined in Steamworks. - /// - public bool SetInt( ulong steamid, string name, int stat ) - { - return server.native.gameServerStats.SetUserStat( steamid, name, stat ); - } - - /// - /// Set the named stat for this user. Setting stats should follow the rules - /// you defined in Steamworks. - /// - public bool SetFloat( ulong steamid, string name, float stat ) - { - return server.native.gameServerStats.SetUserStat0( steamid, name, stat ); - } - - /// - /// Get the named stat for this user. If getting the stat failed, will return - /// defaultValue. You should have called Refresh for this userid - which downloads - /// the stats from the backend. If you didn't call it this will always return defaultValue. - /// - public int GetInt( ulong steamid, string name, int defaultValue = 0 ) - { - int data = defaultValue; - - if ( !server.native.gameServerStats.GetUserStat( steamid, name, out data ) ) - return defaultValue; - - return data; - } - - /// - /// Get the named stat for this user. If getting the stat failed, will return - /// defaultValue. You should have called Refresh for this userid - which downloads - /// the stats from the backend. If you didn't call it this will always return defaultValue. - /// - public float GetFloat( ulong steamid, string name, float defaultValue = 0 ) - { - float data = defaultValue; - - if ( !server.native.gameServerStats.GetUserStat0( steamid, name, out data ) ) - return defaultValue; - - return data; - } - - /// - /// Unlocks the specified achievement for the specified user. Must have called Refresh on a steamid first. - /// Remember to use Commit after use. - /// - public bool SetAchievement( ulong steamid, string name ) - { - return server.native.gameServerStats.SetUserAchievement( steamid, name ); - } - - /// - /// Resets the unlock status of an achievement for the specified user. Must have called Refresh on a steamid first. - /// Remember to use Commit after use. - /// - public bool ClearAchievement( ulong steamid, string name ) - { - return server.native.gameServerStats.ClearUserAchievement( steamid, name ); - } - - /// - /// Return true if available, exists and unlocked - /// - public bool GetAchievement( ulong steamid, string name ) - { - bool achieved = false; - - if ( !server.native.gameServerStats.GetUserAchievement( steamid, name, ref achieved ) ) - return false; - - return achieved; - } - } -} -#endif \ No newline at end of file diff --git a/Facepunch.Steamworks/Redux/ServerList/BaseServerList.cs b/Facepunch.Steamworks/ServerList/BaseServerList.cs similarity index 99% rename from Facepunch.Steamworks/Redux/ServerList/BaseServerList.cs rename to Facepunch.Steamworks/ServerList/BaseServerList.cs index 213a5ee..680c1ee 100644 --- a/Facepunch.Steamworks/Redux/ServerList/BaseServerList.cs +++ b/Facepunch.Steamworks/ServerList/BaseServerList.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks { diff --git a/Facepunch.Steamworks/Redux/ServerList/ServerListFavourites.cs b/Facepunch.Steamworks/ServerList/ServerListFavourites.cs similarity index 96% rename from Facepunch.Steamworks/Redux/ServerList/ServerListFavourites.cs rename to Facepunch.Steamworks/ServerList/ServerListFavourites.cs index ef81b99..8c7a0e9 100644 --- a/Facepunch.Steamworks/Redux/ServerList/ServerListFavourites.cs +++ b/Facepunch.Steamworks/ServerList/ServerListFavourites.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks { diff --git a/Facepunch.Steamworks/Redux/ServerList/ServerListFriends.cs b/Facepunch.Steamworks/ServerList/ServerListFriends.cs similarity index 96% rename from Facepunch.Steamworks/Redux/ServerList/ServerListFriends.cs rename to Facepunch.Steamworks/ServerList/ServerListFriends.cs index e28f91c..588688b 100644 --- a/Facepunch.Steamworks/Redux/ServerList/ServerListFriends.cs +++ b/Facepunch.Steamworks/ServerList/ServerListFriends.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks { diff --git a/Facepunch.Steamworks/Redux/ServerList/ServerListHistory.cs b/Facepunch.Steamworks/ServerList/ServerListHistory.cs similarity index 96% rename from Facepunch.Steamworks/Redux/ServerList/ServerListHistory.cs rename to Facepunch.Steamworks/ServerList/ServerListHistory.cs index 6e3e60a..61093a6 100644 --- a/Facepunch.Steamworks/Redux/ServerList/ServerListHistory.cs +++ b/Facepunch.Steamworks/ServerList/ServerListHistory.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks { diff --git a/Facepunch.Steamworks/Redux/ServerList/ServerListInternet.cs b/Facepunch.Steamworks/ServerList/ServerListInternet.cs similarity index 96% rename from Facepunch.Steamworks/Redux/ServerList/ServerListInternet.cs rename to Facepunch.Steamworks/ServerList/ServerListInternet.cs index 1f9ac53..7849c61 100644 --- a/Facepunch.Steamworks/Redux/ServerList/ServerListInternet.cs +++ b/Facepunch.Steamworks/ServerList/ServerListInternet.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks { diff --git a/Facepunch.Steamworks/Redux/ServerList/ServerListLan.cs b/Facepunch.Steamworks/ServerList/ServerListLan.cs similarity index 95% rename from Facepunch.Steamworks/Redux/ServerList/ServerListLan.cs rename to Facepunch.Steamworks/ServerList/ServerListLan.cs index 09810fd..475eb29 100644 --- a/Facepunch.Steamworks/Redux/ServerList/ServerListLan.cs +++ b/Facepunch.Steamworks/ServerList/ServerListLan.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks { diff --git a/Facepunch.Steamworks/Redux/ServerList/ServerListSpectator.cs b/Facepunch.Steamworks/ServerList/ServerListSpectator.cs similarity index 95% rename from Facepunch.Steamworks/Redux/ServerList/ServerListSpectator.cs rename to Facepunch.Steamworks/ServerList/ServerListSpectator.cs index 56a314e..1ed2852 100644 --- a/Facepunch.Steamworks/Redux/ServerList/ServerListSpectator.cs +++ b/Facepunch.Steamworks/ServerList/ServerListSpectator.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks { diff --git a/Facepunch.Steamworks/Redux/Steam.cs b/Facepunch.Steamworks/Steam.cs similarity index 100% rename from Facepunch.Steamworks/Redux/Steam.cs rename to Facepunch.Steamworks/Steam.cs diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Callback.cs b/Facepunch.Steamworks/SteamNative/SteamNative.Callback.cs deleted file mode 100644 index 2feed87..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Callback.cs +++ /dev/null @@ -1,404 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using Facepunch.Steamworks; - -namespace SteamNative -{ - [StructLayout( LayoutKind.Sequential )] - internal class Callback - { - internal enum Flags : byte - { - Registered = 0x01, - GameServer = 0x02 - } - - public IntPtr vTablePtr; - public byte CallbackFlags; - public int CallbackId; - - [StructLayout( LayoutKind.Sequential, Pack = 1 )] - public class VTable - { - [UnmanagedFunctionPointer( CallingConvention.StdCall )] public delegate void ResultD( IntPtr pvParam ); - [UnmanagedFunctionPointer( CallingConvention.StdCall )] public delegate void ResultWithInfoD( IntPtr pvParam, bool bIOFailure, SteamNative.SteamAPICall_t hSteamAPICall ); - [UnmanagedFunctionPointer( CallingConvention.StdCall )] public delegate int GetSizeD(); - - public ResultD ResultA; - public ResultWithInfoD ResultB; - public GetSizeD GetSize; - - internal static IntPtr GetVTable( ResultD onResultThis, ResultWithInfoD onResultWithInfoThis, GetSizeD onGetSizeThis, List allocations ) - { - var vTablePtr = Marshal.AllocHGlobal( Marshal.SizeOf( typeof( Callback.VTable ) ) ); - - var vTable = new Callback.VTable - { - ResultA = onResultThis, - ResultB = onResultWithInfoThis, - GetSize = onGetSizeThis, - }; - - allocations.Add( GCHandle.Alloc( vTable.ResultA ) ); - allocations.Add( GCHandle.Alloc( vTable.ResultB ) ); - allocations.Add( GCHandle.Alloc( vTable.GetSize ) ); - - Marshal.StructureToPtr( vTable, vTablePtr, false ); - - return vTablePtr; - } - } - - [StructLayout( LayoutKind.Sequential, Pack = 1 )] - public class VTableWin - { - [UnmanagedFunctionPointer( CallingConvention.StdCall )] public delegate void ResultD( IntPtr pvParam ); - [UnmanagedFunctionPointer( CallingConvention.StdCall )] public delegate void ResultWithInfoD( IntPtr pvParam, bool bIOFailure, SteamNative.SteamAPICall_t hSteamAPICall ); - [UnmanagedFunctionPointer( CallingConvention.StdCall )] public delegate int GetSizeD(); - - public ResultWithInfoD ResultB; - public ResultD ResultA; - public GetSizeD GetSize; - - internal static IntPtr GetVTable( ResultD onResultThis, ResultWithInfoD onResultWithInfoThis, GetSizeD onGetSizeThis, List allocations ) - { - var vTablePtr = Marshal.AllocHGlobal( Marshal.SizeOf( typeof( Callback.VTableWin ) ) ); - - var vTable = new Callback.VTableWin - { - ResultA = onResultThis, - ResultB = onResultWithInfoThis, - GetSize = onGetSizeThis, - }; - - allocations.Add( GCHandle.Alloc( vTable.ResultA ) ); - allocations.Add( GCHandle.Alloc( vTable.ResultB ) ); - allocations.Add( GCHandle.Alloc( vTable.GetSize ) ); - - Marshal.StructureToPtr( vTable, vTablePtr, false ); - - return vTablePtr; - } - } - - [StructLayout( LayoutKind.Sequential, Pack = 1 )] - public class VTableThis - { - [UnmanagedFunctionPointer( CallingConvention.ThisCall )] public delegate void ResultD( IntPtr thisptr, IntPtr pvParam ); - [UnmanagedFunctionPointer( CallingConvention.ThisCall )] public delegate void ResultWithInfoD( IntPtr thisptr, IntPtr pvParam, bool bIOFailure, SteamNative.SteamAPICall_t hSteamAPICall ); - - internal static IntPtr GetVTable( ResultD onResultThis, ResultWithInfoD onResultWithInfoThis, GetSizeD onGetSizeThis, List allocations ) - { - var vTablePtr = Marshal.AllocHGlobal( Marshal.SizeOf( typeof( Callback.VTableThis ) ) ); - - var vTable = new Callback.VTableThis - { - ResultA = onResultThis, - ResultB = onResultWithInfoThis, - GetSize = onGetSizeThis, - }; - - allocations.Add( GCHandle.Alloc( vTable.ResultA ) ); - allocations.Add( GCHandle.Alloc( vTable.ResultB ) ); - allocations.Add( GCHandle.Alloc( vTable.GetSize ) ); - - Marshal.StructureToPtr( vTable, vTablePtr, false ); - - return vTablePtr; - } - - [UnmanagedFunctionPointer( CallingConvention.ThisCall )] public delegate int GetSizeD( IntPtr thisptr ); - - public ResultD ResultA; - public ResultWithInfoD ResultB; - public GetSizeD GetSize; - } - - [StructLayout( LayoutKind.Sequential, Pack = 1 )] - public class VTableWinThis - { - [UnmanagedFunctionPointer( CallingConvention.ThisCall )] public delegate void ResultD( IntPtr thisptr, IntPtr pvParam ); - [UnmanagedFunctionPointer( CallingConvention.ThisCall )] public delegate void ResultWithInfoD( IntPtr thisptr, IntPtr pvParam, bool bIOFailure, SteamNative.SteamAPICall_t hSteamAPICall ); - [UnmanagedFunctionPointer( CallingConvention.ThisCall )] public delegate int GetSizeD( IntPtr thisptr ); - - public ResultWithInfoD ResultB; - public ResultD ResultA; - public GetSizeD GetSize; - - internal static IntPtr GetVTable( ResultD onResultThis, ResultWithInfoD onResultWithInfoThis, GetSizeD onGetSizeThis, List allocations ) - { - var vTablePtr = Marshal.AllocHGlobal( Marshal.SizeOf( typeof( Callback.VTableWinThis ) ) ); - - var vTable = new Callback.VTableWinThis - { - ResultA = onResultThis, - ResultB = onResultWithInfoThis, - GetSize = onGetSizeThis, - }; - - allocations.Add( GCHandle.Alloc( vTable.ResultA ) ); - allocations.Add( GCHandle.Alloc( vTable.ResultB ) ); - allocations.Add( GCHandle.Alloc( vTable.GetSize ) ); - - Marshal.StructureToPtr( vTable, vTablePtr, false ); - - return vTablePtr; - } - } - }; - - // - // Created on registration of a callback - // - internal class CallbackHandle : IDisposable - { - internal BaseSteamworks Steamworks; - - // Get Rid - internal GCHandle FuncA; - internal GCHandle FuncB; - internal GCHandle FuncC; - internal IntPtr vTablePtr; - internal GCHandle PinnedCallback; - - internal CallbackHandle( Facepunch.Steamworks.BaseSteamworks steamworks ) - { - Steamworks = steamworks; - } - - public void Dispose() - { - UnregisterCallback(); - - if ( FuncA.IsAllocated ) - FuncA.Free(); - - if ( FuncB.IsAllocated ) - FuncB.Free(); - - if ( FuncC.IsAllocated ) - FuncC.Free(); - - if ( PinnedCallback.IsAllocated ) - PinnedCallback.Free(); - - if ( vTablePtr != IntPtr.Zero ) - { - Marshal.FreeHGlobal( vTablePtr ); - vTablePtr = IntPtr.Zero; - } - } - - private void UnregisterCallback() - { - if ( !PinnedCallback.IsAllocated ) - return; - - Steamworks.native.api.SteamAPI_UnregisterCallback( PinnedCallback.AddrOfPinnedObject() ); - } - - public virtual bool IsValid { get { return true; } } - } - - internal class CallbackHandle : CallbackHandle where T: struct, Steamworks.ISteamCallback - { - T template; - - internal CallbackHandle( Facepunch.Steamworks.BaseSteamworks steamworks ) : base( steamworks ) - { - template = new T(); - - // - // Create the functions we need for the vtable - // - if ( Facepunch.Steamworks.Config.UseThisCall ) - { - // - // Create the VTable by manually allocating the memory and copying across - // - if ( Platform.IsWindows ) - { - vTablePtr = Marshal.AllocHGlobal( Marshal.SizeOf( typeof( Callback.VTableWinThis ) ) ); - var vTable = new Callback.VTableWinThis - { - ResultA = OnResultThis, - ResultB = OnResultWithInfoThis, - GetSize = OnGetSizeThis, - }; - FuncA = GCHandle.Alloc( vTable.ResultA ); - FuncB = GCHandle.Alloc( vTable.ResultB ); - FuncC = GCHandle.Alloc( vTable.GetSize ); - Marshal.StructureToPtr( vTable, vTablePtr, false ); - } - else - { - vTablePtr = Marshal.AllocHGlobal( Marshal.SizeOf( typeof( Callback.VTableThis ) ) ); - var vTable = new Callback.VTableThis - { - ResultA = OnResultThis, - ResultB = OnResultWithInfoThis, - GetSize = OnGetSizeThis, - }; - FuncA = GCHandle.Alloc( vTable.ResultA ); - FuncB = GCHandle.Alloc( vTable.ResultB ); - FuncC = GCHandle.Alloc( vTable.GetSize ); - Marshal.StructureToPtr( vTable, vTablePtr, false ); - } - } - else - { - // - // Create the VTable by manually allocating the memory and copying across - // - if ( Platform.IsWindows ) - { - vTablePtr = Marshal.AllocHGlobal( Marshal.SizeOf( typeof( Callback.VTableWin ) ) ); - var vTable = new Callback.VTableWin - { - ResultA = OnResult, - ResultB = OnResultWithInfo, - GetSize = OnGetSize, - }; - FuncA = GCHandle.Alloc( vTable.ResultA ); - FuncB = GCHandle.Alloc( vTable.ResultB ); - FuncC = GCHandle.Alloc( vTable.GetSize ); - Marshal.StructureToPtr( vTable, vTablePtr, false ); - } - else - { - vTablePtr = Marshal.AllocHGlobal( Marshal.SizeOf( typeof( Callback.VTable ) ) ); - var vTable = new Callback.VTable - { - ResultA = OnResult, - ResultB = OnResultWithInfo, - GetSize = OnGetSize, - }; - FuncA = GCHandle.Alloc( vTable.ResultA ); - FuncB = GCHandle.Alloc( vTable.ResultB ); - FuncC = GCHandle.Alloc( vTable.GetSize ); - Marshal.StructureToPtr( vTable, vTablePtr, false ); - } - } - - // - // Create the callback object - // - var cb = new Callback(); - cb.vTablePtr = vTablePtr; - cb.CallbackFlags = steamworks.IsGameServer ? (byte)SteamNative.Callback.Flags.GameServer : (byte)0; - cb.CallbackId = template.GetCallbackId(); - - // - // Pin the callback, so it doesn't get garbage collected and we can pass the pointer to native - // - PinnedCallback = GCHandle.Alloc( cb, GCHandleType.Pinned ); - - // - // Register the callback with Steam - // - steamworks.native.api.SteamAPI_RegisterCallback( PinnedCallback.AddrOfPinnedObject(), cb.CallbackId ); - - steamworks.RegisterCallbackHandle( this ); - } - - [MonoPInvokeCallback] - internal void OnResultThis( IntPtr self, IntPtr param ) { OnResult( param ); } - [MonoPInvokeCallback] - internal void OnResultWithInfoThis( IntPtr self, IntPtr param, bool failure, SteamNative.SteamAPICall_t call ) { OnResultWithInfo( param, failure, call ); } - [MonoPInvokeCallback] - internal int OnGetSizeThis( IntPtr self ) { return OnGetSize(); } - [MonoPInvokeCallback] - internal int OnGetSize() { return template.GetStructSize(); } - - [MonoPInvokeCallback] - internal void OnResult( IntPtr param ) - { - OnResultWithInfo( param, false, 0 ); - } - - [MonoPInvokeCallback] - internal void OnResultWithInfo( IntPtr param, bool failure, SteamNative.SteamAPICall_t call ) - { - if ( failure ) return; - - var value = (T) template.Fill( param ); - - if ( Facepunch.Steamworks.Client.Instance != null ) - Facepunch.Steamworks.Client.Instance.OnCallback( value ); - } - } - - internal abstract class CallResult : CallbackHandle - { - internal SteamAPICall_t Call; - public override bool IsValid { get { return Call > 0; } } - - - internal CallResult( Facepunch.Steamworks.BaseSteamworks steamworks, SteamAPICall_t call ) : base( steamworks ) - { - Call = call; - } - - internal void Try() - { - bool failed = false; - - if ( !Steamworks.native.utils.IsAPICallCompleted( Call, ref failed )) - return; - - Steamworks.UnregisterCallResult( this ); - - RunCallback(); - } - - internal abstract void RunCallback(); - } - - - internal class CallResult : CallResult where T : struct, Steamworks.ISteamCallback - { - T template; - - private static byte[] resultBuffer = new byte[1024 * 16]; - - internal delegate T ConvertFromPointer( IntPtr p ); - - Action CallbackFunction; - - internal CallResult( Facepunch.Steamworks.BaseSteamworks steamworks, SteamAPICall_t call, Action callbackFunction ) : base( steamworks, call ) - { - template = new T(); - CallbackFunction = callbackFunction; - - Steamworks.RegisterCallResult( this ); - } - - public override string ToString() - { - return $"CallResult( {typeof(T).Name}, {template.GetCallbackId()}, {template.GetStructSize()}b )"; - } - - unsafe internal override void RunCallback() - { - bool failed = false; - - fixed ( byte* ptr = resultBuffer ) - { - if ( !Steamworks.native.utils.GetAPICallResult( Call, (IntPtr)ptr, resultBuffer.Length, template.GetCallbackId(), ref failed ) || failed ) - { - CallbackFunction( default(T), true ); - return; - } - - var val = (T) template.Fill( (IntPtr)ptr ); - CallbackFunction( val, false ); - } - } - } - - internal class MonoPInvokeCallbackAttribute : Attribute - { - public MonoPInvokeCallbackAttribute() { } - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Interface.cs b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Interface.cs deleted file mode 100644 index 5268aee..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Interface.cs +++ /dev/null @@ -1,788 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal static partial class Platform - { - internal interface Interface : IDisposable - { - // Implementation should return true if _ptr is non null - bool IsValid { get; } - - uint /*uint32*/ ISteamAppList_GetNumInstalledApps(); - uint /*uint32*/ ISteamAppList_GetInstalledApps( IntPtr /*AppId_t **/ pvecAppID, uint /*uint32*/ unMaxAppIDs ); - int /*int*/ ISteamAppList_GetAppName( uint nAppID, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameMax ); - int /*int*/ ISteamAppList_GetAppInstallDir( uint nAppID, System.Text.StringBuilder /*char **/ pchDirectory, int /*int*/ cchNameMax ); - int /*int*/ ISteamAppList_GetAppBuildId( uint nAppID ); - bool /*bool*/ ISteamApps_BIsSubscribed(); - bool /*bool*/ ISteamApps_BIsLowViolence(); - bool /*bool*/ ISteamApps_BIsCybercafe(); - bool /*bool*/ ISteamApps_BIsVACBanned(); - IntPtr ISteamApps_GetCurrentGameLanguage(); - IntPtr ISteamApps_GetAvailableGameLanguages(); - bool /*bool*/ ISteamApps_BIsSubscribedApp( uint appID ); - bool /*bool*/ ISteamApps_BIsDlcInstalled( uint appID ); - uint /*uint32*/ ISteamApps_GetEarliestPurchaseUnixTime( uint nAppID ); - bool /*bool*/ ISteamApps_BIsSubscribedFromFreeWeekend(); - int /*int*/ ISteamApps_GetDLCCount(); - bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC, ref uint pAppID, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); - void /*void*/ ISteamApps_InstallDLC( uint nAppID ); - void /*void*/ ISteamApps_UninstallDLC( uint nAppID ); - void /*void*/ ISteamApps_RequestAppProofOfPurchaseKey( uint nAppID ); - bool /*bool*/ ISteamApps_GetCurrentBetaName( System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); - bool /*bool*/ ISteamApps_MarkContentCorrupt( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMissingFilesOnly ); - uint /*uint32*/ ISteamApps_GetInstalledDepots( uint appID, IntPtr /*DepotId_t **/ pvecDepots, uint /*uint32*/ cMaxDepots ); - uint /*uint32*/ ISteamApps_GetAppInstallDir( uint appID, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderBufferSize ); - bool /*bool*/ ISteamApps_BIsAppInstalled( uint appID ); - CSteamID /*(class CSteamID)*/ ISteamApps_GetAppOwner(); - IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pchKey ); - bool /*bool*/ ISteamApps_GetDlcDownloadProgress( uint nAppID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal ); - int /*int*/ ISteamApps_GetAppBuildId(); - void /*void*/ ISteamApps_RequestAllProofOfPurchaseKeys(); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamApps_GetFileDetails( string /*const char **/ pszFileName ); - int /*int*/ ISteamApps_GetLaunchCommandLine( System.Text.StringBuilder /*char **/ pszCommandLine, int /*int*/ cubCommandLine ); - bool /*bool*/ ISteamApps_BIsSubscribedFromFamilySharing(); - HSteamPipe /*(HSteamPipe)*/ ISteamClient_CreateSteamPipe(); - bool /*bool*/ ISteamClient_BReleaseSteamPipe( int hSteamPipe ); - HSteamUser /*(HSteamUser)*/ ISteamClient_ConnectToGlobalUser( int hSteamPipe ); - HSteamUser /*(HSteamUser)*/ ISteamClient_CreateLocalUser( out int phSteamPipe, AccountType /*EAccountType*/ eAccountType ); - void /*void*/ ISteamClient_ReleaseUser( int hSteamPipe, int hUser ); - IntPtr /*class ISteamUser **/ ISteamClient_GetISteamUser( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamGameServer **/ ISteamClient_GetISteamGameServer( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - void /*void*/ ISteamClient_SetLocalIPBinding( uint /*uint32*/ unIP, ushort /*uint16*/ usPort ); - IntPtr /*class ISteamFriends **/ ISteamClient_GetISteamFriends( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamUtils **/ ISteamClient_GetISteamUtils( int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamMatchmaking **/ ISteamClient_GetISteamMatchmaking( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamMatchmakingServers **/ ISteamClient_GetISteamMatchmakingServers( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*void **/ ISteamClient_GetISteamGenericInterface( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamUserStats **/ ISteamClient_GetISteamUserStats( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamGameServerStats **/ ISteamClient_GetISteamGameServerStats( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamApps **/ ISteamClient_GetISteamApps( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamNetworking **/ ISteamClient_GetISteamNetworking( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamRemoteStorage **/ ISteamClient_GetISteamRemoteStorage( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamScreenshots **/ ISteamClient_GetISteamScreenshots( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamGameSearch **/ ISteamClient_GetISteamGameSearch( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - uint /*uint32*/ ISteamClient_GetIPCCallCount(); - void /*void*/ ISteamClient_SetWarningMessageHook( IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ); - bool /*bool*/ ISteamClient_BShutdownIfAllPipesClosed(); - IntPtr /*class ISteamHTTP **/ ISteamClient_GetISteamHTTP( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamController **/ ISteamClient_GetISteamController( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamUGC **/ ISteamClient_GetISteamUGC( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamAppList **/ ISteamClient_GetISteamAppList( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamMusic **/ ISteamClient_GetISteamMusic( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamMusicRemote **/ ISteamClient_GetISteamMusicRemote( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamHTMLSurface **/ ISteamClient_GetISteamHTMLSurface( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamInventory **/ ISteamClient_GetISteamInventory( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamVideo **/ ISteamClient_GetISteamVideo( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamParentalSettings **/ ISteamClient_GetISteamParentalSettings( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamInput **/ ISteamClient_GetISteamInput( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - IntPtr /*class ISteamParties **/ ISteamClient_GetISteamParties( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - bool /*bool*/ ISteamController_Init(); - bool /*bool*/ ISteamController_Shutdown(); - void /*void*/ ISteamController_RunFrame(); - int /*int*/ ISteamController_GetConnectedControllers( IntPtr /*ControllerHandle_t **/ handlesOut ); - ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ ISteamController_GetActionSetHandle( string /*const char **/ pszActionSetName ); - void /*void*/ ISteamController_ActivateActionSet( ulong controllerHandle, ulong actionSetHandle ); - ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ ISteamController_GetCurrentActionSet( ulong controllerHandle ); - void /*void*/ ISteamController_ActivateActionSetLayer( ulong controllerHandle, ulong actionSetLayerHandle ); - void /*void*/ ISteamController_DeactivateActionSetLayer( ulong controllerHandle, ulong actionSetLayerHandle ); - void /*void*/ ISteamController_DeactivateAllActionSetLayers( ulong controllerHandle ); - int /*int*/ ISteamController_GetActiveActionSetLayers( ulong controllerHandle, IntPtr /*ControllerActionSetHandle_t **/ handlesOut ); - ControllerDigitalActionHandle_t /*(ControllerDigitalActionHandle_t)*/ ISteamController_GetDigitalActionHandle( string /*const char **/ pszActionName ); - InputDigitalActionData_t /*struct InputDigitalActionData_t*/ ISteamController_GetDigitalActionData( ulong controllerHandle, ulong digitalActionHandle ); - int /*int*/ ISteamController_GetDigitalActionOrigins( ulong controllerHandle, ulong actionSetHandle, ulong digitalActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut ); - ControllerAnalogActionHandle_t /*(ControllerAnalogActionHandle_t)*/ ISteamController_GetAnalogActionHandle( string /*const char **/ pszActionName ); - InputAnalogActionData_t /*struct InputAnalogActionData_t*/ ISteamController_GetAnalogActionData( ulong controllerHandle, ulong analogActionHandle ); - int /*int*/ ISteamController_GetAnalogActionOrigins( ulong controllerHandle, ulong actionSetHandle, ulong analogActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut ); - IntPtr ISteamController_GetGlyphForActionOrigin( ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin ); - IntPtr ISteamController_GetStringForActionOrigin( ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin ); - void /*void*/ ISteamController_StopAnalogActionMomentum( ulong controllerHandle, ulong eAction ); - InputMotionData_t /*struct InputMotionData_t*/ ISteamController_GetMotionData( ulong controllerHandle ); - void /*void*/ ISteamController_TriggerHapticPulse( ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec ); - void /*void*/ ISteamController_TriggerRepeatedHapticPulse( ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags ); - void /*void*/ ISteamController_TriggerVibration( ulong controllerHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed ); - void /*void*/ ISteamController_SetLEDColor( ulong controllerHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags ); - bool /*bool*/ ISteamController_ShowBindingPanel( ulong controllerHandle ); - SteamInputType /*ESteamInputType*/ ISteamController_GetInputTypeForHandle( ulong controllerHandle ); - ControllerHandle_t /*(ControllerHandle_t)*/ ISteamController_GetControllerForGamepadIndex( int /*int*/ nIndex ); - int /*int*/ ISteamController_GetGamepadIndexForController( ulong ulControllerHandle ); - IntPtr ISteamController_GetStringForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ); - IntPtr ISteamController_GetGlyphForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ); - ControllerActionOrigin /*EControllerActionOrigin*/ ISteamController_GetActionOriginFromXboxOrigin( ulong controllerHandle, XboxOrigin /*EXboxOrigin*/ eOrigin ); - ControllerActionOrigin /*EControllerActionOrigin*/ ISteamController_TranslateActionOrigin( SteamInputType /*ESteamInputType*/ eDestinationInputType, ControllerActionOrigin /*EControllerActionOrigin*/ eSourceOrigin ); - IntPtr ISteamFriends_GetPersonaName(); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_SetPersonaName( string /*const char **/ pchPersonaName ); - PersonaState /*EPersonaState*/ ISteamFriends_GetPersonaState(); - int /*int*/ ISteamFriends_GetFriendCount( int /*int*/ iFriendFlags ); - CSteamID /*(class CSteamID)*/ ISteamFriends_GetFriendByIndex( int /*int*/ iFriend, int /*int*/ iFriendFlags ); - FriendRelationship /*EFriendRelationship*/ ISteamFriends_GetFriendRelationship( ulong steamIDFriend ); - PersonaState /*EPersonaState*/ ISteamFriends_GetFriendPersonaState( ulong steamIDFriend ); - IntPtr ISteamFriends_GetFriendPersonaName( ulong steamIDFriend ); - bool /*bool*/ ISteamFriends_GetFriendGamePlayed( ulong steamIDFriend, ref FriendGameInfo_t /*struct FriendGameInfo_t **/ pFriendGameInfo ); - IntPtr ISteamFriends_GetFriendPersonaNameHistory( ulong steamIDFriend, int /*int*/ iPersonaName ); - int /*int*/ ISteamFriends_GetFriendSteamLevel( ulong steamIDFriend ); - IntPtr ISteamFriends_GetPlayerNickname( ulong steamIDPlayer ); - int /*int*/ ISteamFriends_GetFriendsGroupCount(); - FriendsGroupID_t /*(FriendsGroupID_t)*/ ISteamFriends_GetFriendsGroupIDByIndex( int /*int*/ iFG ); - IntPtr ISteamFriends_GetFriendsGroupName( short friendsGroupID ); - int /*int*/ ISteamFriends_GetFriendsGroupMembersCount( short friendsGroupID ); - void /*void*/ ISteamFriends_GetFriendsGroupMembersList( short friendsGroupID, IntPtr /*class CSteamID **/ pOutSteamIDMembers, int /*int*/ nMembersCount ); - bool /*bool*/ ISteamFriends_HasFriend( ulong steamIDFriend, int /*int*/ iFriendFlags ); - int /*int*/ ISteamFriends_GetClanCount(); - CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanByIndex( int /*int*/ iClan ); - IntPtr ISteamFriends_GetClanName( ulong steamIDClan ); - IntPtr ISteamFriends_GetClanTag( ulong steamIDClan ); - bool /*bool*/ ISteamFriends_GetClanActivityCounts( ulong steamIDClan, out int /*int **/ pnOnline, out int /*int **/ pnInGame, out int /*int **/ pnChatting ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_DownloadClanActivityCounts( IntPtr /*class CSteamID **/ psteamIDClans, int /*int*/ cClansToRequest ); - int /*int*/ ISteamFriends_GetFriendCountFromSource( ulong steamIDSource ); - CSteamID /*(class CSteamID)*/ ISteamFriends_GetFriendFromSourceByIndex( ulong steamIDSource, int /*int*/ iFriend ); - bool /*bool*/ ISteamFriends_IsUserInSource( ulong steamIDUser, ulong steamIDSource ); - void /*void*/ ISteamFriends_SetInGameVoiceSpeaking( ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSpeaking ); - void /*void*/ ISteamFriends_ActivateGameOverlay( string /*const char **/ pchDialog ); - void /*void*/ ISteamFriends_ActivateGameOverlayToUser( string /*const char **/ pchDialog, ulong steamID ); - void /*void*/ ISteamFriends_ActivateGameOverlayToWebPage( string /*const char **/ pchURL, ActivateGameOverlayToWebPageMode /*EActivateGameOverlayToWebPageMode*/ eMode ); - void /*void*/ ISteamFriends_ActivateGameOverlayToStore( uint nAppID, OverlayToStoreFlag /*EOverlayToStoreFlag*/ eFlag ); - void /*void*/ ISteamFriends_SetPlayedWith( ulong steamIDUserPlayedWith ); - void /*void*/ ISteamFriends_ActivateGameOverlayInviteDialog( ulong steamIDLobby ); - int /*int*/ ISteamFriends_GetSmallFriendAvatar( ulong steamIDFriend ); - int /*int*/ ISteamFriends_GetMediumFriendAvatar( ulong steamIDFriend ); - int /*int*/ ISteamFriends_GetLargeFriendAvatar( ulong steamIDFriend ); - bool /*bool*/ ISteamFriends_RequestUserInformation( ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireNameOnly ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_RequestClanOfficerList( ulong steamIDClan ); - CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanOwner( ulong steamIDClan ); - int /*int*/ ISteamFriends_GetClanOfficerCount( ulong steamIDClan ); - CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanOfficerByIndex( ulong steamIDClan, int /*int*/ iOfficer ); - uint /*uint32*/ ISteamFriends_GetUserRestrictions(); - bool /*bool*/ ISteamFriends_SetRichPresence( string /*const char **/ pchKey, string /*const char **/ pchValue ); - void /*void*/ ISteamFriends_ClearRichPresence(); - IntPtr ISteamFriends_GetFriendRichPresence( ulong steamIDFriend, string /*const char **/ pchKey ); - int /*int*/ ISteamFriends_GetFriendRichPresenceKeyCount( ulong steamIDFriend ); - IntPtr ISteamFriends_GetFriendRichPresenceKeyByIndex( ulong steamIDFriend, int /*int*/ iKey ); - void /*void*/ ISteamFriends_RequestFriendRichPresence( ulong steamIDFriend ); - bool /*bool*/ ISteamFriends_InviteUserToGame( ulong steamIDFriend, string /*const char **/ pchConnectString ); - int /*int*/ ISteamFriends_GetCoplayFriendCount(); - CSteamID /*(class CSteamID)*/ ISteamFriends_GetCoplayFriend( int /*int*/ iCoplayFriend ); - int /*int*/ ISteamFriends_GetFriendCoplayTime( ulong steamIDFriend ); - AppId_t /*(AppId_t)*/ ISteamFriends_GetFriendCoplayGame( ulong steamIDFriend ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_JoinClanChatRoom( ulong steamIDClan ); - bool /*bool*/ ISteamFriends_LeaveClanChatRoom( ulong steamIDClan ); - int /*int*/ ISteamFriends_GetClanChatMemberCount( ulong steamIDClan ); - CSteamID /*(class CSteamID)*/ ISteamFriends_GetChatMemberByIndex( ulong steamIDClan, int /*int*/ iUser ); - bool /*bool*/ ISteamFriends_SendClanChatMessage( ulong steamIDClanChat, string /*const char **/ pchText ); - int /*int*/ ISteamFriends_GetClanChatMessage( ulong steamIDClanChat, int /*int*/ iMessage, IntPtr /*void **/ prgchText, int /*int*/ cchTextMax, out ChatEntryType /*EChatEntryType **/ peChatEntryType, out ulong psteamidChatter ); - bool /*bool*/ ISteamFriends_IsClanChatAdmin( ulong steamIDClanChat, ulong steamIDUser ); - bool /*bool*/ ISteamFriends_IsClanChatWindowOpenInSteam( ulong steamIDClanChat ); - bool /*bool*/ ISteamFriends_OpenClanChatWindowInSteam( ulong steamIDClanChat ); - bool /*bool*/ ISteamFriends_CloseClanChatWindowInSteam( ulong steamIDClanChat ); - bool /*bool*/ ISteamFriends_SetListenForFriendsMessages( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bInterceptEnabled ); - bool /*bool*/ ISteamFriends_ReplyToFriendMessage( ulong steamIDFriend, string /*const char **/ pchMsgToSend ); - int /*int*/ ISteamFriends_GetFriendMessage( ulong steamIDFriend, int /*int*/ iMessageID, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_GetFollowerCount( ulong steamID ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_IsFollowing( ulong steamID ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_EnumerateFollowingList( uint /*uint32*/ unStartIndex ); - bool /*bool*/ ISteamFriends_IsClanPublic( ulong steamIDClan ); - bool /*bool*/ ISteamFriends_IsClanOfficialGameGroup( ulong steamIDClan ); - int /*int*/ ISteamFriends_GetNumChatsWithUnreadPriorityMessages(); - GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_AddGameSearchParams( string /*const char **/ pchKeyToFind, string /*const char **/ pchValuesToFind ); - GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SearchForGameWithLobby( ulong steamIDLobby, int /*int*/ nPlayerMin, int /*int*/ nPlayerMax ); - GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SearchForGameSolo( int /*int*/ nPlayerMin, int /*int*/ nPlayerMax ); - GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_AcceptGame(); - GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_DeclineGame(); - GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_RetrieveConnectionDetails( ulong steamIDHost, System.Text.StringBuilder /*char **/ pchConnectionDetails, int /*int*/ cubConnectionDetails ); - GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_EndGameSearch(); - GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SetGameHostParams( string /*const char **/ pchKey, string /*const char **/ pchValue ); - GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SetConnectionDetails( string /*const char **/ pchConnectionDetails, int /*int*/ cubConnectionDetails ); - GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_RequestPlayersForGame( int /*int*/ nPlayerMin, int /*int*/ nPlayerMax, int /*int*/ nMaxTeamSize ); - GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_HostConfirmGameStart( ulong /*uint64*/ ullUniqueGameID ); - GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_CancelRequestPlayersForGame(); - GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SubmitPlayerResult( ulong /*uint64*/ ullUniqueGameID, ulong steamIDPlayer, PlayerResult_t /*EPlayerResult_t*/ EPlayerResult ); - GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_EndGame( ulong /*uint64*/ ullUniqueGameID ); - bool /*bool*/ ISteamGameServer_InitGameServer( uint /*uint32*/ unIP, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, uint /*uint32*/ unFlags, uint nGameAppId, string /*const char **/ pchVersionString ); - void /*void*/ ISteamGameServer_SetProduct( string /*const char **/ pszProduct ); - void /*void*/ ISteamGameServer_SetGameDescription( string /*const char **/ pszGameDescription ); - void /*void*/ ISteamGameServer_SetModDir( string /*const char **/ pszModDir ); - void /*void*/ ISteamGameServer_SetDedicatedServer( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bDedicated ); - void /*void*/ ISteamGameServer_LogOn( string /*const char **/ pszToken ); - void /*void*/ ISteamGameServer_LogOnAnonymous(); - void /*void*/ ISteamGameServer_LogOff(); - bool /*bool*/ ISteamGameServer_BLoggedOn(); - bool /*bool*/ ISteamGameServer_BSecure(); - CSteamID /*(class CSteamID)*/ ISteamGameServer_GetSteamID(); - bool /*bool*/ ISteamGameServer_WasRestartRequested(); - void /*void*/ ISteamGameServer_SetMaxPlayerCount( int /*int*/ cPlayersMax ); - void /*void*/ ISteamGameServer_SetBotPlayerCount( int /*int*/ cBotplayers ); - void /*void*/ ISteamGameServer_SetServerName( string /*const char **/ pszServerName ); - void /*void*/ ISteamGameServer_SetMapName( string /*const char **/ pszMapName ); - void /*void*/ ISteamGameServer_SetPasswordProtected( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bPasswordProtected ); - void /*void*/ ISteamGameServer_SetSpectatorPort( ushort /*uint16*/ unSpectatorPort ); - void /*void*/ ISteamGameServer_SetSpectatorServerName( string /*const char **/ pszSpectatorServerName ); - void /*void*/ ISteamGameServer_ClearAllKeyValues(); - void /*void*/ ISteamGameServer_SetKeyValue( string /*const char **/ pKey, string /*const char **/ pValue ); - void /*void*/ ISteamGameServer_SetGameTags( string /*const char **/ pchGameTags ); - void /*void*/ ISteamGameServer_SetGameData( string /*const char **/ pchGameData ); - void /*void*/ ISteamGameServer_SetRegion( string /*const char **/ pszRegion ); - bool /*bool*/ ISteamGameServer_SendUserConnectAndAuthenticate( uint /*uint32*/ unIPClient, IntPtr /*const void **/ pvAuthBlob, uint /*uint32*/ cubAuthBlobSize, out ulong pSteamIDUser ); - CSteamID /*(class CSteamID)*/ ISteamGameServer_CreateUnauthenticatedUserConnection(); - void /*void*/ ISteamGameServer_SendUserDisconnect( ulong steamIDUser ); - bool /*bool*/ ISteamGameServer_BUpdateUserData( ulong steamIDUser, string /*const char **/ pchPlayerName, uint /*uint32*/ uScore ); - HAuthTicket /*(HAuthTicket)*/ ISteamGameServer_GetAuthSessionTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ); - BeginAuthSessionResult /*EBeginAuthSessionResult*/ ISteamGameServer_BeginAuthSession( IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID ); - void /*void*/ ISteamGameServer_EndAuthSession( ulong steamID ); - void /*void*/ ISteamGameServer_CancelAuthTicket( uint hAuthTicket ); - UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ ISteamGameServer_UserHasLicenseForApp( ulong steamID, uint appID ); - bool /*bool*/ ISteamGameServer_RequestUserGroupStatus( ulong steamIDUser, ulong steamIDGroup ); - void /*void*/ ISteamGameServer_GetGameplayStats(); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_GetServerReputation(); - uint /*uint32*/ ISteamGameServer_GetPublicIP(); - bool /*bool*/ ISteamGameServer_HandleIncomingPacket( IntPtr /*const void **/ pData, int /*int*/ cbData, uint /*uint32*/ srcIP, ushort /*uint16*/ srcPort ); - int /*int*/ ISteamGameServer_GetNextOutgoingPacket( IntPtr /*void **/ pOut, int /*int*/ cbMaxOut, out uint /*uint32 **/ pNetAdr, out ushort /*uint16 **/ pPort ); - void /*void*/ ISteamGameServer_EnableHeartbeats( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bActive ); - void /*void*/ ISteamGameServer_SetHeartbeatInterval( int /*int*/ iHeartbeatInterval ); - void /*void*/ ISteamGameServer_ForceHeartbeat(); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_AssociateWithClan( ulong steamIDClan ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_ComputeNewPlayerCompatibility( ulong steamIDNewPlayer ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServerStats_RequestUserStats( ulong steamIDUser ); - bool /*bool*/ ISteamGameServerStats_GetUserStat( ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData ); - bool /*bool*/ ISteamGameServerStats_GetUserStat0( ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData ); - bool /*bool*/ ISteamGameServerStats_GetUserAchievement( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - bool /*bool*/ ISteamGameServerStats_SetUserStat( ulong steamIDUser, string /*const char **/ pchName, int /*int32*/ nData ); - bool /*bool*/ ISteamGameServerStats_SetUserStat0( ulong steamIDUser, string /*const char **/ pchName, float /*float*/ fData ); - bool /*bool*/ ISteamGameServerStats_UpdateUserAvgRateStat( ulong steamIDUser, string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength ); - bool /*bool*/ ISteamGameServerStats_SetUserAchievement( ulong steamIDUser, string /*const char **/ pchName ); - bool /*bool*/ ISteamGameServerStats_ClearUserAchievement( ulong steamIDUser, string /*const char **/ pchName ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServerStats_StoreUserStats( ulong steamIDUser ); - void /*void*/ ISteamHTMLSurface_DestructISteamHTMLSurface(); - bool /*bool*/ ISteamHTMLSurface_Init(); - bool /*bool*/ ISteamHTMLSurface_Shutdown(); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamHTMLSurface_CreateBrowser( string /*const char **/ pchUserAgent, string /*const char **/ pchUserCSS ); - void /*void*/ ISteamHTMLSurface_RemoveBrowser( uint unBrowserHandle ); - void /*void*/ ISteamHTMLSurface_LoadURL( uint unBrowserHandle, string /*const char **/ pchURL, string /*const char **/ pchPostData ); - void /*void*/ ISteamHTMLSurface_SetSize( uint unBrowserHandle, uint /*uint32*/ unWidth, uint /*uint32*/ unHeight ); - void /*void*/ ISteamHTMLSurface_StopLoad( uint unBrowserHandle ); - void /*void*/ ISteamHTMLSurface_Reload( uint unBrowserHandle ); - void /*void*/ ISteamHTMLSurface_GoBack( uint unBrowserHandle ); - void /*void*/ ISteamHTMLSurface_GoForward( uint unBrowserHandle ); - void /*void*/ ISteamHTMLSurface_AddHeader( uint unBrowserHandle, string /*const char **/ pchKey, string /*const char **/ pchValue ); - void /*void*/ ISteamHTMLSurface_ExecuteJavascript( uint unBrowserHandle, string /*const char **/ pchScript ); - void /*void*/ ISteamHTMLSurface_MouseUp( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ); - void /*void*/ ISteamHTMLSurface_MouseDown( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ); - void /*void*/ ISteamHTMLSurface_MouseDoubleClick( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ); - void /*void*/ ISteamHTMLSurface_MouseMove( uint unBrowserHandle, int /*int*/ x, int /*int*/ y ); - void /*void*/ ISteamHTMLSurface_MouseWheel( uint unBrowserHandle, int /*int32*/ nDelta ); - void /*void*/ ISteamHTMLSurface_KeyDown( uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bIsSystemKey ); - void /*void*/ ISteamHTMLSurface_KeyUp( uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers ); - void /*void*/ ISteamHTMLSurface_KeyChar( uint unBrowserHandle, uint /*uint32*/ cUnicodeChar, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers ); - void /*void*/ ISteamHTMLSurface_SetHorizontalScroll( uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll ); - void /*void*/ ISteamHTMLSurface_SetVerticalScroll( uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll ); - void /*void*/ ISteamHTMLSurface_SetKeyFocus( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHasKeyFocus ); - void /*void*/ ISteamHTMLSurface_ViewSource( uint unBrowserHandle ); - void /*void*/ ISteamHTMLSurface_CopyToClipboard( uint unBrowserHandle ); - void /*void*/ ISteamHTMLSurface_PasteFromClipboard( uint unBrowserHandle ); - void /*void*/ ISteamHTMLSurface_Find( uint unBrowserHandle, string /*const char **/ pchSearchStr, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bCurrentlyInFind, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReverse ); - void /*void*/ ISteamHTMLSurface_StopFind( uint unBrowserHandle ); - void /*void*/ ISteamHTMLSurface_GetLinkAtPosition( uint unBrowserHandle, int /*int*/ x, int /*int*/ y ); - void /*void*/ ISteamHTMLSurface_SetCookie( string /*const char **/ pchHostname, string /*const char **/ pchKey, string /*const char **/ pchValue, string /*const char **/ pchPath, uint nExpires, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHTTPOnly ); - void /*void*/ ISteamHTMLSurface_SetPageScaleFactor( uint unBrowserHandle, float /*float*/ flZoom, int /*int*/ nPointX, int /*int*/ nPointY ); - void /*void*/ ISteamHTMLSurface_SetBackgroundMode( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bBackgroundMode ); - void /*void*/ ISteamHTMLSurface_SetDPIScalingFactor( uint unBrowserHandle, float /*float*/ flDPIScaling ); - void /*void*/ ISteamHTMLSurface_OpenDeveloperTools( uint unBrowserHandle ); - void /*void*/ ISteamHTMLSurface_AllowStartRequest( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowed ); - void /*void*/ ISteamHTMLSurface_JSDialogResponse( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bResult ); - HTTPRequestHandle /*(HTTPRequestHandle)*/ ISteamHTTP_CreateHTTPRequest( HTTPMethod /*EHTTPMethod*/ eHTTPRequestMethod, string /*const char **/ pchAbsoluteURL ); - bool /*bool*/ ISteamHTTP_SetHTTPRequestContextValue( uint hRequest, ulong /*uint64*/ ulContextValue ); - bool /*bool*/ ISteamHTTP_SetHTTPRequestNetworkActivityTimeout( uint hRequest, uint /*uint32*/ unTimeoutSeconds ); - bool /*bool*/ ISteamHTTP_SetHTTPRequestHeaderValue( uint hRequest, string /*const char **/ pchHeaderName, string /*const char **/ pchHeaderValue ); - bool /*bool*/ ISteamHTTP_SetHTTPRequestGetOrPostParameter( uint hRequest, string /*const char **/ pchParamName, string /*const char **/ pchParamValue ); - bool /*bool*/ ISteamHTTP_SendHTTPRequest( uint hRequest, ref ulong pCallHandle ); - bool /*bool*/ ISteamHTTP_SendHTTPRequestAndStreamResponse( uint hRequest, ref ulong pCallHandle ); - bool /*bool*/ ISteamHTTP_DeferHTTPRequest( uint hRequest ); - bool /*bool*/ ISteamHTTP_PrioritizeHTTPRequest( uint hRequest ); - bool /*bool*/ ISteamHTTP_GetHTTPResponseHeaderSize( uint hRequest, string /*const char **/ pchHeaderName, out uint /*uint32 **/ unResponseHeaderSize ); - bool /*bool*/ ISteamHTTP_GetHTTPResponseHeaderValue( uint hRequest, string /*const char **/ pchHeaderName, out byte /*uint8 **/ pHeaderValueBuffer, uint /*uint32*/ unBufferSize ); - bool /*bool*/ ISteamHTTP_GetHTTPResponseBodySize( uint hRequest, out uint /*uint32 **/ unBodySize ); - bool /*bool*/ ISteamHTTP_GetHTTPResponseBodyData( uint hRequest, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize ); - bool /*bool*/ ISteamHTTP_GetHTTPStreamingResponseBodyData( uint hRequest, uint /*uint32*/ cOffset, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize ); - bool /*bool*/ ISteamHTTP_ReleaseHTTPRequest( uint hRequest ); - bool /*bool*/ ISteamHTTP_GetHTTPDownloadProgressPct( uint hRequest, out float /*float **/ pflPercentOut ); - bool /*bool*/ ISteamHTTP_SetHTTPRequestRawPostBody( uint hRequest, string /*const char **/ pchContentType, out byte /*uint8 **/ pubBody, uint /*uint32*/ unBodyLen ); - HTTPCookieContainerHandle /*(HTTPCookieContainerHandle)*/ ISteamHTTP_CreateCookieContainer( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowResponsesToModify ); - bool /*bool*/ ISteamHTTP_ReleaseCookieContainer( uint hCookieContainer ); - bool /*bool*/ ISteamHTTP_SetCookie( uint hCookieContainer, string /*const char **/ pchHost, string /*const char **/ pchUrl, string /*const char **/ pchCookie ); - bool /*bool*/ ISteamHTTP_SetHTTPRequestCookieContainer( uint hRequest, uint hCookieContainer ); - bool /*bool*/ ISteamHTTP_SetHTTPRequestUserAgentInfo( uint hRequest, string /*const char **/ pchUserAgentInfo ); - bool /*bool*/ ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( uint hRequest, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireVerifiedCertificate ); - bool /*bool*/ ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( uint hRequest, uint /*uint32*/ unMilliseconds ); - bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( uint hRequest, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbWasTimedOut ); - bool /*bool*/ ISteamInput_Init(); - bool /*bool*/ ISteamInput_Shutdown(); - void /*void*/ ISteamInput_RunFrame(); - int /*int*/ ISteamInput_GetConnectedControllers( IntPtr /*InputHandle_t **/ handlesOut ); - InputActionSetHandle_t /*(InputActionSetHandle_t)*/ ISteamInput_GetActionSetHandle( string /*const char **/ pszActionSetName ); - void /*void*/ ISteamInput_ActivateActionSet( ulong inputHandle, ulong actionSetHandle ); - InputActionSetHandle_t /*(InputActionSetHandle_t)*/ ISteamInput_GetCurrentActionSet( ulong inputHandle ); - void /*void*/ ISteamInput_ActivateActionSetLayer( ulong inputHandle, ulong actionSetLayerHandle ); - void /*void*/ ISteamInput_DeactivateActionSetLayer( ulong inputHandle, ulong actionSetLayerHandle ); - void /*void*/ ISteamInput_DeactivateAllActionSetLayers( ulong inputHandle ); - int /*int*/ ISteamInput_GetActiveActionSetLayers( ulong inputHandle, IntPtr /*InputActionSetHandle_t **/ handlesOut ); - InputDigitalActionHandle_t /*(InputDigitalActionHandle_t)*/ ISteamInput_GetDigitalActionHandle( string /*const char **/ pszActionName ); - InputDigitalActionData_t /*struct InputDigitalActionData_t*/ ISteamInput_GetDigitalActionData( ulong inputHandle, ulong digitalActionHandle ); - int /*int*/ ISteamInput_GetDigitalActionOrigins( ulong inputHandle, ulong actionSetHandle, ulong digitalActionHandle, out InputActionOrigin /*EInputActionOrigin **/ originsOut ); - InputAnalogActionHandle_t /*(InputAnalogActionHandle_t)*/ ISteamInput_GetAnalogActionHandle( string /*const char **/ pszActionName ); - InputAnalogActionData_t /*struct InputAnalogActionData_t*/ ISteamInput_GetAnalogActionData( ulong inputHandle, ulong analogActionHandle ); - int /*int*/ ISteamInput_GetAnalogActionOrigins( ulong inputHandle, ulong actionSetHandle, ulong analogActionHandle, out InputActionOrigin /*EInputActionOrigin **/ originsOut ); - IntPtr ISteamInput_GetGlyphForActionOrigin( InputActionOrigin /*EInputActionOrigin*/ eOrigin ); - IntPtr ISteamInput_GetStringForActionOrigin( InputActionOrigin /*EInputActionOrigin*/ eOrigin ); - void /*void*/ ISteamInput_StopAnalogActionMomentum( ulong inputHandle, ulong eAction ); - InputMotionData_t /*struct InputMotionData_t*/ ISteamInput_GetMotionData( ulong inputHandle ); - void /*void*/ ISteamInput_TriggerVibration( ulong inputHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed ); - void /*void*/ ISteamInput_SetLEDColor( ulong inputHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags ); - void /*void*/ ISteamInput_TriggerHapticPulse( ulong inputHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec ); - void /*void*/ ISteamInput_TriggerRepeatedHapticPulse( ulong inputHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags ); - bool /*bool*/ ISteamInput_ShowBindingPanel( ulong inputHandle ); - SteamInputType /*ESteamInputType*/ ISteamInput_GetInputTypeForHandle( ulong inputHandle ); - InputHandle_t /*(InputHandle_t)*/ ISteamInput_GetControllerForGamepadIndex( int /*int*/ nIndex ); - int /*int*/ ISteamInput_GetGamepadIndexForController( ulong ulinputHandle ); - IntPtr ISteamInput_GetStringForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ); - IntPtr ISteamInput_GetGlyphForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ); - InputActionOrigin /*EInputActionOrigin*/ ISteamInput_GetActionOriginFromXboxOrigin( ulong inputHandle, XboxOrigin /*EXboxOrigin*/ eOrigin ); - InputActionOrigin /*EInputActionOrigin*/ ISteamInput_TranslateActionOrigin( SteamInputType /*ESteamInputType*/ eDestinationInputType, InputActionOrigin /*EInputActionOrigin*/ eSourceOrigin ); - Result /*EResult*/ ISteamInventory_GetResultStatus( int resultHandle ); - bool /*bool*/ ISteamInventory_GetResultItems( int resultHandle, IntPtr /*struct SteamItemDetails_t **/ pOutItemsArray, out uint /*uint32 **/ punOutItemsArraySize ); - bool /*bool*/ ISteamInventory_GetResultItemProperty( int resultHandle, uint /*uint32*/ unItemIndex, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut ); - uint /*uint32*/ ISteamInventory_GetResultTimestamp( int resultHandle ); - bool /*bool*/ ISteamInventory_CheckResultSteamID( int resultHandle, ulong steamIDExpected ); - void /*void*/ ISteamInventory_DestroyResult( int resultHandle ); - bool /*bool*/ ISteamInventory_GetAllItems( ref int pResultHandle ); - bool /*bool*/ ISteamInventory_GetItemsByID( ref int pResultHandle, ulong[] pInstanceIDs, uint /*uint32*/ unCountInstanceIDs ); - bool /*bool*/ ISteamInventory_SerializeResult( int resultHandle, IntPtr /*void **/ pOutBuffer, out uint /*uint32 **/ punOutBufferSize ); - bool /*bool*/ ISteamInventory_DeserializeResult( ref int pOutResultHandle, IntPtr /*const void **/ pBuffer, uint /*uint32*/ unBufferSize, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRESERVED_MUST_BE_FALSE ); - bool /*bool*/ ISteamInventory_GenerateItems( ref int pResultHandle, int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength ); - bool /*bool*/ ISteamInventory_GrantPromoItems( ref int pResultHandle ); - bool /*bool*/ ISteamInventory_AddPromoItem( ref int pResultHandle, int itemDef ); - bool /*bool*/ ISteamInventory_AddPromoItems( ref int pResultHandle, int[] pArrayItemDefs, uint /*uint32*/ unArrayLength ); - bool /*bool*/ ISteamInventory_ConsumeItem( ref int pResultHandle, ulong itemConsume, uint /*uint32*/ unQuantity ); - bool /*bool*/ ISteamInventory_ExchangeItems( ref int pResultHandle, int[] pArrayGenerate, uint[] /*const uint32 **/ punArrayGenerateQuantity, uint /*uint32*/ unArrayGenerateLength, ulong[] pArrayDestroy, uint[] /*const uint32 **/ punArrayDestroyQuantity, uint /*uint32*/ unArrayDestroyLength ); - bool /*bool*/ ISteamInventory_TransferItemQuantity( ref int pResultHandle, ulong itemIdSource, uint /*uint32*/ unQuantity, ulong itemIdDest ); - void /*void*/ ISteamInventory_SendItemDropHeartbeat(); - bool /*bool*/ ISteamInventory_TriggerItemDrop( ref int pResultHandle, int dropListDefinition ); - bool /*bool*/ ISteamInventory_TradeItems( ref int pResultHandle, ulong steamIDTradePartner, ulong[] pArrayGive, uint[] /*const uint32 **/ pArrayGiveQuantity, uint /*uint32*/ nArrayGiveLength, ulong[] pArrayGet, uint[] /*const uint32 **/ pArrayGetQuantity, uint /*uint32*/ nArrayGetLength ); - bool /*bool*/ ISteamInventory_LoadItemDefinitions(); - bool /*bool*/ ISteamInventory_GetItemDefinitionIDs( IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize ); - bool /*bool*/ ISteamInventory_GetItemDefinitionProperty( int iDefinition, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamInventory_RequestEligiblePromoItemDefinitionsIDs( ulong steamID ); - bool /*bool*/ ISteamInventory_GetEligiblePromoItemDefinitionIDs( ulong steamID, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamInventory_StartPurchase( int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamInventory_RequestPrices(); - uint /*uint32*/ ISteamInventory_GetNumItemsWithPrices(); - bool /*bool*/ ISteamInventory_GetItemsWithPrices( IntPtr /*SteamItemDef_t **/ pArrayItemDefs, IntPtr /*uint64 **/ pCurrentPrices, IntPtr /*uint64 **/ pBasePrices, uint /*uint32*/ unArrayLength ); - bool /*bool*/ ISteamInventory_GetItemPrice( int iDefinition, out ulong /*uint64 **/ pCurrentPrice, out ulong /*uint64 **/ pBasePrice ); - SteamInventoryUpdateHandle_t /*(SteamInventoryUpdateHandle_t)*/ ISteamInventory_StartUpdateProperties(); - bool /*bool*/ ISteamInventory_RemoveProperty( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName ); - bool /*bool*/ ISteamInventory_SetProperty( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, string /*const char **/ pchPropertyValue ); - bool /*bool*/ ISteamInventory_SetProperty0( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - bool /*bool*/ ISteamInventory_SetProperty0( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, long /*int64*/ nValue ); - bool /*bool*/ ISteamInventory_SetProperty0( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, float /*float*/ flValue ); - bool /*bool*/ ISteamInventory_SubmitUpdateProperties( ulong handle, ref int pResultHandle ); - int /*int*/ ISteamMatchmaking_GetFavoriteGameCount(); - bool /*bool*/ ISteamMatchmaking_GetFavoriteGame( int /*int*/ iGame, ref uint pnAppID, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnConnPort, out ushort /*uint16 **/ pnQueryPort, out uint /*uint32 **/ punFlags, out uint /*uint32 **/ pRTime32LastPlayedOnServer ); - int /*int*/ ISteamMatchmaking_AddFavoriteGame( uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags, uint /*uint32*/ rTime32LastPlayedOnServer ); - bool /*bool*/ ISteamMatchmaking_RemoveFavoriteGame( uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_RequestLobbyList(); - void /*void*/ ISteamMatchmaking_AddRequestLobbyListStringFilter( string /*const char **/ pchKeyToMatch, string /*const char **/ pchValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType ); - void /*void*/ ISteamMatchmaking_AddRequestLobbyListNumericalFilter( string /*const char **/ pchKeyToMatch, int /*int*/ nValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType ); - void /*void*/ ISteamMatchmaking_AddRequestLobbyListNearValueFilter( string /*const char **/ pchKeyToMatch, int /*int*/ nValueToBeCloseTo ); - void /*void*/ ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable( int /*int*/ nSlotsAvailable ); - void /*void*/ ISteamMatchmaking_AddRequestLobbyListDistanceFilter( LobbyDistanceFilter /*ELobbyDistanceFilter*/ eLobbyDistanceFilter ); - void /*void*/ ISteamMatchmaking_AddRequestLobbyListResultCountFilter( int /*int*/ cMaxResults ); - void /*void*/ ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter( ulong steamIDLobby ); - CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyByIndex( int /*int*/ iLobby ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_CreateLobby( LobbyType /*ELobbyType*/ eLobbyType, int /*int*/ cMaxMembers ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_JoinLobby( ulong steamIDLobby ); - void /*void*/ ISteamMatchmaking_LeaveLobby( ulong steamIDLobby ); - bool /*bool*/ ISteamMatchmaking_InviteUserToLobby( ulong steamIDLobby, ulong steamIDInvitee ); - int /*int*/ ISteamMatchmaking_GetNumLobbyMembers( ulong steamIDLobby ); - CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyMemberByIndex( ulong steamIDLobby, int /*int*/ iMember ); - IntPtr ISteamMatchmaking_GetLobbyData( ulong steamIDLobby, string /*const char **/ pchKey ); - bool /*bool*/ ISteamMatchmaking_SetLobbyData( ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue ); - int /*int*/ ISteamMatchmaking_GetLobbyDataCount( ulong steamIDLobby ); - bool /*bool*/ ISteamMatchmaking_GetLobbyDataByIndex( ulong steamIDLobby, int /*int*/ iLobbyData, System.Text.StringBuilder /*char **/ pchKey, int /*int*/ cchKeyBufferSize, System.Text.StringBuilder /*char **/ pchValue, int /*int*/ cchValueBufferSize ); - bool /*bool*/ ISteamMatchmaking_DeleteLobbyData( ulong steamIDLobby, string /*const char **/ pchKey ); - IntPtr ISteamMatchmaking_GetLobbyMemberData( ulong steamIDLobby, ulong steamIDUser, string /*const char **/ pchKey ); - void /*void*/ ISteamMatchmaking_SetLobbyMemberData( ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue ); - bool /*bool*/ ISteamMatchmaking_SendLobbyChatMsg( ulong steamIDLobby, IntPtr /*const void **/ pvMsgBody, int /*int*/ cubMsgBody ); - int /*int*/ ISteamMatchmaking_GetLobbyChatEntry( ulong steamIDLobby, int /*int*/ iChatID, out ulong pSteamIDUser, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType ); - bool /*bool*/ ISteamMatchmaking_RequestLobbyData( ulong steamIDLobby ); - void /*void*/ ISteamMatchmaking_SetLobbyGameServer( ulong steamIDLobby, uint /*uint32*/ unGameServerIP, ushort /*uint16*/ unGameServerPort, ulong steamIDGameServer ); - bool /*bool*/ ISteamMatchmaking_GetLobbyGameServer( ulong steamIDLobby, out uint /*uint32 **/ punGameServerIP, out ushort /*uint16 **/ punGameServerPort, out ulong psteamIDGameServer ); - bool /*bool*/ ISteamMatchmaking_SetLobbyMemberLimit( ulong steamIDLobby, int /*int*/ cMaxMembers ); - int /*int*/ ISteamMatchmaking_GetLobbyMemberLimit( ulong steamIDLobby ); - bool /*bool*/ ISteamMatchmaking_SetLobbyType( ulong steamIDLobby, LobbyType /*ELobbyType*/ eLobbyType ); - bool /*bool*/ ISteamMatchmaking_SetLobbyJoinable( ulong steamIDLobby, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bLobbyJoinable ); - CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyOwner( ulong steamIDLobby ); - bool /*bool*/ ISteamMatchmaking_SetLobbyOwner( ulong steamIDLobby, ulong steamIDNewOwner ); - bool /*bool*/ ISteamMatchmaking_SetLinkedLobby( ulong steamIDLobby, ulong steamIDLobbyDependent ); - HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestInternetServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestLANServerList( uint iApp, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestFriendsServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestFavoritesServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestHistoryServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestSpectatorServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - void /*void*/ ISteamMatchmakingServers_ReleaseRequest( IntPtr hServerListRequest ); - IntPtr /*class gameserveritem_t **/ ISteamMatchmakingServers_GetServerDetails( IntPtr hRequest, int /*int*/ iServer ); - void /*void*/ ISteamMatchmakingServers_CancelQuery( IntPtr hRequest ); - void /*void*/ ISteamMatchmakingServers_RefreshQuery( IntPtr hRequest ); - bool /*bool*/ ISteamMatchmakingServers_IsRefreshing( IntPtr hRequest ); - int /*int*/ ISteamMatchmakingServers_GetServerCount( IntPtr hRequest ); - void /*void*/ ISteamMatchmakingServers_RefreshServer( IntPtr hRequest, int /*int*/ iServer ); - HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_PingServer( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPingResponse **/ pRequestServersResponse ); - HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_PlayerDetails( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPlayersResponse **/ pRequestServersResponse ); - HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_ServerRules( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingRulesResponse **/ pRequestServersResponse ); - void /*void*/ ISteamMatchmakingServers_CancelServerQuery( int hServerQuery ); - bool /*bool*/ ISteamMusic_BIsEnabled(); - bool /*bool*/ ISteamMusic_BIsPlaying(); - AudioPlayback_Status /*AudioPlayback_Status*/ ISteamMusic_GetPlaybackStatus(); - void /*void*/ ISteamMusic_Play(); - void /*void*/ ISteamMusic_Pause(); - void /*void*/ ISteamMusic_PlayPrevious(); - void /*void*/ ISteamMusic_PlayNext(); - void /*void*/ ISteamMusic_SetVolume( float /*float*/ flVolume ); - float /*float*/ ISteamMusic_GetVolume(); - bool /*bool*/ ISteamMusicRemote_RegisterSteamMusicRemote( string /*const char **/ pchName ); - bool /*bool*/ ISteamMusicRemote_DeregisterSteamMusicRemote(); - bool /*bool*/ ISteamMusicRemote_BIsCurrentMusicRemote(); - bool /*bool*/ ISteamMusicRemote_BActivationSuccess( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - bool /*bool*/ ISteamMusicRemote_SetDisplayName( string /*const char **/ pchDisplayName ); - bool /*bool*/ ISteamMusicRemote_SetPNGIcon_64x64( IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength ); - bool /*bool*/ ISteamMusicRemote_EnablePlayPrevious( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - bool /*bool*/ ISteamMusicRemote_EnablePlayNext( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - bool /*bool*/ ISteamMusicRemote_EnableShuffled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - bool /*bool*/ ISteamMusicRemote_EnableLooped( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - bool /*bool*/ ISteamMusicRemote_EnableQueue( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - bool /*bool*/ ISteamMusicRemote_EnablePlaylists( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - bool /*bool*/ ISteamMusicRemote_UpdatePlaybackStatus( AudioPlayback_Status /*AudioPlayback_Status*/ nStatus ); - bool /*bool*/ ISteamMusicRemote_UpdateShuffled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - bool /*bool*/ ISteamMusicRemote_UpdateLooped( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - bool /*bool*/ ISteamMusicRemote_UpdateVolume( float /*float*/ flValue ); - bool /*bool*/ ISteamMusicRemote_CurrentEntryWillChange(); - bool /*bool*/ ISteamMusicRemote_CurrentEntryIsAvailable( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAvailable ); - bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryText( string /*const char **/ pchText ); - bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds( int /*int*/ nValue ); - bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryCoverArt( IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength ); - bool /*bool*/ ISteamMusicRemote_CurrentEntryDidChange(); - bool /*bool*/ ISteamMusicRemote_QueueWillChange(); - bool /*bool*/ ISteamMusicRemote_ResetQueueEntries(); - bool /*bool*/ ISteamMusicRemote_SetQueueEntry( int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText ); - bool /*bool*/ ISteamMusicRemote_SetCurrentQueueEntry( int /*int*/ nID ); - bool /*bool*/ ISteamMusicRemote_QueueDidChange(); - bool /*bool*/ ISteamMusicRemote_PlaylistWillChange(); - bool /*bool*/ ISteamMusicRemote_ResetPlaylistEntries(); - bool /*bool*/ ISteamMusicRemote_SetPlaylistEntry( int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText ); - bool /*bool*/ ISteamMusicRemote_SetCurrentPlaylistEntry( int /*int*/ nID ); - bool /*bool*/ ISteamMusicRemote_PlaylistDidChange(); - bool /*bool*/ ISteamNetworking_SendP2PPacket( ulong steamIDRemote, IntPtr /*const void **/ pubData, uint /*uint32*/ cubData, P2PSend /*EP2PSend*/ eP2PSendType, int /*int*/ nChannel ); - bool /*bool*/ ISteamNetworking_IsP2PPacketAvailable( out uint /*uint32 **/ pcubMsgSize, int /*int*/ nChannel ); - bool /*bool*/ ISteamNetworking_ReadP2PPacket( IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, out ulong psteamIDRemote, int /*int*/ nChannel ); - bool /*bool*/ ISteamNetworking_AcceptP2PSessionWithUser( ulong steamIDRemote ); - bool /*bool*/ ISteamNetworking_CloseP2PSessionWithUser( ulong steamIDRemote ); - bool /*bool*/ ISteamNetworking_CloseP2PChannelWithUser( ulong steamIDRemote, int /*int*/ nChannel ); - bool /*bool*/ ISteamNetworking_GetP2PSessionState( ulong steamIDRemote, ref P2PSessionState_t /*struct P2PSessionState_t **/ pConnectionState ); - bool /*bool*/ ISteamNetworking_AllowP2PPacketRelay( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllow ); - SNetListenSocket_t /*(SNetListenSocket_t)*/ ISteamNetworking_CreateListenSocket( int /*int*/ nVirtualP2PPort, uint /*uint32*/ nIP, ushort /*uint16*/ nPort, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay ); - SNetSocket_t /*(SNetSocket_t)*/ ISteamNetworking_CreateP2PConnectionSocket( ulong steamIDTarget, int /*int*/ nVirtualPort, int /*int*/ nTimeoutSec, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay ); - SNetSocket_t /*(SNetSocket_t)*/ ISteamNetworking_CreateConnectionSocket( uint /*uint32*/ nIP, ushort /*uint16*/ nPort, int /*int*/ nTimeoutSec ); - bool /*bool*/ ISteamNetworking_DestroySocket( uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd ); - bool /*bool*/ ISteamNetworking_DestroyListenSocket( uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd ); - bool /*bool*/ ISteamNetworking_SendDataOnSocket( uint hSocket, IntPtr /*void **/ pubData, uint /*uint32*/ cubData, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReliable ); - bool /*bool*/ ISteamNetworking_IsDataAvailableOnSocket( uint hSocket, out uint /*uint32 **/ pcubMsgSize ); - bool /*bool*/ ISteamNetworking_RetrieveDataFromSocket( uint hSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize ); - bool /*bool*/ ISteamNetworking_IsDataAvailable( uint hListenSocket, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket ); - bool /*bool*/ ISteamNetworking_RetrieveData( uint hListenSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket ); - bool /*bool*/ ISteamNetworking_GetSocketInfo( uint hSocket, out ulong pSteamIDRemote, IntPtr /*int **/ peSocketStatus, out uint /*uint32 **/ punIPRemote, out ushort /*uint16 **/ punPortRemote ); - bool /*bool*/ ISteamNetworking_GetListenSocketInfo( uint hListenSocket, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnPort ); - SNetSocketConnectionType /*ESNetSocketConnectionType*/ ISteamNetworking_GetSocketConnectionType( uint hSocket ); - int /*int*/ ISteamNetworking_GetMaxPacketSize( uint hSocket ); - bool /*bool*/ ISteamParentalSettings_BIsParentalLockEnabled(); - bool /*bool*/ ISteamParentalSettings_BIsParentalLockLocked(); - bool /*bool*/ ISteamParentalSettings_BIsAppBlocked( uint nAppID ); - bool /*bool*/ ISteamParentalSettings_BIsAppInBlockList( uint nAppID ); - bool /*bool*/ ISteamParentalSettings_BIsFeatureBlocked( ParentalFeature /*EParentalFeature*/ eFeature ); - bool /*bool*/ ISteamParentalSettings_BIsFeatureInBlockList( ParentalFeature /*EParentalFeature*/ eFeature ); - uint /*uint32*/ ISteamParties_GetNumActiveBeacons(); - PartyBeaconID_t /*(PartyBeaconID_t)*/ ISteamParties_GetBeaconByIndex( uint /*uint32*/ unIndex ); - bool /*bool*/ ISteamParties_GetBeaconDetails( ulong ulBeaconID, out ulong pSteamIDBeaconOwner, ref SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t **/ pLocation, System.Text.StringBuilder /*char **/ pchMetadata, int /*int*/ cchMetadata ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamParties_JoinParty( ulong ulBeaconID ); - bool /*bool*/ ISteamParties_GetNumAvailableBeaconLocations( IntPtr /*uint32 **/ puNumLocations ); - bool /*bool*/ ISteamParties_GetAvailableBeaconLocations( ref SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t **/ pLocationList, uint /*uint32*/ uMaxNumLocations ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamParties_CreateBeacon( uint /*uint32*/ unOpenSlots, ref SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t **/ pBeaconLocation, string /*const char **/ pchConnectString, string /*const char **/ pchMetadata ); - void /*void*/ ISteamParties_OnReservationCompleted( ulong ulBeacon, ulong steamIDUser ); - void /*void*/ ISteamParties_CancelReservation( ulong ulBeacon, ulong steamIDUser ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamParties_ChangeNumOpenSlots( ulong ulBeacon, uint /*uint32*/ unOpenSlots ); - bool /*bool*/ ISteamParties_DestroyBeacon( ulong ulBeacon ); - bool /*bool*/ ISteamParties_GetBeaconLocationData( SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t*/ BeaconLocation, SteamPartyBeaconLocationData /*ESteamPartyBeaconLocationData*/ eData, System.Text.StringBuilder /*char **/ pchDataStringOut, int /*int*/ cchDataStringOut ); - bool /*bool*/ ISteamRemoteStorage_FileWrite( string /*const char **/ pchFile, IntPtr /*const void **/ pvData, int /*int32*/ cubData ); - int /*int32*/ ISteamRemoteStorage_FileRead( string /*const char **/ pchFile, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileWriteAsync( string /*const char **/ pchFile, IntPtr /*const void **/ pvData, uint /*uint32*/ cubData ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileReadAsync( string /*const char **/ pchFile, uint /*uint32*/ nOffset, uint /*uint32*/ cubToRead ); - bool /*bool*/ ISteamRemoteStorage_FileReadAsyncComplete( ulong hReadCall, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cubToRead ); - bool /*bool*/ ISteamRemoteStorage_FileForget( string /*const char **/ pchFile ); - bool /*bool*/ ISteamRemoteStorage_FileDelete( string /*const char **/ pchFile ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileShare( string /*const char **/ pchFile ); - bool /*bool*/ ISteamRemoteStorage_SetSyncPlatforms( string /*const char **/ pchFile, RemoteStoragePlatform /*ERemoteStoragePlatform*/ eRemoteStoragePlatform ); - UGCFileWriteStreamHandle_t /*(UGCFileWriteStreamHandle_t)*/ ISteamRemoteStorage_FileWriteStreamOpen( string /*const char **/ pchFile ); - bool /*bool*/ ISteamRemoteStorage_FileWriteStreamWriteChunk( ulong writeHandle, IntPtr /*const void **/ pvData, int /*int32*/ cubData ); - bool /*bool*/ ISteamRemoteStorage_FileWriteStreamClose( ulong writeHandle ); - bool /*bool*/ ISteamRemoteStorage_FileWriteStreamCancel( ulong writeHandle ); - bool /*bool*/ ISteamRemoteStorage_FileExists( string /*const char **/ pchFile ); - bool /*bool*/ ISteamRemoteStorage_FilePersisted( string /*const char **/ pchFile ); - int /*int32*/ ISteamRemoteStorage_GetFileSize( string /*const char **/ pchFile ); - long /*int64*/ ISteamRemoteStorage_GetFileTimestamp( string /*const char **/ pchFile ); - RemoteStoragePlatform /*ERemoteStoragePlatform*/ ISteamRemoteStorage_GetSyncPlatforms( string /*const char **/ pchFile ); - int /*int32*/ ISteamRemoteStorage_GetFileCount(); - IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile, out int /*int32 **/ pnFileSizeInBytes ); - bool /*bool*/ ISteamRemoteStorage_GetQuota( out ulong /*uint64 **/ pnTotalBytes, out ulong /*uint64 **/ puAvailableBytes ); - bool /*bool*/ ISteamRemoteStorage_IsCloudEnabledForAccount(); - bool /*bool*/ ISteamRemoteStorage_IsCloudEnabledForApp(); - void /*void*/ ISteamRemoteStorage_SetCloudEnabledForApp( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UGCDownload( ulong hContent, uint /*uint32*/ unPriority ); - bool /*bool*/ ISteamRemoteStorage_GetUGCDownloadProgress( ulong hContent, out int /*int32 **/ pnBytesDownloaded, out int /*int32 **/ pnBytesExpected ); - bool /*bool*/ ISteamRemoteStorage_GetUGCDetails( ulong hContent, ref uint pnAppID, System.Text.StringBuilder /*char ***/ ppchName, out int /*int32 **/ pnFileSizeInBytes, out ulong pSteamIDOwner ); - int /*int32*/ ISteamRemoteStorage_UGCRead( ulong hContent, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead, uint /*uint32*/ cOffset, UGCReadAction /*EUGCReadAction*/ eAction ); - int /*int32*/ ISteamRemoteStorage_GetCachedUGCCount(); - UGCHandle_t /*(UGCHandle_t)*/ ISteamRemoteStorage_GetCachedUGCHandle( int /*int32*/ iCachedContent ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_PublishWorkshopFile( string /*const char **/ pchFile, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags, WorkshopFileType /*EWorkshopFileType*/ eWorkshopFileType ); - PublishedFileUpdateHandle_t /*(PublishedFileUpdateHandle_t)*/ ISteamRemoteStorage_CreatePublishedFileUpdateRequest( ulong unPublishedFileId ); - bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileFile( ulong updateHandle, string /*const char **/ pchFile ); - bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFilePreviewFile( ulong updateHandle, string /*const char **/ pchPreviewFile ); - bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileTitle( ulong updateHandle, string /*const char **/ pchTitle ); - bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileDescription( ulong updateHandle, string /*const char **/ pchDescription ); - bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileVisibility( ulong updateHandle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility ); - bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileTags( ulong updateHandle, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_CommitPublishedFileUpdate( ulong updateHandle ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetPublishedFileDetails( ulong unPublishedFileId, uint /*uint32*/ unMaxSecondsOld ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_DeletePublishedFile( ulong unPublishedFileId ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserPublishedFiles( uint /*uint32*/ unStartIndex ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_SubscribePublishedFile( ulong unPublishedFileId ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserSubscribedFiles( uint /*uint32*/ unStartIndex ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UnsubscribePublishedFile( ulong unPublishedFileId ); - bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription( ulong updateHandle, string /*const char **/ pchChangeDescription ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetPublishedItemVoteDetails( ulong unPublishedFileId ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UpdateUserPublishedItemVote( ulong unPublishedFileId, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetUserPublishedItemVoteDetails( ulong unPublishedFileId ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles( ulong steamId, uint /*uint32*/ unStartIndex, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pRequiredTags, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pExcludedTags ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_PublishVideo( WorkshopVideoProvider /*EWorkshopVideoProvider*/ eVideoProvider, string /*const char **/ pchVideoAccount, string /*const char **/ pchVideoIdentifier, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_SetUserPublishedFileAction( ulong unPublishedFileId, WorkshopFileAction /*EWorkshopFileAction*/ eAction ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumeratePublishedFilesByUserAction( WorkshopFileAction /*EWorkshopFileAction*/ eAction, uint /*uint32*/ unStartIndex ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumeratePublishedWorkshopFiles( WorkshopEnumerationType /*EWorkshopEnumerationType*/ eEnumerationType, uint /*uint32*/ unStartIndex, uint /*uint32*/ unCount, uint /*uint32*/ unDays, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pUserTags ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UGCDownloadToLocation( ulong hContent, string /*const char **/ pchLocation, uint /*uint32*/ unPriority ); - ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_WriteScreenshot( IntPtr /*void **/ pubRGB, uint /*uint32*/ cubRGB, int /*int*/ nWidth, int /*int*/ nHeight ); - ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_AddScreenshotToLibrary( string /*const char **/ pchFilename, string /*const char **/ pchThumbnailFilename, int /*int*/ nWidth, int /*int*/ nHeight ); - void /*void*/ ISteamScreenshots_TriggerScreenshot(); - void /*void*/ ISteamScreenshots_HookScreenshots( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHook ); - bool /*bool*/ ISteamScreenshots_SetLocation( uint hScreenshot, string /*const char **/ pchLocation ); - bool /*bool*/ ISteamScreenshots_TagUser( uint hScreenshot, ulong steamID ); - bool /*bool*/ ISteamScreenshots_TagPublishedFile( uint hScreenshot, ulong unPublishedFileID ); - bool /*bool*/ ISteamScreenshots_IsScreenshotsHooked(); - ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_AddVRScreenshotToLibrary( VRScreenshotType /*EVRScreenshotType*/ eType, string /*const char **/ pchFilename, string /*const char **/ pchVRFilename ); - UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryUserUGCRequest( uint unAccountID, UserUGCList /*EUserUGCList*/ eListType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingUGCType, UserUGCListSortOrder /*EUserUGCListSortOrder*/ eSortOrder, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage ); - UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryAllUGCRequest( UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage ); - UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryAllUGCRequest0( UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, string /*const char **/ pchCursor ); - UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryUGCDetailsRequest( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SendQueryUGCRequest( ulong handle ); - bool /*bool*/ ISteamUGC_GetQueryUGCResult( ulong handle, uint /*uint32*/ index, ref SteamUGCDetails_t /*struct SteamUGCDetails_t **/ pDetails ); - bool /*bool*/ ISteamUGC_GetQueryUGCPreviewURL( ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchURL, uint /*uint32*/ cchURLSize ); - bool /*bool*/ ISteamUGC_GetQueryUGCMetadata( ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchMetadata, uint /*uint32*/ cchMetadatasize ); - bool /*bool*/ ISteamUGC_GetQueryUGCChildren( ulong handle, uint /*uint32*/ index, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries ); - bool /*bool*/ ISteamUGC_GetQueryUGCStatistic( ulong handle, uint /*uint32*/ index, ItemStatistic /*EItemStatistic*/ eStatType, out ulong /*uint64 **/ pStatValue ); - uint /*uint32*/ ISteamUGC_GetQueryUGCNumAdditionalPreviews( ulong handle, uint /*uint32*/ index ); - bool /*bool*/ ISteamUGC_GetQueryUGCAdditionalPreview( ulong handle, uint /*uint32*/ index, uint /*uint32*/ previewIndex, System.Text.StringBuilder /*char **/ pchURLOrVideoID, uint /*uint32*/ cchURLSize, System.Text.StringBuilder /*char **/ pchOriginalFileName, uint /*uint32*/ cchOriginalFileNameSize, out ItemPreviewType /*EItemPreviewType **/ pPreviewType ); - uint /*uint32*/ ISteamUGC_GetQueryUGCNumKeyValueTags( ulong handle, uint /*uint32*/ index ); - bool /*bool*/ ISteamUGC_GetQueryUGCKeyValueTag( ulong handle, uint /*uint32*/ index, uint /*uint32*/ keyValueTagIndex, System.Text.StringBuilder /*char **/ pchKey, uint /*uint32*/ cchKeySize, System.Text.StringBuilder /*char **/ pchValue, uint /*uint32*/ cchValueSize ); - bool /*bool*/ ISteamUGC_ReleaseQueryUGCRequest( ulong handle ); - bool /*bool*/ ISteamUGC_AddRequiredTag( ulong handle, string /*const char **/ pTagName ); - bool /*bool*/ ISteamUGC_AddExcludedTag( ulong handle, string /*const char **/ pTagName ); - bool /*bool*/ ISteamUGC_SetReturnOnlyIDs( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnOnlyIDs ); - bool /*bool*/ ISteamUGC_SetReturnKeyValueTags( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnKeyValueTags ); - bool /*bool*/ ISteamUGC_SetReturnLongDescription( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnLongDescription ); - bool /*bool*/ ISteamUGC_SetReturnMetadata( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnMetadata ); - bool /*bool*/ ISteamUGC_SetReturnChildren( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnChildren ); - bool /*bool*/ ISteamUGC_SetReturnAdditionalPreviews( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnAdditionalPreviews ); - bool /*bool*/ ISteamUGC_SetReturnTotalOnly( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnTotalOnly ); - bool /*bool*/ ISteamUGC_SetReturnPlaytimeStats( ulong handle, uint /*uint32*/ unDays ); - bool /*bool*/ ISteamUGC_SetLanguage( ulong handle, string /*const char **/ pchLanguage ); - bool /*bool*/ ISteamUGC_SetAllowCachedResponse( ulong handle, uint /*uint32*/ unMaxAgeSeconds ); - bool /*bool*/ ISteamUGC_SetCloudFileNameFilter( ulong handle, string /*const char **/ pMatchCloudFileName ); - bool /*bool*/ ISteamUGC_SetMatchAnyTag( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMatchAnyTag ); - bool /*bool*/ ISteamUGC_SetSearchText( ulong handle, string /*const char **/ pSearchText ); - bool /*bool*/ ISteamUGC_SetRankedByTrendDays( ulong handle, uint /*uint32*/ unDays ); - bool /*bool*/ ISteamUGC_AddRequiredKeyValueTag( ulong handle, string /*const char **/ pKey, string /*const char **/ pValue ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RequestUGCDetails( ulong nPublishedFileID, uint /*uint32*/ unMaxAgeSeconds ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_CreateItem( uint nConsumerAppId, WorkshopFileType /*EWorkshopFileType*/ eFileType ); - UGCUpdateHandle_t /*(UGCUpdateHandle_t)*/ ISteamUGC_StartItemUpdate( uint nConsumerAppId, ulong nPublishedFileID ); - bool /*bool*/ ISteamUGC_SetItemTitle( ulong handle, string /*const char **/ pchTitle ); - bool /*bool*/ ISteamUGC_SetItemDescription( ulong handle, string /*const char **/ pchDescription ); - bool /*bool*/ ISteamUGC_SetItemUpdateLanguage( ulong handle, string /*const char **/ pchLanguage ); - bool /*bool*/ ISteamUGC_SetItemMetadata( ulong handle, string /*const char **/ pchMetaData ); - bool /*bool*/ ISteamUGC_SetItemVisibility( ulong handle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility ); - bool /*bool*/ ISteamUGC_SetItemTags( ulong updateHandle, ref SteamParamStringArray_t /*const struct SteamParamStringArray_t **/ pTags ); - bool /*bool*/ ISteamUGC_SetItemContent( ulong handle, string /*const char **/ pszContentFolder ); - bool /*bool*/ ISteamUGC_SetItemPreview( ulong handle, string /*const char **/ pszPreviewFile ); - bool /*bool*/ ISteamUGC_SetAllowLegacyUpload( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowLegacyUpload ); - bool /*bool*/ ISteamUGC_RemoveItemKeyValueTags( ulong handle, string /*const char **/ pchKey ); - bool /*bool*/ ISteamUGC_AddItemKeyValueTag( ulong handle, string /*const char **/ pchKey, string /*const char **/ pchValue ); - bool /*bool*/ ISteamUGC_AddItemPreviewFile( ulong handle, string /*const char **/ pszPreviewFile, ItemPreviewType /*EItemPreviewType*/ type ); - bool /*bool*/ ISteamUGC_AddItemPreviewVideo( ulong handle, string /*const char **/ pszVideoID ); - bool /*bool*/ ISteamUGC_UpdateItemPreviewFile( ulong handle, uint /*uint32*/ index, string /*const char **/ pszPreviewFile ); - bool /*bool*/ ISteamUGC_UpdateItemPreviewVideo( ulong handle, uint /*uint32*/ index, string /*const char **/ pszVideoID ); - bool /*bool*/ ISteamUGC_RemoveItemPreview( ulong handle, uint /*uint32*/ index ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SubmitItemUpdate( ulong handle, string /*const char **/ pchChangeNote ); - ItemUpdateStatus /*EItemUpdateStatus*/ ISteamUGC_GetItemUpdateProgress( ulong handle, out ulong /*uint64 **/ punBytesProcessed, out ulong /*uint64 **/ punBytesTotal ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SetUserItemVote( ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_GetUserItemVote( ulong nPublishedFileID ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_AddItemToFavorites( uint nAppId, ulong nPublishedFileID ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RemoveItemFromFavorites( uint nAppId, ulong nPublishedFileID ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SubscribeItem( ulong nPublishedFileID ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_UnsubscribeItem( ulong nPublishedFileID ); - uint /*uint32*/ ISteamUGC_GetNumSubscribedItems(); - uint /*uint32*/ ISteamUGC_GetSubscribedItems( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries ); - uint /*uint32*/ ISteamUGC_GetItemState( ulong nPublishedFileID ); - bool /*bool*/ ISteamUGC_GetItemInstallInfo( ulong nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderSize, out uint /*uint32 **/ punTimeStamp ); - bool /*bool*/ ISteamUGC_GetItemDownloadInfo( ulong nPublishedFileID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal ); - bool /*bool*/ ISteamUGC_DownloadItem( ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHighPriority ); - bool /*bool*/ ISteamUGC_BInitWorkshopForGameServer( uint unWorkshopDepotID, string /*const char **/ pszFolder ); - void /*void*/ ISteamUGC_SuspendDownloads( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSuspend ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StartPlaytimeTracking( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StopPlaytimeTracking( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StopPlaytimeTrackingForAllItems(); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_AddDependency( ulong nParentPublishedFileID, ulong nChildPublishedFileID ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RemoveDependency( ulong nParentPublishedFileID, ulong nChildPublishedFileID ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_AddAppDependency( ulong nPublishedFileID, uint nAppID ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RemoveAppDependency( ulong nPublishedFileID, uint nAppID ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_GetAppDependencies( ulong nPublishedFileID ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_DeleteItem( ulong nPublishedFileID ); - HSteamUser /*(HSteamUser)*/ ISteamUser_GetHSteamUser(); - bool /*bool*/ ISteamUser_BLoggedOn(); - CSteamID /*(class CSteamID)*/ ISteamUser_GetSteamID(); - int /*int*/ ISteamUser_InitiateGameConnection( IntPtr /*void **/ pAuthBlob, int /*int*/ cbMaxAuthBlob, ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure ); - void /*void*/ ISteamUser_TerminateGameConnection( uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer ); - void /*void*/ ISteamUser_TrackAppUsageEvent( ulong gameID, int /*int*/ eAppUsageEvent, string /*const char **/ pchExtraInfo ); - bool /*bool*/ ISteamUser_GetUserDataFolder( System.Text.StringBuilder /*char **/ pchBuffer, int /*int*/ cubBuffer ); - void /*void*/ ISteamUser_StartVoiceRecording(); - void /*void*/ ISteamUser_StopVoiceRecording(); - VoiceResult /*EVoiceResult*/ ISteamUser_GetAvailableVoice( out uint /*uint32 **/ pcbCompressed, out uint /*uint32 **/ pcbUncompressed_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated ); - VoiceResult /*EVoiceResult*/ ISteamUser_GetVoice( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantUncompressed_Deprecated, IntPtr /*void **/ pUncompressedDestBuffer_Deprecated, uint /*uint32*/ cbUncompressedDestBufferSize_Deprecated, out uint /*uint32 **/ nUncompressBytesWritten_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated ); - VoiceResult /*EVoiceResult*/ ISteamUser_DecompressVoice( IntPtr /*const void **/ pCompressed, uint /*uint32*/ cbCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, uint /*uint32*/ nDesiredSampleRate ); - uint /*uint32*/ ISteamUser_GetVoiceOptimalSampleRate(); - HAuthTicket /*(HAuthTicket)*/ ISteamUser_GetAuthSessionTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ); - BeginAuthSessionResult /*EBeginAuthSessionResult*/ ISteamUser_BeginAuthSession( IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID ); - void /*void*/ ISteamUser_EndAuthSession( ulong steamID ); - void /*void*/ ISteamUser_CancelAuthTicket( uint hAuthTicket ); - UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ ISteamUser_UserHasLicenseForApp( ulong steamID, uint appID ); - bool /*bool*/ ISteamUser_BIsBehindNAT(); - void /*void*/ ISteamUser_AdvertiseGame( ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUser_RequestEncryptedAppTicket( IntPtr /*void **/ pDataToInclude, int /*int*/ cbDataToInclude ); - bool /*bool*/ ISteamUser_GetEncryptedAppTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ); - int /*int*/ ISteamUser_GetGameBadgeLevel( int /*int*/ nSeries, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bFoil ); - int /*int*/ ISteamUser_GetPlayerSteamLevel(); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUser_RequestStoreAuthURL( string /*const char **/ pchRedirectURL ); - bool /*bool*/ ISteamUser_BIsPhoneVerified(); - bool /*bool*/ ISteamUser_BIsTwoFactorEnabled(); - bool /*bool*/ ISteamUser_BIsPhoneIdentifying(); - bool /*bool*/ ISteamUser_BIsPhoneRequiringVerification(); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUser_GetMarketEligibility(); - bool /*bool*/ ISteamUserStats_RequestCurrentStats(); - bool /*bool*/ ISteamUserStats_GetStat( string /*const char **/ pchName, out int /*int32 **/ pData ); - bool /*bool*/ ISteamUserStats_GetStat0( string /*const char **/ pchName, out float /*float **/ pData ); - bool /*bool*/ ISteamUserStats_SetStat( string /*const char **/ pchName, int /*int32*/ nData ); - bool /*bool*/ ISteamUserStats_SetStat0( string /*const char **/ pchName, float /*float*/ fData ); - bool /*bool*/ ISteamUserStats_UpdateAvgRateStat( string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength ); - bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - bool /*bool*/ ISteamUserStats_SetAchievement( string /*const char **/ pchName ); - bool /*bool*/ ISteamUserStats_ClearAchievement( string /*const char **/ pchName ); - bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); - bool /*bool*/ ISteamUserStats_StoreStats(); - int /*int*/ ISteamUserStats_GetAchievementIcon( string /*const char **/ pchName ); - IntPtr ISteamUserStats_GetAchievementDisplayAttribute( string /*const char **/ pchName, string /*const char **/ pchKey ); - bool /*bool*/ ISteamUserStats_IndicateAchievementProgress( string /*const char **/ pchName, uint /*uint32*/ nCurProgress, uint /*uint32*/ nMaxProgress ); - uint /*uint32*/ ISteamUserStats_GetNumAchievements(); - IntPtr ISteamUserStats_GetAchievementName( uint /*uint32*/ iAchievement ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestUserStats( ulong steamIDUser ); - bool /*bool*/ ISteamUserStats_GetUserStat( ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData ); - bool /*bool*/ ISteamUserStats_GetUserStat0( ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData ); - bool /*bool*/ ISteamUserStats_GetUserAchievement( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); - bool /*bool*/ ISteamUserStats_ResetAllStats( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAchievementsToo ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_FindOrCreateLeaderboard( string /*const char **/ pchLeaderboardName, LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod, LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_FindLeaderboard( string /*const char **/ pchLeaderboardName ); - IntPtr ISteamUserStats_GetLeaderboardName( ulong hSteamLeaderboard ); - int /*int*/ ISteamUserStats_GetLeaderboardEntryCount( ulong hSteamLeaderboard ); - LeaderboardSortMethod /*ELeaderboardSortMethod*/ ISteamUserStats_GetLeaderboardSortMethod( ulong hSteamLeaderboard ); - LeaderboardDisplayType /*ELeaderboardDisplayType*/ ISteamUserStats_GetLeaderboardDisplayType( ulong hSteamLeaderboard ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_DownloadLeaderboardEntries( ulong hSteamLeaderboard, LeaderboardDataRequest /*ELeaderboardDataRequest*/ eLeaderboardDataRequest, int /*int*/ nRangeStart, int /*int*/ nRangeEnd ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_DownloadLeaderboardEntriesForUsers( ulong hSteamLeaderboard, IntPtr /*class CSteamID **/ prgUsers, int /*int*/ cUsers ); - bool /*bool*/ ISteamUserStats_GetDownloadedLeaderboardEntry( ulong hSteamLeaderboardEntries, int /*int*/ index, ref LeaderboardEntry_t /*struct LeaderboardEntry_t **/ pLeaderboardEntry, IntPtr /*int32 **/ pDetails, int /*int*/ cDetailsMax ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_UploadLeaderboardScore( ulong hSteamLeaderboard, LeaderboardUploadScoreMethod /*ELeaderboardUploadScoreMethod*/ eLeaderboardUploadScoreMethod, int /*int32*/ nScore, int[] /*const int32 **/ pScoreDetails, int /*int*/ cScoreDetailsCount ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_AttachLeaderboardUGC( ulong hSteamLeaderboard, ulong hUGC ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_GetNumberOfCurrentPlayers(); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestGlobalAchievementPercentages(); - int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - bool /*bool*/ ISteamUserStats_GetAchievementAchievedPercent( string /*const char **/ pchName, out float /*float **/ pflPercent ); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestGlobalStats( int /*int*/ nHistoryDays ); - bool /*bool*/ ISteamUserStats_GetGlobalStat( string /*const char **/ pchStatName, out long /*int64 **/ pData ); - bool /*bool*/ ISteamUserStats_GetGlobalStat0( string /*const char **/ pchStatName, out double /*double **/ pData ); - int /*int32*/ ISteamUserStats_GetGlobalStatHistory( string /*const char **/ pchStatName, out long /*int64 **/ pData, uint /*uint32*/ cubData ); - int /*int32*/ ISteamUserStats_GetGlobalStatHistory0( string /*const char **/ pchStatName, out double /*double **/ pData, uint /*uint32*/ cubData ); - uint /*uint32*/ ISteamUtils_GetSecondsSinceAppActive(); - uint /*uint32*/ ISteamUtils_GetSecondsSinceComputerActive(); - Universe /*EUniverse*/ ISteamUtils_GetConnectedUniverse(); - uint /*uint32*/ ISteamUtils_GetServerRealTime(); - IntPtr ISteamUtils_GetIPCountry(); - bool /*bool*/ ISteamUtils_GetImageSize( int /*int*/ iImage, out uint /*uint32 **/ pnWidth, out uint /*uint32 **/ pnHeight ); - bool /*bool*/ ISteamUtils_GetImageRGBA( int /*int*/ iImage, IntPtr /*uint8 **/ pubDest, int /*int*/ nDestBufferSize ); - bool /*bool*/ ISteamUtils_GetCSERIPPort( out uint /*uint32 **/ unIP, out ushort /*uint16 **/ usPort ); - byte /*uint8*/ ISteamUtils_GetCurrentBatteryPower(); - uint /*uint32*/ ISteamUtils_GetAppID(); - void /*void*/ ISteamUtils_SetOverlayNotificationPosition( NotificationPosition /*ENotificationPosition*/ eNotificationPosition ); - bool /*bool*/ ISteamUtils_IsAPICallCompleted( ulong hSteamAPICall, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed ); - SteamAPICallFailure /*ESteamAPICallFailure*/ ISteamUtils_GetAPICallFailureReason( ulong hSteamAPICall ); - bool /*bool*/ ISteamUtils_GetAPICallResult( ulong hSteamAPICall, IntPtr /*void **/ pCallback, int /*int*/ cubCallback, int /*int*/ iCallbackExpected, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed ); - uint /*uint32*/ ISteamUtils_GetIPCCallCount(); - void /*void*/ ISteamUtils_SetWarningMessageHook( IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ); - bool /*bool*/ ISteamUtils_IsOverlayEnabled(); - bool /*bool*/ ISteamUtils_BOverlayNeedsPresent(); - SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUtils_CheckFileSignature( string /*const char **/ szFileName ); - bool /*bool*/ ISteamUtils_ShowGamepadTextInput( GamepadTextInputMode /*EGamepadTextInputMode*/ eInputMode, GamepadTextInputLineMode /*EGamepadTextInputLineMode*/ eLineInputMode, string /*const char **/ pchDescription, uint /*uint32*/ unCharMax, string /*const char **/ pchExistingText ); - uint /*uint32*/ ISteamUtils_GetEnteredGamepadTextLength(); - bool /*bool*/ ISteamUtils_GetEnteredGamepadTextInput( System.Text.StringBuilder /*char **/ pchText, uint /*uint32*/ cchText ); - IntPtr ISteamUtils_GetSteamUILanguage(); - bool /*bool*/ ISteamUtils_IsSteamRunningInVR(); - void /*void*/ ISteamUtils_SetOverlayNotificationInset( int /*int*/ nHorizontalInset, int /*int*/ nVerticalInset ); - bool /*bool*/ ISteamUtils_IsSteamInBigPictureMode(); - void /*void*/ ISteamUtils_StartVRDashboard(); - bool /*bool*/ ISteamUtils_IsVRHeadsetStreamingEnabled(); - void /*void*/ ISteamUtils_SetVRHeadsetStreamingEnabled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled ); - void /*void*/ ISteamVideo_GetVideoURL( uint unVideoAppID ); - bool /*bool*/ ISteamVideo_IsBroadcasting( IntPtr /*int **/ pnNumViewers ); - void /*void*/ ISteamVideo_GetOPFSettings( uint unVideoAppID ); - bool /*bool*/ ISteamVideo_GetOPFStringForApp( uint unVideoAppID, System.Text.StringBuilder /*char **/ pchBuffer, out int /*int32 **/ pnBufferSize ); - bool /*bool*/ SteamApi_SteamAPI_Init(); - void /*void*/ SteamApi_SteamAPI_RunCallbacks(); - void /*void*/ SteamApi_SteamGameServer_RunCallbacks(); - void /*void*/ SteamApi_SteamAPI_RegisterCallback( IntPtr /*void **/ pCallback, int /*int*/ callback ); - void /*void*/ SteamApi_SteamAPI_UnregisterCallback( IntPtr /*void **/ pCallback ); - void /*void*/ SteamApi_SteamAPI_RegisterCallResult( IntPtr /*void **/ pCallback, ulong callback ); - void /*void*/ SteamApi_SteamAPI_UnregisterCallResult( IntPtr /*void **/ pCallback, ulong callback ); - bool /*bool*/ SteamApi_SteamInternal_GameServer_Init( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, int /*int*/ eServerMode, string /*const char **/ pchVersionString ); - void /*void*/ SteamApi_SteamAPI_Shutdown(); - void /*void*/ SteamApi_SteamGameServer_Shutdown(); - HSteamUser /*(HSteamUser)*/ SteamApi_SteamAPI_GetHSteamUser(); - HSteamPipe /*(HSteamPipe)*/ SteamApi_SteamAPI_GetHSteamPipe(); - HSteamUser /*(HSteamUser)*/ SteamApi_SteamGameServer_GetHSteamUser(); - HSteamPipe /*(HSteamPipe)*/ SteamApi_SteamGameServer_GetHSteamPipe(); - IntPtr /*void **/ SteamApi_SteamInternal_CreateInterface( string /*const char **/ version ); - bool /*bool*/ SteamApi_SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID ); - } - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Linux64.cs b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Linux64.cs deleted file mode 100644 index e6fe0f0..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Linux64.cs +++ /dev/null @@ -1,6657 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal static partial class Platform - { - internal class Linux : Interface - { - internal IntPtr _ptr; - public bool IsValid { get{ return _ptr != IntPtr.Zero; } } - - // - // Constructor sets pointer to native class - // - internal Linux( IntPtr pointer ) - { - _ptr = pointer; - } - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - _ptr = IntPtr.Zero; - } - - public virtual HSteamPipe /*(HSteamPipe)*/ ISteamClient_CreateSteamPipe() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_CreateSteamPipe(_ptr); - } - public virtual bool /*bool*/ ISteamClient_BReleaseSteamPipe( int hSteamPipe ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_BReleaseSteamPipe(_ptr, hSteamPipe); - } - public virtual HSteamUser /*(HSteamUser)*/ ISteamClient_ConnectToGlobalUser( int hSteamPipe ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_ConnectToGlobalUser(_ptr, hSteamPipe); - } - public virtual HSteamUser /*(HSteamUser)*/ ISteamClient_CreateLocalUser( out int phSteamPipe, AccountType /*EAccountType*/ eAccountType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_CreateLocalUser(_ptr, out phSteamPipe, eAccountType); - } - public virtual void /*void*/ ISteamClient_ReleaseUser( int hSteamPipe, int hUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - Native.SteamAPI_ISteamClient_ReleaseUser(_ptr, hSteamPipe, hUser); - } - public virtual IntPtr /*class ISteamUser **/ ISteamClient_GetISteamUser( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamUser(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamGameServer **/ ISteamClient_GetISteamGameServer( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamGameServer(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual void /*void*/ ISteamClient_SetLocalIPBinding( uint /*uint32*/ unIP, ushort /*uint16*/ usPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - Native.SteamAPI_ISteamClient_SetLocalIPBinding(_ptr, unIP, usPort); - } - public virtual IntPtr /*class ISteamFriends **/ ISteamClient_GetISteamFriends( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamFriends(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamUtils **/ ISteamClient_GetISteamUtils( int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamUtils(_ptr, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamMatchmaking **/ ISteamClient_GetISteamMatchmaking( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamMatchmaking(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamMatchmakingServers **/ ISteamClient_GetISteamMatchmakingServers( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamMatchmakingServers(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*void **/ ISteamClient_GetISteamGenericInterface( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamGenericInterface(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamUserStats **/ ISteamClient_GetISteamUserStats( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamUserStats(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamGameServerStats **/ ISteamClient_GetISteamGameServerStats( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamGameServerStats(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamApps **/ ISteamClient_GetISteamApps( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamApps(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamNetworking **/ ISteamClient_GetISteamNetworking( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamNetworking(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamRemoteStorage **/ ISteamClient_GetISteamRemoteStorage( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamRemoteStorage(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamScreenshots **/ ISteamClient_GetISteamScreenshots( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamScreenshots(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamGameSearch **/ ISteamClient_GetISteamGameSearch( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamGameSearch(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual uint /*uint32*/ ISteamClient_GetIPCCallCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetIPCCallCount(_ptr); - } - public virtual void /*void*/ ISteamClient_SetWarningMessageHook( IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - Native.SteamAPI_ISteamClient_SetWarningMessageHook(_ptr, pFunction); - } - public virtual bool /*bool*/ ISteamClient_BShutdownIfAllPipesClosed() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_BShutdownIfAllPipesClosed(_ptr); - } - public virtual IntPtr /*class ISteamHTTP **/ ISteamClient_GetISteamHTTP( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamHTTP(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamController **/ ISteamClient_GetISteamController( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamController(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamUGC **/ ISteamClient_GetISteamUGC( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamUGC(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamAppList **/ ISteamClient_GetISteamAppList( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamAppList(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamMusic **/ ISteamClient_GetISteamMusic( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamMusic(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamMusicRemote **/ ISteamClient_GetISteamMusicRemote( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamMusicRemote(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamHTMLSurface **/ ISteamClient_GetISteamHTMLSurface( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamHTMLSurface(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamInventory **/ ISteamClient_GetISteamInventory( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamInventory(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamVideo **/ ISteamClient_GetISteamVideo( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamVideo(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamParentalSettings **/ ISteamClient_GetISteamParentalSettings( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamParentalSettings(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamInput **/ ISteamClient_GetISteamInput( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamInput(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamParties **/ ISteamClient_GetISteamParties( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamParties(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - - public virtual HSteamUser /*(HSteamUser)*/ ISteamUser_GetHSteamUser() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetHSteamUser(_ptr); - } - public virtual bool /*bool*/ ISteamUser_BLoggedOn() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BLoggedOn(_ptr); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamUser_GetSteamID() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetSteamID(_ptr); - } - public virtual int /*int*/ ISteamUser_InitiateGameConnection( IntPtr /*void **/ pAuthBlob, int /*int*/ cbMaxAuthBlob, ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_InitiateGameConnection(_ptr, pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure); - } - public virtual void /*void*/ ISteamUser_TerminateGameConnection( uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_TerminateGameConnection(_ptr, unIPServer, usPortServer); - } - public virtual void /*void*/ ISteamUser_TrackAppUsageEvent( ulong gameID, int /*int*/ eAppUsageEvent, string /*const char **/ pchExtraInfo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_TrackAppUsageEvent(_ptr, gameID, eAppUsageEvent, pchExtraInfo); - } - public virtual bool /*bool*/ ISteamUser_GetUserDataFolder( System.Text.StringBuilder /*char **/ pchBuffer, int /*int*/ cubBuffer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetUserDataFolder(_ptr, pchBuffer, cubBuffer); - } - public virtual void /*void*/ ISteamUser_StartVoiceRecording() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_StartVoiceRecording(_ptr); - } - public virtual void /*void*/ ISteamUser_StopVoiceRecording() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_StopVoiceRecording(_ptr); - } - public virtual VoiceResult /*EVoiceResult*/ ISteamUser_GetAvailableVoice( out uint /*uint32 **/ pcbCompressed, out uint /*uint32 **/ pcbUncompressed_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetAvailableVoice(_ptr, out pcbCompressed, out pcbUncompressed_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated); - } - public virtual VoiceResult /*EVoiceResult*/ ISteamUser_GetVoice( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantUncompressed_Deprecated, IntPtr /*void **/ pUncompressedDestBuffer_Deprecated, uint /*uint32*/ cbUncompressedDestBufferSize_Deprecated, out uint /*uint32 **/ nUncompressBytesWritten_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetVoice(_ptr, bWantCompressed, pDestBuffer, cbDestBufferSize, out nBytesWritten, bWantUncompressed_Deprecated, pUncompressedDestBuffer_Deprecated, cbUncompressedDestBufferSize_Deprecated, out nUncompressBytesWritten_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated); - } - public virtual VoiceResult /*EVoiceResult*/ ISteamUser_DecompressVoice( IntPtr /*const void **/ pCompressed, uint /*uint32*/ cbCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, uint /*uint32*/ nDesiredSampleRate ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_DecompressVoice(_ptr, pCompressed, cbCompressed, pDestBuffer, cbDestBufferSize, out nBytesWritten, nDesiredSampleRate); - } - public virtual uint /*uint32*/ ISteamUser_GetVoiceOptimalSampleRate() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetVoiceOptimalSampleRate(_ptr); - } - public virtual HAuthTicket /*(HAuthTicket)*/ ISteamUser_GetAuthSessionTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetAuthSessionTicket(_ptr, pTicket, cbMaxTicket, out pcbTicket); - } - public virtual BeginAuthSessionResult /*EBeginAuthSessionResult*/ ISteamUser_BeginAuthSession( IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BeginAuthSession(_ptr, pAuthTicket, cbAuthTicket, steamID); - } - public virtual void /*void*/ ISteamUser_EndAuthSession( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_EndAuthSession(_ptr, steamID); - } - public virtual void /*void*/ ISteamUser_CancelAuthTicket( uint hAuthTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_CancelAuthTicket(_ptr, hAuthTicket); - } - public virtual UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ ISteamUser_UserHasLicenseForApp( ulong steamID, uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_UserHasLicenseForApp(_ptr, steamID, appID); - } - public virtual bool /*bool*/ ISteamUser_BIsBehindNAT() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsBehindNAT(_ptr); - } - public virtual void /*void*/ ISteamUser_AdvertiseGame( ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_AdvertiseGame(_ptr, steamIDGameServer, unIPServer, usPortServer); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUser_RequestEncryptedAppTicket( IntPtr /*void **/ pDataToInclude, int /*int*/ cbDataToInclude ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_RequestEncryptedAppTicket(_ptr, pDataToInclude, cbDataToInclude); - } - public virtual bool /*bool*/ ISteamUser_GetEncryptedAppTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetEncryptedAppTicket(_ptr, pTicket, cbMaxTicket, out pcbTicket); - } - public virtual int /*int*/ ISteamUser_GetGameBadgeLevel( int /*int*/ nSeries, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bFoil ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetGameBadgeLevel(_ptr, nSeries, bFoil); - } - public virtual int /*int*/ ISteamUser_GetPlayerSteamLevel() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetPlayerSteamLevel(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUser_RequestStoreAuthURL( string /*const char **/ pchRedirectURL ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_RequestStoreAuthURL(_ptr, pchRedirectURL); - } - public virtual bool /*bool*/ ISteamUser_BIsPhoneVerified() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsPhoneVerified(_ptr); - } - public virtual bool /*bool*/ ISteamUser_BIsTwoFactorEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsTwoFactorEnabled(_ptr); - } - public virtual bool /*bool*/ ISteamUser_BIsPhoneIdentifying() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsPhoneIdentifying(_ptr); - } - public virtual bool /*bool*/ ISteamUser_BIsPhoneRequiringVerification() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsPhoneRequiringVerification(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUser_GetMarketEligibility() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetMarketEligibility(_ptr); - } - - public virtual IntPtr ISteamFriends_GetPersonaName() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetPersonaName(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_SetPersonaName( string /*const char **/ pchPersonaName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_SetPersonaName(_ptr, pchPersonaName); - } - public virtual PersonaState /*EPersonaState*/ ISteamFriends_GetPersonaState() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetPersonaState(_ptr); - } - public virtual int /*int*/ ISteamFriends_GetFriendCount( int /*int*/ iFriendFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendCount(_ptr, iFriendFlags); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetFriendByIndex( int /*int*/ iFriend, int /*int*/ iFriendFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendByIndex(_ptr, iFriend, iFriendFlags); - } - public virtual FriendRelationship /*EFriendRelationship*/ ISteamFriends_GetFriendRelationship( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendRelationship(_ptr, steamIDFriend); - } - public virtual PersonaState /*EPersonaState*/ ISteamFriends_GetFriendPersonaState( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendPersonaState(_ptr, steamIDFriend); - } - public virtual IntPtr ISteamFriends_GetFriendPersonaName( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendPersonaName(_ptr, steamIDFriend); - } - public virtual bool /*bool*/ ISteamFriends_GetFriendGamePlayed( ulong steamIDFriend, ref FriendGameInfo_t /*struct FriendGameInfo_t **/ pFriendGameInfo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - var pFriendGameInfo_ps = new FriendGameInfo_t.Pack4(); - var ret = Native.SteamAPI_ISteamFriends_GetFriendGamePlayed(_ptr, steamIDFriend, ref pFriendGameInfo_ps); - pFriendGameInfo = pFriendGameInfo_ps; - return ret; - } - public virtual IntPtr ISteamFriends_GetFriendPersonaNameHistory( ulong steamIDFriend, int /*int*/ iPersonaName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendPersonaNameHistory(_ptr, steamIDFriend, iPersonaName); - } - public virtual int /*int*/ ISteamFriends_GetFriendSteamLevel( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendSteamLevel(_ptr, steamIDFriend); - } - public virtual IntPtr ISteamFriends_GetPlayerNickname( ulong steamIDPlayer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetPlayerNickname(_ptr, steamIDPlayer); - } - public virtual int /*int*/ ISteamFriends_GetFriendsGroupCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendsGroupCount(_ptr); - } - public virtual FriendsGroupID_t /*(FriendsGroupID_t)*/ ISteamFriends_GetFriendsGroupIDByIndex( int /*int*/ iFG ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex(_ptr, iFG); - } - public virtual IntPtr ISteamFriends_GetFriendsGroupName( short friendsGroupID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendsGroupName(_ptr, friendsGroupID); - } - public virtual int /*int*/ ISteamFriends_GetFriendsGroupMembersCount( short friendsGroupID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendsGroupMembersCount(_ptr, friendsGroupID); - } - public virtual void /*void*/ ISteamFriends_GetFriendsGroupMembersList( short friendsGroupID, IntPtr /*class CSteamID **/ pOutSteamIDMembers, int /*int*/ nMembersCount ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_GetFriendsGroupMembersList(_ptr, friendsGroupID, pOutSteamIDMembers, nMembersCount); - } - public virtual bool /*bool*/ ISteamFriends_HasFriend( ulong steamIDFriend, int /*int*/ iFriendFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_HasFriend(_ptr, steamIDFriend, iFriendFlags); - } - public virtual int /*int*/ ISteamFriends_GetClanCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanCount(_ptr); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanByIndex( int /*int*/ iClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanByIndex(_ptr, iClan); - } - public virtual IntPtr ISteamFriends_GetClanName( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanName(_ptr, steamIDClan); - } - public virtual IntPtr ISteamFriends_GetClanTag( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanTag(_ptr, steamIDClan); - } - public virtual bool /*bool*/ ISteamFriends_GetClanActivityCounts( ulong steamIDClan, out int /*int **/ pnOnline, out int /*int **/ pnInGame, out int /*int **/ pnChatting ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanActivityCounts(_ptr, steamIDClan, out pnOnline, out pnInGame, out pnChatting); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_DownloadClanActivityCounts( IntPtr /*class CSteamID **/ psteamIDClans, int /*int*/ cClansToRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_DownloadClanActivityCounts(_ptr, psteamIDClans, cClansToRequest); - } - public virtual int /*int*/ ISteamFriends_GetFriendCountFromSource( ulong steamIDSource ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendCountFromSource(_ptr, steamIDSource); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetFriendFromSourceByIndex( ulong steamIDSource, int /*int*/ iFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendFromSourceByIndex(_ptr, steamIDSource, iFriend); - } - public virtual bool /*bool*/ ISteamFriends_IsUserInSource( ulong steamIDUser, ulong steamIDSource ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsUserInSource(_ptr, steamIDUser, steamIDSource); - } - public virtual void /*void*/ ISteamFriends_SetInGameVoiceSpeaking( ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSpeaking ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_SetInGameVoiceSpeaking(_ptr, steamIDUser, bSpeaking); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlay( string /*const char **/ pchDialog ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlay(_ptr, pchDialog); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlayToUser( string /*const char **/ pchDialog, ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlayToUser(_ptr, pchDialog, steamID); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlayToWebPage( string /*const char **/ pchURL, ActivateGameOverlayToWebPageMode /*EActivateGameOverlayToWebPageMode*/ eMode ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage(_ptr, pchURL, eMode); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlayToStore( uint nAppID, OverlayToStoreFlag /*EOverlayToStoreFlag*/ eFlag ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlayToStore(_ptr, nAppID, eFlag); - } - public virtual void /*void*/ ISteamFriends_SetPlayedWith( ulong steamIDUserPlayedWith ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_SetPlayedWith(_ptr, steamIDUserPlayedWith); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlayInviteDialog( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog(_ptr, steamIDLobby); - } - public virtual int /*int*/ ISteamFriends_GetSmallFriendAvatar( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetSmallFriendAvatar(_ptr, steamIDFriend); - } - public virtual int /*int*/ ISteamFriends_GetMediumFriendAvatar( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetMediumFriendAvatar(_ptr, steamIDFriend); - } - public virtual int /*int*/ ISteamFriends_GetLargeFriendAvatar( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetLargeFriendAvatar(_ptr, steamIDFriend); - } - public virtual bool /*bool*/ ISteamFriends_RequestUserInformation( ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireNameOnly ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_RequestUserInformation(_ptr, steamIDUser, bRequireNameOnly); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_RequestClanOfficerList( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_RequestClanOfficerList(_ptr, steamIDClan); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanOwner( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanOwner(_ptr, steamIDClan); - } - public virtual int /*int*/ ISteamFriends_GetClanOfficerCount( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanOfficerCount(_ptr, steamIDClan); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanOfficerByIndex( ulong steamIDClan, int /*int*/ iOfficer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanOfficerByIndex(_ptr, steamIDClan, iOfficer); - } - public virtual uint /*uint32*/ ISteamFriends_GetUserRestrictions() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetUserRestrictions(_ptr); - } - public virtual bool /*bool*/ ISteamFriends_SetRichPresence( string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_SetRichPresence(_ptr, pchKey, pchValue); - } - public virtual void /*void*/ ISteamFriends_ClearRichPresence() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ClearRichPresence(_ptr); - } - public virtual IntPtr ISteamFriends_GetFriendRichPresence( ulong steamIDFriend, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendRichPresence(_ptr, steamIDFriend, pchKey); - } - public virtual int /*int*/ ISteamFriends_GetFriendRichPresenceKeyCount( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount(_ptr, steamIDFriend); - } - public virtual IntPtr ISteamFriends_GetFriendRichPresenceKeyByIndex( ulong steamIDFriend, int /*int*/ iKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex(_ptr, steamIDFriend, iKey); - } - public virtual void /*void*/ ISteamFriends_RequestFriendRichPresence( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_RequestFriendRichPresence(_ptr, steamIDFriend); - } - public virtual bool /*bool*/ ISteamFriends_InviteUserToGame( ulong steamIDFriend, string /*const char **/ pchConnectString ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_InviteUserToGame(_ptr, steamIDFriend, pchConnectString); - } - public virtual int /*int*/ ISteamFriends_GetCoplayFriendCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetCoplayFriendCount(_ptr); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetCoplayFriend( int /*int*/ iCoplayFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetCoplayFriend(_ptr, iCoplayFriend); - } - public virtual int /*int*/ ISteamFriends_GetFriendCoplayTime( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendCoplayTime(_ptr, steamIDFriend); - } - public virtual AppId_t /*(AppId_t)*/ ISteamFriends_GetFriendCoplayGame( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendCoplayGame(_ptr, steamIDFriend); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_JoinClanChatRoom( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_JoinClanChatRoom(_ptr, steamIDClan); - } - public virtual bool /*bool*/ ISteamFriends_LeaveClanChatRoom( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_LeaveClanChatRoom(_ptr, steamIDClan); - } - public virtual int /*int*/ ISteamFriends_GetClanChatMemberCount( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanChatMemberCount(_ptr, steamIDClan); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetChatMemberByIndex( ulong steamIDClan, int /*int*/ iUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetChatMemberByIndex(_ptr, steamIDClan, iUser); - } - public virtual bool /*bool*/ ISteamFriends_SendClanChatMessage( ulong steamIDClanChat, string /*const char **/ pchText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_SendClanChatMessage(_ptr, steamIDClanChat, pchText); - } - public virtual int /*int*/ ISteamFriends_GetClanChatMessage( ulong steamIDClanChat, int /*int*/ iMessage, IntPtr /*void **/ prgchText, int /*int*/ cchTextMax, out ChatEntryType /*EChatEntryType **/ peChatEntryType, out ulong psteamidChatter ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanChatMessage(_ptr, steamIDClanChat, iMessage, prgchText, cchTextMax, out peChatEntryType, out psteamidChatter); - } - public virtual bool /*bool*/ ISteamFriends_IsClanChatAdmin( ulong steamIDClanChat, ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsClanChatAdmin(_ptr, steamIDClanChat, steamIDUser); - } - public virtual bool /*bool*/ ISteamFriends_IsClanChatWindowOpenInSteam( ulong steamIDClanChat ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam(_ptr, steamIDClanChat); - } - public virtual bool /*bool*/ ISteamFriends_OpenClanChatWindowInSteam( ulong steamIDClanChat ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_OpenClanChatWindowInSteam(_ptr, steamIDClanChat); - } - public virtual bool /*bool*/ ISteamFriends_CloseClanChatWindowInSteam( ulong steamIDClanChat ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_CloseClanChatWindowInSteam(_ptr, steamIDClanChat); - } - public virtual bool /*bool*/ ISteamFriends_SetListenForFriendsMessages( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bInterceptEnabled ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_SetListenForFriendsMessages(_ptr, bInterceptEnabled); - } - public virtual bool /*bool*/ ISteamFriends_ReplyToFriendMessage( ulong steamIDFriend, string /*const char **/ pchMsgToSend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_ReplyToFriendMessage(_ptr, steamIDFriend, pchMsgToSend); - } - public virtual int /*int*/ ISteamFriends_GetFriendMessage( ulong steamIDFriend, int /*int*/ iMessageID, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendMessage(_ptr, steamIDFriend, iMessageID, pvData, cubData, out peChatEntryType); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_GetFollowerCount( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFollowerCount(_ptr, steamID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_IsFollowing( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsFollowing(_ptr, steamID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_EnumerateFollowingList( uint /*uint32*/ unStartIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_EnumerateFollowingList(_ptr, unStartIndex); - } - public virtual bool /*bool*/ ISteamFriends_IsClanPublic( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsClanPublic(_ptr, steamIDClan); - } - public virtual bool /*bool*/ ISteamFriends_IsClanOfficialGameGroup( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsClanOfficialGameGroup(_ptr, steamIDClan); - } - public virtual int /*int*/ ISteamFriends_GetNumChatsWithUnreadPriorityMessages() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetNumChatsWithUnreadPriorityMessages(_ptr); - } - - public virtual uint /*uint32*/ ISteamUtils_GetSecondsSinceAppActive() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetSecondsSinceAppActive(_ptr); - } - public virtual uint /*uint32*/ ISteamUtils_GetSecondsSinceComputerActive() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetSecondsSinceComputerActive(_ptr); - } - public virtual Universe /*EUniverse*/ ISteamUtils_GetConnectedUniverse() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetConnectedUniverse(_ptr); - } - public virtual uint /*uint32*/ ISteamUtils_GetServerRealTime() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetServerRealTime(_ptr); - } - public virtual IntPtr ISteamUtils_GetIPCountry() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetIPCountry(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_GetImageSize( int /*int*/ iImage, out uint /*uint32 **/ pnWidth, out uint /*uint32 **/ pnHeight ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetImageSize(_ptr, iImage, out pnWidth, out pnHeight); - } - public virtual bool /*bool*/ ISteamUtils_GetImageRGBA( int /*int*/ iImage, IntPtr /*uint8 **/ pubDest, int /*int*/ nDestBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetImageRGBA(_ptr, iImage, pubDest, nDestBufferSize); - } - public virtual bool /*bool*/ ISteamUtils_GetCSERIPPort( out uint /*uint32 **/ unIP, out ushort /*uint16 **/ usPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetCSERIPPort(_ptr, out unIP, out usPort); - } - public virtual byte /*uint8*/ ISteamUtils_GetCurrentBatteryPower() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetCurrentBatteryPower(_ptr); - } - public virtual uint /*uint32*/ ISteamUtils_GetAppID() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetAppID(_ptr); - } - public virtual void /*void*/ ISteamUtils_SetOverlayNotificationPosition( NotificationPosition /*ENotificationPosition*/ eNotificationPosition ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_SetOverlayNotificationPosition(_ptr, eNotificationPosition); - } - public virtual bool /*bool*/ ISteamUtils_IsAPICallCompleted( ulong hSteamAPICall, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsAPICallCompleted(_ptr, hSteamAPICall, ref pbFailed); - } - public virtual SteamAPICallFailure /*ESteamAPICallFailure*/ ISteamUtils_GetAPICallFailureReason( ulong hSteamAPICall ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetAPICallFailureReason(_ptr, hSteamAPICall); - } - public virtual bool /*bool*/ ISteamUtils_GetAPICallResult( ulong hSteamAPICall, IntPtr /*void **/ pCallback, int /*int*/ cubCallback, int /*int*/ iCallbackExpected, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetAPICallResult(_ptr, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, ref pbFailed); - } - public virtual uint /*uint32*/ ISteamUtils_GetIPCCallCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetIPCCallCount(_ptr); - } - public virtual void /*void*/ ISteamUtils_SetWarningMessageHook( IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_SetWarningMessageHook(_ptr, pFunction); - } - public virtual bool /*bool*/ ISteamUtils_IsOverlayEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsOverlayEnabled(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_BOverlayNeedsPresent() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_BOverlayNeedsPresent(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUtils_CheckFileSignature( string /*const char **/ szFileName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_CheckFileSignature(_ptr, szFileName); - } - public virtual bool /*bool*/ ISteamUtils_ShowGamepadTextInput( GamepadTextInputMode /*EGamepadTextInputMode*/ eInputMode, GamepadTextInputLineMode /*EGamepadTextInputLineMode*/ eLineInputMode, string /*const char **/ pchDescription, uint /*uint32*/ unCharMax, string /*const char **/ pchExistingText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_ShowGamepadTextInput(_ptr, eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText); - } - public virtual uint /*uint32*/ ISteamUtils_GetEnteredGamepadTextLength() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetEnteredGamepadTextLength(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_GetEnteredGamepadTextInput( System.Text.StringBuilder /*char **/ pchText, uint /*uint32*/ cchText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetEnteredGamepadTextInput(_ptr, pchText, cchText); - } - public virtual IntPtr ISteamUtils_GetSteamUILanguage() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetSteamUILanguage(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_IsSteamRunningInVR() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsSteamRunningInVR(_ptr); - } - public virtual void /*void*/ ISteamUtils_SetOverlayNotificationInset( int /*int*/ nHorizontalInset, int /*int*/ nVerticalInset ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_SetOverlayNotificationInset(_ptr, nHorizontalInset, nVerticalInset); - } - public virtual bool /*bool*/ ISteamUtils_IsSteamInBigPictureMode() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsSteamInBigPictureMode(_ptr); - } - public virtual void /*void*/ ISteamUtils_StartVRDashboard() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_StartVRDashboard(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_IsVRHeadsetStreamingEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsVRHeadsetStreamingEnabled(_ptr); - } - public virtual void /*void*/ ISteamUtils_SetVRHeadsetStreamingEnabled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_SetVRHeadsetStreamingEnabled(_ptr, bEnabled); - } - - public virtual int /*int*/ ISteamMatchmaking_GetFavoriteGameCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetFavoriteGameCount(_ptr); - } - public virtual bool /*bool*/ ISteamMatchmaking_GetFavoriteGame( int /*int*/ iGame, ref uint pnAppID, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnConnPort, out ushort /*uint16 **/ pnQueryPort, out uint /*uint32 **/ punFlags, out uint /*uint32 **/ pRTime32LastPlayedOnServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetFavoriteGame(_ptr, iGame, ref pnAppID, out pnIP, out pnConnPort, out pnQueryPort, out punFlags, out pRTime32LastPlayedOnServer); - } - public virtual int /*int*/ ISteamMatchmaking_AddFavoriteGame( uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags, uint /*uint32*/ rTime32LastPlayedOnServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_AddFavoriteGame(_ptr, nAppID, nIP, nConnPort, nQueryPort, unFlags, rTime32LastPlayedOnServer); - } - public virtual bool /*bool*/ ISteamMatchmaking_RemoveFavoriteGame( uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_RemoveFavoriteGame(_ptr, nAppID, nIP, nConnPort, nQueryPort, unFlags); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_RequestLobbyList() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_RequestLobbyList(_ptr); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListStringFilter( string /*const char **/ pchKeyToMatch, string /*const char **/ pchValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter(_ptr, pchKeyToMatch, pchValueToMatch, eComparisonType); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListNumericalFilter( string /*const char **/ pchKeyToMatch, int /*int*/ nValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter(_ptr, pchKeyToMatch, nValueToMatch, eComparisonType); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListNearValueFilter( string /*const char **/ pchKeyToMatch, int /*int*/ nValueToBeCloseTo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter(_ptr, pchKeyToMatch, nValueToBeCloseTo); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable( int /*int*/ nSlotsAvailable ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable(_ptr, nSlotsAvailable); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListDistanceFilter( LobbyDistanceFilter /*ELobbyDistanceFilter*/ eLobbyDistanceFilter ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter(_ptr, eLobbyDistanceFilter); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListResultCountFilter( int /*int*/ cMaxResults ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter(_ptr, cMaxResults); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter(_ptr, steamIDLobby); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyByIndex( int /*int*/ iLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyByIndex(_ptr, iLobby); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_CreateLobby( LobbyType /*ELobbyType*/ eLobbyType, int /*int*/ cMaxMembers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_CreateLobby(_ptr, eLobbyType, cMaxMembers); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_JoinLobby( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_JoinLobby(_ptr, steamIDLobby); - } - public virtual void /*void*/ ISteamMatchmaking_LeaveLobby( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_LeaveLobby(_ptr, steamIDLobby); - } - public virtual bool /*bool*/ ISteamMatchmaking_InviteUserToLobby( ulong steamIDLobby, ulong steamIDInvitee ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_InviteUserToLobby(_ptr, steamIDLobby, steamIDInvitee); - } - public virtual int /*int*/ ISteamMatchmaking_GetNumLobbyMembers( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetNumLobbyMembers(_ptr, steamIDLobby); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyMemberByIndex( ulong steamIDLobby, int /*int*/ iMember ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex(_ptr, steamIDLobby, iMember); - } - public virtual IntPtr ISteamMatchmaking_GetLobbyData( ulong steamIDLobby, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyData(_ptr, steamIDLobby, pchKey); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyData( ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyData(_ptr, steamIDLobby, pchKey, pchValue); - } - public virtual int /*int*/ ISteamMatchmaking_GetLobbyDataCount( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyDataCount(_ptr, steamIDLobby); - } - public virtual bool /*bool*/ ISteamMatchmaking_GetLobbyDataByIndex( ulong steamIDLobby, int /*int*/ iLobbyData, System.Text.StringBuilder /*char **/ pchKey, int /*int*/ cchKeyBufferSize, System.Text.StringBuilder /*char **/ pchValue, int /*int*/ cchValueBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex(_ptr, steamIDLobby, iLobbyData, pchKey, cchKeyBufferSize, pchValue, cchValueBufferSize); - } - public virtual bool /*bool*/ ISteamMatchmaking_DeleteLobbyData( ulong steamIDLobby, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_DeleteLobbyData(_ptr, steamIDLobby, pchKey); - } - public virtual IntPtr ISteamMatchmaking_GetLobbyMemberData( ulong steamIDLobby, ulong steamIDUser, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyMemberData(_ptr, steamIDLobby, steamIDUser, pchKey); - } - public virtual void /*void*/ ISteamMatchmaking_SetLobbyMemberData( ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_SetLobbyMemberData(_ptr, steamIDLobby, pchKey, pchValue); - } - public virtual bool /*bool*/ ISteamMatchmaking_SendLobbyChatMsg( ulong steamIDLobby, IntPtr /*const void **/ pvMsgBody, int /*int*/ cubMsgBody ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SendLobbyChatMsg(_ptr, steamIDLobby, pvMsgBody, cubMsgBody); - } - public virtual int /*int*/ ISteamMatchmaking_GetLobbyChatEntry( ulong steamIDLobby, int /*int*/ iChatID, out ulong pSteamIDUser, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyChatEntry(_ptr, steamIDLobby, iChatID, out pSteamIDUser, pvData, cubData, out peChatEntryType); - } - public virtual bool /*bool*/ ISteamMatchmaking_RequestLobbyData( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_RequestLobbyData(_ptr, steamIDLobby); - } - public virtual void /*void*/ ISteamMatchmaking_SetLobbyGameServer( ulong steamIDLobby, uint /*uint32*/ unGameServerIP, ushort /*uint16*/ unGameServerPort, ulong steamIDGameServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_SetLobbyGameServer(_ptr, steamIDLobby, unGameServerIP, unGameServerPort, steamIDGameServer); - } - public virtual bool /*bool*/ ISteamMatchmaking_GetLobbyGameServer( ulong steamIDLobby, out uint /*uint32 **/ punGameServerIP, out ushort /*uint16 **/ punGameServerPort, out ulong psteamIDGameServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyGameServer(_ptr, steamIDLobby, out punGameServerIP, out punGameServerPort, out psteamIDGameServer); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyMemberLimit( ulong steamIDLobby, int /*int*/ cMaxMembers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit(_ptr, steamIDLobby, cMaxMembers); - } - public virtual int /*int*/ ISteamMatchmaking_GetLobbyMemberLimit( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit(_ptr, steamIDLobby); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyType( ulong steamIDLobby, LobbyType /*ELobbyType*/ eLobbyType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyType(_ptr, steamIDLobby, eLobbyType); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyJoinable( ulong steamIDLobby, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bLobbyJoinable ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyJoinable(_ptr, steamIDLobby, bLobbyJoinable); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyOwner( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyOwner(_ptr, steamIDLobby); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyOwner( ulong steamIDLobby, ulong steamIDNewOwner ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyOwner(_ptr, steamIDLobby, steamIDNewOwner); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLinkedLobby( ulong steamIDLobby, ulong steamIDLobbyDependent ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLinkedLobby(_ptr, steamIDLobby, steamIDLobbyDependent); - } - - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestInternetServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestInternetServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestLANServerList( uint iApp, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestLANServerList(_ptr, iApp, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestFriendsServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestFavoritesServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestHistoryServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestSpectatorServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual void /*void*/ ISteamMatchmakingServers_ReleaseRequest( IntPtr hServerListRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_ReleaseRequest(_ptr, hServerListRequest); - } - public virtual IntPtr /*class gameserveritem_t **/ ISteamMatchmakingServers_GetServerDetails( IntPtr hRequest, int /*int*/ iServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_GetServerDetails(_ptr, hRequest, iServer); - } - public virtual void /*void*/ ISteamMatchmakingServers_CancelQuery( IntPtr hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_CancelQuery(_ptr, hRequest); - } - public virtual void /*void*/ ISteamMatchmakingServers_RefreshQuery( IntPtr hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_RefreshQuery(_ptr, hRequest); - } - public virtual bool /*bool*/ ISteamMatchmakingServers_IsRefreshing( IntPtr hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_IsRefreshing(_ptr, hRequest); - } - public virtual int /*int*/ ISteamMatchmakingServers_GetServerCount( IntPtr hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_GetServerCount(_ptr, hRequest); - } - public virtual void /*void*/ ISteamMatchmakingServers_RefreshServer( IntPtr hRequest, int /*int*/ iServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_RefreshServer(_ptr, hRequest, iServer); - } - public virtual HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_PingServer( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPingResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_PingServer(_ptr, unIP, usPort, pRequestServersResponse); - } - public virtual HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_PlayerDetails( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPlayersResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_PlayerDetails(_ptr, unIP, usPort, pRequestServersResponse); - } - public virtual HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_ServerRules( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingRulesResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_ServerRules(_ptr, unIP, usPort, pRequestServersResponse); - } - public virtual void /*void*/ ISteamMatchmakingServers_CancelServerQuery( int hServerQuery ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_CancelServerQuery(_ptr, hServerQuery); - } - - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_AddGameSearchParams( string /*const char **/ pchKeyToFind, string /*const char **/ pchValuesToFind ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_AddGameSearchParams(_ptr, pchKeyToFind, pchValuesToFind); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SearchForGameWithLobby( ulong steamIDLobby, int /*int*/ nPlayerMin, int /*int*/ nPlayerMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SearchForGameWithLobby(_ptr, steamIDLobby, nPlayerMin, nPlayerMax); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SearchForGameSolo( int /*int*/ nPlayerMin, int /*int*/ nPlayerMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SearchForGameSolo(_ptr, nPlayerMin, nPlayerMax); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_AcceptGame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_AcceptGame(_ptr); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_DeclineGame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_DeclineGame(_ptr); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_RetrieveConnectionDetails( ulong steamIDHost, System.Text.StringBuilder /*char **/ pchConnectionDetails, int /*int*/ cubConnectionDetails ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_RetrieveConnectionDetails(_ptr, steamIDHost, pchConnectionDetails, cubConnectionDetails); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_EndGameSearch() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_EndGameSearch(_ptr); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SetGameHostParams( string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SetGameHostParams(_ptr, pchKey, pchValue); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SetConnectionDetails( string /*const char **/ pchConnectionDetails, int /*int*/ cubConnectionDetails ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SetConnectionDetails(_ptr, pchConnectionDetails, cubConnectionDetails); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_RequestPlayersForGame( int /*int*/ nPlayerMin, int /*int*/ nPlayerMax, int /*int*/ nMaxTeamSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_RequestPlayersForGame(_ptr, nPlayerMin, nPlayerMax, nMaxTeamSize); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_HostConfirmGameStart( ulong /*uint64*/ ullUniqueGameID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_HostConfirmGameStart(_ptr, ullUniqueGameID); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_CancelRequestPlayersForGame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_CancelRequestPlayersForGame(_ptr); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SubmitPlayerResult( ulong /*uint64*/ ullUniqueGameID, ulong steamIDPlayer, PlayerResult_t /*EPlayerResult_t*/ EPlayerResult ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SubmitPlayerResult(_ptr, ullUniqueGameID, steamIDPlayer, EPlayerResult); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_EndGame( ulong /*uint64*/ ullUniqueGameID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_EndGame(_ptr, ullUniqueGameID); - } - - public virtual uint /*uint32*/ ISteamParties_GetNumActiveBeacons() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_GetNumActiveBeacons(_ptr); - } - public virtual PartyBeaconID_t /*(PartyBeaconID_t)*/ ISteamParties_GetBeaconByIndex( uint /*uint32*/ unIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_GetBeaconByIndex(_ptr, unIndex); - } - public virtual bool /*bool*/ ISteamParties_GetBeaconDetails( ulong ulBeaconID, out ulong pSteamIDBeaconOwner, ref SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t **/ pLocation, System.Text.StringBuilder /*char **/ pchMetadata, int /*int*/ cchMetadata ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - var pLocation_ps = new SteamPartyBeaconLocation_t.Pack4(); - var ret = Native.SteamAPI_ISteamParties_GetBeaconDetails(_ptr, ulBeaconID, out pSteamIDBeaconOwner, ref pLocation_ps, pchMetadata, cchMetadata); - pLocation = pLocation_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamParties_JoinParty( ulong ulBeaconID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_JoinParty(_ptr, ulBeaconID); - } - public virtual bool /*bool*/ ISteamParties_GetNumAvailableBeaconLocations( IntPtr /*uint32 **/ puNumLocations ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_GetNumAvailableBeaconLocations(_ptr, puNumLocations); - } - public virtual bool /*bool*/ ISteamParties_GetAvailableBeaconLocations( ref SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t **/ pLocationList, uint /*uint32*/ uMaxNumLocations ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - var pLocationList_ps = new SteamPartyBeaconLocation_t.Pack4(); - var ret = Native.SteamAPI_ISteamParties_GetAvailableBeaconLocations(_ptr, ref pLocationList_ps, uMaxNumLocations); - pLocationList = pLocationList_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamParties_CreateBeacon( uint /*uint32*/ unOpenSlots, ref SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t **/ pBeaconLocation, string /*const char **/ pchConnectString, string /*const char **/ pchMetadata ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - var pBeaconLocation_ps = new SteamPartyBeaconLocation_t.Pack4(); - var ret = Native.SteamAPI_ISteamParties_CreateBeacon(_ptr, unOpenSlots, ref pBeaconLocation_ps, pchConnectString, pchMetadata); - pBeaconLocation = pBeaconLocation_ps; - return ret; - } - public virtual void /*void*/ ISteamParties_OnReservationCompleted( ulong ulBeacon, ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - Native.SteamAPI_ISteamParties_OnReservationCompleted(_ptr, ulBeacon, steamIDUser); - } - public virtual void /*void*/ ISteamParties_CancelReservation( ulong ulBeacon, ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - Native.SteamAPI_ISteamParties_CancelReservation(_ptr, ulBeacon, steamIDUser); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamParties_ChangeNumOpenSlots( ulong ulBeacon, uint /*uint32*/ unOpenSlots ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_ChangeNumOpenSlots(_ptr, ulBeacon, unOpenSlots); - } - public virtual bool /*bool*/ ISteamParties_DestroyBeacon( ulong ulBeacon ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_DestroyBeacon(_ptr, ulBeacon); - } - public virtual bool /*bool*/ ISteamParties_GetBeaconLocationData( SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t*/ BeaconLocation, SteamPartyBeaconLocationData /*ESteamPartyBeaconLocationData*/ eData, System.Text.StringBuilder /*char **/ pchDataStringOut, int /*int*/ cchDataStringOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_GetBeaconLocationData(_ptr, BeaconLocation, eData, pchDataStringOut, cchDataStringOut); - } - - public virtual bool /*bool*/ ISteamRemoteStorage_FileWrite( string /*const char **/ pchFile, IntPtr /*const void **/ pvData, int /*int32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWrite(_ptr, pchFile, pvData, cubData); - } - public virtual int /*int32*/ ISteamRemoteStorage_FileRead( string /*const char **/ pchFile, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileRead(_ptr, pchFile, pvData, cubDataToRead); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileWriteAsync( string /*const char **/ pchFile, IntPtr /*const void **/ pvData, uint /*uint32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteAsync(_ptr, pchFile, pvData, cubData); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileReadAsync( string /*const char **/ pchFile, uint /*uint32*/ nOffset, uint /*uint32*/ cubToRead ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileReadAsync(_ptr, pchFile, nOffset, cubToRead); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileReadAsyncComplete( ulong hReadCall, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cubToRead ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete(_ptr, hReadCall, pvBuffer, cubToRead); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileForget( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileForget(_ptr, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileDelete( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileDelete(_ptr, pchFile); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileShare( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileShare(_ptr, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_SetSyncPlatforms( string /*const char **/ pchFile, RemoteStoragePlatform /*ERemoteStoragePlatform*/ eRemoteStoragePlatform ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_SetSyncPlatforms(_ptr, pchFile, eRemoteStoragePlatform); - } - public virtual UGCFileWriteStreamHandle_t /*(UGCFileWriteStreamHandle_t)*/ ISteamRemoteStorage_FileWriteStreamOpen( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen(_ptr, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileWriteStreamWriteChunk( ulong writeHandle, IntPtr /*const void **/ pvData, int /*int32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk(_ptr, writeHandle, pvData, cubData); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileWriteStreamClose( ulong writeHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamClose(_ptr, writeHandle); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileWriteStreamCancel( ulong writeHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel(_ptr, writeHandle); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileExists( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileExists(_ptr, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FilePersisted( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FilePersisted(_ptr, pchFile); - } - public virtual int /*int32*/ ISteamRemoteStorage_GetFileSize( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetFileSize(_ptr, pchFile); - } - public virtual long /*int64*/ ISteamRemoteStorage_GetFileTimestamp( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetFileTimestamp(_ptr, pchFile); - } - public virtual RemoteStoragePlatform /*ERemoteStoragePlatform*/ ISteamRemoteStorage_GetSyncPlatforms( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetSyncPlatforms(_ptr, pchFile); - } - public virtual int /*int32*/ ISteamRemoteStorage_GetFileCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetFileCount(_ptr); - } - public virtual IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile, out int /*int32 **/ pnFileSizeInBytes ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetFileNameAndSize(_ptr, iFile, out pnFileSizeInBytes); - } - public virtual bool /*bool*/ ISteamRemoteStorage_GetQuota( out ulong /*uint64 **/ pnTotalBytes, out ulong /*uint64 **/ puAvailableBytes ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetQuota(_ptr, out pnTotalBytes, out puAvailableBytes); - } - public virtual bool /*bool*/ ISteamRemoteStorage_IsCloudEnabledForAccount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount(_ptr); - } - public virtual bool /*bool*/ ISteamRemoteStorage_IsCloudEnabledForApp() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp(_ptr); - } - public virtual void /*void*/ ISteamRemoteStorage_SetCloudEnabledForApp( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - Native.SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp(_ptr, bEnabled); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UGCDownload( ulong hContent, uint /*uint32*/ unPriority ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UGCDownload(_ptr, hContent, unPriority); - } - public virtual bool /*bool*/ ISteamRemoteStorage_GetUGCDownloadProgress( ulong hContent, out int /*int32 **/ pnBytesDownloaded, out int /*int32 **/ pnBytesExpected ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress(_ptr, hContent, out pnBytesDownloaded, out pnBytesExpected); - } - public virtual bool /*bool*/ ISteamRemoteStorage_GetUGCDetails( ulong hContent, ref uint pnAppID, System.Text.StringBuilder /*char ***/ ppchName, out int /*int32 **/ pnFileSizeInBytes, out ulong pSteamIDOwner ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetUGCDetails(_ptr, hContent, ref pnAppID, ppchName, out pnFileSizeInBytes, out pSteamIDOwner); - } - public virtual int /*int32*/ ISteamRemoteStorage_UGCRead( ulong hContent, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead, uint /*uint32*/ cOffset, UGCReadAction /*EUGCReadAction*/ eAction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UGCRead(_ptr, hContent, pvData, cubDataToRead, cOffset, eAction); - } - public virtual int /*int32*/ ISteamRemoteStorage_GetCachedUGCCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetCachedUGCCount(_ptr); - } - public virtual UGCHandle_t /*(UGCHandle_t)*/ ISteamRemoteStorage_GetCachedUGCHandle( int /*int32*/ iCachedContent ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle(_ptr, iCachedContent); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_PublishWorkshopFile( string /*const char **/ pchFile, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags, WorkshopFileType /*EWorkshopFileType*/ eWorkshopFileType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack4(); - var ret = Native.SteamAPI_ISteamRemoteStorage_PublishWorkshopFile(_ptr, pchFile, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, ref pTags_ps, eWorkshopFileType); - pTags = pTags_ps; - return ret; - } - public virtual PublishedFileUpdateHandle_t /*(PublishedFileUpdateHandle_t)*/ ISteamRemoteStorage_CreatePublishedFileUpdateRequest( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest(_ptr, unPublishedFileId); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileFile( ulong updateHandle, string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile(_ptr, updateHandle, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFilePreviewFile( ulong updateHandle, string /*const char **/ pchPreviewFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile(_ptr, updateHandle, pchPreviewFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileTitle( ulong updateHandle, string /*const char **/ pchTitle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle(_ptr, updateHandle, pchTitle); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileDescription( ulong updateHandle, string /*const char **/ pchDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription(_ptr, updateHandle, pchDescription); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileVisibility( ulong updateHandle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility(_ptr, updateHandle, eVisibility); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileTags( ulong updateHandle, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack4(); - var ret = Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags(_ptr, updateHandle, ref pTags_ps); - pTags = pTags_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_CommitPublishedFileUpdate( ulong updateHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate(_ptr, updateHandle); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetPublishedFileDetails( ulong unPublishedFileId, uint /*uint32*/ unMaxSecondsOld ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails(_ptr, unPublishedFileId, unMaxSecondsOld); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_DeletePublishedFile( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_DeletePublishedFile(_ptr, unPublishedFileId); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserPublishedFiles( uint /*uint32*/ unStartIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles(_ptr, unStartIndex); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_SubscribePublishedFile( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_SubscribePublishedFile(_ptr, unPublishedFileId); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserSubscribedFiles( uint /*uint32*/ unStartIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles(_ptr, unStartIndex); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UnsubscribePublishedFile( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile(_ptr, unPublishedFileId); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription( ulong updateHandle, string /*const char **/ pchChangeDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription(_ptr, updateHandle, pchChangeDescription); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetPublishedItemVoteDetails( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails(_ptr, unPublishedFileId); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UpdateUserPublishedItemVote( ulong unPublishedFileId, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote(_ptr, unPublishedFileId, bVoteUp); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetUserPublishedItemVoteDetails( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails(_ptr, unPublishedFileId); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles( ulong steamId, uint /*uint32*/ unStartIndex, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pRequiredTags, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pExcludedTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pRequiredTags_ps = new SteamParamStringArray_t.Pack4(); - var pExcludedTags_ps = new SteamParamStringArray_t.Pack4(); - var ret = Native.SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles(_ptr, steamId, unStartIndex, ref pRequiredTags_ps, ref pExcludedTags_ps); - pRequiredTags = pRequiredTags_ps; - pExcludedTags = pExcludedTags_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_PublishVideo( WorkshopVideoProvider /*EWorkshopVideoProvider*/ eVideoProvider, string /*const char **/ pchVideoAccount, string /*const char **/ pchVideoIdentifier, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack4(); - var ret = Native.SteamAPI_ISteamRemoteStorage_PublishVideo(_ptr, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, ref pTags_ps); - pTags = pTags_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_SetUserPublishedFileAction( ulong unPublishedFileId, WorkshopFileAction /*EWorkshopFileAction*/ eAction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction(_ptr, unPublishedFileId, eAction); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumeratePublishedFilesByUserAction( WorkshopFileAction /*EWorkshopFileAction*/ eAction, uint /*uint32*/ unStartIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction(_ptr, eAction, unStartIndex); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumeratePublishedWorkshopFiles( WorkshopEnumerationType /*EWorkshopEnumerationType*/ eEnumerationType, uint /*uint32*/ unStartIndex, uint /*uint32*/ unCount, uint /*uint32*/ unDays, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pUserTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack4(); - var pUserTags_ps = new SteamParamStringArray_t.Pack4(); - var ret = Native.SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles(_ptr, eEnumerationType, unStartIndex, unCount, unDays, ref pTags_ps, ref pUserTags_ps); - pTags = pTags_ps; - pUserTags = pUserTags_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UGCDownloadToLocation( ulong hContent, string /*const char **/ pchLocation, uint /*uint32*/ unPriority ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation(_ptr, hContent, pchLocation, unPriority); - } - - public virtual bool /*bool*/ ISteamUserStats_RequestCurrentStats() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_RequestCurrentStats(_ptr); - } - public virtual bool /*bool*/ ISteamUserStats_GetStat( string /*const char **/ pchName, out int /*int32 **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetStat(_ptr, pchName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_GetStat0( string /*const char **/ pchName, out float /*float **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetStat0(_ptr, pchName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_SetStat( string /*const char **/ pchName, int /*int32*/ nData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_SetStat(_ptr, pchName, nData); - } - public virtual bool /*bool*/ ISteamUserStats_SetStat0( string /*const char **/ pchName, float /*float*/ fData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_SetStat0(_ptr, pchName, fData); - } - public virtual bool /*bool*/ ISteamUserStats_UpdateAvgRateStat( string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_UpdateAvgRateStat(_ptr, pchName, flCountThisSession, dSessionLength); - } - public virtual bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievement(_ptr, pchName, ref pbAchieved); - } - public virtual bool /*bool*/ ISteamUserStats_SetAchievement( string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_SetAchievement(_ptr, pchName); - } - public virtual bool /*bool*/ ISteamUserStats_ClearAchievement( string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_ClearAchievement(_ptr, pchName); - } - public virtual bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime(_ptr, pchName, ref pbAchieved, out punUnlockTime); - } - public virtual bool /*bool*/ ISteamUserStats_StoreStats() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_StoreStats(_ptr); - } - public virtual int /*int*/ ISteamUserStats_GetAchievementIcon( string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementIcon(_ptr, pchName); - } - public virtual IntPtr ISteamUserStats_GetAchievementDisplayAttribute( string /*const char **/ pchName, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute(_ptr, pchName, pchKey); - } - public virtual bool /*bool*/ ISteamUserStats_IndicateAchievementProgress( string /*const char **/ pchName, uint /*uint32*/ nCurProgress, uint /*uint32*/ nMaxProgress ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_IndicateAchievementProgress(_ptr, pchName, nCurProgress, nMaxProgress); - } - public virtual uint /*uint32*/ ISteamUserStats_GetNumAchievements() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetNumAchievements(_ptr); - } - public virtual IntPtr ISteamUserStats_GetAchievementName( uint /*uint32*/ iAchievement ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementName(_ptr, iAchievement); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestUserStats( ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_RequestUserStats(_ptr, steamIDUser); - } - public virtual bool /*bool*/ ISteamUserStats_GetUserStat( ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetUserStat(_ptr, steamIDUser, pchName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_GetUserStat0( ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetUserStat0(_ptr, steamIDUser, pchName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievement( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); - } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime(_ptr, steamIDUser, pchName, ref pbAchieved, out punUnlockTime); - } - public virtual bool /*bool*/ ISteamUserStats_ResetAllStats( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAchievementsToo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_ResetAllStats(_ptr, bAchievementsToo); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_FindOrCreateLeaderboard( string /*const char **/ pchLeaderboardName, LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod, LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_FindOrCreateLeaderboard(_ptr, pchLeaderboardName, eLeaderboardSortMethod, eLeaderboardDisplayType); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_FindLeaderboard( string /*const char **/ pchLeaderboardName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_FindLeaderboard(_ptr, pchLeaderboardName); - } - public virtual IntPtr ISteamUserStats_GetLeaderboardName( ulong hSteamLeaderboard ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetLeaderboardName(_ptr, hSteamLeaderboard); - } - public virtual int /*int*/ ISteamUserStats_GetLeaderboardEntryCount( ulong hSteamLeaderboard ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetLeaderboardEntryCount(_ptr, hSteamLeaderboard); - } - public virtual LeaderboardSortMethod /*ELeaderboardSortMethod*/ ISteamUserStats_GetLeaderboardSortMethod( ulong hSteamLeaderboard ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetLeaderboardSortMethod(_ptr, hSteamLeaderboard); - } - public virtual LeaderboardDisplayType /*ELeaderboardDisplayType*/ ISteamUserStats_GetLeaderboardDisplayType( ulong hSteamLeaderboard ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetLeaderboardDisplayType(_ptr, hSteamLeaderboard); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_DownloadLeaderboardEntries( ulong hSteamLeaderboard, LeaderboardDataRequest /*ELeaderboardDataRequest*/ eLeaderboardDataRequest, int /*int*/ nRangeStart, int /*int*/ nRangeEnd ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_DownloadLeaderboardEntries(_ptr, hSteamLeaderboard, eLeaderboardDataRequest, nRangeStart, nRangeEnd); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_DownloadLeaderboardEntriesForUsers( ulong hSteamLeaderboard, IntPtr /*class CSteamID **/ prgUsers, int /*int*/ cUsers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers(_ptr, hSteamLeaderboard, prgUsers, cUsers); - } - public virtual bool /*bool*/ ISteamUserStats_GetDownloadedLeaderboardEntry( ulong hSteamLeaderboardEntries, int /*int*/ index, ref LeaderboardEntry_t /*struct LeaderboardEntry_t **/ pLeaderboardEntry, IntPtr /*int32 **/ pDetails, int /*int*/ cDetailsMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - var pLeaderboardEntry_ps = new LeaderboardEntry_t.Pack4(); - var ret = Native.SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry(_ptr, hSteamLeaderboardEntries, index, ref pLeaderboardEntry_ps, pDetails, cDetailsMax); - pLeaderboardEntry = pLeaderboardEntry_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_UploadLeaderboardScore( ulong hSteamLeaderboard, LeaderboardUploadScoreMethod /*ELeaderboardUploadScoreMethod*/ eLeaderboardUploadScoreMethod, int /*int32*/ nScore, int[] /*const int32 **/ pScoreDetails, int /*int*/ cScoreDetailsCount ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_UploadLeaderboardScore(_ptr, hSteamLeaderboard, eLeaderboardUploadScoreMethod, nScore, pScoreDetails, cScoreDetailsCount); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_AttachLeaderboardUGC( ulong hSteamLeaderboard, ulong hUGC ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_AttachLeaderboardUGC(_ptr, hSteamLeaderboard, hUGC); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_GetNumberOfCurrentPlayers() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestGlobalAchievementPercentages() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages(_ptr); - } - public virtual int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo(_ptr, pchName, unNameBufLen, out pflPercent, ref pbAchieved); - } - public virtual int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo(_ptr, iIteratorPrevious, pchName, unNameBufLen, out pflPercent, ref pbAchieved); - } - public virtual bool /*bool*/ ISteamUserStats_GetAchievementAchievedPercent( string /*const char **/ pchName, out float /*float **/ pflPercent ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementAchievedPercent(_ptr, pchName, out pflPercent); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestGlobalStats( int /*int*/ nHistoryDays ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_RequestGlobalStats(_ptr, nHistoryDays); - } - public virtual bool /*bool*/ ISteamUserStats_GetGlobalStat( string /*const char **/ pchStatName, out long /*int64 **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetGlobalStat(_ptr, pchStatName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_GetGlobalStat0( string /*const char **/ pchStatName, out double /*double **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetGlobalStat0(_ptr, pchStatName, out pData); - } - public virtual int /*int32*/ ISteamUserStats_GetGlobalStatHistory( string /*const char **/ pchStatName, out long /*int64 **/ pData, uint /*uint32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetGlobalStatHistory(_ptr, pchStatName, out pData, cubData); - } - public virtual int /*int32*/ ISteamUserStats_GetGlobalStatHistory0( string /*const char **/ pchStatName, out double /*double **/ pData, uint /*uint32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetGlobalStatHistory0(_ptr, pchStatName, out pData, cubData); - } - - public virtual bool /*bool*/ ISteamApps_BIsSubscribed() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsSubscribed(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BIsLowViolence() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsLowViolence(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BIsCybercafe() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsCybercafe(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BIsVACBanned() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsVACBanned(_ptr); - } - public virtual IntPtr ISteamApps_GetCurrentGameLanguage() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetCurrentGameLanguage(_ptr); - } - public virtual IntPtr ISteamApps_GetAvailableGameLanguages() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetAvailableGameLanguages(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BIsSubscribedApp( uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsSubscribedApp(_ptr, appID); - } - public virtual bool /*bool*/ ISteamApps_BIsDlcInstalled( uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsDlcInstalled(_ptr, appID); - } - public virtual uint /*uint32*/ ISteamApps_GetEarliestPurchaseUnixTime( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime(_ptr, nAppID); - } - public virtual bool /*bool*/ ISteamApps_BIsSubscribedFromFreeWeekend() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend(_ptr); - } - public virtual int /*int*/ ISteamApps_GetDLCCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetDLCCount(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC, ref uint pAppID, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BGetDLCDataByIndex(_ptr, iDLC, ref pAppID, ref pbAvailable, pchName, cchNameBufferSize); - } - public virtual void /*void*/ ISteamApps_InstallDLC( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - Native.SteamAPI_ISteamApps_InstallDLC(_ptr, nAppID); - } - public virtual void /*void*/ ISteamApps_UninstallDLC( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - Native.SteamAPI_ISteamApps_UninstallDLC(_ptr, nAppID); - } - public virtual void /*void*/ ISteamApps_RequestAppProofOfPurchaseKey( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - Native.SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey(_ptr, nAppID); - } - public virtual bool /*bool*/ ISteamApps_GetCurrentBetaName( System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetCurrentBetaName(_ptr, pchName, cchNameBufferSize); - } - public virtual bool /*bool*/ ISteamApps_MarkContentCorrupt( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMissingFilesOnly ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_MarkContentCorrupt(_ptr, bMissingFilesOnly); - } - public virtual uint /*uint32*/ ISteamApps_GetInstalledDepots( uint appID, IntPtr /*DepotId_t **/ pvecDepots, uint /*uint32*/ cMaxDepots ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetInstalledDepots(_ptr, appID, pvecDepots, cMaxDepots); - } - public virtual uint /*uint32*/ ISteamApps_GetAppInstallDir( uint appID, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetAppInstallDir(_ptr, appID, pchFolder, cchFolderBufferSize); - } - public virtual bool /*bool*/ ISteamApps_BIsAppInstalled( uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsAppInstalled(_ptr, appID); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamApps_GetAppOwner() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetAppOwner(_ptr); - } - public virtual IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetLaunchQueryParam(_ptr, pchKey); - } - public virtual bool /*bool*/ ISteamApps_GetDlcDownloadProgress( uint nAppID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetDlcDownloadProgress(_ptr, nAppID, out punBytesDownloaded, out punBytesTotal); - } - public virtual int /*int*/ ISteamApps_GetAppBuildId() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetAppBuildId(_ptr); - } - public virtual void /*void*/ ISteamApps_RequestAllProofOfPurchaseKeys() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - Native.SteamAPI_ISteamApps_RequestAllProofOfPurchaseKeys(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamApps_GetFileDetails( string /*const char **/ pszFileName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetFileDetails(_ptr, pszFileName); - } - public virtual int /*int*/ ISteamApps_GetLaunchCommandLine( System.Text.StringBuilder /*char **/ pszCommandLine, int /*int*/ cubCommandLine ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetLaunchCommandLine(_ptr, pszCommandLine, cubCommandLine); - } - public virtual bool /*bool*/ ISteamApps_BIsSubscribedFromFamilySharing() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsSubscribedFromFamilySharing(_ptr); - } - - public virtual bool /*bool*/ ISteamNetworking_SendP2PPacket( ulong steamIDRemote, IntPtr /*const void **/ pubData, uint /*uint32*/ cubData, P2PSend /*EP2PSend*/ eP2PSendType, int /*int*/ nChannel ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_SendP2PPacket(_ptr, steamIDRemote, pubData, cubData, eP2PSendType, nChannel); - } - public virtual bool /*bool*/ ISteamNetworking_IsP2PPacketAvailable( out uint /*uint32 **/ pcubMsgSize, int /*int*/ nChannel ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_IsP2PPacketAvailable(_ptr, out pcubMsgSize, nChannel); - } - public virtual bool /*bool*/ ISteamNetworking_ReadP2PPacket( IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, out ulong psteamIDRemote, int /*int*/ nChannel ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_ReadP2PPacket(_ptr, pubDest, cubDest, out pcubMsgSize, out psteamIDRemote, nChannel); - } - public virtual bool /*bool*/ ISteamNetworking_AcceptP2PSessionWithUser( ulong steamIDRemote ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser(_ptr, steamIDRemote); - } - public virtual bool /*bool*/ ISteamNetworking_CloseP2PSessionWithUser( ulong steamIDRemote ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CloseP2PSessionWithUser(_ptr, steamIDRemote); - } - public virtual bool /*bool*/ ISteamNetworking_CloseP2PChannelWithUser( ulong steamIDRemote, int /*int*/ nChannel ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CloseP2PChannelWithUser(_ptr, steamIDRemote, nChannel); - } - public virtual bool /*bool*/ ISteamNetworking_GetP2PSessionState( ulong steamIDRemote, ref P2PSessionState_t /*struct P2PSessionState_t **/ pConnectionState ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - var pConnectionState_ps = new P2PSessionState_t.Pack4(); - var ret = Native.SteamAPI_ISteamNetworking_GetP2PSessionState(_ptr, steamIDRemote, ref pConnectionState_ps); - pConnectionState = pConnectionState_ps; - return ret; - } - public virtual bool /*bool*/ ISteamNetworking_AllowP2PPacketRelay( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllow ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_AllowP2PPacketRelay(_ptr, bAllow); - } - public virtual SNetListenSocket_t /*(SNetListenSocket_t)*/ ISteamNetworking_CreateListenSocket( int /*int*/ nVirtualP2PPort, uint /*uint32*/ nIP, ushort /*uint16*/ nPort, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CreateListenSocket(_ptr, nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay); - } - public virtual SNetSocket_t /*(SNetSocket_t)*/ ISteamNetworking_CreateP2PConnectionSocket( ulong steamIDTarget, int /*int*/ nVirtualPort, int /*int*/ nTimeoutSec, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CreateP2PConnectionSocket(_ptr, steamIDTarget, nVirtualPort, nTimeoutSec, bAllowUseOfPacketRelay); - } - public virtual SNetSocket_t /*(SNetSocket_t)*/ ISteamNetworking_CreateConnectionSocket( uint /*uint32*/ nIP, ushort /*uint16*/ nPort, int /*int*/ nTimeoutSec ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CreateConnectionSocket(_ptr, nIP, nPort, nTimeoutSec); - } - public virtual bool /*bool*/ ISteamNetworking_DestroySocket( uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_DestroySocket(_ptr, hSocket, bNotifyRemoteEnd); - } - public virtual bool /*bool*/ ISteamNetworking_DestroyListenSocket( uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_DestroyListenSocket(_ptr, hSocket, bNotifyRemoteEnd); - } - public virtual bool /*bool*/ ISteamNetworking_SendDataOnSocket( uint hSocket, IntPtr /*void **/ pubData, uint /*uint32*/ cubData, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReliable ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_SendDataOnSocket(_ptr, hSocket, pubData, cubData, bReliable); - } - public virtual bool /*bool*/ ISteamNetworking_IsDataAvailableOnSocket( uint hSocket, out uint /*uint32 **/ pcubMsgSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_IsDataAvailableOnSocket(_ptr, hSocket, out pcubMsgSize); - } - public virtual bool /*bool*/ ISteamNetworking_RetrieveDataFromSocket( uint hSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_RetrieveDataFromSocket(_ptr, hSocket, pubDest, cubDest, out pcubMsgSize); - } - public virtual bool /*bool*/ ISteamNetworking_IsDataAvailable( uint hListenSocket, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_IsDataAvailable(_ptr, hListenSocket, out pcubMsgSize, ref phSocket); - } - public virtual bool /*bool*/ ISteamNetworking_RetrieveData( uint hListenSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_RetrieveData(_ptr, hListenSocket, pubDest, cubDest, out pcubMsgSize, ref phSocket); - } - public virtual bool /*bool*/ ISteamNetworking_GetSocketInfo( uint hSocket, out ulong pSteamIDRemote, IntPtr /*int **/ peSocketStatus, out uint /*uint32 **/ punIPRemote, out ushort /*uint16 **/ punPortRemote ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_GetSocketInfo(_ptr, hSocket, out pSteamIDRemote, peSocketStatus, out punIPRemote, out punPortRemote); - } - public virtual bool /*bool*/ ISteamNetworking_GetListenSocketInfo( uint hListenSocket, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_GetListenSocketInfo(_ptr, hListenSocket, out pnIP, out pnPort); - } - public virtual SNetSocketConnectionType /*ESNetSocketConnectionType*/ ISteamNetworking_GetSocketConnectionType( uint hSocket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_GetSocketConnectionType(_ptr, hSocket); - } - public virtual int /*int*/ ISteamNetworking_GetMaxPacketSize( uint hSocket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_GetMaxPacketSize(_ptr, hSocket); - } - - public virtual ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_WriteScreenshot( IntPtr /*void **/ pubRGB, uint /*uint32*/ cubRGB, int /*int*/ nWidth, int /*int*/ nHeight ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_WriteScreenshot(_ptr, pubRGB, cubRGB, nWidth, nHeight); - } - public virtual ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_AddScreenshotToLibrary( string /*const char **/ pchFilename, string /*const char **/ pchThumbnailFilename, int /*int*/ nWidth, int /*int*/ nHeight ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_AddScreenshotToLibrary(_ptr, pchFilename, pchThumbnailFilename, nWidth, nHeight); - } - public virtual void /*void*/ ISteamScreenshots_TriggerScreenshot() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - Native.SteamAPI_ISteamScreenshots_TriggerScreenshot(_ptr); - } - public virtual void /*void*/ ISteamScreenshots_HookScreenshots( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHook ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - Native.SteamAPI_ISteamScreenshots_HookScreenshots(_ptr, bHook); - } - public virtual bool /*bool*/ ISteamScreenshots_SetLocation( uint hScreenshot, string /*const char **/ pchLocation ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_SetLocation(_ptr, hScreenshot, pchLocation); - } - public virtual bool /*bool*/ ISteamScreenshots_TagUser( uint hScreenshot, ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_TagUser(_ptr, hScreenshot, steamID); - } - public virtual bool /*bool*/ ISteamScreenshots_TagPublishedFile( uint hScreenshot, ulong unPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_TagPublishedFile(_ptr, hScreenshot, unPublishedFileID); - } - public virtual bool /*bool*/ ISteamScreenshots_IsScreenshotsHooked() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_IsScreenshotsHooked(_ptr); - } - public virtual ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_AddVRScreenshotToLibrary( VRScreenshotType /*EVRScreenshotType*/ eType, string /*const char **/ pchFilename, string /*const char **/ pchVRFilename ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_AddVRScreenshotToLibrary(_ptr, eType, pchFilename, pchVRFilename); - } - - public virtual bool /*bool*/ ISteamMusic_BIsEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - return Native.SteamAPI_ISteamMusic_BIsEnabled(_ptr); - } - public virtual bool /*bool*/ ISteamMusic_BIsPlaying() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - return Native.SteamAPI_ISteamMusic_BIsPlaying(_ptr); - } - public virtual AudioPlayback_Status /*AudioPlayback_Status*/ ISteamMusic_GetPlaybackStatus() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - return Native.SteamAPI_ISteamMusic_GetPlaybackStatus(_ptr); - } - public virtual void /*void*/ ISteamMusic_Play() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_Play(_ptr); - } - public virtual void /*void*/ ISteamMusic_Pause() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_Pause(_ptr); - } - public virtual void /*void*/ ISteamMusic_PlayPrevious() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_PlayPrevious(_ptr); - } - public virtual void /*void*/ ISteamMusic_PlayNext() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_PlayNext(_ptr); - } - public virtual void /*void*/ ISteamMusic_SetVolume( float /*float*/ flVolume ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_SetVolume(_ptr, flVolume); - } - public virtual float /*float*/ ISteamMusic_GetVolume() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - return Native.SteamAPI_ISteamMusic_GetVolume(_ptr); - } - - public virtual bool /*bool*/ ISteamMusicRemote_RegisterSteamMusicRemote( string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote(_ptr, pchName); - } - public virtual bool /*bool*/ ISteamMusicRemote_DeregisterSteamMusicRemote() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_BIsCurrentMusicRemote() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_BActivationSuccess( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_BActivationSuccess(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetDisplayName( string /*const char **/ pchDisplayName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetDisplayName(_ptr, pchDisplayName); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetPNGIcon_64x64( IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64(_ptr, pvBuffer, cbBufferLength); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnablePlayPrevious( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnablePlayPrevious(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnablePlayNext( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnablePlayNext(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnableShuffled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnableShuffled(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnableLooped( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnableLooped(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnableQueue( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnableQueue(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnablePlaylists( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnablePlaylists(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdatePlaybackStatus( AudioPlayback_Status /*AudioPlayback_Status*/ nStatus ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus(_ptr, nStatus); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateShuffled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateShuffled(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateLooped( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateLooped(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateVolume( float /*float*/ flValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateVolume(_ptr, flValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_CurrentEntryWillChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_CurrentEntryWillChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_CurrentEntryIsAvailable( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAvailable ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable(_ptr, bAvailable); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryText( string /*const char **/ pchText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText(_ptr, pchText); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds( int /*int*/ nValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds(_ptr, nValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryCoverArt( IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt(_ptr, pvBuffer, cbBufferLength); - } - public virtual bool /*bool*/ ISteamMusicRemote_CurrentEntryDidChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_CurrentEntryDidChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_QueueWillChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_QueueWillChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_ResetQueueEntries() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_ResetQueueEntries(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetQueueEntry( int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetQueueEntry(_ptr, nID, nPosition, pchEntryText); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetCurrentQueueEntry( int /*int*/ nID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry(_ptr, nID); - } - public virtual bool /*bool*/ ISteamMusicRemote_QueueDidChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_QueueDidChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_PlaylistWillChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_PlaylistWillChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_ResetPlaylistEntries() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_ResetPlaylistEntries(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetPlaylistEntry( int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetPlaylistEntry(_ptr, nID, nPosition, pchEntryText); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetCurrentPlaylistEntry( int /*int*/ nID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry(_ptr, nID); - } - public virtual bool /*bool*/ ISteamMusicRemote_PlaylistDidChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_PlaylistDidChange(_ptr); - } - - public virtual HTTPRequestHandle /*(HTTPRequestHandle)*/ ISteamHTTP_CreateHTTPRequest( HTTPMethod /*EHTTPMethod*/ eHTTPRequestMethod, string /*const char **/ pchAbsoluteURL ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_CreateHTTPRequest(_ptr, eHTTPRequestMethod, pchAbsoluteURL); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestContextValue( uint hRequest, ulong /*uint64*/ ulContextValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestContextValue(_ptr, hRequest, ulContextValue); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestNetworkActivityTimeout( uint hRequest, uint /*uint32*/ unTimeoutSeconds ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout(_ptr, hRequest, unTimeoutSeconds); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestHeaderValue( uint hRequest, string /*const char **/ pchHeaderName, string /*const char **/ pchHeaderValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue(_ptr, hRequest, pchHeaderName, pchHeaderValue); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestGetOrPostParameter( uint hRequest, string /*const char **/ pchParamName, string /*const char **/ pchParamValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter(_ptr, hRequest, pchParamName, pchParamValue); - } - public virtual bool /*bool*/ ISteamHTTP_SendHTTPRequest( uint hRequest, ref ulong pCallHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SendHTTPRequest(_ptr, hRequest, ref pCallHandle); - } - public virtual bool /*bool*/ ISteamHTTP_SendHTTPRequestAndStreamResponse( uint hRequest, ref ulong pCallHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse(_ptr, hRequest, ref pCallHandle); - } - public virtual bool /*bool*/ ISteamHTTP_DeferHTTPRequest( uint hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_DeferHTTPRequest(_ptr, hRequest); - } - public virtual bool /*bool*/ ISteamHTTP_PrioritizeHTTPRequest( uint hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_PrioritizeHTTPRequest(_ptr, hRequest); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseHeaderSize( uint hRequest, string /*const char **/ pchHeaderName, out uint /*uint32 **/ unResponseHeaderSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize(_ptr, hRequest, pchHeaderName, out unResponseHeaderSize); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseHeaderValue( uint hRequest, string /*const char **/ pchHeaderName, out byte /*uint8 **/ pHeaderValueBuffer, uint /*uint32*/ unBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue(_ptr, hRequest, pchHeaderName, out pHeaderValueBuffer, unBufferSize); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseBodySize( uint hRequest, out uint /*uint32 **/ unBodySize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPResponseBodySize(_ptr, hRequest, out unBodySize); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseBodyData( uint hRequest, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPResponseBodyData(_ptr, hRequest, out pBodyDataBuffer, unBufferSize); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPStreamingResponseBodyData( uint hRequest, uint /*uint32*/ cOffset, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData(_ptr, hRequest, cOffset, out pBodyDataBuffer, unBufferSize); - } - public virtual bool /*bool*/ ISteamHTTP_ReleaseHTTPRequest( uint hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_ReleaseHTTPRequest(_ptr, hRequest); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPDownloadProgressPct( uint hRequest, out float /*float **/ pflPercentOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct(_ptr, hRequest, out pflPercentOut); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestRawPostBody( uint hRequest, string /*const char **/ pchContentType, out byte /*uint8 **/ pubBody, uint /*uint32*/ unBodyLen ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody(_ptr, hRequest, pchContentType, out pubBody, unBodyLen); - } - public virtual HTTPCookieContainerHandle /*(HTTPCookieContainerHandle)*/ ISteamHTTP_CreateCookieContainer( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowResponsesToModify ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_CreateCookieContainer(_ptr, bAllowResponsesToModify); - } - public virtual bool /*bool*/ ISteamHTTP_ReleaseCookieContainer( uint hCookieContainer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_ReleaseCookieContainer(_ptr, hCookieContainer); - } - public virtual bool /*bool*/ ISteamHTTP_SetCookie( uint hCookieContainer, string /*const char **/ pchHost, string /*const char **/ pchUrl, string /*const char **/ pchCookie ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetCookie(_ptr, hCookieContainer, pchHost, pchUrl, pchCookie); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestCookieContainer( uint hRequest, uint hCookieContainer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer(_ptr, hRequest, hCookieContainer); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestUserAgentInfo( uint hRequest, string /*const char **/ pchUserAgentInfo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo(_ptr, hRequest, pchUserAgentInfo); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( uint hRequest, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireVerifiedCertificate ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate(_ptr, hRequest, bRequireVerifiedCertificate); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( uint hRequest, uint /*uint32*/ unMilliseconds ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS(_ptr, hRequest, unMilliseconds); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( uint hRequest, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbWasTimedOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut(_ptr, hRequest, ref pbWasTimedOut); - } - - public virtual bool /*bool*/ ISteamInput_Init() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_Init(_ptr); - } - public virtual bool /*bool*/ ISteamInput_Shutdown() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_Shutdown(_ptr); - } - public virtual void /*void*/ ISteamInput_RunFrame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_RunFrame(_ptr); - } - public virtual int /*int*/ ISteamInput_GetConnectedControllers( IntPtr /*InputHandle_t **/ handlesOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetConnectedControllers(_ptr, handlesOut); - } - public virtual InputActionSetHandle_t /*(InputActionSetHandle_t)*/ ISteamInput_GetActionSetHandle( string /*const char **/ pszActionSetName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetActionSetHandle(_ptr, pszActionSetName); - } - public virtual void /*void*/ ISteamInput_ActivateActionSet( ulong inputHandle, ulong actionSetHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_ActivateActionSet(_ptr, inputHandle, actionSetHandle); - } - public virtual InputActionSetHandle_t /*(InputActionSetHandle_t)*/ ISteamInput_GetCurrentActionSet( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetCurrentActionSet(_ptr, inputHandle); - } - public virtual void /*void*/ ISteamInput_ActivateActionSetLayer( ulong inputHandle, ulong actionSetLayerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_ActivateActionSetLayer(_ptr, inputHandle, actionSetLayerHandle); - } - public virtual void /*void*/ ISteamInput_DeactivateActionSetLayer( ulong inputHandle, ulong actionSetLayerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_DeactivateActionSetLayer(_ptr, inputHandle, actionSetLayerHandle); - } - public virtual void /*void*/ ISteamInput_DeactivateAllActionSetLayers( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_DeactivateAllActionSetLayers(_ptr, inputHandle); - } - public virtual int /*int*/ ISteamInput_GetActiveActionSetLayers( ulong inputHandle, IntPtr /*InputActionSetHandle_t **/ handlesOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetActiveActionSetLayers(_ptr, inputHandle, handlesOut); - } - public virtual InputDigitalActionHandle_t /*(InputDigitalActionHandle_t)*/ ISteamInput_GetDigitalActionHandle( string /*const char **/ pszActionName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetDigitalActionHandle(_ptr, pszActionName); - } - public virtual InputDigitalActionData_t /*struct InputDigitalActionData_t*/ ISteamInput_GetDigitalActionData( ulong inputHandle, ulong digitalActionHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetDigitalActionData(_ptr, inputHandle, digitalActionHandle); - } - public virtual int /*int*/ ISteamInput_GetDigitalActionOrigins( ulong inputHandle, ulong actionSetHandle, ulong digitalActionHandle, out InputActionOrigin /*EInputActionOrigin **/ originsOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetDigitalActionOrigins(_ptr, inputHandle, actionSetHandle, digitalActionHandle, out originsOut); - } - public virtual InputAnalogActionHandle_t /*(InputAnalogActionHandle_t)*/ ISteamInput_GetAnalogActionHandle( string /*const char **/ pszActionName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetAnalogActionHandle(_ptr, pszActionName); - } - public virtual InputAnalogActionData_t /*struct InputAnalogActionData_t*/ ISteamInput_GetAnalogActionData( ulong inputHandle, ulong analogActionHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetAnalogActionData(_ptr, inputHandle, analogActionHandle); - } - public virtual int /*int*/ ISteamInput_GetAnalogActionOrigins( ulong inputHandle, ulong actionSetHandle, ulong analogActionHandle, out InputActionOrigin /*EInputActionOrigin **/ originsOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetAnalogActionOrigins(_ptr, inputHandle, actionSetHandle, analogActionHandle, out originsOut); - } - public virtual IntPtr ISteamInput_GetGlyphForActionOrigin( InputActionOrigin /*EInputActionOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetGlyphForActionOrigin(_ptr, eOrigin); - } - public virtual IntPtr ISteamInput_GetStringForActionOrigin( InputActionOrigin /*EInputActionOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetStringForActionOrigin(_ptr, eOrigin); - } - public virtual void /*void*/ ISteamInput_StopAnalogActionMomentum( ulong inputHandle, ulong eAction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_StopAnalogActionMomentum(_ptr, inputHandle, eAction); - } - public virtual InputMotionData_t /*struct InputMotionData_t*/ ISteamInput_GetMotionData( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetMotionData(_ptr, inputHandle); - } - public virtual void /*void*/ ISteamInput_TriggerVibration( ulong inputHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_TriggerVibration(_ptr, inputHandle, usLeftSpeed, usRightSpeed); - } - public virtual void /*void*/ ISteamInput_SetLEDColor( ulong inputHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_SetLEDColor(_ptr, inputHandle, nColorR, nColorG, nColorB, nFlags); - } - public virtual void /*void*/ ISteamInput_TriggerHapticPulse( ulong inputHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_TriggerHapticPulse(_ptr, inputHandle, eTargetPad, usDurationMicroSec); - } - public virtual void /*void*/ ISteamInput_TriggerRepeatedHapticPulse( ulong inputHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_TriggerRepeatedHapticPulse(_ptr, inputHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags); - } - public virtual bool /*bool*/ ISteamInput_ShowBindingPanel( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_ShowBindingPanel(_ptr, inputHandle); - } - public virtual SteamInputType /*ESteamInputType*/ ISteamInput_GetInputTypeForHandle( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetInputTypeForHandle(_ptr, inputHandle); - } - public virtual InputHandle_t /*(InputHandle_t)*/ ISteamInput_GetControllerForGamepadIndex( int /*int*/ nIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetControllerForGamepadIndex(_ptr, nIndex); - } - public virtual int /*int*/ ISteamInput_GetGamepadIndexForController( ulong ulinputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetGamepadIndexForController(_ptr, ulinputHandle); - } - public virtual IntPtr ISteamInput_GetStringForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetStringForXboxOrigin(_ptr, eOrigin); - } - public virtual IntPtr ISteamInput_GetGlyphForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetGlyphForXboxOrigin(_ptr, eOrigin); - } - public virtual InputActionOrigin /*EInputActionOrigin*/ ISteamInput_GetActionOriginFromXboxOrigin( ulong inputHandle, XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetActionOriginFromXboxOrigin(_ptr, inputHandle, eOrigin); - } - public virtual InputActionOrigin /*EInputActionOrigin*/ ISteamInput_TranslateActionOrigin( SteamInputType /*ESteamInputType*/ eDestinationInputType, InputActionOrigin /*EInputActionOrigin*/ eSourceOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_TranslateActionOrigin(_ptr, eDestinationInputType, eSourceOrigin); - } - - public virtual bool /*bool*/ ISteamController_Init() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_Init(_ptr); - } - public virtual bool /*bool*/ ISteamController_Shutdown() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_Shutdown(_ptr); - } - public virtual void /*void*/ ISteamController_RunFrame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_RunFrame(_ptr); - } - public virtual int /*int*/ ISteamController_GetConnectedControllers( IntPtr /*ControllerHandle_t **/ handlesOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetConnectedControllers(_ptr, handlesOut); - } - public virtual ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ ISteamController_GetActionSetHandle( string /*const char **/ pszActionSetName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetActionSetHandle(_ptr, pszActionSetName); - } - public virtual void /*void*/ ISteamController_ActivateActionSet( ulong controllerHandle, ulong actionSetHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_ActivateActionSet(_ptr, controllerHandle, actionSetHandle); - } - public virtual ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ ISteamController_GetCurrentActionSet( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetCurrentActionSet(_ptr, controllerHandle); - } - public virtual void /*void*/ ISteamController_ActivateActionSetLayer( ulong controllerHandle, ulong actionSetLayerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_ActivateActionSetLayer(_ptr, controllerHandle, actionSetLayerHandle); - } - public virtual void /*void*/ ISteamController_DeactivateActionSetLayer( ulong controllerHandle, ulong actionSetLayerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_DeactivateActionSetLayer(_ptr, controllerHandle, actionSetLayerHandle); - } - public virtual void /*void*/ ISteamController_DeactivateAllActionSetLayers( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_DeactivateAllActionSetLayers(_ptr, controllerHandle); - } - public virtual int /*int*/ ISteamController_GetActiveActionSetLayers( ulong controllerHandle, IntPtr /*ControllerActionSetHandle_t **/ handlesOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetActiveActionSetLayers(_ptr, controllerHandle, handlesOut); - } - public virtual ControllerDigitalActionHandle_t /*(ControllerDigitalActionHandle_t)*/ ISteamController_GetDigitalActionHandle( string /*const char **/ pszActionName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetDigitalActionHandle(_ptr, pszActionName); - } - public virtual InputDigitalActionData_t /*struct InputDigitalActionData_t*/ ISteamController_GetDigitalActionData( ulong controllerHandle, ulong digitalActionHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetDigitalActionData(_ptr, controllerHandle, digitalActionHandle); - } - public virtual int /*int*/ ISteamController_GetDigitalActionOrigins( ulong controllerHandle, ulong actionSetHandle, ulong digitalActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetDigitalActionOrigins(_ptr, controllerHandle, actionSetHandle, digitalActionHandle, out originsOut); - } - public virtual ControllerAnalogActionHandle_t /*(ControllerAnalogActionHandle_t)*/ ISteamController_GetAnalogActionHandle( string /*const char **/ pszActionName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetAnalogActionHandle(_ptr, pszActionName); - } - public virtual InputAnalogActionData_t /*struct InputAnalogActionData_t*/ ISteamController_GetAnalogActionData( ulong controllerHandle, ulong analogActionHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetAnalogActionData(_ptr, controllerHandle, analogActionHandle); - } - public virtual int /*int*/ ISteamController_GetAnalogActionOrigins( ulong controllerHandle, ulong actionSetHandle, ulong analogActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetAnalogActionOrigins(_ptr, controllerHandle, actionSetHandle, analogActionHandle, out originsOut); - } - public virtual IntPtr ISteamController_GetGlyphForActionOrigin( ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetGlyphForActionOrigin(_ptr, eOrigin); - } - public virtual IntPtr ISteamController_GetStringForActionOrigin( ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetStringForActionOrigin(_ptr, eOrigin); - } - public virtual void /*void*/ ISteamController_StopAnalogActionMomentum( ulong controllerHandle, ulong eAction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_StopAnalogActionMomentum(_ptr, controllerHandle, eAction); - } - public virtual InputMotionData_t /*struct InputMotionData_t*/ ISteamController_GetMotionData( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetMotionData(_ptr, controllerHandle); - } - public virtual void /*void*/ ISteamController_TriggerHapticPulse( ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_TriggerHapticPulse(_ptr, controllerHandle, eTargetPad, usDurationMicroSec); - } - public virtual void /*void*/ ISteamController_TriggerRepeatedHapticPulse( ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_TriggerRepeatedHapticPulse(_ptr, controllerHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags); - } - public virtual void /*void*/ ISteamController_TriggerVibration( ulong controllerHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_TriggerVibration(_ptr, controllerHandle, usLeftSpeed, usRightSpeed); - } - public virtual void /*void*/ ISteamController_SetLEDColor( ulong controllerHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_SetLEDColor(_ptr, controllerHandle, nColorR, nColorG, nColorB, nFlags); - } - public virtual bool /*bool*/ ISteamController_ShowBindingPanel( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_ShowBindingPanel(_ptr, controllerHandle); - } - public virtual SteamInputType /*ESteamInputType*/ ISteamController_GetInputTypeForHandle( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetInputTypeForHandle(_ptr, controllerHandle); - } - public virtual ControllerHandle_t /*(ControllerHandle_t)*/ ISteamController_GetControllerForGamepadIndex( int /*int*/ nIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetControllerForGamepadIndex(_ptr, nIndex); - } - public virtual int /*int*/ ISteamController_GetGamepadIndexForController( ulong ulControllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetGamepadIndexForController(_ptr, ulControllerHandle); - } - public virtual IntPtr ISteamController_GetStringForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetStringForXboxOrigin(_ptr, eOrigin); - } - public virtual IntPtr ISteamController_GetGlyphForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetGlyphForXboxOrigin(_ptr, eOrigin); - } - public virtual ControllerActionOrigin /*EControllerActionOrigin*/ ISteamController_GetActionOriginFromXboxOrigin( ulong controllerHandle, XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetActionOriginFromXboxOrigin(_ptr, controllerHandle, eOrigin); - } - public virtual ControllerActionOrigin /*EControllerActionOrigin*/ ISteamController_TranslateActionOrigin( SteamInputType /*ESteamInputType*/ eDestinationInputType, ControllerActionOrigin /*EControllerActionOrigin*/ eSourceOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_TranslateActionOrigin(_ptr, eDestinationInputType, eSourceOrigin); - } - - public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryUserUGCRequest( uint unAccountID, UserUGCList /*EUserUGCList*/ eListType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingUGCType, UserUGCListSortOrder /*EUserUGCListSortOrder*/ eSortOrder, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateQueryUserUGCRequest(_ptr, unAccountID, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID, nConsumerAppID, unPage); - } - public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryAllUGCRequest( UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateQueryAllUGCRequest(_ptr, eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage); - } - public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryAllUGCRequest0( UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, string /*const char **/ pchCursor ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateQueryAllUGCRequest0(_ptr, eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, pchCursor); - } - public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryUGCDetailsRequest( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest(_ptr, pvecPublishedFileID, unNumPublishedFileIDs); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SendQueryUGCRequest( ulong handle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SendQueryUGCRequest(_ptr, handle); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCResult( ulong handle, uint /*uint32*/ index, ref SteamUGCDetails_t /*struct SteamUGCDetails_t **/ pDetails ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - var pDetails_ps = new SteamUGCDetails_t.Pack4(); - var ret = Native.SteamAPI_ISteamUGC_GetQueryUGCResult(_ptr, handle, index, ref pDetails_ps); - pDetails = pDetails_ps; - return ret; - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCPreviewURL( ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchURL, uint /*uint32*/ cchURLSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCPreviewURL(_ptr, handle, index, pchURL, cchURLSize); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCMetadata( ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchMetadata, uint /*uint32*/ cchMetadatasize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCMetadata(_ptr, handle, index, pchMetadata, cchMetadatasize); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCChildren( ulong handle, uint /*uint32*/ index, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCChildren(_ptr, handle, index, pvecPublishedFileID, cMaxEntries); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCStatistic( ulong handle, uint /*uint32*/ index, ItemStatistic /*EItemStatistic*/ eStatType, out ulong /*uint64 **/ pStatValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCStatistic(_ptr, handle, index, eStatType, out pStatValue); - } - public virtual uint /*uint32*/ ISteamUGC_GetQueryUGCNumAdditionalPreviews( ulong handle, uint /*uint32*/ index ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews(_ptr, handle, index); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCAdditionalPreview( ulong handle, uint /*uint32*/ index, uint /*uint32*/ previewIndex, System.Text.StringBuilder /*char **/ pchURLOrVideoID, uint /*uint32*/ cchURLSize, System.Text.StringBuilder /*char **/ pchOriginalFileName, uint /*uint32*/ cchOriginalFileNameSize, out ItemPreviewType /*EItemPreviewType **/ pPreviewType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview(_ptr, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, out pPreviewType); - } - public virtual uint /*uint32*/ ISteamUGC_GetQueryUGCNumKeyValueTags( ulong handle, uint /*uint32*/ index ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags(_ptr, handle, index); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCKeyValueTag( ulong handle, uint /*uint32*/ index, uint /*uint32*/ keyValueTagIndex, System.Text.StringBuilder /*char **/ pchKey, uint /*uint32*/ cchKeySize, System.Text.StringBuilder /*char **/ pchValue, uint /*uint32*/ cchValueSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag(_ptr, handle, index, keyValueTagIndex, pchKey, cchKeySize, pchValue, cchValueSize); - } - public virtual bool /*bool*/ ISteamUGC_ReleaseQueryUGCRequest( ulong handle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_ReleaseQueryUGCRequest(_ptr, handle); - } - public virtual bool /*bool*/ ISteamUGC_AddRequiredTag( ulong handle, string /*const char **/ pTagName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddRequiredTag(_ptr, handle, pTagName); - } - public virtual bool /*bool*/ ISteamUGC_AddExcludedTag( ulong handle, string /*const char **/ pTagName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddExcludedTag(_ptr, handle, pTagName); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnOnlyIDs( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnOnlyIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnOnlyIDs(_ptr, handle, bReturnOnlyIDs); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnKeyValueTags( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnKeyValueTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnKeyValueTags(_ptr, handle, bReturnKeyValueTags); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnLongDescription( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnLongDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnLongDescription(_ptr, handle, bReturnLongDescription); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnMetadata( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnMetadata ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnMetadata(_ptr, handle, bReturnMetadata); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnChildren( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnChildren ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnChildren(_ptr, handle, bReturnChildren); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnAdditionalPreviews( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnAdditionalPreviews ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnAdditionalPreviews(_ptr, handle, bReturnAdditionalPreviews); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnTotalOnly( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnTotalOnly ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnTotalOnly(_ptr, handle, bReturnTotalOnly); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnPlaytimeStats( ulong handle, uint /*uint32*/ unDays ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnPlaytimeStats(_ptr, handle, unDays); - } - public virtual bool /*bool*/ ISteamUGC_SetLanguage( ulong handle, string /*const char **/ pchLanguage ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetLanguage(_ptr, handle, pchLanguage); - } - public virtual bool /*bool*/ ISteamUGC_SetAllowCachedResponse( ulong handle, uint /*uint32*/ unMaxAgeSeconds ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetAllowCachedResponse(_ptr, handle, unMaxAgeSeconds); - } - public virtual bool /*bool*/ ISteamUGC_SetCloudFileNameFilter( ulong handle, string /*const char **/ pMatchCloudFileName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetCloudFileNameFilter(_ptr, handle, pMatchCloudFileName); - } - public virtual bool /*bool*/ ISteamUGC_SetMatchAnyTag( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMatchAnyTag ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetMatchAnyTag(_ptr, handle, bMatchAnyTag); - } - public virtual bool /*bool*/ ISteamUGC_SetSearchText( ulong handle, string /*const char **/ pSearchText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetSearchText(_ptr, handle, pSearchText); - } - public virtual bool /*bool*/ ISteamUGC_SetRankedByTrendDays( ulong handle, uint /*uint32*/ unDays ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetRankedByTrendDays(_ptr, handle, unDays); - } - public virtual bool /*bool*/ ISteamUGC_AddRequiredKeyValueTag( ulong handle, string /*const char **/ pKey, string /*const char **/ pValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddRequiredKeyValueTag(_ptr, handle, pKey, pValue); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RequestUGCDetails( ulong nPublishedFileID, uint /*uint32*/ unMaxAgeSeconds ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RequestUGCDetails(_ptr, nPublishedFileID, unMaxAgeSeconds); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_CreateItem( uint nConsumerAppId, WorkshopFileType /*EWorkshopFileType*/ eFileType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateItem(_ptr, nConsumerAppId, eFileType); - } - public virtual UGCUpdateHandle_t /*(UGCUpdateHandle_t)*/ ISteamUGC_StartItemUpdate( uint nConsumerAppId, ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_StartItemUpdate(_ptr, nConsumerAppId, nPublishedFileID); - } - public virtual bool /*bool*/ ISteamUGC_SetItemTitle( ulong handle, string /*const char **/ pchTitle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemTitle(_ptr, handle, pchTitle); - } - public virtual bool /*bool*/ ISteamUGC_SetItemDescription( ulong handle, string /*const char **/ pchDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemDescription(_ptr, handle, pchDescription); - } - public virtual bool /*bool*/ ISteamUGC_SetItemUpdateLanguage( ulong handle, string /*const char **/ pchLanguage ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemUpdateLanguage(_ptr, handle, pchLanguage); - } - public virtual bool /*bool*/ ISteamUGC_SetItemMetadata( ulong handle, string /*const char **/ pchMetaData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemMetadata(_ptr, handle, pchMetaData); - } - public virtual bool /*bool*/ ISteamUGC_SetItemVisibility( ulong handle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemVisibility(_ptr, handle, eVisibility); - } - public virtual bool /*bool*/ ISteamUGC_SetItemTags( ulong updateHandle, ref SteamParamStringArray_t /*const struct SteamParamStringArray_t **/ pTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack4(); - var ret = Native.SteamAPI_ISteamUGC_SetItemTags(_ptr, updateHandle, ref pTags_ps); - pTags = pTags_ps; - return ret; - } - public virtual bool /*bool*/ ISteamUGC_SetItemContent( ulong handle, string /*const char **/ pszContentFolder ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemContent(_ptr, handle, pszContentFolder); - } - public virtual bool /*bool*/ ISteamUGC_SetItemPreview( ulong handle, string /*const char **/ pszPreviewFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemPreview(_ptr, handle, pszPreviewFile); - } - public virtual bool /*bool*/ ISteamUGC_SetAllowLegacyUpload( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowLegacyUpload ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetAllowLegacyUpload(_ptr, handle, bAllowLegacyUpload); - } - public virtual bool /*bool*/ ISteamUGC_RemoveItemKeyValueTags( ulong handle, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveItemKeyValueTags(_ptr, handle, pchKey); - } - public virtual bool /*bool*/ ISteamUGC_AddItemKeyValueTag( ulong handle, string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddItemKeyValueTag(_ptr, handle, pchKey, pchValue); - } - public virtual bool /*bool*/ ISteamUGC_AddItemPreviewFile( ulong handle, string /*const char **/ pszPreviewFile, ItemPreviewType /*EItemPreviewType*/ type ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddItemPreviewFile(_ptr, handle, pszPreviewFile, type); - } - public virtual bool /*bool*/ ISteamUGC_AddItemPreviewVideo( ulong handle, string /*const char **/ pszVideoID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddItemPreviewVideo(_ptr, handle, pszVideoID); - } - public virtual bool /*bool*/ ISteamUGC_UpdateItemPreviewFile( ulong handle, uint /*uint32*/ index, string /*const char **/ pszPreviewFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_UpdateItemPreviewFile(_ptr, handle, index, pszPreviewFile); - } - public virtual bool /*bool*/ ISteamUGC_UpdateItemPreviewVideo( ulong handle, uint /*uint32*/ index, string /*const char **/ pszVideoID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_UpdateItemPreviewVideo(_ptr, handle, index, pszVideoID); - } - public virtual bool /*bool*/ ISteamUGC_RemoveItemPreview( ulong handle, uint /*uint32*/ index ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveItemPreview(_ptr, handle, index); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SubmitItemUpdate( ulong handle, string /*const char **/ pchChangeNote ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SubmitItemUpdate(_ptr, handle, pchChangeNote); - } - public virtual ItemUpdateStatus /*EItemUpdateStatus*/ ISteamUGC_GetItemUpdateProgress( ulong handle, out ulong /*uint64 **/ punBytesProcessed, out ulong /*uint64 **/ punBytesTotal ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetItemUpdateProgress(_ptr, handle, out punBytesProcessed, out punBytesTotal); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SetUserItemVote( ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetUserItemVote(_ptr, nPublishedFileID, bVoteUp); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_GetUserItemVote( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetUserItemVote(_ptr, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_AddItemToFavorites( uint nAppId, ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddItemToFavorites(_ptr, nAppId, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RemoveItemFromFavorites( uint nAppId, ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveItemFromFavorites(_ptr, nAppId, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SubscribeItem( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SubscribeItem(_ptr, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_UnsubscribeItem( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_UnsubscribeItem(_ptr, nPublishedFileID); - } - public virtual uint /*uint32*/ ISteamUGC_GetNumSubscribedItems() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetNumSubscribedItems(_ptr); - } - public virtual uint /*uint32*/ ISteamUGC_GetSubscribedItems( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetSubscribedItems(_ptr, pvecPublishedFileID, cMaxEntries); - } - public virtual uint /*uint32*/ ISteamUGC_GetItemState( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetItemState(_ptr, nPublishedFileID); - } - public virtual bool /*bool*/ ISteamUGC_GetItemInstallInfo( ulong nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderSize, out uint /*uint32 **/ punTimeStamp ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetItemInstallInfo(_ptr, nPublishedFileID, out punSizeOnDisk, pchFolder, cchFolderSize, out punTimeStamp); - } - public virtual bool /*bool*/ ISteamUGC_GetItemDownloadInfo( ulong nPublishedFileID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetItemDownloadInfo(_ptr, nPublishedFileID, out punBytesDownloaded, out punBytesTotal); - } - public virtual bool /*bool*/ ISteamUGC_DownloadItem( ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHighPriority ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_DownloadItem(_ptr, nPublishedFileID, bHighPriority); - } - public virtual bool /*bool*/ ISteamUGC_BInitWorkshopForGameServer( uint unWorkshopDepotID, string /*const char **/ pszFolder ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_BInitWorkshopForGameServer(_ptr, unWorkshopDepotID, pszFolder); - } - public virtual void /*void*/ ISteamUGC_SuspendDownloads( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSuspend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - Native.SteamAPI_ISteamUGC_SuspendDownloads(_ptr, bSuspend); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StartPlaytimeTracking( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_StartPlaytimeTracking(_ptr, pvecPublishedFileID, unNumPublishedFileIDs); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StopPlaytimeTracking( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_StopPlaytimeTracking(_ptr, pvecPublishedFileID, unNumPublishedFileIDs); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StopPlaytimeTrackingForAllItems() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_AddDependency( ulong nParentPublishedFileID, ulong nChildPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddDependency(_ptr, nParentPublishedFileID, nChildPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RemoveDependency( ulong nParentPublishedFileID, ulong nChildPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveDependency(_ptr, nParentPublishedFileID, nChildPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_AddAppDependency( ulong nPublishedFileID, uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddAppDependency(_ptr, nPublishedFileID, nAppID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RemoveAppDependency( ulong nPublishedFileID, uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveAppDependency(_ptr, nPublishedFileID, nAppID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_GetAppDependencies( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetAppDependencies(_ptr, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_DeleteItem( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_DeleteItem(_ptr, nPublishedFileID); - } - - public virtual uint /*uint32*/ ISteamAppList_GetNumInstalledApps() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetNumInstalledApps(_ptr); - } - public virtual uint /*uint32*/ ISteamAppList_GetInstalledApps( IntPtr /*AppId_t **/ pvecAppID, uint /*uint32*/ unMaxAppIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetInstalledApps(_ptr, pvecAppID, unMaxAppIDs); - } - public virtual int /*int*/ ISteamAppList_GetAppName( uint nAppID, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetAppName(_ptr, nAppID, pchName, cchNameMax); - } - public virtual int /*int*/ ISteamAppList_GetAppInstallDir( uint nAppID, System.Text.StringBuilder /*char **/ pchDirectory, int /*int*/ cchNameMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetAppInstallDir(_ptr, nAppID, pchDirectory, cchNameMax); - } - public virtual int /*int*/ ISteamAppList_GetAppBuildId( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetAppBuildId(_ptr, nAppID); - } - - public virtual void /*void*/ ISteamHTMLSurface_DestructISteamHTMLSurface() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface(_ptr); - } - public virtual bool /*bool*/ ISteamHTMLSurface_Init() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - return Native.SteamAPI_ISteamHTMLSurface_Init(_ptr); - } - public virtual bool /*bool*/ ISteamHTMLSurface_Shutdown() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - return Native.SteamAPI_ISteamHTMLSurface_Shutdown(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamHTMLSurface_CreateBrowser( string /*const char **/ pchUserAgent, string /*const char **/ pchUserCSS ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - return Native.SteamAPI_ISteamHTMLSurface_CreateBrowser(_ptr, pchUserAgent, pchUserCSS); - } - public virtual void /*void*/ ISteamHTMLSurface_RemoveBrowser( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_RemoveBrowser(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_LoadURL( uint unBrowserHandle, string /*const char **/ pchURL, string /*const char **/ pchPostData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_LoadURL(_ptr, unBrowserHandle, pchURL, pchPostData); - } - public virtual void /*void*/ ISteamHTMLSurface_SetSize( uint unBrowserHandle, uint /*uint32*/ unWidth, uint /*uint32*/ unHeight ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetSize(_ptr, unBrowserHandle, unWidth, unHeight); - } - public virtual void /*void*/ ISteamHTMLSurface_StopLoad( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_StopLoad(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_Reload( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_Reload(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_GoBack( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_GoBack(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_GoForward( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_GoForward(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_AddHeader( uint unBrowserHandle, string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_AddHeader(_ptr, unBrowserHandle, pchKey, pchValue); - } - public virtual void /*void*/ ISteamHTMLSurface_ExecuteJavascript( uint unBrowserHandle, string /*const char **/ pchScript ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_ExecuteJavascript(_ptr, unBrowserHandle, pchScript); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseUp( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseUp(_ptr, unBrowserHandle, eMouseButton); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseDown( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseDown(_ptr, unBrowserHandle, eMouseButton); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseDoubleClick( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseDoubleClick(_ptr, unBrowserHandle, eMouseButton); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseMove( uint unBrowserHandle, int /*int*/ x, int /*int*/ y ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseMove(_ptr, unBrowserHandle, x, y); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseWheel( uint unBrowserHandle, int /*int32*/ nDelta ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseWheel(_ptr, unBrowserHandle, nDelta); - } - public virtual void /*void*/ ISteamHTMLSurface_KeyDown( uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bIsSystemKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_KeyDown(_ptr, unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers, bIsSystemKey); - } - public virtual void /*void*/ ISteamHTMLSurface_KeyUp( uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_KeyUp(_ptr, unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers); - } - public virtual void /*void*/ ISteamHTMLSurface_KeyChar( uint unBrowserHandle, uint /*uint32*/ cUnicodeChar, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_KeyChar(_ptr, unBrowserHandle, cUnicodeChar, eHTMLKeyModifiers); - } - public virtual void /*void*/ ISteamHTMLSurface_SetHorizontalScroll( uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetHorizontalScroll(_ptr, unBrowserHandle, nAbsolutePixelScroll); - } - public virtual void /*void*/ ISteamHTMLSurface_SetVerticalScroll( uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetVerticalScroll(_ptr, unBrowserHandle, nAbsolutePixelScroll); - } - public virtual void /*void*/ ISteamHTMLSurface_SetKeyFocus( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHasKeyFocus ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetKeyFocus(_ptr, unBrowserHandle, bHasKeyFocus); - } - public virtual void /*void*/ ISteamHTMLSurface_ViewSource( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_ViewSource(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_CopyToClipboard( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_CopyToClipboard(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_PasteFromClipboard( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_PasteFromClipboard(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_Find( uint unBrowserHandle, string /*const char **/ pchSearchStr, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bCurrentlyInFind, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReverse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_Find(_ptr, unBrowserHandle, pchSearchStr, bCurrentlyInFind, bReverse); - } - public virtual void /*void*/ ISteamHTMLSurface_StopFind( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_StopFind(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_GetLinkAtPosition( uint unBrowserHandle, int /*int*/ x, int /*int*/ y ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_GetLinkAtPosition(_ptr, unBrowserHandle, x, y); - } - public virtual void /*void*/ ISteamHTMLSurface_SetCookie( string /*const char **/ pchHostname, string /*const char **/ pchKey, string /*const char **/ pchValue, string /*const char **/ pchPath, uint nExpires, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHTTPOnly ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetCookie(_ptr, pchHostname, pchKey, pchValue, pchPath, nExpires, bSecure, bHTTPOnly); - } - public virtual void /*void*/ ISteamHTMLSurface_SetPageScaleFactor( uint unBrowserHandle, float /*float*/ flZoom, int /*int*/ nPointX, int /*int*/ nPointY ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetPageScaleFactor(_ptr, unBrowserHandle, flZoom, nPointX, nPointY); - } - public virtual void /*void*/ ISteamHTMLSurface_SetBackgroundMode( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bBackgroundMode ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetBackgroundMode(_ptr, unBrowserHandle, bBackgroundMode); - } - public virtual void /*void*/ ISteamHTMLSurface_SetDPIScalingFactor( uint unBrowserHandle, float /*float*/ flDPIScaling ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor(_ptr, unBrowserHandle, flDPIScaling); - } - public virtual void /*void*/ ISteamHTMLSurface_OpenDeveloperTools( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_OpenDeveloperTools(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_AllowStartRequest( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_AllowStartRequest(_ptr, unBrowserHandle, bAllowed); - } - public virtual void /*void*/ ISteamHTMLSurface_JSDialogResponse( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bResult ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_JSDialogResponse(_ptr, unBrowserHandle, bResult); - } - - public virtual Result /*EResult*/ ISteamInventory_GetResultStatus( int resultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetResultStatus(_ptr, resultHandle); - } - public virtual bool /*bool*/ ISteamInventory_GetResultItems( int resultHandle, IntPtr /*struct SteamItemDetails_t **/ pOutItemsArray, out uint /*uint32 **/ punOutItemsArraySize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetResultItems(_ptr, resultHandle, pOutItemsArray, out punOutItemsArraySize); - } - public virtual bool /*bool*/ ISteamInventory_GetResultItemProperty( int resultHandle, uint /*uint32*/ unItemIndex, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetResultItemProperty(_ptr, resultHandle, unItemIndex, pchPropertyName, pchValueBuffer, out punValueBufferSizeOut); - } - public virtual uint /*uint32*/ ISteamInventory_GetResultTimestamp( int resultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetResultTimestamp(_ptr, resultHandle); - } - public virtual bool /*bool*/ ISteamInventory_CheckResultSteamID( int resultHandle, ulong steamIDExpected ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_CheckResultSteamID(_ptr, resultHandle, steamIDExpected); - } - public virtual void /*void*/ ISteamInventory_DestroyResult( int resultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - Native.SteamAPI_ISteamInventory_DestroyResult(_ptr, resultHandle); - } - public virtual bool /*bool*/ ISteamInventory_GetAllItems( ref int pResultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetAllItems(_ptr, ref pResultHandle); - } - public virtual bool /*bool*/ ISteamInventory_GetItemsByID( ref int pResultHandle, ulong[] pInstanceIDs, uint /*uint32*/ unCountInstanceIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemsByID(_ptr, ref pResultHandle, pInstanceIDs, unCountInstanceIDs); - } - public virtual bool /*bool*/ ISteamInventory_SerializeResult( int resultHandle, IntPtr /*void **/ pOutBuffer, out uint /*uint32 **/ punOutBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SerializeResult(_ptr, resultHandle, pOutBuffer, out punOutBufferSize); - } - public virtual bool /*bool*/ ISteamInventory_DeserializeResult( ref int pOutResultHandle, IntPtr /*const void **/ pBuffer, uint /*uint32*/ unBufferSize, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRESERVED_MUST_BE_FALSE ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_DeserializeResult(_ptr, ref pOutResultHandle, pBuffer, unBufferSize, bRESERVED_MUST_BE_FALSE); - } - public virtual bool /*bool*/ ISteamInventory_GenerateItems( ref int pResultHandle, int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GenerateItems(_ptr, ref pResultHandle, pArrayItemDefs, punArrayQuantity, unArrayLength); - } - public virtual bool /*bool*/ ISteamInventory_GrantPromoItems( ref int pResultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GrantPromoItems(_ptr, ref pResultHandle); - } - public virtual bool /*bool*/ ISteamInventory_AddPromoItem( ref int pResultHandle, int itemDef ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_AddPromoItem(_ptr, ref pResultHandle, itemDef); - } - public virtual bool /*bool*/ ISteamInventory_AddPromoItems( ref int pResultHandle, int[] pArrayItemDefs, uint /*uint32*/ unArrayLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_AddPromoItems(_ptr, ref pResultHandle, pArrayItemDefs, unArrayLength); - } - public virtual bool /*bool*/ ISteamInventory_ConsumeItem( ref int pResultHandle, ulong itemConsume, uint /*uint32*/ unQuantity ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_ConsumeItem(_ptr, ref pResultHandle, itemConsume, unQuantity); - } - public virtual bool /*bool*/ ISteamInventory_ExchangeItems( ref int pResultHandle, int[] pArrayGenerate, uint[] /*const uint32 **/ punArrayGenerateQuantity, uint /*uint32*/ unArrayGenerateLength, ulong[] pArrayDestroy, uint[] /*const uint32 **/ punArrayDestroyQuantity, uint /*uint32*/ unArrayDestroyLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_ExchangeItems(_ptr, ref pResultHandle, pArrayGenerate, punArrayGenerateQuantity, unArrayGenerateLength, pArrayDestroy, punArrayDestroyQuantity, unArrayDestroyLength); - } - public virtual bool /*bool*/ ISteamInventory_TransferItemQuantity( ref int pResultHandle, ulong itemIdSource, uint /*uint32*/ unQuantity, ulong itemIdDest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_TransferItemQuantity(_ptr, ref pResultHandle, itemIdSource, unQuantity, itemIdDest); - } - public virtual void /*void*/ ISteamInventory_SendItemDropHeartbeat() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - Native.SteamAPI_ISteamInventory_SendItemDropHeartbeat(_ptr); - } - public virtual bool /*bool*/ ISteamInventory_TriggerItemDrop( ref int pResultHandle, int dropListDefinition ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_TriggerItemDrop(_ptr, ref pResultHandle, dropListDefinition); - } - public virtual bool /*bool*/ ISteamInventory_TradeItems( ref int pResultHandle, ulong steamIDTradePartner, ulong[] pArrayGive, uint[] /*const uint32 **/ pArrayGiveQuantity, uint /*uint32*/ nArrayGiveLength, ulong[] pArrayGet, uint[] /*const uint32 **/ pArrayGetQuantity, uint /*uint32*/ nArrayGetLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_TradeItems(_ptr, ref pResultHandle, steamIDTradePartner, pArrayGive, pArrayGiveQuantity, nArrayGiveLength, pArrayGet, pArrayGetQuantity, nArrayGetLength); - } - public virtual bool /*bool*/ ISteamInventory_LoadItemDefinitions() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_LoadItemDefinitions(_ptr); - } - public virtual bool /*bool*/ ISteamInventory_GetItemDefinitionIDs( IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemDefinitionIDs(_ptr, pItemDefIDs, out punItemDefIDsArraySize); - } - public virtual bool /*bool*/ ISteamInventory_GetItemDefinitionProperty( int iDefinition, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemDefinitionProperty(_ptr, iDefinition, pchPropertyName, pchValueBuffer, out punValueBufferSizeOut); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamInventory_RequestEligiblePromoItemDefinitionsIDs( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs(_ptr, steamID); - } - public virtual bool /*bool*/ ISteamInventory_GetEligiblePromoItemDefinitionIDs( ulong steamID, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs(_ptr, steamID, pItemDefIDs, out punItemDefIDsArraySize); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamInventory_StartPurchase( int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_StartPurchase(_ptr, pArrayItemDefs, punArrayQuantity, unArrayLength); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamInventory_RequestPrices() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_RequestPrices(_ptr); - } - public virtual uint /*uint32*/ ISteamInventory_GetNumItemsWithPrices() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetNumItemsWithPrices(_ptr); - } - public virtual bool /*bool*/ ISteamInventory_GetItemsWithPrices( IntPtr /*SteamItemDef_t **/ pArrayItemDefs, IntPtr /*uint64 **/ pCurrentPrices, IntPtr /*uint64 **/ pBasePrices, uint /*uint32*/ unArrayLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemsWithPrices(_ptr, pArrayItemDefs, pCurrentPrices, pBasePrices, unArrayLength); - } - public virtual bool /*bool*/ ISteamInventory_GetItemPrice( int iDefinition, out ulong /*uint64 **/ pCurrentPrice, out ulong /*uint64 **/ pBasePrice ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemPrice(_ptr, iDefinition, out pCurrentPrice, out pBasePrice); - } - public virtual SteamInventoryUpdateHandle_t /*(SteamInventoryUpdateHandle_t)*/ ISteamInventory_StartUpdateProperties() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_StartUpdateProperties(_ptr); - } - public virtual bool /*bool*/ ISteamInventory_RemoveProperty( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_RemoveProperty(_ptr, handle, nItemID, pchPropertyName); - } - public virtual bool /*bool*/ ISteamInventory_SetProperty( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, string /*const char **/ pchPropertyValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SetProperty(_ptr, handle, nItemID, pchPropertyName, pchPropertyValue); - } - public virtual bool /*bool*/ ISteamInventory_SetProperty0( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SetProperty0(_ptr, handle, nItemID, pchPropertyName, bValue); - } - public virtual bool /*bool*/ ISteamInventory_SetProperty0( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, long /*int64*/ nValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SetProperty0(_ptr, handle, nItemID, pchPropertyName, nValue); - } - public virtual bool /*bool*/ ISteamInventory_SetProperty0( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, float /*float*/ flValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SetProperty0(_ptr, handle, nItemID, pchPropertyName, flValue); - } - public virtual bool /*bool*/ ISteamInventory_SubmitUpdateProperties( ulong handle, ref int pResultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SubmitUpdateProperties(_ptr, handle, ref pResultHandle); - } - - public virtual void /*void*/ ISteamVideo_GetVideoURL( uint unVideoAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" ); - - Native.SteamAPI_ISteamVideo_GetVideoURL(_ptr, unVideoAppID); - } - public virtual bool /*bool*/ ISteamVideo_IsBroadcasting( IntPtr /*int **/ pnNumViewers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" ); - - return Native.SteamAPI_ISteamVideo_IsBroadcasting(_ptr, pnNumViewers); - } - public virtual void /*void*/ ISteamVideo_GetOPFSettings( uint unVideoAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" ); - - Native.SteamAPI_ISteamVideo_GetOPFSettings(_ptr, unVideoAppID); - } - public virtual bool /*bool*/ ISteamVideo_GetOPFStringForApp( uint unVideoAppID, System.Text.StringBuilder /*char **/ pchBuffer, out int /*int32 **/ pnBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" ); - - return Native.SteamAPI_ISteamVideo_GetOPFStringForApp(_ptr, unVideoAppID, pchBuffer, out pnBufferSize); - } - - public virtual bool /*bool*/ ISteamParentalSettings_BIsParentalLockEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled(_ptr); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsParentalLockLocked() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsParentalLockLocked(_ptr); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsAppBlocked( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsAppBlocked(_ptr, nAppID); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsAppInBlockList( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsAppInBlockList(_ptr, nAppID); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsFeatureBlocked( ParentalFeature /*EParentalFeature*/ eFeature ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsFeatureBlocked(_ptr, eFeature); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsFeatureInBlockList( ParentalFeature /*EParentalFeature*/ eFeature ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList(_ptr, eFeature); - } - - public virtual bool /*bool*/ ISteamGameServer_InitGameServer( uint /*uint32*/ unIP, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, uint /*uint32*/ unFlags, uint nGameAppId, string /*const char **/ pchVersionString ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_InitGameServer(_ptr, unIP, usGamePort, usQueryPort, unFlags, nGameAppId, pchVersionString); - } - public virtual void /*void*/ ISteamGameServer_SetProduct( string /*const char **/ pszProduct ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetProduct(_ptr, pszProduct); - } - public virtual void /*void*/ ISteamGameServer_SetGameDescription( string /*const char **/ pszGameDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetGameDescription(_ptr, pszGameDescription); - } - public virtual void /*void*/ ISteamGameServer_SetModDir( string /*const char **/ pszModDir ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetModDir(_ptr, pszModDir); - } - public virtual void /*void*/ ISteamGameServer_SetDedicatedServer( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bDedicated ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetDedicatedServer(_ptr, bDedicated); - } - public virtual void /*void*/ ISteamGameServer_LogOn( string /*const char **/ pszToken ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_LogOn(_ptr, pszToken); - } - public virtual void /*void*/ ISteamGameServer_LogOnAnonymous() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_LogOnAnonymous(_ptr); - } - public virtual void /*void*/ ISteamGameServer_LogOff() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_LogOff(_ptr); - } - public virtual bool /*bool*/ ISteamGameServer_BLoggedOn() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_BLoggedOn(_ptr); - } - public virtual bool /*bool*/ ISteamGameServer_BSecure() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_BSecure(_ptr); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamGameServer_GetSteamID() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetSteamID(_ptr); - } - public virtual bool /*bool*/ ISteamGameServer_WasRestartRequested() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_WasRestartRequested(_ptr); - } - public virtual void /*void*/ ISteamGameServer_SetMaxPlayerCount( int /*int*/ cPlayersMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetMaxPlayerCount(_ptr, cPlayersMax); - } - public virtual void /*void*/ ISteamGameServer_SetBotPlayerCount( int /*int*/ cBotplayers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetBotPlayerCount(_ptr, cBotplayers); - } - public virtual void /*void*/ ISteamGameServer_SetServerName( string /*const char **/ pszServerName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetServerName(_ptr, pszServerName); - } - public virtual void /*void*/ ISteamGameServer_SetMapName( string /*const char **/ pszMapName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetMapName(_ptr, pszMapName); - } - public virtual void /*void*/ ISteamGameServer_SetPasswordProtected( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bPasswordProtected ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetPasswordProtected(_ptr, bPasswordProtected); - } - public virtual void /*void*/ ISteamGameServer_SetSpectatorPort( ushort /*uint16*/ unSpectatorPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetSpectatorPort(_ptr, unSpectatorPort); - } - public virtual void /*void*/ ISteamGameServer_SetSpectatorServerName( string /*const char **/ pszSpectatorServerName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetSpectatorServerName(_ptr, pszSpectatorServerName); - } - public virtual void /*void*/ ISteamGameServer_ClearAllKeyValues() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_ClearAllKeyValues(_ptr); - } - public virtual void /*void*/ ISteamGameServer_SetKeyValue( string /*const char **/ pKey, string /*const char **/ pValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetKeyValue(_ptr, pKey, pValue); - } - public virtual void /*void*/ ISteamGameServer_SetGameTags( string /*const char **/ pchGameTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetGameTags(_ptr, pchGameTags); - } - public virtual void /*void*/ ISteamGameServer_SetGameData( string /*const char **/ pchGameData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetGameData(_ptr, pchGameData); - } - public virtual void /*void*/ ISteamGameServer_SetRegion( string /*const char **/ pszRegion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetRegion(_ptr, pszRegion); - } - public virtual bool /*bool*/ ISteamGameServer_SendUserConnectAndAuthenticate( uint /*uint32*/ unIPClient, IntPtr /*const void **/ pvAuthBlob, uint /*uint32*/ cubAuthBlobSize, out ulong pSteamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate(_ptr, unIPClient, pvAuthBlob, cubAuthBlobSize, out pSteamIDUser); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamGameServer_CreateUnauthenticatedUserConnection() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection(_ptr); - } - public virtual void /*void*/ ISteamGameServer_SendUserDisconnect( ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SendUserDisconnect(_ptr, steamIDUser); - } - public virtual bool /*bool*/ ISteamGameServer_BUpdateUserData( ulong steamIDUser, string /*const char **/ pchPlayerName, uint /*uint32*/ uScore ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_BUpdateUserData(_ptr, steamIDUser, pchPlayerName, uScore); - } - public virtual HAuthTicket /*(HAuthTicket)*/ ISteamGameServer_GetAuthSessionTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetAuthSessionTicket(_ptr, pTicket, cbMaxTicket, out pcbTicket); - } - public virtual BeginAuthSessionResult /*EBeginAuthSessionResult*/ ISteamGameServer_BeginAuthSession( IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_BeginAuthSession(_ptr, pAuthTicket, cbAuthTicket, steamID); - } - public virtual void /*void*/ ISteamGameServer_EndAuthSession( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_EndAuthSession(_ptr, steamID); - } - public virtual void /*void*/ ISteamGameServer_CancelAuthTicket( uint hAuthTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_CancelAuthTicket(_ptr, hAuthTicket); - } - public virtual UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ ISteamGameServer_UserHasLicenseForApp( ulong steamID, uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_UserHasLicenseForApp(_ptr, steamID, appID); - } - public virtual bool /*bool*/ ISteamGameServer_RequestUserGroupStatus( ulong steamIDUser, ulong steamIDGroup ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_RequestUserGroupStatus(_ptr, steamIDUser, steamIDGroup); - } - public virtual void /*void*/ ISteamGameServer_GetGameplayStats() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_GetGameplayStats(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_GetServerReputation() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetServerReputation(_ptr); - } - public virtual uint /*uint32*/ ISteamGameServer_GetPublicIP() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetPublicIP(_ptr); - } - public virtual bool /*bool*/ ISteamGameServer_HandleIncomingPacket( IntPtr /*const void **/ pData, int /*int*/ cbData, uint /*uint32*/ srcIP, ushort /*uint16*/ srcPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_HandleIncomingPacket(_ptr, pData, cbData, srcIP, srcPort); - } - public virtual int /*int*/ ISteamGameServer_GetNextOutgoingPacket( IntPtr /*void **/ pOut, int /*int*/ cbMaxOut, out uint /*uint32 **/ pNetAdr, out ushort /*uint16 **/ pPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetNextOutgoingPacket(_ptr, pOut, cbMaxOut, out pNetAdr, out pPort); - } - public virtual void /*void*/ ISteamGameServer_EnableHeartbeats( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bActive ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_EnableHeartbeats(_ptr, bActive); - } - public virtual void /*void*/ ISteamGameServer_SetHeartbeatInterval( int /*int*/ iHeartbeatInterval ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetHeartbeatInterval(_ptr, iHeartbeatInterval); - } - public virtual void /*void*/ ISteamGameServer_ForceHeartbeat() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_ForceHeartbeat(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_AssociateWithClan( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_AssociateWithClan(_ptr, steamIDClan); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_ComputeNewPlayerCompatibility( ulong steamIDNewPlayer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility(_ptr, steamIDNewPlayer); - } - - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServerStats_RequestUserStats( ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_RequestUserStats(_ptr, steamIDUser); - } - public virtual bool /*bool*/ ISteamGameServerStats_GetUserStat( ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_GetUserStat(_ptr, steamIDUser, pchName, out pData); - } - public virtual bool /*bool*/ ISteamGameServerStats_GetUserStat0( ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_GetUserStat0(_ptr, steamIDUser, pchName, out pData); - } - public virtual bool /*bool*/ ISteamGameServerStats_GetUserAchievement( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); - } - public virtual bool /*bool*/ ISteamGameServerStats_SetUserStat( ulong steamIDUser, string /*const char **/ pchName, int /*int32*/ nData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_SetUserStat(_ptr, steamIDUser, pchName, nData); - } - public virtual bool /*bool*/ ISteamGameServerStats_SetUserStat0( ulong steamIDUser, string /*const char **/ pchName, float /*float*/ fData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_SetUserStat0(_ptr, steamIDUser, pchName, fData); - } - public virtual bool /*bool*/ ISteamGameServerStats_UpdateUserAvgRateStat( ulong steamIDUser, string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat(_ptr, steamIDUser, pchName, flCountThisSession, dSessionLength); - } - public virtual bool /*bool*/ ISteamGameServerStats_SetUserAchievement( ulong steamIDUser, string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_SetUserAchievement(_ptr, steamIDUser, pchName); - } - public virtual bool /*bool*/ ISteamGameServerStats_ClearUserAchievement( ulong steamIDUser, string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_ClearUserAchievement(_ptr, steamIDUser, pchName); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServerStats_StoreUserStats( ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_StoreUserStats(_ptr, steamIDUser); - } - - public virtual bool /*bool*/ SteamApi_SteamAPI_Init() - { - return Native.SteamAPI_Init(); - } - public virtual void /*void*/ SteamApi_SteamAPI_RunCallbacks() - { - Native.SteamAPI_RunCallbacks(); - } - public virtual void /*void*/ SteamApi_SteamGameServer_RunCallbacks() - { - Native.SteamGameServer_RunCallbacks(); - } - public virtual void /*void*/ SteamApi_SteamAPI_RegisterCallback( IntPtr /*void **/ pCallback, int /*int*/ callback ) - { - Native.SteamAPI_RegisterCallback(pCallback, callback); - } - public virtual void /*void*/ SteamApi_SteamAPI_UnregisterCallback( IntPtr /*void **/ pCallback ) - { - Native.SteamAPI_UnregisterCallback(pCallback); - } - public virtual void /*void*/ SteamApi_SteamAPI_RegisterCallResult( IntPtr /*void **/ pCallback, ulong callback ) - { - Native.SteamAPI_RegisterCallResult(pCallback, callback); - } - public virtual void /*void*/ SteamApi_SteamAPI_UnregisterCallResult( IntPtr /*void **/ pCallback, ulong callback ) - { - Native.SteamAPI_UnregisterCallResult(pCallback, callback); - } - public virtual bool /*bool*/ SteamApi_SteamInternal_GameServer_Init( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, int /*int*/ eServerMode, string /*const char **/ pchVersionString ) - { - return Native.SteamInternal_GameServer_Init(unIP, usPort, usGamePort, usQueryPort, eServerMode, pchVersionString); - } - public virtual void /*void*/ SteamApi_SteamAPI_Shutdown() - { - Native.SteamAPI_Shutdown(); - } - public virtual void /*void*/ SteamApi_SteamGameServer_Shutdown() - { - Native.SteamGameServer_Shutdown(); - } - public virtual HSteamUser /*(HSteamUser)*/ SteamApi_SteamAPI_GetHSteamUser() - { - return Native.SteamAPI_GetHSteamUser(); - } - public virtual HSteamPipe /*(HSteamPipe)*/ SteamApi_SteamAPI_GetHSteamPipe() - { - return Native.SteamAPI_GetHSteamPipe(); - } - public virtual HSteamUser /*(HSteamUser)*/ SteamApi_SteamGameServer_GetHSteamUser() - { - return Native.SteamGameServer_GetHSteamUser(); - } - public virtual HSteamPipe /*(HSteamPipe)*/ SteamApi_SteamGameServer_GetHSteamPipe() - { - return Native.SteamGameServer_GetHSteamPipe(); - } - public virtual IntPtr /*void **/ SteamApi_SteamInternal_CreateInterface( string /*const char **/ version ) - { - return Native.SteamInternal_CreateInterface(version); - } - public virtual bool /*bool*/ SteamApi_SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID ) - { - return Native.SteamAPI_RestartAppIfNecessary(unOwnAppID); - } - - internal static unsafe class Native - { - // - // ISteamClient - // - [DllImport( "libsteam_api.so" )] - internal static extern HSteamPipe /*(HSteamPipe)*/ SteamAPI_ISteamClient_CreateSteamPipe( IntPtr ISteamClient ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamClient_BReleaseSteamPipe( IntPtr ISteamClient, int hSteamPipe ); - [DllImport( "libsteam_api.so" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_ISteamClient_ConnectToGlobalUser( IntPtr ISteamClient, int hSteamPipe ); - [DllImport( "libsteam_api.so" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_ISteamClient_CreateLocalUser( IntPtr ISteamClient, out int phSteamPipe, AccountType /*EAccountType*/ eAccountType ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamClient_ReleaseUser( IntPtr ISteamClient, int hSteamPipe, int hUser ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamUser **/ SteamAPI_ISteamClient_GetISteamUser( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamGameServer **/ SteamAPI_ISteamClient_GetISteamGameServer( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamClient_SetLocalIPBinding( IntPtr ISteamClient, uint /*uint32*/ unIP, ushort /*uint16*/ usPort ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamFriends **/ SteamAPI_ISteamClient_GetISteamFriends( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamUtils **/ SteamAPI_ISteamClient_GetISteamUtils( IntPtr ISteamClient, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamMatchmaking **/ SteamAPI_ISteamClient_GetISteamMatchmaking( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamMatchmakingServers **/ SteamAPI_ISteamClient_GetISteamMatchmakingServers( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*void **/ SteamAPI_ISteamClient_GetISteamGenericInterface( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamUserStats **/ SteamAPI_ISteamClient_GetISteamUserStats( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamGameServerStats **/ SteamAPI_ISteamClient_GetISteamGameServerStats( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamApps **/ SteamAPI_ISteamClient_GetISteamApps( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamNetworking **/ SteamAPI_ISteamClient_GetISteamNetworking( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamRemoteStorage **/ SteamAPI_ISteamClient_GetISteamRemoteStorage( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamScreenshots **/ SteamAPI_ISteamClient_GetISteamScreenshots( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamGameSearch **/ SteamAPI_ISteamClient_GetISteamGameSearch( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamClient_GetIPCCallCount( IntPtr ISteamClient ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamClient_SetWarningMessageHook( IntPtr ISteamClient, IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamClient_BShutdownIfAllPipesClosed( IntPtr ISteamClient ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamHTTP **/ SteamAPI_ISteamClient_GetISteamHTTP( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamController **/ SteamAPI_ISteamClient_GetISteamController( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamUGC **/ SteamAPI_ISteamClient_GetISteamUGC( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamAppList **/ SteamAPI_ISteamClient_GetISteamAppList( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamMusic **/ SteamAPI_ISteamClient_GetISteamMusic( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamMusicRemote **/ SteamAPI_ISteamClient_GetISteamMusicRemote( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamHTMLSurface **/ SteamAPI_ISteamClient_GetISteamHTMLSurface( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamInventory **/ SteamAPI_ISteamClient_GetISteamInventory( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamVideo **/ SteamAPI_ISteamClient_GetISteamVideo( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamParentalSettings **/ SteamAPI_ISteamClient_GetISteamParentalSettings( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamInput **/ SteamAPI_ISteamClient_GetISteamInput( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class ISteamParties **/ SteamAPI_ISteamClient_GetISteamParties( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - - // - // ISteamUser - // - [DllImport( "libsteam_api.so" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_ISteamUser_GetHSteamUser( IntPtr ISteamUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BLoggedOn( IntPtr ISteamUser ); - [DllImport( "libsteam_api.so" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamUser_GetSteamID( IntPtr ISteamUser ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamUser_InitiateGameConnection( IntPtr ISteamUser, IntPtr /*void **/ pAuthBlob, int /*int*/ cbMaxAuthBlob, ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_TerminateGameConnection( IntPtr ISteamUser, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_TrackAppUsageEvent( IntPtr ISteamUser, ulong gameID, int /*int*/ eAppUsageEvent, string /*const char **/ pchExtraInfo ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_GetUserDataFolder( IntPtr ISteamUser, System.Text.StringBuilder /*char **/ pchBuffer, int /*int*/ cubBuffer ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_StartVoiceRecording( IntPtr ISteamUser ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_StopVoiceRecording( IntPtr ISteamUser ); - [DllImport( "libsteam_api.so" )] - internal static extern VoiceResult /*EVoiceResult*/ SteamAPI_ISteamUser_GetAvailableVoice( IntPtr ISteamUser, out uint /*uint32 **/ pcbCompressed, out uint /*uint32 **/ pcbUncompressed_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated ); - [DllImport( "libsteam_api.so" )] - internal static extern VoiceResult /*EVoiceResult*/ SteamAPI_ISteamUser_GetVoice( IntPtr ISteamUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantUncompressed_Deprecated, IntPtr /*void **/ pUncompressedDestBuffer_Deprecated, uint /*uint32*/ cbUncompressedDestBufferSize_Deprecated, out uint /*uint32 **/ nUncompressBytesWritten_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated ); - [DllImport( "libsteam_api.so" )] - internal static extern VoiceResult /*EVoiceResult*/ SteamAPI_ISteamUser_DecompressVoice( IntPtr ISteamUser, IntPtr /*const void **/ pCompressed, uint /*uint32*/ cbCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, uint /*uint32*/ nDesiredSampleRate ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUser_GetVoiceOptimalSampleRate( IntPtr ISteamUser ); - [DllImport( "libsteam_api.so" )] - internal static extern HAuthTicket /*(HAuthTicket)*/ SteamAPI_ISteamUser_GetAuthSessionTicket( IntPtr ISteamUser, IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ); - [DllImport( "libsteam_api.so" )] - internal static extern BeginAuthSessionResult /*EBeginAuthSessionResult*/ SteamAPI_ISteamUser_BeginAuthSession( IntPtr ISteamUser, IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_EndAuthSession( IntPtr ISteamUser, ulong steamID ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_CancelAuthTicket( IntPtr ISteamUser, uint hAuthTicket ); - [DllImport( "libsteam_api.so" )] - internal static extern UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ SteamAPI_ISteamUser_UserHasLicenseForApp( IntPtr ISteamUser, ulong steamID, uint appID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsBehindNAT( IntPtr ISteamUser ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_AdvertiseGame( IntPtr ISteamUser, ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUser_RequestEncryptedAppTicket( IntPtr ISteamUser, IntPtr /*void **/ pDataToInclude, int /*int*/ cbDataToInclude ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_GetEncryptedAppTicket( IntPtr ISteamUser, IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamUser_GetGameBadgeLevel( IntPtr ISteamUser, int /*int*/ nSeries, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bFoil ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamUser_GetPlayerSteamLevel( IntPtr ISteamUser ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUser_RequestStoreAuthURL( IntPtr ISteamUser, string /*const char **/ pchRedirectURL ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsPhoneVerified( IntPtr ISteamUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsTwoFactorEnabled( IntPtr ISteamUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsPhoneIdentifying( IntPtr ISteamUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsPhoneRequiringVerification( IntPtr ISteamUser ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUser_GetMarketEligibility( IntPtr ISteamUser ); - - // - // ISteamFriends - // - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetPersonaName( IntPtr ISteamFriends ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_SetPersonaName( IntPtr ISteamFriends, string /*const char **/ pchPersonaName ); - [DllImport( "libsteam_api.so" )] - internal static extern PersonaState /*EPersonaState*/ SteamAPI_ISteamFriends_GetPersonaState( IntPtr ISteamFriends ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendCount( IntPtr ISteamFriends, int /*int*/ iFriendFlags ); - [DllImport( "libsteam_api.so" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetFriendByIndex( IntPtr ISteamFriends, int /*int*/ iFriend, int /*int*/ iFriendFlags ); - [DllImport( "libsteam_api.so" )] - internal static extern FriendRelationship /*EFriendRelationship*/ SteamAPI_ISteamFriends_GetFriendRelationship( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.so" )] - internal static extern PersonaState /*EPersonaState*/ SteamAPI_ISteamFriends_GetFriendPersonaState( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendPersonaName( IntPtr ISteamFriends, ulong steamIDFriend ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_GetFriendGamePlayed( IntPtr ISteamFriends, ulong steamIDFriend, ref FriendGameInfo_t.Pack4 /*struct FriendGameInfo_t **/ pFriendGameInfo ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendPersonaNameHistory( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iPersonaName ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendSteamLevel( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetPlayerNickname( IntPtr ISteamFriends, ulong steamIDPlayer ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendsGroupCount( IntPtr ISteamFriends ); - [DllImport( "libsteam_api.so" )] - internal static extern FriendsGroupID_t /*(FriendsGroupID_t)*/ SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex( IntPtr ISteamFriends, int /*int*/ iFG ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendsGroupName( IntPtr ISteamFriends, short friendsGroupID ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendsGroupMembersCount( IntPtr ISteamFriends, short friendsGroupID ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_GetFriendsGroupMembersList( IntPtr ISteamFriends, short friendsGroupID, IntPtr /*class CSteamID **/ pOutSteamIDMembers, int /*int*/ nMembersCount ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_HasFriend( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iFriendFlags ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanCount( IntPtr ISteamFriends ); - [DllImport( "libsteam_api.so" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetClanByIndex( IntPtr ISteamFriends, int /*int*/ iClan ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetClanName( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetClanTag( IntPtr ISteamFriends, ulong steamIDClan ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_GetClanActivityCounts( IntPtr ISteamFriends, ulong steamIDClan, out int /*int **/ pnOnline, out int /*int **/ pnInGame, out int /*int **/ pnChatting ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_DownloadClanActivityCounts( IntPtr ISteamFriends, IntPtr /*class CSteamID **/ psteamIDClans, int /*int*/ cClansToRequest ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendCountFromSource( IntPtr ISteamFriends, ulong steamIDSource ); - [DllImport( "libsteam_api.so" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetFriendFromSourceByIndex( IntPtr ISteamFriends, ulong steamIDSource, int /*int*/ iFriend ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsUserInSource( IntPtr ISteamFriends, ulong steamIDUser, ulong steamIDSource ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_SetInGameVoiceSpeaking( IntPtr ISteamFriends, ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSpeaking ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlay( IntPtr ISteamFriends, string /*const char **/ pchDialog ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayToUser( IntPtr ISteamFriends, string /*const char **/ pchDialog, ulong steamID ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage( IntPtr ISteamFriends, string /*const char **/ pchURL, ActivateGameOverlayToWebPageMode /*EActivateGameOverlayToWebPageMode*/ eMode ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayToStore( IntPtr ISteamFriends, uint nAppID, OverlayToStoreFlag /*EOverlayToStoreFlag*/ eFlag ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_SetPlayedWith( IntPtr ISteamFriends, ulong steamIDUserPlayedWith ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog( IntPtr ISteamFriends, ulong steamIDLobby ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetSmallFriendAvatar( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetMediumFriendAvatar( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetLargeFriendAvatar( IntPtr ISteamFriends, ulong steamIDFriend ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_RequestUserInformation( IntPtr ISteamFriends, ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireNameOnly ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_RequestClanOfficerList( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "libsteam_api.so" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetClanOwner( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanOfficerCount( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "libsteam_api.so" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetClanOfficerByIndex( IntPtr ISteamFriends, ulong steamIDClan, int /*int*/ iOfficer ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamFriends_GetUserRestrictions( IntPtr ISteamFriends ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_SetRichPresence( IntPtr ISteamFriends, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ClearRichPresence( IntPtr ISteamFriends ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendRichPresence( IntPtr ISteamFriends, ulong steamIDFriend, string /*const char **/ pchKey ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iKey ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_RequestFriendRichPresence( IntPtr ISteamFriends, ulong steamIDFriend ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_InviteUserToGame( IntPtr ISteamFriends, ulong steamIDFriend, string /*const char **/ pchConnectString ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetCoplayFriendCount( IntPtr ISteamFriends ); - [DllImport( "libsteam_api.so" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetCoplayFriend( IntPtr ISteamFriends, int /*int*/ iCoplayFriend ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendCoplayTime( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.so" )] - internal static extern AppId_t /*(AppId_t)*/ SteamAPI_ISteamFriends_GetFriendCoplayGame( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_JoinClanChatRoom( IntPtr ISteamFriends, ulong steamIDClan ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_LeaveClanChatRoom( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanChatMemberCount( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "libsteam_api.so" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetChatMemberByIndex( IntPtr ISteamFriends, ulong steamIDClan, int /*int*/ iUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_SendClanChatMessage( IntPtr ISteamFriends, ulong steamIDClanChat, string /*const char **/ pchText ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanChatMessage( IntPtr ISteamFriends, ulong steamIDClanChat, int /*int*/ iMessage, IntPtr /*void **/ prgchText, int /*int*/ cchTextMax, out ChatEntryType /*EChatEntryType **/ peChatEntryType, out ulong psteamidChatter ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsClanChatAdmin( IntPtr ISteamFriends, ulong steamIDClanChat, ulong steamIDUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam( IntPtr ISteamFriends, ulong steamIDClanChat ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_OpenClanChatWindowInSteam( IntPtr ISteamFriends, ulong steamIDClanChat ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_CloseClanChatWindowInSteam( IntPtr ISteamFriends, ulong steamIDClanChat ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_SetListenForFriendsMessages( IntPtr ISteamFriends, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bInterceptEnabled ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_ReplyToFriendMessage( IntPtr ISteamFriends, ulong steamIDFriend, string /*const char **/ pchMsgToSend ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendMessage( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iMessageID, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_GetFollowerCount( IntPtr ISteamFriends, ulong steamID ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_IsFollowing( IntPtr ISteamFriends, ulong steamID ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_EnumerateFollowingList( IntPtr ISteamFriends, uint /*uint32*/ unStartIndex ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsClanPublic( IntPtr ISteamFriends, ulong steamIDClan ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsClanOfficialGameGroup( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetNumChatsWithUnreadPriorityMessages( IntPtr ISteamFriends ); - - // - // ISteamUtils - // - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetSecondsSinceAppActive( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetSecondsSinceComputerActive( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.so" )] - internal static extern Universe /*EUniverse*/ SteamAPI_ISteamUtils_GetConnectedUniverse( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetServerRealTime( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamUtils_GetIPCountry( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetImageSize( IntPtr ISteamUtils, int /*int*/ iImage, out uint /*uint32 **/ pnWidth, out uint /*uint32 **/ pnHeight ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetImageRGBA( IntPtr ISteamUtils, int /*int*/ iImage, IntPtr /*uint8 **/ pubDest, int /*int*/ nDestBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetCSERIPPort( IntPtr ISteamUtils, out uint /*uint32 **/ unIP, out ushort /*uint16 **/ usPort ); - [DllImport( "libsteam_api.so" )] - internal static extern byte /*uint8*/ SteamAPI_ISteamUtils_GetCurrentBatteryPower( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetAppID( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_SetOverlayNotificationPosition( IntPtr ISteamUtils, NotificationPosition /*ENotificationPosition*/ eNotificationPosition ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsAPICallCompleted( IntPtr ISteamUtils, ulong hSteamAPICall, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICallFailure /*ESteamAPICallFailure*/ SteamAPI_ISteamUtils_GetAPICallFailureReason( IntPtr ISteamUtils, ulong hSteamAPICall ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetAPICallResult( IntPtr ISteamUtils, ulong hSteamAPICall, IntPtr /*void **/ pCallback, int /*int*/ cubCallback, int /*int*/ iCallbackExpected, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetIPCCallCount( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_SetWarningMessageHook( IntPtr ISteamUtils, IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsOverlayEnabled( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_BOverlayNeedsPresent( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUtils_CheckFileSignature( IntPtr ISteamUtils, string /*const char **/ szFileName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_ShowGamepadTextInput( IntPtr ISteamUtils, GamepadTextInputMode /*EGamepadTextInputMode*/ eInputMode, GamepadTextInputLineMode /*EGamepadTextInputLineMode*/ eLineInputMode, string /*const char **/ pchDescription, uint /*uint32*/ unCharMax, string /*const char **/ pchExistingText ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetEnteredGamepadTextLength( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetEnteredGamepadTextInput( IntPtr ISteamUtils, System.Text.StringBuilder /*char **/ pchText, uint /*uint32*/ cchText ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamUtils_GetSteamUILanguage( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsSteamRunningInVR( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_SetOverlayNotificationInset( IntPtr ISteamUtils, int /*int*/ nHorizontalInset, int /*int*/ nVerticalInset ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsSteamInBigPictureMode( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_StartVRDashboard( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsVRHeadsetStreamingEnabled( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_SetVRHeadsetStreamingEnabled( IntPtr ISteamUtils, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled ); - - // - // ISteamMatchmaking - // - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetFavoriteGameCount( IntPtr ISteamMatchmaking ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_GetFavoriteGame( IntPtr ISteamMatchmaking, int /*int*/ iGame, ref uint pnAppID, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnConnPort, out ushort /*uint16 **/ pnQueryPort, out uint /*uint32 **/ punFlags, out uint /*uint32 **/ pRTime32LastPlayedOnServer ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_AddFavoriteGame( IntPtr ISteamMatchmaking, uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags, uint /*uint32*/ rTime32LastPlayedOnServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_RemoveFavoriteGame( IntPtr ISteamMatchmaking, uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamMatchmaking_RequestLobbyList( IntPtr ISteamMatchmaking ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter( IntPtr ISteamMatchmaking, string /*const char **/ pchKeyToMatch, string /*const char **/ pchValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter( IntPtr ISteamMatchmaking, string /*const char **/ pchKeyToMatch, int /*int*/ nValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter( IntPtr ISteamMatchmaking, string /*const char **/ pchKeyToMatch, int /*int*/ nValueToBeCloseTo ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable( IntPtr ISteamMatchmaking, int /*int*/ nSlotsAvailable ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter( IntPtr ISteamMatchmaking, LobbyDistanceFilter /*ELobbyDistanceFilter*/ eLobbyDistanceFilter ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter( IntPtr ISteamMatchmaking, int /*int*/ cMaxResults ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [DllImport( "libsteam_api.so" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamMatchmaking_GetLobbyByIndex( IntPtr ISteamMatchmaking, int /*int*/ iLobby ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamMatchmaking_CreateLobby( IntPtr ISteamMatchmaking, LobbyType /*ELobbyType*/ eLobbyType, int /*int*/ cMaxMembers ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamMatchmaking_JoinLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_LeaveLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_InviteUserToLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDInvitee ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetNumLobbyMembers( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [DllImport( "libsteam_api.so" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ iMember ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamMatchmaking_GetLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetLobbyDataCount( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ iLobbyData, System.Text.StringBuilder /*char **/ pchKey, int /*int*/ cchKeyBufferSize, System.Text.StringBuilder /*char **/ pchValue, int /*int*/ cchValueBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_DeleteLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamMatchmaking_GetLobbyMemberData( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDUser, string /*const char **/ pchKey ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_SetLobbyMemberData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SendLobbyChatMsg( IntPtr ISteamMatchmaking, ulong steamIDLobby, IntPtr /*const void **/ pvMsgBody, int /*int*/ cubMsgBody ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetLobbyChatEntry( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ iChatID, out ulong pSteamIDUser, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_RequestLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_SetLobbyGameServer( IntPtr ISteamMatchmaking, ulong steamIDLobby, uint /*uint32*/ unGameServerIP, ushort /*uint16*/ unGameServerPort, ulong steamIDGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_GetLobbyGameServer( IntPtr ISteamMatchmaking, ulong steamIDLobby, out uint /*uint32 **/ punGameServerIP, out ushort /*uint16 **/ punGameServerPort, out ulong psteamIDGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ cMaxMembers ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyType( IntPtr ISteamMatchmaking, ulong steamIDLobby, LobbyType /*ELobbyType*/ eLobbyType ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyJoinable( IntPtr ISteamMatchmaking, ulong steamIDLobby, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bLobbyJoinable ); - [DllImport( "libsteam_api.so" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamMatchmaking_GetLobbyOwner( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyOwner( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDNewOwner ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLinkedLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDLobbyDependent ); - - // - // ISteamMatchmakingServers - // - [DllImport( "libsteam_api.so" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestInternetServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.so" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestLANServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.so" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.so" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.so" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.so" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_ReleaseRequest( IntPtr ISteamMatchmakingServers, IntPtr hServerListRequest ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*class gameserveritem_t **/ SteamAPI_ISteamMatchmakingServers_GetServerDetails( IntPtr ISteamMatchmakingServers, IntPtr hRequest, int /*int*/ iServer ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_CancelQuery( IntPtr ISteamMatchmakingServers, IntPtr hRequest ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_RefreshQuery( IntPtr ISteamMatchmakingServers, IntPtr hRequest ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmakingServers_IsRefreshing( IntPtr ISteamMatchmakingServers, IntPtr hRequest ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmakingServers_GetServerCount( IntPtr ISteamMatchmakingServers, IntPtr hRequest ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_RefreshServer( IntPtr ISteamMatchmakingServers, IntPtr hRequest, int /*int*/ iServer ); - [DllImport( "libsteam_api.so" )] - internal static extern HServerQuery /*(HServerQuery)*/ SteamAPI_ISteamMatchmakingServers_PingServer( IntPtr ISteamMatchmakingServers, uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPingResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.so" )] - internal static extern HServerQuery /*(HServerQuery)*/ SteamAPI_ISteamMatchmakingServers_PlayerDetails( IntPtr ISteamMatchmakingServers, uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPlayersResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.so" )] - internal static extern HServerQuery /*(HServerQuery)*/ SteamAPI_ISteamMatchmakingServers_ServerRules( IntPtr ISteamMatchmakingServers, uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingRulesResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_CancelServerQuery( IntPtr ISteamMatchmakingServers, int hServerQuery ); - - // - // ISteamGameSearch - // - [DllImport( "libsteam_api.so" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_AddGameSearchParams( IntPtr ISteamGameSearch, string /*const char **/ pchKeyToFind, string /*const char **/ pchValuesToFind ); - [DllImport( "libsteam_api.so" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SearchForGameWithLobby( IntPtr ISteamGameSearch, ulong steamIDLobby, int /*int*/ nPlayerMin, int /*int*/ nPlayerMax ); - [DllImport( "libsteam_api.so" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SearchForGameSolo( IntPtr ISteamGameSearch, int /*int*/ nPlayerMin, int /*int*/ nPlayerMax ); - [DllImport( "libsteam_api.so" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_AcceptGame( IntPtr ISteamGameSearch ); - [DllImport( "libsteam_api.so" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_DeclineGame( IntPtr ISteamGameSearch ); - [DllImport( "libsteam_api.so" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_RetrieveConnectionDetails( IntPtr ISteamGameSearch, ulong steamIDHost, System.Text.StringBuilder /*char **/ pchConnectionDetails, int /*int*/ cubConnectionDetails ); - [DllImport( "libsteam_api.so" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_EndGameSearch( IntPtr ISteamGameSearch ); - [DllImport( "libsteam_api.so" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SetGameHostParams( IntPtr ISteamGameSearch, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [DllImport( "libsteam_api.so" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SetConnectionDetails( IntPtr ISteamGameSearch, string /*const char **/ pchConnectionDetails, int /*int*/ cubConnectionDetails ); - [DllImport( "libsteam_api.so" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_RequestPlayersForGame( IntPtr ISteamGameSearch, int /*int*/ nPlayerMin, int /*int*/ nPlayerMax, int /*int*/ nMaxTeamSize ); - [DllImport( "libsteam_api.so" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_HostConfirmGameStart( IntPtr ISteamGameSearch, ulong /*uint64*/ ullUniqueGameID ); - [DllImport( "libsteam_api.so" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_CancelRequestPlayersForGame( IntPtr ISteamGameSearch ); - [DllImport( "libsteam_api.so" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SubmitPlayerResult( IntPtr ISteamGameSearch, ulong /*uint64*/ ullUniqueGameID, ulong steamIDPlayer, PlayerResult_t /*EPlayerResult_t*/ EPlayerResult ); - [DllImport( "libsteam_api.so" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_EndGame( IntPtr ISteamGameSearch, ulong /*uint64*/ ullUniqueGameID ); - - // - // ISteamParties - // - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamParties_GetNumActiveBeacons( IntPtr ISteamParties ); - [DllImport( "libsteam_api.so" )] - internal static extern PartyBeaconID_t /*(PartyBeaconID_t)*/ SteamAPI_ISteamParties_GetBeaconByIndex( IntPtr ISteamParties, uint /*uint32*/ unIndex ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_GetBeaconDetails( IntPtr ISteamParties, ulong ulBeaconID, out ulong pSteamIDBeaconOwner, ref SteamPartyBeaconLocation_t.Pack4 /*struct SteamPartyBeaconLocation_t **/ pLocation, System.Text.StringBuilder /*char **/ pchMetadata, int /*int*/ cchMetadata ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamParties_JoinParty( IntPtr ISteamParties, ulong ulBeaconID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_GetNumAvailableBeaconLocations( IntPtr ISteamParties, IntPtr /*uint32 **/ puNumLocations ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_GetAvailableBeaconLocations( IntPtr ISteamParties, ref SteamPartyBeaconLocation_t.Pack4 /*struct SteamPartyBeaconLocation_t **/ pLocationList, uint /*uint32*/ uMaxNumLocations ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamParties_CreateBeacon( IntPtr ISteamParties, uint /*uint32*/ unOpenSlots, ref SteamPartyBeaconLocation_t.Pack4 /*struct SteamPartyBeaconLocation_t **/ pBeaconLocation, string /*const char **/ pchConnectString, string /*const char **/ pchMetadata ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamParties_OnReservationCompleted( IntPtr ISteamParties, ulong ulBeacon, ulong steamIDUser ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamParties_CancelReservation( IntPtr ISteamParties, ulong ulBeacon, ulong steamIDUser ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamParties_ChangeNumOpenSlots( IntPtr ISteamParties, ulong ulBeacon, uint /*uint32*/ unOpenSlots ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_DestroyBeacon( IntPtr ISteamParties, ulong ulBeacon ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_GetBeaconLocationData( IntPtr ISteamParties, SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t*/ BeaconLocation, SteamPartyBeaconLocationData /*ESteamPartyBeaconLocationData*/ eData, System.Text.StringBuilder /*char **/ pchDataStringOut, int /*int*/ cchDataStringOut ); - - // - // ISteamRemoteStorage - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWrite( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, IntPtr /*const void **/ pvData, int /*int32*/ cubData ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_FileRead( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_FileWriteAsync( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, IntPtr /*const void **/ pvData, uint /*uint32*/ cubData ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_FileReadAsync( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, uint /*uint32*/ nOffset, uint /*uint32*/ cubToRead ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete( IntPtr ISteamRemoteStorage, ulong hReadCall, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cubToRead ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileForget( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileDelete( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_FileShare( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_SetSyncPlatforms( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, RemoteStoragePlatform /*ERemoteStoragePlatform*/ eRemoteStoragePlatform ); - [DllImport( "libsteam_api.so" )] - internal static extern UGCFileWriteStreamHandle_t /*(UGCFileWriteStreamHandle_t)*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk( IntPtr ISteamRemoteStorage, ulong writeHandle, IntPtr /*const void **/ pvData, int /*int32*/ cubData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamClose( IntPtr ISteamRemoteStorage, ulong writeHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel( IntPtr ISteamRemoteStorage, ulong writeHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileExists( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FilePersisted( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_GetFileSize( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "libsteam_api.so" )] - internal static extern long /*int64*/ SteamAPI_ISteamRemoteStorage_GetFileTimestamp( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "libsteam_api.so" )] - internal static extern RemoteStoragePlatform /*ERemoteStoragePlatform*/ SteamAPI_ISteamRemoteStorage_GetSyncPlatforms( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_GetFileCount( IntPtr ISteamRemoteStorage ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamRemoteStorage_GetFileNameAndSize( IntPtr ISteamRemoteStorage, int /*int*/ iFile, out int /*int32 **/ pnFileSizeInBytes ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_GetQuota( IntPtr ISteamRemoteStorage, out ulong /*uint64 **/ pnTotalBytes, out ulong /*uint64 **/ puAvailableBytes ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount( IntPtr ISteamRemoteStorage ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp( IntPtr ISteamRemoteStorage ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp( IntPtr ISteamRemoteStorage, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UGCDownload( IntPtr ISteamRemoteStorage, ulong hContent, uint /*uint32*/ unPriority ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress( IntPtr ISteamRemoteStorage, ulong hContent, out int /*int32 **/ pnBytesDownloaded, out int /*int32 **/ pnBytesExpected ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_GetUGCDetails( IntPtr ISteamRemoteStorage, ulong hContent, ref uint pnAppID, System.Text.StringBuilder /*char ***/ ppchName, out int /*int32 **/ pnFileSizeInBytes, out ulong pSteamIDOwner ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_UGCRead( IntPtr ISteamRemoteStorage, ulong hContent, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead, uint /*uint32*/ cOffset, UGCReadAction /*EUGCReadAction*/ eAction ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_GetCachedUGCCount( IntPtr ISteamRemoteStorage ); - [DllImport( "libsteam_api.so" )] - internal static extern UGCHandle_t /*(UGCHandle_t)*/ SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle( IntPtr ISteamRemoteStorage, int /*int32*/ iCachedContent ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_PublishWorkshopFile( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t.Pack4 /*struct SteamParamStringArray_t **/ pTags, WorkshopFileType /*EWorkshopFileType*/ eWorkshopFileType ); - [DllImport( "libsteam_api.so" )] - internal static extern PublishedFileUpdateHandle_t /*(PublishedFileUpdateHandle_t)*/ SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchPreviewFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchTitle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchDescription ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility( IntPtr ISteamRemoteStorage, ulong updateHandle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags( IntPtr ISteamRemoteStorage, ulong updateHandle, ref SteamParamStringArray_t.Pack4 /*struct SteamParamStringArray_t **/ pTags ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate( IntPtr ISteamRemoteStorage, ulong updateHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails( IntPtr ISteamRemoteStorage, ulong unPublishedFileId, uint /*uint32*/ unMaxSecondsOld ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_DeletePublishedFile( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles( IntPtr ISteamRemoteStorage, uint /*uint32*/ unStartIndex ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_SubscribePublishedFile( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles( IntPtr ISteamRemoteStorage, uint /*uint32*/ unStartIndex ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchChangeDescription ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote( IntPtr ISteamRemoteStorage, ulong unPublishedFileId, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles( IntPtr ISteamRemoteStorage, ulong steamId, uint /*uint32*/ unStartIndex, ref SteamParamStringArray_t.Pack4 /*struct SteamParamStringArray_t **/ pRequiredTags, ref SteamParamStringArray_t.Pack4 /*struct SteamParamStringArray_t **/ pExcludedTags ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_PublishVideo( IntPtr ISteamRemoteStorage, WorkshopVideoProvider /*EWorkshopVideoProvider*/ eVideoProvider, string /*const char **/ pchVideoAccount, string /*const char **/ pchVideoIdentifier, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t.Pack4 /*struct SteamParamStringArray_t **/ pTags ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction( IntPtr ISteamRemoteStorage, ulong unPublishedFileId, WorkshopFileAction /*EWorkshopFileAction*/ eAction ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction( IntPtr ISteamRemoteStorage, WorkshopFileAction /*EWorkshopFileAction*/ eAction, uint /*uint32*/ unStartIndex ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles( IntPtr ISteamRemoteStorage, WorkshopEnumerationType /*EWorkshopEnumerationType*/ eEnumerationType, uint /*uint32*/ unStartIndex, uint /*uint32*/ unCount, uint /*uint32*/ unDays, ref SteamParamStringArray_t.Pack4 /*struct SteamParamStringArray_t **/ pTags, ref SteamParamStringArray_t.Pack4 /*struct SteamParamStringArray_t **/ pUserTags ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation( IntPtr ISteamRemoteStorage, ulong hContent, string /*const char **/ pchLocation, uint /*uint32*/ unPriority ); - - // - // ISteamUserStats - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_RequestCurrentStats( IntPtr ISteamUserStats ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetStat( IntPtr ISteamUserStats, string /*const char **/ pchName, out int /*int32 **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetStat0( IntPtr ISteamUserStats, string /*const char **/ pchName, out float /*float **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_SetStat( IntPtr ISteamUserStats, string /*const char **/ pchName, int /*int32*/ nData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_SetStat0( IntPtr ISteamUserStats, string /*const char **/ pchName, float /*float*/ fData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_UpdateAvgRateStat( IntPtr ISteamUserStats, string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_SetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_ClearAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime( IntPtr ISteamUserStats, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_StoreStats( IntPtr ISteamUserStats ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetAchievementIcon( IntPtr ISteamUserStats, string /*const char **/ pchName ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute( IntPtr ISteamUserStats, string /*const char **/ pchName, string /*const char **/ pchKey ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_IndicateAchievementProgress( IntPtr ISteamUserStats, string /*const char **/ pchName, uint /*uint32*/ nCurProgress, uint /*uint32*/ nMaxProgress ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUserStats_GetNumAchievements( IntPtr ISteamUserStats ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamUserStats_GetAchievementName( IntPtr ISteamUserStats, uint /*uint32*/ iAchievement ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_RequestUserStats( IntPtr ISteamUserStats, ulong steamIDUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserStat( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserStat0( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserAchievement( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_ResetAllStats( IntPtr ISteamUserStats, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAchievementsToo ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_FindOrCreateLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName, LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod, LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_FindLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamUserStats_GetLeaderboardName( IntPtr ISteamUserStats, ulong hSteamLeaderboard ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetLeaderboardEntryCount( IntPtr ISteamUserStats, ulong hSteamLeaderboard ); - [DllImport( "libsteam_api.so" )] - internal static extern LeaderboardSortMethod /*ELeaderboardSortMethod*/ SteamAPI_ISteamUserStats_GetLeaderboardSortMethod( IntPtr ISteamUserStats, ulong hSteamLeaderboard ); - [DllImport( "libsteam_api.so" )] - internal static extern LeaderboardDisplayType /*ELeaderboardDisplayType*/ SteamAPI_ISteamUserStats_GetLeaderboardDisplayType( IntPtr ISteamUserStats, ulong hSteamLeaderboard ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_DownloadLeaderboardEntries( IntPtr ISteamUserStats, ulong hSteamLeaderboard, LeaderboardDataRequest /*ELeaderboardDataRequest*/ eLeaderboardDataRequest, int /*int*/ nRangeStart, int /*int*/ nRangeEnd ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers( IntPtr ISteamUserStats, ulong hSteamLeaderboard, IntPtr /*class CSteamID **/ prgUsers, int /*int*/ cUsers ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry( IntPtr ISteamUserStats, ulong hSteamLeaderboardEntries, int /*int*/ index, ref LeaderboardEntry_t.Pack4 /*struct LeaderboardEntry_t **/ pLeaderboardEntry, IntPtr /*int32 **/ pDetails, int /*int*/ cDetailsMax ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_UploadLeaderboardScore( IntPtr ISteamUserStats, ulong hSteamLeaderboard, LeaderboardUploadScoreMethod /*ELeaderboardUploadScoreMethod*/ eLeaderboardUploadScoreMethod, int /*int32*/ nScore, int[] /*const int32 **/ pScoreDetails, int /*int*/ cScoreDetailsCount ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_AttachLeaderboardUGC( IntPtr ISteamUserStats, ulong hSteamLeaderboard, ulong hUGC ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers( IntPtr ISteamUserStats ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages( IntPtr ISteamUserStats ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetAchievementAchievedPercent( IntPtr ISteamUserStats, string /*const char **/ pchName, out float /*float **/ pflPercent ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_RequestGlobalStats( IntPtr ISteamUserStats, int /*int*/ nHistoryDays ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetGlobalStat( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out long /*int64 **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetGlobalStat0( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out double /*double **/ pData ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int32*/ SteamAPI_ISteamUserStats_GetGlobalStatHistory( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out long /*int64 **/ pData, uint /*uint32*/ cubData ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int32*/ SteamAPI_ISteamUserStats_GetGlobalStatHistory0( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out double /*double **/ pData, uint /*uint32*/ cubData ); - - // - // ISteamApps - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribed( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsLowViolence( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsCybercafe( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsVACBanned( IntPtr ISteamApps ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamApps_GetCurrentGameLanguage( IntPtr ISteamApps ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamApps_GetAvailableGameLanguages( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribedApp( IntPtr ISteamApps, uint appID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsDlcInstalled( IntPtr ISteamApps, uint appID ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime( IntPtr ISteamApps, uint nAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend( IntPtr ISteamApps ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamApps_GetDLCCount( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC, ref uint pAppID, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamApps_InstallDLC( IntPtr ISteamApps, uint nAppID ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamApps_UninstallDLC( IntPtr ISteamApps, uint nAppID ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey( IntPtr ISteamApps, uint nAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_GetCurrentBetaName( IntPtr ISteamApps, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_MarkContentCorrupt( IntPtr ISteamApps, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMissingFilesOnly ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamApps_GetInstalledDepots( IntPtr ISteamApps, uint appID, IntPtr /*DepotId_t **/ pvecDepots, uint /*uint32*/ cMaxDepots ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamApps_GetAppInstallDir( IntPtr ISteamApps, uint appID, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsAppInstalled( IntPtr ISteamApps, uint appID ); - [DllImport( "libsteam_api.so" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamApps_GetAppOwner( IntPtr ISteamApps ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamApps_GetLaunchQueryParam( IntPtr ISteamApps, string /*const char **/ pchKey ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_GetDlcDownloadProgress( IntPtr ISteamApps, uint nAppID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamApps_GetAppBuildId( IntPtr ISteamApps ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamApps_RequestAllProofOfPurchaseKeys( IntPtr ISteamApps ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamApps_GetFileDetails( IntPtr ISteamApps, string /*const char **/ pszFileName ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamApps_GetLaunchCommandLine( IntPtr ISteamApps, System.Text.StringBuilder /*char **/ pszCommandLine, int /*int*/ cubCommandLine ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribedFromFamilySharing( IntPtr ISteamApps ); - - // - // ISteamNetworking - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_SendP2PPacket( IntPtr ISteamNetworking, ulong steamIDRemote, IntPtr /*const void **/ pubData, uint /*uint32*/ cubData, P2PSend /*EP2PSend*/ eP2PSendType, int /*int*/ nChannel ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_IsP2PPacketAvailable( IntPtr ISteamNetworking, out uint /*uint32 **/ pcubMsgSize, int /*int*/ nChannel ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_ReadP2PPacket( IntPtr ISteamNetworking, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, out ulong psteamIDRemote, int /*int*/ nChannel ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser( IntPtr ISteamNetworking, ulong steamIDRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_CloseP2PSessionWithUser( IntPtr ISteamNetworking, ulong steamIDRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_CloseP2PChannelWithUser( IntPtr ISteamNetworking, ulong steamIDRemote, int /*int*/ nChannel ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_GetP2PSessionState( IntPtr ISteamNetworking, ulong steamIDRemote, ref P2PSessionState_t.Pack4 /*struct P2PSessionState_t **/ pConnectionState ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_AllowP2PPacketRelay( IntPtr ISteamNetworking, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllow ); - [DllImport( "libsteam_api.so" )] - internal static extern SNetListenSocket_t /*(SNetListenSocket_t)*/ SteamAPI_ISteamNetworking_CreateListenSocket( IntPtr ISteamNetworking, int /*int*/ nVirtualP2PPort, uint /*uint32*/ nIP, ushort /*uint16*/ nPort, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay ); - [DllImport( "libsteam_api.so" )] - internal static extern SNetSocket_t /*(SNetSocket_t)*/ SteamAPI_ISteamNetworking_CreateP2PConnectionSocket( IntPtr ISteamNetworking, ulong steamIDTarget, int /*int*/ nVirtualPort, int /*int*/ nTimeoutSec, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay ); - [DllImport( "libsteam_api.so" )] - internal static extern SNetSocket_t /*(SNetSocket_t)*/ SteamAPI_ISteamNetworking_CreateConnectionSocket( IntPtr ISteamNetworking, uint /*uint32*/ nIP, ushort /*uint16*/ nPort, int /*int*/ nTimeoutSec ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_DestroySocket( IntPtr ISteamNetworking, uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_DestroyListenSocket( IntPtr ISteamNetworking, uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_SendDataOnSocket( IntPtr ISteamNetworking, uint hSocket, IntPtr /*void **/ pubData, uint /*uint32*/ cubData, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReliable ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_IsDataAvailableOnSocket( IntPtr ISteamNetworking, uint hSocket, out uint /*uint32 **/ pcubMsgSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_RetrieveDataFromSocket( IntPtr ISteamNetworking, uint hSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_IsDataAvailable( IntPtr ISteamNetworking, uint hListenSocket, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_RetrieveData( IntPtr ISteamNetworking, uint hListenSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_GetSocketInfo( IntPtr ISteamNetworking, uint hSocket, out ulong pSteamIDRemote, IntPtr /*int **/ peSocketStatus, out uint /*uint32 **/ punIPRemote, out ushort /*uint16 **/ punPortRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_GetListenSocketInfo( IntPtr ISteamNetworking, uint hListenSocket, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnPort ); - [DllImport( "libsteam_api.so" )] - internal static extern SNetSocketConnectionType /*ESNetSocketConnectionType*/ SteamAPI_ISteamNetworking_GetSocketConnectionType( IntPtr ISteamNetworking, uint hSocket ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamNetworking_GetMaxPacketSize( IntPtr ISteamNetworking, uint hSocket ); - - // - // ISteamScreenshots - // - [DllImport( "libsteam_api.so" )] - internal static extern ScreenshotHandle /*(ScreenshotHandle)*/ SteamAPI_ISteamScreenshots_WriteScreenshot( IntPtr ISteamScreenshots, IntPtr /*void **/ pubRGB, uint /*uint32*/ cubRGB, int /*int*/ nWidth, int /*int*/ nHeight ); - [DllImport( "libsteam_api.so" )] - internal static extern ScreenshotHandle /*(ScreenshotHandle)*/ SteamAPI_ISteamScreenshots_AddScreenshotToLibrary( IntPtr ISteamScreenshots, string /*const char **/ pchFilename, string /*const char **/ pchThumbnailFilename, int /*int*/ nWidth, int /*int*/ nHeight ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamScreenshots_TriggerScreenshot( IntPtr ISteamScreenshots ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamScreenshots_HookScreenshots( IntPtr ISteamScreenshots, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHook ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_SetLocation( IntPtr ISteamScreenshots, uint hScreenshot, string /*const char **/ pchLocation ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_TagUser( IntPtr ISteamScreenshots, uint hScreenshot, ulong steamID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_TagPublishedFile( IntPtr ISteamScreenshots, uint hScreenshot, ulong unPublishedFileID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_IsScreenshotsHooked( IntPtr ISteamScreenshots ); - [DllImport( "libsteam_api.so" )] - internal static extern ScreenshotHandle /*(ScreenshotHandle)*/ SteamAPI_ISteamScreenshots_AddVRScreenshotToLibrary( IntPtr ISteamScreenshots, VRScreenshotType /*EVRScreenshotType*/ eType, string /*const char **/ pchFilename, string /*const char **/ pchVRFilename ); - - // - // ISteamMusic - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusic_BIsEnabled( IntPtr ISteamMusic ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusic_BIsPlaying( IntPtr ISteamMusic ); - [DllImport( "libsteam_api.so" )] - internal static extern AudioPlayback_Status /*AudioPlayback_Status*/ SteamAPI_ISteamMusic_GetPlaybackStatus( IntPtr ISteamMusic ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_Play( IntPtr ISteamMusic ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_Pause( IntPtr ISteamMusic ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_PlayPrevious( IntPtr ISteamMusic ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_PlayNext( IntPtr ISteamMusic ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_SetVolume( IntPtr ISteamMusic, float /*float*/ flVolume ); - [DllImport( "libsteam_api.so" )] - internal static extern float /*float*/ SteamAPI_ISteamMusic_GetVolume( IntPtr ISteamMusic ); - - // - // ISteamMusicRemote - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote( IntPtr ISteamMusicRemote, string /*const char **/ pchName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_BActivationSuccess( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetDisplayName( IntPtr ISteamMusicRemote, string /*const char **/ pchDisplayName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64( IntPtr ISteamMusicRemote, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnablePlayPrevious( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnablePlayNext( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnableShuffled( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnableLooped( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnableQueue( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnablePlaylists( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus( IntPtr ISteamMusicRemote, AudioPlayback_Status /*AudioPlayback_Status*/ nStatus ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateShuffled( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateLooped( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateVolume( IntPtr ISteamMusicRemote, float /*float*/ flValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_CurrentEntryWillChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAvailable ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText( IntPtr ISteamMusicRemote, string /*const char **/ pchText ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds( IntPtr ISteamMusicRemote, int /*int*/ nValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt( IntPtr ISteamMusicRemote, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_CurrentEntryDidChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_QueueWillChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_ResetQueueEntries( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetQueueEntry( IntPtr ISteamMusicRemote, int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry( IntPtr ISteamMusicRemote, int /*int*/ nID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_QueueDidChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_PlaylistWillChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_ResetPlaylistEntries( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetPlaylistEntry( IntPtr ISteamMusicRemote, int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry( IntPtr ISteamMusicRemote, int /*int*/ nID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_PlaylistDidChange( IntPtr ISteamMusicRemote ); - - // - // ISteamHTTP - // - [DllImport( "libsteam_api.so" )] - internal static extern HTTPRequestHandle /*(HTTPRequestHandle)*/ SteamAPI_ISteamHTTP_CreateHTTPRequest( IntPtr ISteamHTTP, HTTPMethod /*EHTTPMethod*/ eHTTPRequestMethod, string /*const char **/ pchAbsoluteURL ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestContextValue( IntPtr ISteamHTTP, uint hRequest, ulong /*uint64*/ ulContextValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout( IntPtr ISteamHTTP, uint hRequest, uint /*uint32*/ unTimeoutSeconds ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchHeaderName, string /*const char **/ pchHeaderValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchParamName, string /*const char **/ pchParamValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SendHTTPRequest( IntPtr ISteamHTTP, uint hRequest, ref ulong pCallHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse( IntPtr ISteamHTTP, uint hRequest, ref ulong pCallHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_DeferHTTPRequest( IntPtr ISteamHTTP, uint hRequest ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_PrioritizeHTTPRequest( IntPtr ISteamHTTP, uint hRequest ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchHeaderName, out uint /*uint32 **/ unResponseHeaderSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchHeaderName, out byte /*uint8 **/ pHeaderValueBuffer, uint /*uint32*/ unBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseBodySize( IntPtr ISteamHTTP, uint hRequest, out uint /*uint32 **/ unBodySize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseBodyData( IntPtr ISteamHTTP, uint hRequest, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData( IntPtr ISteamHTTP, uint hRequest, uint /*uint32*/ cOffset, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_ReleaseHTTPRequest( IntPtr ISteamHTTP, uint hRequest ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct( IntPtr ISteamHTTP, uint hRequest, out float /*float **/ pflPercentOut ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchContentType, out byte /*uint8 **/ pubBody, uint /*uint32*/ unBodyLen ); - [DllImport( "libsteam_api.so" )] - internal static extern HTTPCookieContainerHandle /*(HTTPCookieContainerHandle)*/ SteamAPI_ISteamHTTP_CreateCookieContainer( IntPtr ISteamHTTP, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowResponsesToModify ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_ReleaseCookieContainer( IntPtr ISteamHTTP, uint hCookieContainer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetCookie( IntPtr ISteamHTTP, uint hCookieContainer, string /*const char **/ pchHost, string /*const char **/ pchUrl, string /*const char **/ pchCookie ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer( IntPtr ISteamHTTP, uint hRequest, uint hCookieContainer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchUserAgentInfo ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( IntPtr ISteamHTTP, uint hRequest, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireVerifiedCertificate ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( IntPtr ISteamHTTP, uint hRequest, uint /*uint32*/ unMilliseconds ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut( IntPtr ISteamHTTP, uint hRequest, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbWasTimedOut ); - - // - // ISteamInput - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInput_Init( IntPtr ISteamInput ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInput_Shutdown( IntPtr ISteamInput ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_RunFrame( IntPtr ISteamInput ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetConnectedControllers( IntPtr ISteamInput, IntPtr /*InputHandle_t **/ handlesOut ); - [DllImport( "libsteam_api.so" )] - internal static extern InputActionSetHandle_t /*(InputActionSetHandle_t)*/ SteamAPI_ISteamInput_GetActionSetHandle( IntPtr ISteamInput, string /*const char **/ pszActionSetName ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_ActivateActionSet( IntPtr ISteamInput, ulong inputHandle, ulong actionSetHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern InputActionSetHandle_t /*(InputActionSetHandle_t)*/ SteamAPI_ISteamInput_GetCurrentActionSet( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_ActivateActionSetLayer( IntPtr ISteamInput, ulong inputHandle, ulong actionSetLayerHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_DeactivateActionSetLayer( IntPtr ISteamInput, ulong inputHandle, ulong actionSetLayerHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_DeactivateAllActionSetLayers( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetActiveActionSetLayers( IntPtr ISteamInput, ulong inputHandle, IntPtr /*InputActionSetHandle_t **/ handlesOut ); - [DllImport( "libsteam_api.so" )] - internal static extern InputDigitalActionHandle_t /*(InputDigitalActionHandle_t)*/ SteamAPI_ISteamInput_GetDigitalActionHandle( IntPtr ISteamInput, string /*const char **/ pszActionName ); - [DllImport( "libsteam_api.so" )] - internal static extern InputDigitalActionData_t /*struct InputDigitalActionData_t*/ SteamAPI_ISteamInput_GetDigitalActionData( IntPtr ISteamInput, ulong inputHandle, ulong digitalActionHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetDigitalActionOrigins( IntPtr ISteamInput, ulong inputHandle, ulong actionSetHandle, ulong digitalActionHandle, out InputActionOrigin /*EInputActionOrigin **/ originsOut ); - [DllImport( "libsteam_api.so" )] - internal static extern InputAnalogActionHandle_t /*(InputAnalogActionHandle_t)*/ SteamAPI_ISteamInput_GetAnalogActionHandle( IntPtr ISteamInput, string /*const char **/ pszActionName ); - [DllImport( "libsteam_api.so" )] - internal static extern InputAnalogActionData_t /*struct InputAnalogActionData_t*/ SteamAPI_ISteamInput_GetAnalogActionData( IntPtr ISteamInput, ulong inputHandle, ulong analogActionHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetAnalogActionOrigins( IntPtr ISteamInput, ulong inputHandle, ulong actionSetHandle, ulong analogActionHandle, out InputActionOrigin /*EInputActionOrigin **/ originsOut ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamInput_GetGlyphForActionOrigin( IntPtr ISteamInput, InputActionOrigin /*EInputActionOrigin*/ eOrigin ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamInput_GetStringForActionOrigin( IntPtr ISteamInput, InputActionOrigin /*EInputActionOrigin*/ eOrigin ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_StopAnalogActionMomentum( IntPtr ISteamInput, ulong inputHandle, ulong eAction ); - [DllImport( "libsteam_api.so" )] - internal static extern InputMotionData_t /*struct InputMotionData_t*/ SteamAPI_ISteamInput_GetMotionData( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_TriggerVibration( IntPtr ISteamInput, ulong inputHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_SetLEDColor( IntPtr ISteamInput, ulong inputHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_TriggerHapticPulse( IntPtr ISteamInput, ulong inputHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_TriggerRepeatedHapticPulse( IntPtr ISteamInput, ulong inputHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInput_ShowBindingPanel( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamInputType /*ESteamInputType*/ SteamAPI_ISteamInput_GetInputTypeForHandle( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern InputHandle_t /*(InputHandle_t)*/ SteamAPI_ISteamInput_GetControllerForGamepadIndex( IntPtr ISteamInput, int /*int*/ nIndex ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetGamepadIndexForController( IntPtr ISteamInput, ulong ulinputHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamInput_GetStringForXboxOrigin( IntPtr ISteamInput, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamInput_GetGlyphForXboxOrigin( IntPtr ISteamInput, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "libsteam_api.so" )] - internal static extern InputActionOrigin /*EInputActionOrigin*/ SteamAPI_ISteamInput_GetActionOriginFromXboxOrigin( IntPtr ISteamInput, ulong inputHandle, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "libsteam_api.so" )] - internal static extern InputActionOrigin /*EInputActionOrigin*/ SteamAPI_ISteamInput_TranslateActionOrigin( IntPtr ISteamInput, SteamInputType /*ESteamInputType*/ eDestinationInputType, InputActionOrigin /*EInputActionOrigin*/ eSourceOrigin ); - - // - // ISteamController - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamController_Init( IntPtr ISteamController ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamController_Shutdown( IntPtr ISteamController ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamController_RunFrame( IntPtr ISteamController ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetConnectedControllers( IntPtr ISteamController, IntPtr /*ControllerHandle_t **/ handlesOut ); - [DllImport( "libsteam_api.so" )] - internal static extern ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ SteamAPI_ISteamController_GetActionSetHandle( IntPtr ISteamController, string /*const char **/ pszActionSetName ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamController_ActivateActionSet( IntPtr ISteamController, ulong controllerHandle, ulong actionSetHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ SteamAPI_ISteamController_GetCurrentActionSet( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamController_ActivateActionSetLayer( IntPtr ISteamController, ulong controllerHandle, ulong actionSetLayerHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamController_DeactivateActionSetLayer( IntPtr ISteamController, ulong controllerHandle, ulong actionSetLayerHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamController_DeactivateAllActionSetLayers( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetActiveActionSetLayers( IntPtr ISteamController, ulong controllerHandle, IntPtr /*ControllerActionSetHandle_t **/ handlesOut ); - [DllImport( "libsteam_api.so" )] - internal static extern ControllerDigitalActionHandle_t /*(ControllerDigitalActionHandle_t)*/ SteamAPI_ISteamController_GetDigitalActionHandle( IntPtr ISteamController, string /*const char **/ pszActionName ); - [DllImport( "libsteam_api.so" )] - internal static extern InputDigitalActionData_t /*struct InputDigitalActionData_t*/ SteamAPI_ISteamController_GetDigitalActionData( IntPtr ISteamController, ulong controllerHandle, ulong digitalActionHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetDigitalActionOrigins( IntPtr ISteamController, ulong controllerHandle, ulong actionSetHandle, ulong digitalActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut ); - [DllImport( "libsteam_api.so" )] - internal static extern ControllerAnalogActionHandle_t /*(ControllerAnalogActionHandle_t)*/ SteamAPI_ISteamController_GetAnalogActionHandle( IntPtr ISteamController, string /*const char **/ pszActionName ); - [DllImport( "libsteam_api.so" )] - internal static extern InputAnalogActionData_t /*struct InputAnalogActionData_t*/ SteamAPI_ISteamController_GetAnalogActionData( IntPtr ISteamController, ulong controllerHandle, ulong analogActionHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetAnalogActionOrigins( IntPtr ISteamController, ulong controllerHandle, ulong actionSetHandle, ulong analogActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamController_GetGlyphForActionOrigin( IntPtr ISteamController, ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamController_GetStringForActionOrigin( IntPtr ISteamController, ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamController_StopAnalogActionMomentum( IntPtr ISteamController, ulong controllerHandle, ulong eAction ); - [DllImport( "libsteam_api.so" )] - internal static extern InputMotionData_t /*struct InputMotionData_t*/ SteamAPI_ISteamController_GetMotionData( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamController_TriggerHapticPulse( IntPtr ISteamController, ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamController_TriggerRepeatedHapticPulse( IntPtr ISteamController, ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamController_TriggerVibration( IntPtr ISteamController, ulong controllerHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamController_SetLEDColor( IntPtr ISteamController, ulong controllerHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamController_ShowBindingPanel( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamInputType /*ESteamInputType*/ SteamAPI_ISteamController_GetInputTypeForHandle( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern ControllerHandle_t /*(ControllerHandle_t)*/ SteamAPI_ISteamController_GetControllerForGamepadIndex( IntPtr ISteamController, int /*int*/ nIndex ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetGamepadIndexForController( IntPtr ISteamController, ulong ulControllerHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamController_GetStringForXboxOrigin( IntPtr ISteamController, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr SteamAPI_ISteamController_GetGlyphForXboxOrigin( IntPtr ISteamController, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "libsteam_api.so" )] - internal static extern ControllerActionOrigin /*EControllerActionOrigin*/ SteamAPI_ISteamController_GetActionOriginFromXboxOrigin( IntPtr ISteamController, ulong controllerHandle, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "libsteam_api.so" )] - internal static extern ControllerActionOrigin /*EControllerActionOrigin*/ SteamAPI_ISteamController_TranslateActionOrigin( IntPtr ISteamController, SteamInputType /*ESteamInputType*/ eDestinationInputType, ControllerActionOrigin /*EControllerActionOrigin*/ eSourceOrigin ); - - // - // ISteamUGC - // - [DllImport( "libsteam_api.so" )] - internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryUserUGCRequest( IntPtr ISteamUGC, uint unAccountID, UserUGCList /*EUserUGCList*/ eListType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingUGCType, UserUGCListSortOrder /*EUserUGCListSortOrder*/ eSortOrder, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage ); - [DllImport( "libsteam_api.so" )] - internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryAllUGCRequest( IntPtr ISteamUGC, UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage ); - [DllImport( "libsteam_api.so" )] - internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryAllUGCRequest0( IntPtr ISteamUGC, UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, string /*const char **/ pchCursor ); - [DllImport( "libsteam_api.so" )] - internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SendQueryUGCRequest( IntPtr ISteamUGC, ulong handle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCResult( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, ref SteamUGCDetails_t.Pack4 /*struct SteamUGCDetails_t **/ pDetails ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCPreviewURL( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchURL, uint /*uint32*/ cchURLSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCMetadata( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchMetadata, uint /*uint32*/ cchMetadatasize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCChildren( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCStatistic( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, ItemStatistic /*EItemStatistic*/ eStatType, out ulong /*uint64 **/ pStatValue ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, uint /*uint32*/ previewIndex, System.Text.StringBuilder /*char **/ pchURLOrVideoID, uint /*uint32*/ cchURLSize, System.Text.StringBuilder /*char **/ pchOriginalFileName, uint /*uint32*/ cchOriginalFileNameSize, out ItemPreviewType /*EItemPreviewType **/ pPreviewType ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, uint /*uint32*/ keyValueTagIndex, System.Text.StringBuilder /*char **/ pchKey, uint /*uint32*/ cchKeySize, System.Text.StringBuilder /*char **/ pchValue, uint /*uint32*/ cchValueSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_ReleaseQueryUGCRequest( IntPtr ISteamUGC, ulong handle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddRequiredTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pTagName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddExcludedTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pTagName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnOnlyIDs( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnOnlyIDs ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnKeyValueTags( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnKeyValueTags ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnLongDescription( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnLongDescription ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnMetadata( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnMetadata ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnChildren( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnChildren ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnAdditionalPreviews( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnAdditionalPreviews ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnTotalOnly( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnTotalOnly ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnPlaytimeStats( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ unDays ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetLanguage( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchLanguage ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetAllowCachedResponse( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ unMaxAgeSeconds ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetCloudFileNameFilter( IntPtr ISteamUGC, ulong handle, string /*const char **/ pMatchCloudFileName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetMatchAnyTag( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMatchAnyTag ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetSearchText( IntPtr ISteamUGC, ulong handle, string /*const char **/ pSearchText ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetRankedByTrendDays( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ unDays ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddRequiredKeyValueTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pKey, string /*const char **/ pValue ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RequestUGCDetails( IntPtr ISteamUGC, ulong nPublishedFileID, uint /*uint32*/ unMaxAgeSeconds ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_CreateItem( IntPtr ISteamUGC, uint nConsumerAppId, WorkshopFileType /*EWorkshopFileType*/ eFileType ); - [DllImport( "libsteam_api.so" )] - internal static extern UGCUpdateHandle_t /*(UGCUpdateHandle_t)*/ SteamAPI_ISteamUGC_StartItemUpdate( IntPtr ISteamUGC, uint nConsumerAppId, ulong nPublishedFileID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemTitle( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchTitle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemDescription( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchDescription ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemUpdateLanguage( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchLanguage ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemMetadata( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchMetaData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemVisibility( IntPtr ISteamUGC, ulong handle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemTags( IntPtr ISteamUGC, ulong updateHandle, ref SteamParamStringArray_t.Pack4 /*const struct SteamParamStringArray_t **/ pTags ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemContent( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszContentFolder ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemPreview( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszPreviewFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetAllowLegacyUpload( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowLegacyUpload ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_RemoveItemKeyValueTags( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchKey ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddItemKeyValueTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddItemPreviewFile( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszPreviewFile, ItemPreviewType /*EItemPreviewType*/ type ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddItemPreviewVideo( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszVideoID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_UpdateItemPreviewFile( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, string /*const char **/ pszPreviewFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_UpdateItemPreviewVideo( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, string /*const char **/ pszVideoID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_RemoveItemPreview( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SubmitItemUpdate( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchChangeNote ); - [DllImport( "libsteam_api.so" )] - internal static extern ItemUpdateStatus /*EItemUpdateStatus*/ SteamAPI_ISteamUGC_GetItemUpdateProgress( IntPtr ISteamUGC, ulong handle, out ulong /*uint64 **/ punBytesProcessed, out ulong /*uint64 **/ punBytesTotal ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SetUserItemVote( IntPtr ISteamUGC, ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_GetUserItemVote( IntPtr ISteamUGC, ulong nPublishedFileID ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_AddItemToFavorites( IntPtr ISteamUGC, uint nAppId, ulong nPublishedFileID ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RemoveItemFromFavorites( IntPtr ISteamUGC, uint nAppId, ulong nPublishedFileID ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SubscribeItem( IntPtr ISteamUGC, ulong nPublishedFileID ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_UnsubscribeItem( IntPtr ISteamUGC, ulong nPublishedFileID ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetNumSubscribedItems( IntPtr ISteamUGC ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetSubscribedItems( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetItemState( IntPtr ISteamUGC, ulong nPublishedFileID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetItemInstallInfo( IntPtr ISteamUGC, ulong nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderSize, out uint /*uint32 **/ punTimeStamp ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetItemDownloadInfo( IntPtr ISteamUGC, ulong nPublishedFileID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_DownloadItem( IntPtr ISteamUGC, ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHighPriority ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_BInitWorkshopForGameServer( IntPtr ISteamUGC, uint unWorkshopDepotID, string /*const char **/ pszFolder ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamUGC_SuspendDownloads( IntPtr ISteamUGC, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSuspend ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_StartPlaytimeTracking( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_StopPlaytimeTracking( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems( IntPtr ISteamUGC ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_AddDependency( IntPtr ISteamUGC, ulong nParentPublishedFileID, ulong nChildPublishedFileID ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RemoveDependency( IntPtr ISteamUGC, ulong nParentPublishedFileID, ulong nChildPublishedFileID ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_AddAppDependency( IntPtr ISteamUGC, ulong nPublishedFileID, uint nAppID ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RemoveAppDependency( IntPtr ISteamUGC, ulong nPublishedFileID, uint nAppID ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_GetAppDependencies( IntPtr ISteamUGC, ulong nPublishedFileID ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_DeleteItem( IntPtr ISteamUGC, ulong nPublishedFileID ); - - // - // ISteamAppList - // - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamAppList_GetNumInstalledApps( IntPtr ISteamAppList ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamAppList_GetInstalledApps( IntPtr ISteamAppList, IntPtr /*AppId_t **/ pvecAppID, uint /*uint32*/ unMaxAppIDs ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamAppList_GetAppName( IntPtr ISteamAppList, uint nAppID, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameMax ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamAppList_GetAppInstallDir( IntPtr ISteamAppList, uint nAppID, System.Text.StringBuilder /*char **/ pchDirectory, int /*int*/ cchNameMax ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamAppList_GetAppBuildId( IntPtr ISteamAppList, uint nAppID ); - - // - // ISteamHTMLSurface - // - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface( IntPtr ISteamHTMLSurface ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTMLSurface_Init( IntPtr ISteamHTMLSurface ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTMLSurface_Shutdown( IntPtr ISteamHTMLSurface ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamHTMLSurface_CreateBrowser( IntPtr ISteamHTMLSurface, string /*const char **/ pchUserAgent, string /*const char **/ pchUserCSS ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_RemoveBrowser( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_LoadURL( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchURL, string /*const char **/ pchPostData ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetSize( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ unWidth, uint /*uint32*/ unHeight ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_StopLoad( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_Reload( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_GoBack( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_GoForward( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_AddHeader( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_ExecuteJavascript( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchScript ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseUp( IntPtr ISteamHTMLSurface, uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseDown( IntPtr ISteamHTMLSurface, uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseDoubleClick( IntPtr ISteamHTMLSurface, uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseMove( IntPtr ISteamHTMLSurface, uint unBrowserHandle, int /*int*/ x, int /*int*/ y ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseWheel( IntPtr ISteamHTMLSurface, uint unBrowserHandle, int /*int32*/ nDelta ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_KeyDown( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bIsSystemKey ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_KeyUp( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_KeyChar( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ cUnicodeChar, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetHorizontalScroll( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetVerticalScroll( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetKeyFocus( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHasKeyFocus ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_ViewSource( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_CopyToClipboard( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_PasteFromClipboard( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_Find( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchSearchStr, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bCurrentlyInFind, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReverse ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_StopFind( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_GetLinkAtPosition( IntPtr ISteamHTMLSurface, uint unBrowserHandle, int /*int*/ x, int /*int*/ y ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetCookie( IntPtr ISteamHTMLSurface, string /*const char **/ pchHostname, string /*const char **/ pchKey, string /*const char **/ pchValue, string /*const char **/ pchPath, uint nExpires, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHTTPOnly ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetPageScaleFactor( IntPtr ISteamHTMLSurface, uint unBrowserHandle, float /*float*/ flZoom, int /*int*/ nPointX, int /*int*/ nPointY ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetBackgroundMode( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bBackgroundMode ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor( IntPtr ISteamHTMLSurface, uint unBrowserHandle, float /*float*/ flDPIScaling ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_OpenDeveloperTools( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_AllowStartRequest( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowed ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_JSDialogResponse( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bResult ); - - // - // ISteamInventory - // - [DllImport( "libsteam_api.so" )] - internal static extern Result /*EResult*/ SteamAPI_ISteamInventory_GetResultStatus( IntPtr ISteamInventory, int resultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetResultItems( IntPtr ISteamInventory, int resultHandle, IntPtr /*struct SteamItemDetails_t **/ pOutItemsArray, out uint /*uint32 **/ punOutItemsArraySize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetResultItemProperty( IntPtr ISteamInventory, int resultHandle, uint /*uint32*/ unItemIndex, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamInventory_GetResultTimestamp( IntPtr ISteamInventory, int resultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_CheckResultSteamID( IntPtr ISteamInventory, int resultHandle, ulong steamIDExpected ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamInventory_DestroyResult( IntPtr ISteamInventory, int resultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetAllItems( IntPtr ISteamInventory, ref int pResultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemsByID( IntPtr ISteamInventory, ref int pResultHandle, ulong[] pInstanceIDs, uint /*uint32*/ unCountInstanceIDs ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SerializeResult( IntPtr ISteamInventory, int resultHandle, IntPtr /*void **/ pOutBuffer, out uint /*uint32 **/ punOutBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_DeserializeResult( IntPtr ISteamInventory, ref int pOutResultHandle, IntPtr /*const void **/ pBuffer, uint /*uint32*/ unBufferSize, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRESERVED_MUST_BE_FALSE ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GenerateItems( IntPtr ISteamInventory, ref int pResultHandle, int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GrantPromoItems( IntPtr ISteamInventory, ref int pResultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_AddPromoItem( IntPtr ISteamInventory, ref int pResultHandle, int itemDef ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_AddPromoItems( IntPtr ISteamInventory, ref int pResultHandle, int[] pArrayItemDefs, uint /*uint32*/ unArrayLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_ConsumeItem( IntPtr ISteamInventory, ref int pResultHandle, ulong itemConsume, uint /*uint32*/ unQuantity ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_ExchangeItems( IntPtr ISteamInventory, ref int pResultHandle, int[] pArrayGenerate, uint[] /*const uint32 **/ punArrayGenerateQuantity, uint /*uint32*/ unArrayGenerateLength, ulong[] pArrayDestroy, uint[] /*const uint32 **/ punArrayDestroyQuantity, uint /*uint32*/ unArrayDestroyLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_TransferItemQuantity( IntPtr ISteamInventory, ref int pResultHandle, ulong itemIdSource, uint /*uint32*/ unQuantity, ulong itemIdDest ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamInventory_SendItemDropHeartbeat( IntPtr ISteamInventory ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_TriggerItemDrop( IntPtr ISteamInventory, ref int pResultHandle, int dropListDefinition ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_TradeItems( IntPtr ISteamInventory, ref int pResultHandle, ulong steamIDTradePartner, ulong[] pArrayGive, uint[] /*const uint32 **/ pArrayGiveQuantity, uint /*uint32*/ nArrayGiveLength, ulong[] pArrayGet, uint[] /*const uint32 **/ pArrayGetQuantity, uint /*uint32*/ nArrayGetLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_LoadItemDefinitions( IntPtr ISteamInventory ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemDefinitionIDs( IntPtr ISteamInventory, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemDefinitionProperty( IntPtr ISteamInventory, int iDefinition, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs( IntPtr ISteamInventory, ulong steamID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs( IntPtr ISteamInventory, ulong steamID, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamInventory_StartPurchase( IntPtr ISteamInventory, int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamInventory_RequestPrices( IntPtr ISteamInventory ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamInventory_GetNumItemsWithPrices( IntPtr ISteamInventory ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemsWithPrices( IntPtr ISteamInventory, IntPtr /*SteamItemDef_t **/ pArrayItemDefs, IntPtr /*uint64 **/ pCurrentPrices, IntPtr /*uint64 **/ pBasePrices, uint /*uint32*/ unArrayLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemPrice( IntPtr ISteamInventory, int iDefinition, out ulong /*uint64 **/ pCurrentPrice, out ulong /*uint64 **/ pBasePrice ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamInventoryUpdateHandle_t /*(SteamInventoryUpdateHandle_t)*/ SteamAPI_ISteamInventory_StartUpdateProperties( IntPtr ISteamInventory ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_RemoveProperty( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SetProperty( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, string /*const char **/ pchPropertyValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SetProperty0( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SetProperty0( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, long /*int64*/ nValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SetProperty0( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, float /*float*/ flValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SubmitUpdateProperties( IntPtr ISteamInventory, ulong handle, ref int pResultHandle ); - - // - // ISteamVideo - // - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamVideo_GetVideoURL( IntPtr ISteamVideo, uint unVideoAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamVideo_IsBroadcasting( IntPtr ISteamVideo, IntPtr /*int **/ pnNumViewers ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamVideo_GetOPFSettings( IntPtr ISteamVideo, uint unVideoAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamVideo_GetOPFStringForApp( IntPtr ISteamVideo, uint unVideoAppID, System.Text.StringBuilder /*char **/ pchBuffer, out int /*int32 **/ pnBufferSize ); - - // - // ISteamParentalSettings - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled( IntPtr ISteamParentalSettings ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsParentalLockLocked( IntPtr ISteamParentalSettings ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsAppBlocked( IntPtr ISteamParentalSettings, uint nAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsAppInBlockList( IntPtr ISteamParentalSettings, uint nAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsFeatureBlocked( IntPtr ISteamParentalSettings, ParentalFeature /*EParentalFeature*/ eFeature ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList( IntPtr ISteamParentalSettings, ParentalFeature /*EParentalFeature*/ eFeature ); - - // - // ISteamGameServer - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_InitGameServer( IntPtr ISteamGameServer, uint /*uint32*/ unIP, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, uint /*uint32*/ unFlags, uint nGameAppId, string /*const char **/ pchVersionString ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetProduct( IntPtr ISteamGameServer, string /*const char **/ pszProduct ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetGameDescription( IntPtr ISteamGameServer, string /*const char **/ pszGameDescription ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetModDir( IntPtr ISteamGameServer, string /*const char **/ pszModDir ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetDedicatedServer( IntPtr ISteamGameServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bDedicated ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_LogOn( IntPtr ISteamGameServer, string /*const char **/ pszToken ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_LogOnAnonymous( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_LogOff( IntPtr ISteamGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_BLoggedOn( IntPtr ISteamGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_BSecure( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.so" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamGameServer_GetSteamID( IntPtr ISteamGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_WasRestartRequested( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetMaxPlayerCount( IntPtr ISteamGameServer, int /*int*/ cPlayersMax ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetBotPlayerCount( IntPtr ISteamGameServer, int /*int*/ cBotplayers ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetServerName( IntPtr ISteamGameServer, string /*const char **/ pszServerName ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetMapName( IntPtr ISteamGameServer, string /*const char **/ pszMapName ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetPasswordProtected( IntPtr ISteamGameServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bPasswordProtected ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetSpectatorPort( IntPtr ISteamGameServer, ushort /*uint16*/ unSpectatorPort ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetSpectatorServerName( IntPtr ISteamGameServer, string /*const char **/ pszSpectatorServerName ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_ClearAllKeyValues( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetKeyValue( IntPtr ISteamGameServer, string /*const char **/ pKey, string /*const char **/ pValue ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetGameTags( IntPtr ISteamGameServer, string /*const char **/ pchGameTags ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetGameData( IntPtr ISteamGameServer, string /*const char **/ pchGameData ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetRegion( IntPtr ISteamGameServer, string /*const char **/ pszRegion ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate( IntPtr ISteamGameServer, uint /*uint32*/ unIPClient, IntPtr /*const void **/ pvAuthBlob, uint /*uint32*/ cubAuthBlobSize, out ulong pSteamIDUser ); - [DllImport( "libsteam_api.so" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SendUserDisconnect( IntPtr ISteamGameServer, ulong steamIDUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_BUpdateUserData( IntPtr ISteamGameServer, ulong steamIDUser, string /*const char **/ pchPlayerName, uint /*uint32*/ uScore ); - [DllImport( "libsteam_api.so" )] - internal static extern HAuthTicket /*(HAuthTicket)*/ SteamAPI_ISteamGameServer_GetAuthSessionTicket( IntPtr ISteamGameServer, IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ); - [DllImport( "libsteam_api.so" )] - internal static extern BeginAuthSessionResult /*EBeginAuthSessionResult*/ SteamAPI_ISteamGameServer_BeginAuthSession( IntPtr ISteamGameServer, IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_EndAuthSession( IntPtr ISteamGameServer, ulong steamID ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_CancelAuthTicket( IntPtr ISteamGameServer, uint hAuthTicket ); - [DllImport( "libsteam_api.so" )] - internal static extern UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ SteamAPI_ISteamGameServer_UserHasLicenseForApp( IntPtr ISteamGameServer, ulong steamID, uint appID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_RequestUserGroupStatus( IntPtr ISteamGameServer, ulong steamIDUser, ulong steamIDGroup ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_GetGameplayStats( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServer_GetServerReputation( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.so" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamGameServer_GetPublicIP( IntPtr ISteamGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_HandleIncomingPacket( IntPtr ISteamGameServer, IntPtr /*const void **/ pData, int /*int*/ cbData, uint /*uint32*/ srcIP, ushort /*uint16*/ srcPort ); - [DllImport( "libsteam_api.so" )] - internal static extern int /*int*/ SteamAPI_ISteamGameServer_GetNextOutgoingPacket( IntPtr ISteamGameServer, IntPtr /*void **/ pOut, int /*int*/ cbMaxOut, out uint /*uint32 **/ pNetAdr, out ushort /*uint16 **/ pPort ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_EnableHeartbeats( IntPtr ISteamGameServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bActive ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetHeartbeatInterval( IntPtr ISteamGameServer, int /*int*/ iHeartbeatInterval ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_ForceHeartbeat( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServer_AssociateWithClan( IntPtr ISteamGameServer, ulong steamIDClan ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility( IntPtr ISteamGameServer, ulong steamIDNewPlayer ); - - // - // ISteamGameServerStats - // - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServerStats_RequestUserStats( IntPtr ISteamGameServerStats, ulong steamIDUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_GetUserStat( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_GetUserStat0( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_GetUserAchievement( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_SetUserStat( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, int /*int32*/ nData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_SetUserStat0( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, float /*float*/ fData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_SetUserAchievement( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_ClearUserAchievement( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName ); - [DllImport( "libsteam_api.so" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServerStats_StoreUserStats( IntPtr ISteamGameServerStats, ulong steamIDUser ); - - // - // SteamApi - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_Init(); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_RunCallbacks(); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamGameServer_RunCallbacks(); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_RegisterCallback( IntPtr /*void **/ pCallback, int /*int*/ callback ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_UnregisterCallback( IntPtr /*void **/ pCallback ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_RegisterCallResult( IntPtr /*void **/ pCallback, ulong callback ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_UnregisterCallResult( IntPtr /*void **/ pCallback, ulong callback ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamInternal_GameServer_Init( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, int /*int*/ eServerMode, string /*const char **/ pchVersionString ); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamAPI_Shutdown(); - [DllImport( "libsteam_api.so" )] - internal static extern void /*void*/ SteamGameServer_Shutdown(); - [DllImport( "libsteam_api.so" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_GetHSteamUser(); - [DllImport( "libsteam_api.so" )] - internal static extern HSteamPipe /*(HSteamPipe)*/ SteamAPI_GetHSteamPipe(); - [DllImport( "libsteam_api.so" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamGameServer_GetHSteamUser(); - [DllImport( "libsteam_api.so" )] - internal static extern HSteamPipe /*(HSteamPipe)*/ SteamGameServer_GetHSteamPipe(); - [DllImport( "libsteam_api.so" )] - internal static extern IntPtr /*void **/ SteamInternal_CreateInterface( string /*const char **/ version ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.so" )] - internal static extern bool /*bool*/ SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID ); - - } - } - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Mac.cs b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Mac.cs deleted file mode 100644 index 0dd37c7..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Mac.cs +++ /dev/null @@ -1,6657 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal static partial class Platform - { - internal class Mac : Interface - { - internal IntPtr _ptr; - public bool IsValid { get{ return _ptr != IntPtr.Zero; } } - - // - // Constructor sets pointer to native class - // - internal Mac( IntPtr pointer ) - { - _ptr = pointer; - } - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - _ptr = IntPtr.Zero; - } - - public virtual HSteamPipe /*(HSteamPipe)*/ ISteamClient_CreateSteamPipe() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_CreateSteamPipe(_ptr); - } - public virtual bool /*bool*/ ISteamClient_BReleaseSteamPipe( int hSteamPipe ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_BReleaseSteamPipe(_ptr, hSteamPipe); - } - public virtual HSteamUser /*(HSteamUser)*/ ISteamClient_ConnectToGlobalUser( int hSteamPipe ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_ConnectToGlobalUser(_ptr, hSteamPipe); - } - public virtual HSteamUser /*(HSteamUser)*/ ISteamClient_CreateLocalUser( out int phSteamPipe, AccountType /*EAccountType*/ eAccountType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_CreateLocalUser(_ptr, out phSteamPipe, eAccountType); - } - public virtual void /*void*/ ISteamClient_ReleaseUser( int hSteamPipe, int hUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - Native.SteamAPI_ISteamClient_ReleaseUser(_ptr, hSteamPipe, hUser); - } - public virtual IntPtr /*class ISteamUser **/ ISteamClient_GetISteamUser( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamUser(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamGameServer **/ ISteamClient_GetISteamGameServer( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamGameServer(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual void /*void*/ ISteamClient_SetLocalIPBinding( uint /*uint32*/ unIP, ushort /*uint16*/ usPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - Native.SteamAPI_ISteamClient_SetLocalIPBinding(_ptr, unIP, usPort); - } - public virtual IntPtr /*class ISteamFriends **/ ISteamClient_GetISteamFriends( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamFriends(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamUtils **/ ISteamClient_GetISteamUtils( int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamUtils(_ptr, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamMatchmaking **/ ISteamClient_GetISteamMatchmaking( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamMatchmaking(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamMatchmakingServers **/ ISteamClient_GetISteamMatchmakingServers( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamMatchmakingServers(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*void **/ ISteamClient_GetISteamGenericInterface( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamGenericInterface(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamUserStats **/ ISteamClient_GetISteamUserStats( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamUserStats(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamGameServerStats **/ ISteamClient_GetISteamGameServerStats( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamGameServerStats(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamApps **/ ISteamClient_GetISteamApps( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamApps(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamNetworking **/ ISteamClient_GetISteamNetworking( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamNetworking(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamRemoteStorage **/ ISteamClient_GetISteamRemoteStorage( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamRemoteStorage(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamScreenshots **/ ISteamClient_GetISteamScreenshots( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamScreenshots(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamGameSearch **/ ISteamClient_GetISteamGameSearch( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamGameSearch(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual uint /*uint32*/ ISteamClient_GetIPCCallCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetIPCCallCount(_ptr); - } - public virtual void /*void*/ ISteamClient_SetWarningMessageHook( IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - Native.SteamAPI_ISteamClient_SetWarningMessageHook(_ptr, pFunction); - } - public virtual bool /*bool*/ ISteamClient_BShutdownIfAllPipesClosed() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_BShutdownIfAllPipesClosed(_ptr); - } - public virtual IntPtr /*class ISteamHTTP **/ ISteamClient_GetISteamHTTP( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamHTTP(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamController **/ ISteamClient_GetISteamController( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamController(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamUGC **/ ISteamClient_GetISteamUGC( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamUGC(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamAppList **/ ISteamClient_GetISteamAppList( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamAppList(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamMusic **/ ISteamClient_GetISteamMusic( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamMusic(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamMusicRemote **/ ISteamClient_GetISteamMusicRemote( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamMusicRemote(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamHTMLSurface **/ ISteamClient_GetISteamHTMLSurface( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamHTMLSurface(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamInventory **/ ISteamClient_GetISteamInventory( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamInventory(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamVideo **/ ISteamClient_GetISteamVideo( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamVideo(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamParentalSettings **/ ISteamClient_GetISteamParentalSettings( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamParentalSettings(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamInput **/ ISteamClient_GetISteamInput( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamInput(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamParties **/ ISteamClient_GetISteamParties( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamParties(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - - public virtual HSteamUser /*(HSteamUser)*/ ISteamUser_GetHSteamUser() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetHSteamUser(_ptr); - } - public virtual bool /*bool*/ ISteamUser_BLoggedOn() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BLoggedOn(_ptr); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamUser_GetSteamID() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetSteamID(_ptr); - } - public virtual int /*int*/ ISteamUser_InitiateGameConnection( IntPtr /*void **/ pAuthBlob, int /*int*/ cbMaxAuthBlob, ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_InitiateGameConnection(_ptr, pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure); - } - public virtual void /*void*/ ISteamUser_TerminateGameConnection( uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_TerminateGameConnection(_ptr, unIPServer, usPortServer); - } - public virtual void /*void*/ ISteamUser_TrackAppUsageEvent( ulong gameID, int /*int*/ eAppUsageEvent, string /*const char **/ pchExtraInfo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_TrackAppUsageEvent(_ptr, gameID, eAppUsageEvent, pchExtraInfo); - } - public virtual bool /*bool*/ ISteamUser_GetUserDataFolder( System.Text.StringBuilder /*char **/ pchBuffer, int /*int*/ cubBuffer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetUserDataFolder(_ptr, pchBuffer, cubBuffer); - } - public virtual void /*void*/ ISteamUser_StartVoiceRecording() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_StartVoiceRecording(_ptr); - } - public virtual void /*void*/ ISteamUser_StopVoiceRecording() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_StopVoiceRecording(_ptr); - } - public virtual VoiceResult /*EVoiceResult*/ ISteamUser_GetAvailableVoice( out uint /*uint32 **/ pcbCompressed, out uint /*uint32 **/ pcbUncompressed_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetAvailableVoice(_ptr, out pcbCompressed, out pcbUncompressed_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated); - } - public virtual VoiceResult /*EVoiceResult*/ ISteamUser_GetVoice( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantUncompressed_Deprecated, IntPtr /*void **/ pUncompressedDestBuffer_Deprecated, uint /*uint32*/ cbUncompressedDestBufferSize_Deprecated, out uint /*uint32 **/ nUncompressBytesWritten_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetVoice(_ptr, bWantCompressed, pDestBuffer, cbDestBufferSize, out nBytesWritten, bWantUncompressed_Deprecated, pUncompressedDestBuffer_Deprecated, cbUncompressedDestBufferSize_Deprecated, out nUncompressBytesWritten_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated); - } - public virtual VoiceResult /*EVoiceResult*/ ISteamUser_DecompressVoice( IntPtr /*const void **/ pCompressed, uint /*uint32*/ cbCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, uint /*uint32*/ nDesiredSampleRate ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_DecompressVoice(_ptr, pCompressed, cbCompressed, pDestBuffer, cbDestBufferSize, out nBytesWritten, nDesiredSampleRate); - } - public virtual uint /*uint32*/ ISteamUser_GetVoiceOptimalSampleRate() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetVoiceOptimalSampleRate(_ptr); - } - public virtual HAuthTicket /*(HAuthTicket)*/ ISteamUser_GetAuthSessionTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetAuthSessionTicket(_ptr, pTicket, cbMaxTicket, out pcbTicket); - } - public virtual BeginAuthSessionResult /*EBeginAuthSessionResult*/ ISteamUser_BeginAuthSession( IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BeginAuthSession(_ptr, pAuthTicket, cbAuthTicket, steamID); - } - public virtual void /*void*/ ISteamUser_EndAuthSession( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_EndAuthSession(_ptr, steamID); - } - public virtual void /*void*/ ISteamUser_CancelAuthTicket( uint hAuthTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_CancelAuthTicket(_ptr, hAuthTicket); - } - public virtual UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ ISteamUser_UserHasLicenseForApp( ulong steamID, uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_UserHasLicenseForApp(_ptr, steamID, appID); - } - public virtual bool /*bool*/ ISteamUser_BIsBehindNAT() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsBehindNAT(_ptr); - } - public virtual void /*void*/ ISteamUser_AdvertiseGame( ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_AdvertiseGame(_ptr, steamIDGameServer, unIPServer, usPortServer); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUser_RequestEncryptedAppTicket( IntPtr /*void **/ pDataToInclude, int /*int*/ cbDataToInclude ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_RequestEncryptedAppTicket(_ptr, pDataToInclude, cbDataToInclude); - } - public virtual bool /*bool*/ ISteamUser_GetEncryptedAppTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetEncryptedAppTicket(_ptr, pTicket, cbMaxTicket, out pcbTicket); - } - public virtual int /*int*/ ISteamUser_GetGameBadgeLevel( int /*int*/ nSeries, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bFoil ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetGameBadgeLevel(_ptr, nSeries, bFoil); - } - public virtual int /*int*/ ISteamUser_GetPlayerSteamLevel() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetPlayerSteamLevel(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUser_RequestStoreAuthURL( string /*const char **/ pchRedirectURL ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_RequestStoreAuthURL(_ptr, pchRedirectURL); - } - public virtual bool /*bool*/ ISteamUser_BIsPhoneVerified() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsPhoneVerified(_ptr); - } - public virtual bool /*bool*/ ISteamUser_BIsTwoFactorEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsTwoFactorEnabled(_ptr); - } - public virtual bool /*bool*/ ISteamUser_BIsPhoneIdentifying() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsPhoneIdentifying(_ptr); - } - public virtual bool /*bool*/ ISteamUser_BIsPhoneRequiringVerification() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsPhoneRequiringVerification(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUser_GetMarketEligibility() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetMarketEligibility(_ptr); - } - - public virtual IntPtr ISteamFriends_GetPersonaName() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetPersonaName(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_SetPersonaName( string /*const char **/ pchPersonaName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_SetPersonaName(_ptr, pchPersonaName); - } - public virtual PersonaState /*EPersonaState*/ ISteamFriends_GetPersonaState() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetPersonaState(_ptr); - } - public virtual int /*int*/ ISteamFriends_GetFriendCount( int /*int*/ iFriendFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendCount(_ptr, iFriendFlags); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetFriendByIndex( int /*int*/ iFriend, int /*int*/ iFriendFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendByIndex(_ptr, iFriend, iFriendFlags); - } - public virtual FriendRelationship /*EFriendRelationship*/ ISteamFriends_GetFriendRelationship( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendRelationship(_ptr, steamIDFriend); - } - public virtual PersonaState /*EPersonaState*/ ISteamFriends_GetFriendPersonaState( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendPersonaState(_ptr, steamIDFriend); - } - public virtual IntPtr ISteamFriends_GetFriendPersonaName( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendPersonaName(_ptr, steamIDFriend); - } - public virtual bool /*bool*/ ISteamFriends_GetFriendGamePlayed( ulong steamIDFriend, ref FriendGameInfo_t /*struct FriendGameInfo_t **/ pFriendGameInfo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - var pFriendGameInfo_ps = new FriendGameInfo_t.Pack4(); - var ret = Native.SteamAPI_ISteamFriends_GetFriendGamePlayed(_ptr, steamIDFriend, ref pFriendGameInfo_ps); - pFriendGameInfo = pFriendGameInfo_ps; - return ret; - } - public virtual IntPtr ISteamFriends_GetFriendPersonaNameHistory( ulong steamIDFriend, int /*int*/ iPersonaName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendPersonaNameHistory(_ptr, steamIDFriend, iPersonaName); - } - public virtual int /*int*/ ISteamFriends_GetFriendSteamLevel( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendSteamLevel(_ptr, steamIDFriend); - } - public virtual IntPtr ISteamFriends_GetPlayerNickname( ulong steamIDPlayer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetPlayerNickname(_ptr, steamIDPlayer); - } - public virtual int /*int*/ ISteamFriends_GetFriendsGroupCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendsGroupCount(_ptr); - } - public virtual FriendsGroupID_t /*(FriendsGroupID_t)*/ ISteamFriends_GetFriendsGroupIDByIndex( int /*int*/ iFG ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex(_ptr, iFG); - } - public virtual IntPtr ISteamFriends_GetFriendsGroupName( short friendsGroupID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendsGroupName(_ptr, friendsGroupID); - } - public virtual int /*int*/ ISteamFriends_GetFriendsGroupMembersCount( short friendsGroupID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendsGroupMembersCount(_ptr, friendsGroupID); - } - public virtual void /*void*/ ISteamFriends_GetFriendsGroupMembersList( short friendsGroupID, IntPtr /*class CSteamID **/ pOutSteamIDMembers, int /*int*/ nMembersCount ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_GetFriendsGroupMembersList(_ptr, friendsGroupID, pOutSteamIDMembers, nMembersCount); - } - public virtual bool /*bool*/ ISteamFriends_HasFriend( ulong steamIDFriend, int /*int*/ iFriendFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_HasFriend(_ptr, steamIDFriend, iFriendFlags); - } - public virtual int /*int*/ ISteamFriends_GetClanCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanCount(_ptr); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanByIndex( int /*int*/ iClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanByIndex(_ptr, iClan); - } - public virtual IntPtr ISteamFriends_GetClanName( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanName(_ptr, steamIDClan); - } - public virtual IntPtr ISteamFriends_GetClanTag( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanTag(_ptr, steamIDClan); - } - public virtual bool /*bool*/ ISteamFriends_GetClanActivityCounts( ulong steamIDClan, out int /*int **/ pnOnline, out int /*int **/ pnInGame, out int /*int **/ pnChatting ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanActivityCounts(_ptr, steamIDClan, out pnOnline, out pnInGame, out pnChatting); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_DownloadClanActivityCounts( IntPtr /*class CSteamID **/ psteamIDClans, int /*int*/ cClansToRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_DownloadClanActivityCounts(_ptr, psteamIDClans, cClansToRequest); - } - public virtual int /*int*/ ISteamFriends_GetFriendCountFromSource( ulong steamIDSource ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendCountFromSource(_ptr, steamIDSource); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetFriendFromSourceByIndex( ulong steamIDSource, int /*int*/ iFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendFromSourceByIndex(_ptr, steamIDSource, iFriend); - } - public virtual bool /*bool*/ ISteamFriends_IsUserInSource( ulong steamIDUser, ulong steamIDSource ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsUserInSource(_ptr, steamIDUser, steamIDSource); - } - public virtual void /*void*/ ISteamFriends_SetInGameVoiceSpeaking( ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSpeaking ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_SetInGameVoiceSpeaking(_ptr, steamIDUser, bSpeaking); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlay( string /*const char **/ pchDialog ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlay(_ptr, pchDialog); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlayToUser( string /*const char **/ pchDialog, ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlayToUser(_ptr, pchDialog, steamID); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlayToWebPage( string /*const char **/ pchURL, ActivateGameOverlayToWebPageMode /*EActivateGameOverlayToWebPageMode*/ eMode ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage(_ptr, pchURL, eMode); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlayToStore( uint nAppID, OverlayToStoreFlag /*EOverlayToStoreFlag*/ eFlag ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlayToStore(_ptr, nAppID, eFlag); - } - public virtual void /*void*/ ISteamFriends_SetPlayedWith( ulong steamIDUserPlayedWith ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_SetPlayedWith(_ptr, steamIDUserPlayedWith); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlayInviteDialog( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog(_ptr, steamIDLobby); - } - public virtual int /*int*/ ISteamFriends_GetSmallFriendAvatar( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetSmallFriendAvatar(_ptr, steamIDFriend); - } - public virtual int /*int*/ ISteamFriends_GetMediumFriendAvatar( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetMediumFriendAvatar(_ptr, steamIDFriend); - } - public virtual int /*int*/ ISteamFriends_GetLargeFriendAvatar( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetLargeFriendAvatar(_ptr, steamIDFriend); - } - public virtual bool /*bool*/ ISteamFriends_RequestUserInformation( ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireNameOnly ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_RequestUserInformation(_ptr, steamIDUser, bRequireNameOnly); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_RequestClanOfficerList( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_RequestClanOfficerList(_ptr, steamIDClan); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanOwner( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanOwner(_ptr, steamIDClan); - } - public virtual int /*int*/ ISteamFriends_GetClanOfficerCount( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanOfficerCount(_ptr, steamIDClan); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanOfficerByIndex( ulong steamIDClan, int /*int*/ iOfficer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanOfficerByIndex(_ptr, steamIDClan, iOfficer); - } - public virtual uint /*uint32*/ ISteamFriends_GetUserRestrictions() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetUserRestrictions(_ptr); - } - public virtual bool /*bool*/ ISteamFriends_SetRichPresence( string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_SetRichPresence(_ptr, pchKey, pchValue); - } - public virtual void /*void*/ ISteamFriends_ClearRichPresence() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ClearRichPresence(_ptr); - } - public virtual IntPtr ISteamFriends_GetFriendRichPresence( ulong steamIDFriend, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendRichPresence(_ptr, steamIDFriend, pchKey); - } - public virtual int /*int*/ ISteamFriends_GetFriendRichPresenceKeyCount( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount(_ptr, steamIDFriend); - } - public virtual IntPtr ISteamFriends_GetFriendRichPresenceKeyByIndex( ulong steamIDFriend, int /*int*/ iKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex(_ptr, steamIDFriend, iKey); - } - public virtual void /*void*/ ISteamFriends_RequestFriendRichPresence( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_RequestFriendRichPresence(_ptr, steamIDFriend); - } - public virtual bool /*bool*/ ISteamFriends_InviteUserToGame( ulong steamIDFriend, string /*const char **/ pchConnectString ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_InviteUserToGame(_ptr, steamIDFriend, pchConnectString); - } - public virtual int /*int*/ ISteamFriends_GetCoplayFriendCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetCoplayFriendCount(_ptr); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetCoplayFriend( int /*int*/ iCoplayFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetCoplayFriend(_ptr, iCoplayFriend); - } - public virtual int /*int*/ ISteamFriends_GetFriendCoplayTime( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendCoplayTime(_ptr, steamIDFriend); - } - public virtual AppId_t /*(AppId_t)*/ ISteamFriends_GetFriendCoplayGame( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendCoplayGame(_ptr, steamIDFriend); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_JoinClanChatRoom( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_JoinClanChatRoom(_ptr, steamIDClan); - } - public virtual bool /*bool*/ ISteamFriends_LeaveClanChatRoom( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_LeaveClanChatRoom(_ptr, steamIDClan); - } - public virtual int /*int*/ ISteamFriends_GetClanChatMemberCount( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanChatMemberCount(_ptr, steamIDClan); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetChatMemberByIndex( ulong steamIDClan, int /*int*/ iUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetChatMemberByIndex(_ptr, steamIDClan, iUser); - } - public virtual bool /*bool*/ ISteamFriends_SendClanChatMessage( ulong steamIDClanChat, string /*const char **/ pchText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_SendClanChatMessage(_ptr, steamIDClanChat, pchText); - } - public virtual int /*int*/ ISteamFriends_GetClanChatMessage( ulong steamIDClanChat, int /*int*/ iMessage, IntPtr /*void **/ prgchText, int /*int*/ cchTextMax, out ChatEntryType /*EChatEntryType **/ peChatEntryType, out ulong psteamidChatter ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanChatMessage(_ptr, steamIDClanChat, iMessage, prgchText, cchTextMax, out peChatEntryType, out psteamidChatter); - } - public virtual bool /*bool*/ ISteamFriends_IsClanChatAdmin( ulong steamIDClanChat, ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsClanChatAdmin(_ptr, steamIDClanChat, steamIDUser); - } - public virtual bool /*bool*/ ISteamFriends_IsClanChatWindowOpenInSteam( ulong steamIDClanChat ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam(_ptr, steamIDClanChat); - } - public virtual bool /*bool*/ ISteamFriends_OpenClanChatWindowInSteam( ulong steamIDClanChat ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_OpenClanChatWindowInSteam(_ptr, steamIDClanChat); - } - public virtual bool /*bool*/ ISteamFriends_CloseClanChatWindowInSteam( ulong steamIDClanChat ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_CloseClanChatWindowInSteam(_ptr, steamIDClanChat); - } - public virtual bool /*bool*/ ISteamFriends_SetListenForFriendsMessages( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bInterceptEnabled ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_SetListenForFriendsMessages(_ptr, bInterceptEnabled); - } - public virtual bool /*bool*/ ISteamFriends_ReplyToFriendMessage( ulong steamIDFriend, string /*const char **/ pchMsgToSend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_ReplyToFriendMessage(_ptr, steamIDFriend, pchMsgToSend); - } - public virtual int /*int*/ ISteamFriends_GetFriendMessage( ulong steamIDFriend, int /*int*/ iMessageID, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendMessage(_ptr, steamIDFriend, iMessageID, pvData, cubData, out peChatEntryType); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_GetFollowerCount( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFollowerCount(_ptr, steamID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_IsFollowing( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsFollowing(_ptr, steamID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_EnumerateFollowingList( uint /*uint32*/ unStartIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_EnumerateFollowingList(_ptr, unStartIndex); - } - public virtual bool /*bool*/ ISteamFriends_IsClanPublic( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsClanPublic(_ptr, steamIDClan); - } - public virtual bool /*bool*/ ISteamFriends_IsClanOfficialGameGroup( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsClanOfficialGameGroup(_ptr, steamIDClan); - } - public virtual int /*int*/ ISteamFriends_GetNumChatsWithUnreadPriorityMessages() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetNumChatsWithUnreadPriorityMessages(_ptr); - } - - public virtual uint /*uint32*/ ISteamUtils_GetSecondsSinceAppActive() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetSecondsSinceAppActive(_ptr); - } - public virtual uint /*uint32*/ ISteamUtils_GetSecondsSinceComputerActive() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetSecondsSinceComputerActive(_ptr); - } - public virtual Universe /*EUniverse*/ ISteamUtils_GetConnectedUniverse() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetConnectedUniverse(_ptr); - } - public virtual uint /*uint32*/ ISteamUtils_GetServerRealTime() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetServerRealTime(_ptr); - } - public virtual IntPtr ISteamUtils_GetIPCountry() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetIPCountry(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_GetImageSize( int /*int*/ iImage, out uint /*uint32 **/ pnWidth, out uint /*uint32 **/ pnHeight ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetImageSize(_ptr, iImage, out pnWidth, out pnHeight); - } - public virtual bool /*bool*/ ISteamUtils_GetImageRGBA( int /*int*/ iImage, IntPtr /*uint8 **/ pubDest, int /*int*/ nDestBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetImageRGBA(_ptr, iImage, pubDest, nDestBufferSize); - } - public virtual bool /*bool*/ ISteamUtils_GetCSERIPPort( out uint /*uint32 **/ unIP, out ushort /*uint16 **/ usPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetCSERIPPort(_ptr, out unIP, out usPort); - } - public virtual byte /*uint8*/ ISteamUtils_GetCurrentBatteryPower() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetCurrentBatteryPower(_ptr); - } - public virtual uint /*uint32*/ ISteamUtils_GetAppID() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetAppID(_ptr); - } - public virtual void /*void*/ ISteamUtils_SetOverlayNotificationPosition( NotificationPosition /*ENotificationPosition*/ eNotificationPosition ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_SetOverlayNotificationPosition(_ptr, eNotificationPosition); - } - public virtual bool /*bool*/ ISteamUtils_IsAPICallCompleted( ulong hSteamAPICall, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsAPICallCompleted(_ptr, hSteamAPICall, ref pbFailed); - } - public virtual SteamAPICallFailure /*ESteamAPICallFailure*/ ISteamUtils_GetAPICallFailureReason( ulong hSteamAPICall ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetAPICallFailureReason(_ptr, hSteamAPICall); - } - public virtual bool /*bool*/ ISteamUtils_GetAPICallResult( ulong hSteamAPICall, IntPtr /*void **/ pCallback, int /*int*/ cubCallback, int /*int*/ iCallbackExpected, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetAPICallResult(_ptr, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, ref pbFailed); - } - public virtual uint /*uint32*/ ISteamUtils_GetIPCCallCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetIPCCallCount(_ptr); - } - public virtual void /*void*/ ISteamUtils_SetWarningMessageHook( IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_SetWarningMessageHook(_ptr, pFunction); - } - public virtual bool /*bool*/ ISteamUtils_IsOverlayEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsOverlayEnabled(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_BOverlayNeedsPresent() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_BOverlayNeedsPresent(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUtils_CheckFileSignature( string /*const char **/ szFileName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_CheckFileSignature(_ptr, szFileName); - } - public virtual bool /*bool*/ ISteamUtils_ShowGamepadTextInput( GamepadTextInputMode /*EGamepadTextInputMode*/ eInputMode, GamepadTextInputLineMode /*EGamepadTextInputLineMode*/ eLineInputMode, string /*const char **/ pchDescription, uint /*uint32*/ unCharMax, string /*const char **/ pchExistingText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_ShowGamepadTextInput(_ptr, eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText); - } - public virtual uint /*uint32*/ ISteamUtils_GetEnteredGamepadTextLength() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetEnteredGamepadTextLength(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_GetEnteredGamepadTextInput( System.Text.StringBuilder /*char **/ pchText, uint /*uint32*/ cchText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetEnteredGamepadTextInput(_ptr, pchText, cchText); - } - public virtual IntPtr ISteamUtils_GetSteamUILanguage() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetSteamUILanguage(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_IsSteamRunningInVR() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsSteamRunningInVR(_ptr); - } - public virtual void /*void*/ ISteamUtils_SetOverlayNotificationInset( int /*int*/ nHorizontalInset, int /*int*/ nVerticalInset ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_SetOverlayNotificationInset(_ptr, nHorizontalInset, nVerticalInset); - } - public virtual bool /*bool*/ ISteamUtils_IsSteamInBigPictureMode() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsSteamInBigPictureMode(_ptr); - } - public virtual void /*void*/ ISteamUtils_StartVRDashboard() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_StartVRDashboard(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_IsVRHeadsetStreamingEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsVRHeadsetStreamingEnabled(_ptr); - } - public virtual void /*void*/ ISteamUtils_SetVRHeadsetStreamingEnabled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_SetVRHeadsetStreamingEnabled(_ptr, bEnabled); - } - - public virtual int /*int*/ ISteamMatchmaking_GetFavoriteGameCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetFavoriteGameCount(_ptr); - } - public virtual bool /*bool*/ ISteamMatchmaking_GetFavoriteGame( int /*int*/ iGame, ref uint pnAppID, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnConnPort, out ushort /*uint16 **/ pnQueryPort, out uint /*uint32 **/ punFlags, out uint /*uint32 **/ pRTime32LastPlayedOnServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetFavoriteGame(_ptr, iGame, ref pnAppID, out pnIP, out pnConnPort, out pnQueryPort, out punFlags, out pRTime32LastPlayedOnServer); - } - public virtual int /*int*/ ISteamMatchmaking_AddFavoriteGame( uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags, uint /*uint32*/ rTime32LastPlayedOnServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_AddFavoriteGame(_ptr, nAppID, nIP, nConnPort, nQueryPort, unFlags, rTime32LastPlayedOnServer); - } - public virtual bool /*bool*/ ISteamMatchmaking_RemoveFavoriteGame( uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_RemoveFavoriteGame(_ptr, nAppID, nIP, nConnPort, nQueryPort, unFlags); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_RequestLobbyList() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_RequestLobbyList(_ptr); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListStringFilter( string /*const char **/ pchKeyToMatch, string /*const char **/ pchValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter(_ptr, pchKeyToMatch, pchValueToMatch, eComparisonType); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListNumericalFilter( string /*const char **/ pchKeyToMatch, int /*int*/ nValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter(_ptr, pchKeyToMatch, nValueToMatch, eComparisonType); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListNearValueFilter( string /*const char **/ pchKeyToMatch, int /*int*/ nValueToBeCloseTo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter(_ptr, pchKeyToMatch, nValueToBeCloseTo); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable( int /*int*/ nSlotsAvailable ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable(_ptr, nSlotsAvailable); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListDistanceFilter( LobbyDistanceFilter /*ELobbyDistanceFilter*/ eLobbyDistanceFilter ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter(_ptr, eLobbyDistanceFilter); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListResultCountFilter( int /*int*/ cMaxResults ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter(_ptr, cMaxResults); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter(_ptr, steamIDLobby); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyByIndex( int /*int*/ iLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyByIndex(_ptr, iLobby); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_CreateLobby( LobbyType /*ELobbyType*/ eLobbyType, int /*int*/ cMaxMembers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_CreateLobby(_ptr, eLobbyType, cMaxMembers); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_JoinLobby( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_JoinLobby(_ptr, steamIDLobby); - } - public virtual void /*void*/ ISteamMatchmaking_LeaveLobby( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_LeaveLobby(_ptr, steamIDLobby); - } - public virtual bool /*bool*/ ISteamMatchmaking_InviteUserToLobby( ulong steamIDLobby, ulong steamIDInvitee ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_InviteUserToLobby(_ptr, steamIDLobby, steamIDInvitee); - } - public virtual int /*int*/ ISteamMatchmaking_GetNumLobbyMembers( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetNumLobbyMembers(_ptr, steamIDLobby); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyMemberByIndex( ulong steamIDLobby, int /*int*/ iMember ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex(_ptr, steamIDLobby, iMember); - } - public virtual IntPtr ISteamMatchmaking_GetLobbyData( ulong steamIDLobby, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyData(_ptr, steamIDLobby, pchKey); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyData( ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyData(_ptr, steamIDLobby, pchKey, pchValue); - } - public virtual int /*int*/ ISteamMatchmaking_GetLobbyDataCount( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyDataCount(_ptr, steamIDLobby); - } - public virtual bool /*bool*/ ISteamMatchmaking_GetLobbyDataByIndex( ulong steamIDLobby, int /*int*/ iLobbyData, System.Text.StringBuilder /*char **/ pchKey, int /*int*/ cchKeyBufferSize, System.Text.StringBuilder /*char **/ pchValue, int /*int*/ cchValueBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex(_ptr, steamIDLobby, iLobbyData, pchKey, cchKeyBufferSize, pchValue, cchValueBufferSize); - } - public virtual bool /*bool*/ ISteamMatchmaking_DeleteLobbyData( ulong steamIDLobby, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_DeleteLobbyData(_ptr, steamIDLobby, pchKey); - } - public virtual IntPtr ISteamMatchmaking_GetLobbyMemberData( ulong steamIDLobby, ulong steamIDUser, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyMemberData(_ptr, steamIDLobby, steamIDUser, pchKey); - } - public virtual void /*void*/ ISteamMatchmaking_SetLobbyMemberData( ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_SetLobbyMemberData(_ptr, steamIDLobby, pchKey, pchValue); - } - public virtual bool /*bool*/ ISteamMatchmaking_SendLobbyChatMsg( ulong steamIDLobby, IntPtr /*const void **/ pvMsgBody, int /*int*/ cubMsgBody ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SendLobbyChatMsg(_ptr, steamIDLobby, pvMsgBody, cubMsgBody); - } - public virtual int /*int*/ ISteamMatchmaking_GetLobbyChatEntry( ulong steamIDLobby, int /*int*/ iChatID, out ulong pSteamIDUser, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyChatEntry(_ptr, steamIDLobby, iChatID, out pSteamIDUser, pvData, cubData, out peChatEntryType); - } - public virtual bool /*bool*/ ISteamMatchmaking_RequestLobbyData( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_RequestLobbyData(_ptr, steamIDLobby); - } - public virtual void /*void*/ ISteamMatchmaking_SetLobbyGameServer( ulong steamIDLobby, uint /*uint32*/ unGameServerIP, ushort /*uint16*/ unGameServerPort, ulong steamIDGameServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_SetLobbyGameServer(_ptr, steamIDLobby, unGameServerIP, unGameServerPort, steamIDGameServer); - } - public virtual bool /*bool*/ ISteamMatchmaking_GetLobbyGameServer( ulong steamIDLobby, out uint /*uint32 **/ punGameServerIP, out ushort /*uint16 **/ punGameServerPort, out ulong psteamIDGameServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyGameServer(_ptr, steamIDLobby, out punGameServerIP, out punGameServerPort, out psteamIDGameServer); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyMemberLimit( ulong steamIDLobby, int /*int*/ cMaxMembers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit(_ptr, steamIDLobby, cMaxMembers); - } - public virtual int /*int*/ ISteamMatchmaking_GetLobbyMemberLimit( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit(_ptr, steamIDLobby); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyType( ulong steamIDLobby, LobbyType /*ELobbyType*/ eLobbyType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyType(_ptr, steamIDLobby, eLobbyType); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyJoinable( ulong steamIDLobby, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bLobbyJoinable ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyJoinable(_ptr, steamIDLobby, bLobbyJoinable); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyOwner( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyOwner(_ptr, steamIDLobby); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyOwner( ulong steamIDLobby, ulong steamIDNewOwner ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyOwner(_ptr, steamIDLobby, steamIDNewOwner); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLinkedLobby( ulong steamIDLobby, ulong steamIDLobbyDependent ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLinkedLobby(_ptr, steamIDLobby, steamIDLobbyDependent); - } - - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestInternetServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestInternetServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestLANServerList( uint iApp, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestLANServerList(_ptr, iApp, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestFriendsServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestFavoritesServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestHistoryServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestSpectatorServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual void /*void*/ ISteamMatchmakingServers_ReleaseRequest( IntPtr hServerListRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_ReleaseRequest(_ptr, hServerListRequest); - } - public virtual IntPtr /*class gameserveritem_t **/ ISteamMatchmakingServers_GetServerDetails( IntPtr hRequest, int /*int*/ iServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_GetServerDetails(_ptr, hRequest, iServer); - } - public virtual void /*void*/ ISteamMatchmakingServers_CancelQuery( IntPtr hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_CancelQuery(_ptr, hRequest); - } - public virtual void /*void*/ ISteamMatchmakingServers_RefreshQuery( IntPtr hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_RefreshQuery(_ptr, hRequest); - } - public virtual bool /*bool*/ ISteamMatchmakingServers_IsRefreshing( IntPtr hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_IsRefreshing(_ptr, hRequest); - } - public virtual int /*int*/ ISteamMatchmakingServers_GetServerCount( IntPtr hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_GetServerCount(_ptr, hRequest); - } - public virtual void /*void*/ ISteamMatchmakingServers_RefreshServer( IntPtr hRequest, int /*int*/ iServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_RefreshServer(_ptr, hRequest, iServer); - } - public virtual HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_PingServer( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPingResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_PingServer(_ptr, unIP, usPort, pRequestServersResponse); - } - public virtual HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_PlayerDetails( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPlayersResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_PlayerDetails(_ptr, unIP, usPort, pRequestServersResponse); - } - public virtual HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_ServerRules( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingRulesResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_ServerRules(_ptr, unIP, usPort, pRequestServersResponse); - } - public virtual void /*void*/ ISteamMatchmakingServers_CancelServerQuery( int hServerQuery ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_CancelServerQuery(_ptr, hServerQuery); - } - - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_AddGameSearchParams( string /*const char **/ pchKeyToFind, string /*const char **/ pchValuesToFind ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_AddGameSearchParams(_ptr, pchKeyToFind, pchValuesToFind); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SearchForGameWithLobby( ulong steamIDLobby, int /*int*/ nPlayerMin, int /*int*/ nPlayerMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SearchForGameWithLobby(_ptr, steamIDLobby, nPlayerMin, nPlayerMax); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SearchForGameSolo( int /*int*/ nPlayerMin, int /*int*/ nPlayerMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SearchForGameSolo(_ptr, nPlayerMin, nPlayerMax); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_AcceptGame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_AcceptGame(_ptr); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_DeclineGame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_DeclineGame(_ptr); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_RetrieveConnectionDetails( ulong steamIDHost, System.Text.StringBuilder /*char **/ pchConnectionDetails, int /*int*/ cubConnectionDetails ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_RetrieveConnectionDetails(_ptr, steamIDHost, pchConnectionDetails, cubConnectionDetails); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_EndGameSearch() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_EndGameSearch(_ptr); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SetGameHostParams( string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SetGameHostParams(_ptr, pchKey, pchValue); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SetConnectionDetails( string /*const char **/ pchConnectionDetails, int /*int*/ cubConnectionDetails ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SetConnectionDetails(_ptr, pchConnectionDetails, cubConnectionDetails); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_RequestPlayersForGame( int /*int*/ nPlayerMin, int /*int*/ nPlayerMax, int /*int*/ nMaxTeamSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_RequestPlayersForGame(_ptr, nPlayerMin, nPlayerMax, nMaxTeamSize); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_HostConfirmGameStart( ulong /*uint64*/ ullUniqueGameID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_HostConfirmGameStart(_ptr, ullUniqueGameID); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_CancelRequestPlayersForGame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_CancelRequestPlayersForGame(_ptr); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SubmitPlayerResult( ulong /*uint64*/ ullUniqueGameID, ulong steamIDPlayer, PlayerResult_t /*EPlayerResult_t*/ EPlayerResult ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SubmitPlayerResult(_ptr, ullUniqueGameID, steamIDPlayer, EPlayerResult); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_EndGame( ulong /*uint64*/ ullUniqueGameID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_EndGame(_ptr, ullUniqueGameID); - } - - public virtual uint /*uint32*/ ISteamParties_GetNumActiveBeacons() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_GetNumActiveBeacons(_ptr); - } - public virtual PartyBeaconID_t /*(PartyBeaconID_t)*/ ISteamParties_GetBeaconByIndex( uint /*uint32*/ unIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_GetBeaconByIndex(_ptr, unIndex); - } - public virtual bool /*bool*/ ISteamParties_GetBeaconDetails( ulong ulBeaconID, out ulong pSteamIDBeaconOwner, ref SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t **/ pLocation, System.Text.StringBuilder /*char **/ pchMetadata, int /*int*/ cchMetadata ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - var pLocation_ps = new SteamPartyBeaconLocation_t.Pack4(); - var ret = Native.SteamAPI_ISteamParties_GetBeaconDetails(_ptr, ulBeaconID, out pSteamIDBeaconOwner, ref pLocation_ps, pchMetadata, cchMetadata); - pLocation = pLocation_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamParties_JoinParty( ulong ulBeaconID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_JoinParty(_ptr, ulBeaconID); - } - public virtual bool /*bool*/ ISteamParties_GetNumAvailableBeaconLocations( IntPtr /*uint32 **/ puNumLocations ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_GetNumAvailableBeaconLocations(_ptr, puNumLocations); - } - public virtual bool /*bool*/ ISteamParties_GetAvailableBeaconLocations( ref SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t **/ pLocationList, uint /*uint32*/ uMaxNumLocations ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - var pLocationList_ps = new SteamPartyBeaconLocation_t.Pack4(); - var ret = Native.SteamAPI_ISteamParties_GetAvailableBeaconLocations(_ptr, ref pLocationList_ps, uMaxNumLocations); - pLocationList = pLocationList_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamParties_CreateBeacon( uint /*uint32*/ unOpenSlots, ref SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t **/ pBeaconLocation, string /*const char **/ pchConnectString, string /*const char **/ pchMetadata ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - var pBeaconLocation_ps = new SteamPartyBeaconLocation_t.Pack4(); - var ret = Native.SteamAPI_ISteamParties_CreateBeacon(_ptr, unOpenSlots, ref pBeaconLocation_ps, pchConnectString, pchMetadata); - pBeaconLocation = pBeaconLocation_ps; - return ret; - } - public virtual void /*void*/ ISteamParties_OnReservationCompleted( ulong ulBeacon, ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - Native.SteamAPI_ISteamParties_OnReservationCompleted(_ptr, ulBeacon, steamIDUser); - } - public virtual void /*void*/ ISteamParties_CancelReservation( ulong ulBeacon, ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - Native.SteamAPI_ISteamParties_CancelReservation(_ptr, ulBeacon, steamIDUser); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamParties_ChangeNumOpenSlots( ulong ulBeacon, uint /*uint32*/ unOpenSlots ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_ChangeNumOpenSlots(_ptr, ulBeacon, unOpenSlots); - } - public virtual bool /*bool*/ ISteamParties_DestroyBeacon( ulong ulBeacon ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_DestroyBeacon(_ptr, ulBeacon); - } - public virtual bool /*bool*/ ISteamParties_GetBeaconLocationData( SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t*/ BeaconLocation, SteamPartyBeaconLocationData /*ESteamPartyBeaconLocationData*/ eData, System.Text.StringBuilder /*char **/ pchDataStringOut, int /*int*/ cchDataStringOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_GetBeaconLocationData(_ptr, BeaconLocation, eData, pchDataStringOut, cchDataStringOut); - } - - public virtual bool /*bool*/ ISteamRemoteStorage_FileWrite( string /*const char **/ pchFile, IntPtr /*const void **/ pvData, int /*int32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWrite(_ptr, pchFile, pvData, cubData); - } - public virtual int /*int32*/ ISteamRemoteStorage_FileRead( string /*const char **/ pchFile, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileRead(_ptr, pchFile, pvData, cubDataToRead); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileWriteAsync( string /*const char **/ pchFile, IntPtr /*const void **/ pvData, uint /*uint32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteAsync(_ptr, pchFile, pvData, cubData); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileReadAsync( string /*const char **/ pchFile, uint /*uint32*/ nOffset, uint /*uint32*/ cubToRead ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileReadAsync(_ptr, pchFile, nOffset, cubToRead); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileReadAsyncComplete( ulong hReadCall, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cubToRead ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete(_ptr, hReadCall, pvBuffer, cubToRead); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileForget( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileForget(_ptr, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileDelete( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileDelete(_ptr, pchFile); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileShare( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileShare(_ptr, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_SetSyncPlatforms( string /*const char **/ pchFile, RemoteStoragePlatform /*ERemoteStoragePlatform*/ eRemoteStoragePlatform ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_SetSyncPlatforms(_ptr, pchFile, eRemoteStoragePlatform); - } - public virtual UGCFileWriteStreamHandle_t /*(UGCFileWriteStreamHandle_t)*/ ISteamRemoteStorage_FileWriteStreamOpen( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen(_ptr, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileWriteStreamWriteChunk( ulong writeHandle, IntPtr /*const void **/ pvData, int /*int32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk(_ptr, writeHandle, pvData, cubData); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileWriteStreamClose( ulong writeHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamClose(_ptr, writeHandle); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileWriteStreamCancel( ulong writeHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel(_ptr, writeHandle); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileExists( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileExists(_ptr, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FilePersisted( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FilePersisted(_ptr, pchFile); - } - public virtual int /*int32*/ ISteamRemoteStorage_GetFileSize( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetFileSize(_ptr, pchFile); - } - public virtual long /*int64*/ ISteamRemoteStorage_GetFileTimestamp( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetFileTimestamp(_ptr, pchFile); - } - public virtual RemoteStoragePlatform /*ERemoteStoragePlatform*/ ISteamRemoteStorage_GetSyncPlatforms( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetSyncPlatforms(_ptr, pchFile); - } - public virtual int /*int32*/ ISteamRemoteStorage_GetFileCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetFileCount(_ptr); - } - public virtual IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile, out int /*int32 **/ pnFileSizeInBytes ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetFileNameAndSize(_ptr, iFile, out pnFileSizeInBytes); - } - public virtual bool /*bool*/ ISteamRemoteStorage_GetQuota( out ulong /*uint64 **/ pnTotalBytes, out ulong /*uint64 **/ puAvailableBytes ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetQuota(_ptr, out pnTotalBytes, out puAvailableBytes); - } - public virtual bool /*bool*/ ISteamRemoteStorage_IsCloudEnabledForAccount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount(_ptr); - } - public virtual bool /*bool*/ ISteamRemoteStorage_IsCloudEnabledForApp() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp(_ptr); - } - public virtual void /*void*/ ISteamRemoteStorage_SetCloudEnabledForApp( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - Native.SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp(_ptr, bEnabled); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UGCDownload( ulong hContent, uint /*uint32*/ unPriority ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UGCDownload(_ptr, hContent, unPriority); - } - public virtual bool /*bool*/ ISteamRemoteStorage_GetUGCDownloadProgress( ulong hContent, out int /*int32 **/ pnBytesDownloaded, out int /*int32 **/ pnBytesExpected ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress(_ptr, hContent, out pnBytesDownloaded, out pnBytesExpected); - } - public virtual bool /*bool*/ ISteamRemoteStorage_GetUGCDetails( ulong hContent, ref uint pnAppID, System.Text.StringBuilder /*char ***/ ppchName, out int /*int32 **/ pnFileSizeInBytes, out ulong pSteamIDOwner ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetUGCDetails(_ptr, hContent, ref pnAppID, ppchName, out pnFileSizeInBytes, out pSteamIDOwner); - } - public virtual int /*int32*/ ISteamRemoteStorage_UGCRead( ulong hContent, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead, uint /*uint32*/ cOffset, UGCReadAction /*EUGCReadAction*/ eAction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UGCRead(_ptr, hContent, pvData, cubDataToRead, cOffset, eAction); - } - public virtual int /*int32*/ ISteamRemoteStorage_GetCachedUGCCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetCachedUGCCount(_ptr); - } - public virtual UGCHandle_t /*(UGCHandle_t)*/ ISteamRemoteStorage_GetCachedUGCHandle( int /*int32*/ iCachedContent ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle(_ptr, iCachedContent); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_PublishWorkshopFile( string /*const char **/ pchFile, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags, WorkshopFileType /*EWorkshopFileType*/ eWorkshopFileType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack4(); - var ret = Native.SteamAPI_ISteamRemoteStorage_PublishWorkshopFile(_ptr, pchFile, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, ref pTags_ps, eWorkshopFileType); - pTags = pTags_ps; - return ret; - } - public virtual PublishedFileUpdateHandle_t /*(PublishedFileUpdateHandle_t)*/ ISteamRemoteStorage_CreatePublishedFileUpdateRequest( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest(_ptr, unPublishedFileId); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileFile( ulong updateHandle, string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile(_ptr, updateHandle, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFilePreviewFile( ulong updateHandle, string /*const char **/ pchPreviewFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile(_ptr, updateHandle, pchPreviewFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileTitle( ulong updateHandle, string /*const char **/ pchTitle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle(_ptr, updateHandle, pchTitle); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileDescription( ulong updateHandle, string /*const char **/ pchDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription(_ptr, updateHandle, pchDescription); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileVisibility( ulong updateHandle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility(_ptr, updateHandle, eVisibility); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileTags( ulong updateHandle, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack4(); - var ret = Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags(_ptr, updateHandle, ref pTags_ps); - pTags = pTags_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_CommitPublishedFileUpdate( ulong updateHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate(_ptr, updateHandle); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetPublishedFileDetails( ulong unPublishedFileId, uint /*uint32*/ unMaxSecondsOld ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails(_ptr, unPublishedFileId, unMaxSecondsOld); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_DeletePublishedFile( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_DeletePublishedFile(_ptr, unPublishedFileId); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserPublishedFiles( uint /*uint32*/ unStartIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles(_ptr, unStartIndex); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_SubscribePublishedFile( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_SubscribePublishedFile(_ptr, unPublishedFileId); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserSubscribedFiles( uint /*uint32*/ unStartIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles(_ptr, unStartIndex); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UnsubscribePublishedFile( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile(_ptr, unPublishedFileId); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription( ulong updateHandle, string /*const char **/ pchChangeDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription(_ptr, updateHandle, pchChangeDescription); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetPublishedItemVoteDetails( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails(_ptr, unPublishedFileId); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UpdateUserPublishedItemVote( ulong unPublishedFileId, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote(_ptr, unPublishedFileId, bVoteUp); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetUserPublishedItemVoteDetails( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails(_ptr, unPublishedFileId); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles( ulong steamId, uint /*uint32*/ unStartIndex, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pRequiredTags, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pExcludedTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pRequiredTags_ps = new SteamParamStringArray_t.Pack4(); - var pExcludedTags_ps = new SteamParamStringArray_t.Pack4(); - var ret = Native.SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles(_ptr, steamId, unStartIndex, ref pRequiredTags_ps, ref pExcludedTags_ps); - pRequiredTags = pRequiredTags_ps; - pExcludedTags = pExcludedTags_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_PublishVideo( WorkshopVideoProvider /*EWorkshopVideoProvider*/ eVideoProvider, string /*const char **/ pchVideoAccount, string /*const char **/ pchVideoIdentifier, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack4(); - var ret = Native.SteamAPI_ISteamRemoteStorage_PublishVideo(_ptr, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, ref pTags_ps); - pTags = pTags_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_SetUserPublishedFileAction( ulong unPublishedFileId, WorkshopFileAction /*EWorkshopFileAction*/ eAction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction(_ptr, unPublishedFileId, eAction); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumeratePublishedFilesByUserAction( WorkshopFileAction /*EWorkshopFileAction*/ eAction, uint /*uint32*/ unStartIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction(_ptr, eAction, unStartIndex); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumeratePublishedWorkshopFiles( WorkshopEnumerationType /*EWorkshopEnumerationType*/ eEnumerationType, uint /*uint32*/ unStartIndex, uint /*uint32*/ unCount, uint /*uint32*/ unDays, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pUserTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack4(); - var pUserTags_ps = new SteamParamStringArray_t.Pack4(); - var ret = Native.SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles(_ptr, eEnumerationType, unStartIndex, unCount, unDays, ref pTags_ps, ref pUserTags_ps); - pTags = pTags_ps; - pUserTags = pUserTags_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UGCDownloadToLocation( ulong hContent, string /*const char **/ pchLocation, uint /*uint32*/ unPriority ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation(_ptr, hContent, pchLocation, unPriority); - } - - public virtual bool /*bool*/ ISteamUserStats_RequestCurrentStats() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_RequestCurrentStats(_ptr); - } - public virtual bool /*bool*/ ISteamUserStats_GetStat( string /*const char **/ pchName, out int /*int32 **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetStat(_ptr, pchName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_GetStat0( string /*const char **/ pchName, out float /*float **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetStat0(_ptr, pchName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_SetStat( string /*const char **/ pchName, int /*int32*/ nData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_SetStat(_ptr, pchName, nData); - } - public virtual bool /*bool*/ ISteamUserStats_SetStat0( string /*const char **/ pchName, float /*float*/ fData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_SetStat0(_ptr, pchName, fData); - } - public virtual bool /*bool*/ ISteamUserStats_UpdateAvgRateStat( string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_UpdateAvgRateStat(_ptr, pchName, flCountThisSession, dSessionLength); - } - public virtual bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievement(_ptr, pchName, ref pbAchieved); - } - public virtual bool /*bool*/ ISteamUserStats_SetAchievement( string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_SetAchievement(_ptr, pchName); - } - public virtual bool /*bool*/ ISteamUserStats_ClearAchievement( string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_ClearAchievement(_ptr, pchName); - } - public virtual bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime(_ptr, pchName, ref pbAchieved, out punUnlockTime); - } - public virtual bool /*bool*/ ISteamUserStats_StoreStats() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_StoreStats(_ptr); - } - public virtual int /*int*/ ISteamUserStats_GetAchievementIcon( string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementIcon(_ptr, pchName); - } - public virtual IntPtr ISteamUserStats_GetAchievementDisplayAttribute( string /*const char **/ pchName, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute(_ptr, pchName, pchKey); - } - public virtual bool /*bool*/ ISteamUserStats_IndicateAchievementProgress( string /*const char **/ pchName, uint /*uint32*/ nCurProgress, uint /*uint32*/ nMaxProgress ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_IndicateAchievementProgress(_ptr, pchName, nCurProgress, nMaxProgress); - } - public virtual uint /*uint32*/ ISteamUserStats_GetNumAchievements() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetNumAchievements(_ptr); - } - public virtual IntPtr ISteamUserStats_GetAchievementName( uint /*uint32*/ iAchievement ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementName(_ptr, iAchievement); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestUserStats( ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_RequestUserStats(_ptr, steamIDUser); - } - public virtual bool /*bool*/ ISteamUserStats_GetUserStat( ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetUserStat(_ptr, steamIDUser, pchName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_GetUserStat0( ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetUserStat0(_ptr, steamIDUser, pchName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievement( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); - } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime(_ptr, steamIDUser, pchName, ref pbAchieved, out punUnlockTime); - } - public virtual bool /*bool*/ ISteamUserStats_ResetAllStats( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAchievementsToo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_ResetAllStats(_ptr, bAchievementsToo); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_FindOrCreateLeaderboard( string /*const char **/ pchLeaderboardName, LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod, LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_FindOrCreateLeaderboard(_ptr, pchLeaderboardName, eLeaderboardSortMethod, eLeaderboardDisplayType); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_FindLeaderboard( string /*const char **/ pchLeaderboardName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_FindLeaderboard(_ptr, pchLeaderboardName); - } - public virtual IntPtr ISteamUserStats_GetLeaderboardName( ulong hSteamLeaderboard ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetLeaderboardName(_ptr, hSteamLeaderboard); - } - public virtual int /*int*/ ISteamUserStats_GetLeaderboardEntryCount( ulong hSteamLeaderboard ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetLeaderboardEntryCount(_ptr, hSteamLeaderboard); - } - public virtual LeaderboardSortMethod /*ELeaderboardSortMethod*/ ISteamUserStats_GetLeaderboardSortMethod( ulong hSteamLeaderboard ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetLeaderboardSortMethod(_ptr, hSteamLeaderboard); - } - public virtual LeaderboardDisplayType /*ELeaderboardDisplayType*/ ISteamUserStats_GetLeaderboardDisplayType( ulong hSteamLeaderboard ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetLeaderboardDisplayType(_ptr, hSteamLeaderboard); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_DownloadLeaderboardEntries( ulong hSteamLeaderboard, LeaderboardDataRequest /*ELeaderboardDataRequest*/ eLeaderboardDataRequest, int /*int*/ nRangeStart, int /*int*/ nRangeEnd ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_DownloadLeaderboardEntries(_ptr, hSteamLeaderboard, eLeaderboardDataRequest, nRangeStart, nRangeEnd); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_DownloadLeaderboardEntriesForUsers( ulong hSteamLeaderboard, IntPtr /*class CSteamID **/ prgUsers, int /*int*/ cUsers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers(_ptr, hSteamLeaderboard, prgUsers, cUsers); - } - public virtual bool /*bool*/ ISteamUserStats_GetDownloadedLeaderboardEntry( ulong hSteamLeaderboardEntries, int /*int*/ index, ref LeaderboardEntry_t /*struct LeaderboardEntry_t **/ pLeaderboardEntry, IntPtr /*int32 **/ pDetails, int /*int*/ cDetailsMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - var pLeaderboardEntry_ps = new LeaderboardEntry_t.Pack4(); - var ret = Native.SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry(_ptr, hSteamLeaderboardEntries, index, ref pLeaderboardEntry_ps, pDetails, cDetailsMax); - pLeaderboardEntry = pLeaderboardEntry_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_UploadLeaderboardScore( ulong hSteamLeaderboard, LeaderboardUploadScoreMethod /*ELeaderboardUploadScoreMethod*/ eLeaderboardUploadScoreMethod, int /*int32*/ nScore, int[] /*const int32 **/ pScoreDetails, int /*int*/ cScoreDetailsCount ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_UploadLeaderboardScore(_ptr, hSteamLeaderboard, eLeaderboardUploadScoreMethod, nScore, pScoreDetails, cScoreDetailsCount); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_AttachLeaderboardUGC( ulong hSteamLeaderboard, ulong hUGC ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_AttachLeaderboardUGC(_ptr, hSteamLeaderboard, hUGC); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_GetNumberOfCurrentPlayers() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestGlobalAchievementPercentages() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages(_ptr); - } - public virtual int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo(_ptr, pchName, unNameBufLen, out pflPercent, ref pbAchieved); - } - public virtual int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo(_ptr, iIteratorPrevious, pchName, unNameBufLen, out pflPercent, ref pbAchieved); - } - public virtual bool /*bool*/ ISteamUserStats_GetAchievementAchievedPercent( string /*const char **/ pchName, out float /*float **/ pflPercent ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementAchievedPercent(_ptr, pchName, out pflPercent); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestGlobalStats( int /*int*/ nHistoryDays ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_RequestGlobalStats(_ptr, nHistoryDays); - } - public virtual bool /*bool*/ ISteamUserStats_GetGlobalStat( string /*const char **/ pchStatName, out long /*int64 **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetGlobalStat(_ptr, pchStatName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_GetGlobalStat0( string /*const char **/ pchStatName, out double /*double **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetGlobalStat0(_ptr, pchStatName, out pData); - } - public virtual int /*int32*/ ISteamUserStats_GetGlobalStatHistory( string /*const char **/ pchStatName, out long /*int64 **/ pData, uint /*uint32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetGlobalStatHistory(_ptr, pchStatName, out pData, cubData); - } - public virtual int /*int32*/ ISteamUserStats_GetGlobalStatHistory0( string /*const char **/ pchStatName, out double /*double **/ pData, uint /*uint32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetGlobalStatHistory0(_ptr, pchStatName, out pData, cubData); - } - - public virtual bool /*bool*/ ISteamApps_BIsSubscribed() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsSubscribed(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BIsLowViolence() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsLowViolence(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BIsCybercafe() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsCybercafe(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BIsVACBanned() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsVACBanned(_ptr); - } - public virtual IntPtr ISteamApps_GetCurrentGameLanguage() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetCurrentGameLanguage(_ptr); - } - public virtual IntPtr ISteamApps_GetAvailableGameLanguages() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetAvailableGameLanguages(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BIsSubscribedApp( uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsSubscribedApp(_ptr, appID); - } - public virtual bool /*bool*/ ISteamApps_BIsDlcInstalled( uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsDlcInstalled(_ptr, appID); - } - public virtual uint /*uint32*/ ISteamApps_GetEarliestPurchaseUnixTime( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime(_ptr, nAppID); - } - public virtual bool /*bool*/ ISteamApps_BIsSubscribedFromFreeWeekend() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend(_ptr); - } - public virtual int /*int*/ ISteamApps_GetDLCCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetDLCCount(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC, ref uint pAppID, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BGetDLCDataByIndex(_ptr, iDLC, ref pAppID, ref pbAvailable, pchName, cchNameBufferSize); - } - public virtual void /*void*/ ISteamApps_InstallDLC( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - Native.SteamAPI_ISteamApps_InstallDLC(_ptr, nAppID); - } - public virtual void /*void*/ ISteamApps_UninstallDLC( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - Native.SteamAPI_ISteamApps_UninstallDLC(_ptr, nAppID); - } - public virtual void /*void*/ ISteamApps_RequestAppProofOfPurchaseKey( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - Native.SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey(_ptr, nAppID); - } - public virtual bool /*bool*/ ISteamApps_GetCurrentBetaName( System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetCurrentBetaName(_ptr, pchName, cchNameBufferSize); - } - public virtual bool /*bool*/ ISteamApps_MarkContentCorrupt( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMissingFilesOnly ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_MarkContentCorrupt(_ptr, bMissingFilesOnly); - } - public virtual uint /*uint32*/ ISteamApps_GetInstalledDepots( uint appID, IntPtr /*DepotId_t **/ pvecDepots, uint /*uint32*/ cMaxDepots ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetInstalledDepots(_ptr, appID, pvecDepots, cMaxDepots); - } - public virtual uint /*uint32*/ ISteamApps_GetAppInstallDir( uint appID, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetAppInstallDir(_ptr, appID, pchFolder, cchFolderBufferSize); - } - public virtual bool /*bool*/ ISteamApps_BIsAppInstalled( uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsAppInstalled(_ptr, appID); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamApps_GetAppOwner() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetAppOwner(_ptr); - } - public virtual IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetLaunchQueryParam(_ptr, pchKey); - } - public virtual bool /*bool*/ ISteamApps_GetDlcDownloadProgress( uint nAppID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetDlcDownloadProgress(_ptr, nAppID, out punBytesDownloaded, out punBytesTotal); - } - public virtual int /*int*/ ISteamApps_GetAppBuildId() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetAppBuildId(_ptr); - } - public virtual void /*void*/ ISteamApps_RequestAllProofOfPurchaseKeys() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - Native.SteamAPI_ISteamApps_RequestAllProofOfPurchaseKeys(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamApps_GetFileDetails( string /*const char **/ pszFileName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetFileDetails(_ptr, pszFileName); - } - public virtual int /*int*/ ISteamApps_GetLaunchCommandLine( System.Text.StringBuilder /*char **/ pszCommandLine, int /*int*/ cubCommandLine ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetLaunchCommandLine(_ptr, pszCommandLine, cubCommandLine); - } - public virtual bool /*bool*/ ISteamApps_BIsSubscribedFromFamilySharing() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsSubscribedFromFamilySharing(_ptr); - } - - public virtual bool /*bool*/ ISteamNetworking_SendP2PPacket( ulong steamIDRemote, IntPtr /*const void **/ pubData, uint /*uint32*/ cubData, P2PSend /*EP2PSend*/ eP2PSendType, int /*int*/ nChannel ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_SendP2PPacket(_ptr, steamIDRemote, pubData, cubData, eP2PSendType, nChannel); - } - public virtual bool /*bool*/ ISteamNetworking_IsP2PPacketAvailable( out uint /*uint32 **/ pcubMsgSize, int /*int*/ nChannel ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_IsP2PPacketAvailable(_ptr, out pcubMsgSize, nChannel); - } - public virtual bool /*bool*/ ISteamNetworking_ReadP2PPacket( IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, out ulong psteamIDRemote, int /*int*/ nChannel ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_ReadP2PPacket(_ptr, pubDest, cubDest, out pcubMsgSize, out psteamIDRemote, nChannel); - } - public virtual bool /*bool*/ ISteamNetworking_AcceptP2PSessionWithUser( ulong steamIDRemote ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser(_ptr, steamIDRemote); - } - public virtual bool /*bool*/ ISteamNetworking_CloseP2PSessionWithUser( ulong steamIDRemote ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CloseP2PSessionWithUser(_ptr, steamIDRemote); - } - public virtual bool /*bool*/ ISteamNetworking_CloseP2PChannelWithUser( ulong steamIDRemote, int /*int*/ nChannel ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CloseP2PChannelWithUser(_ptr, steamIDRemote, nChannel); - } - public virtual bool /*bool*/ ISteamNetworking_GetP2PSessionState( ulong steamIDRemote, ref P2PSessionState_t /*struct P2PSessionState_t **/ pConnectionState ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - var pConnectionState_ps = new P2PSessionState_t.Pack4(); - var ret = Native.SteamAPI_ISteamNetworking_GetP2PSessionState(_ptr, steamIDRemote, ref pConnectionState_ps); - pConnectionState = pConnectionState_ps; - return ret; - } - public virtual bool /*bool*/ ISteamNetworking_AllowP2PPacketRelay( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllow ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_AllowP2PPacketRelay(_ptr, bAllow); - } - public virtual SNetListenSocket_t /*(SNetListenSocket_t)*/ ISteamNetworking_CreateListenSocket( int /*int*/ nVirtualP2PPort, uint /*uint32*/ nIP, ushort /*uint16*/ nPort, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CreateListenSocket(_ptr, nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay); - } - public virtual SNetSocket_t /*(SNetSocket_t)*/ ISteamNetworking_CreateP2PConnectionSocket( ulong steamIDTarget, int /*int*/ nVirtualPort, int /*int*/ nTimeoutSec, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CreateP2PConnectionSocket(_ptr, steamIDTarget, nVirtualPort, nTimeoutSec, bAllowUseOfPacketRelay); - } - public virtual SNetSocket_t /*(SNetSocket_t)*/ ISteamNetworking_CreateConnectionSocket( uint /*uint32*/ nIP, ushort /*uint16*/ nPort, int /*int*/ nTimeoutSec ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CreateConnectionSocket(_ptr, nIP, nPort, nTimeoutSec); - } - public virtual bool /*bool*/ ISteamNetworking_DestroySocket( uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_DestroySocket(_ptr, hSocket, bNotifyRemoteEnd); - } - public virtual bool /*bool*/ ISteamNetworking_DestroyListenSocket( uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_DestroyListenSocket(_ptr, hSocket, bNotifyRemoteEnd); - } - public virtual bool /*bool*/ ISteamNetworking_SendDataOnSocket( uint hSocket, IntPtr /*void **/ pubData, uint /*uint32*/ cubData, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReliable ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_SendDataOnSocket(_ptr, hSocket, pubData, cubData, bReliable); - } - public virtual bool /*bool*/ ISteamNetworking_IsDataAvailableOnSocket( uint hSocket, out uint /*uint32 **/ pcubMsgSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_IsDataAvailableOnSocket(_ptr, hSocket, out pcubMsgSize); - } - public virtual bool /*bool*/ ISteamNetworking_RetrieveDataFromSocket( uint hSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_RetrieveDataFromSocket(_ptr, hSocket, pubDest, cubDest, out pcubMsgSize); - } - public virtual bool /*bool*/ ISteamNetworking_IsDataAvailable( uint hListenSocket, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_IsDataAvailable(_ptr, hListenSocket, out pcubMsgSize, ref phSocket); - } - public virtual bool /*bool*/ ISteamNetworking_RetrieveData( uint hListenSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_RetrieveData(_ptr, hListenSocket, pubDest, cubDest, out pcubMsgSize, ref phSocket); - } - public virtual bool /*bool*/ ISteamNetworking_GetSocketInfo( uint hSocket, out ulong pSteamIDRemote, IntPtr /*int **/ peSocketStatus, out uint /*uint32 **/ punIPRemote, out ushort /*uint16 **/ punPortRemote ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_GetSocketInfo(_ptr, hSocket, out pSteamIDRemote, peSocketStatus, out punIPRemote, out punPortRemote); - } - public virtual bool /*bool*/ ISteamNetworking_GetListenSocketInfo( uint hListenSocket, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_GetListenSocketInfo(_ptr, hListenSocket, out pnIP, out pnPort); - } - public virtual SNetSocketConnectionType /*ESNetSocketConnectionType*/ ISteamNetworking_GetSocketConnectionType( uint hSocket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_GetSocketConnectionType(_ptr, hSocket); - } - public virtual int /*int*/ ISteamNetworking_GetMaxPacketSize( uint hSocket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_GetMaxPacketSize(_ptr, hSocket); - } - - public virtual ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_WriteScreenshot( IntPtr /*void **/ pubRGB, uint /*uint32*/ cubRGB, int /*int*/ nWidth, int /*int*/ nHeight ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_WriteScreenshot(_ptr, pubRGB, cubRGB, nWidth, nHeight); - } - public virtual ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_AddScreenshotToLibrary( string /*const char **/ pchFilename, string /*const char **/ pchThumbnailFilename, int /*int*/ nWidth, int /*int*/ nHeight ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_AddScreenshotToLibrary(_ptr, pchFilename, pchThumbnailFilename, nWidth, nHeight); - } - public virtual void /*void*/ ISteamScreenshots_TriggerScreenshot() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - Native.SteamAPI_ISteamScreenshots_TriggerScreenshot(_ptr); - } - public virtual void /*void*/ ISteamScreenshots_HookScreenshots( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHook ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - Native.SteamAPI_ISteamScreenshots_HookScreenshots(_ptr, bHook); - } - public virtual bool /*bool*/ ISteamScreenshots_SetLocation( uint hScreenshot, string /*const char **/ pchLocation ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_SetLocation(_ptr, hScreenshot, pchLocation); - } - public virtual bool /*bool*/ ISteamScreenshots_TagUser( uint hScreenshot, ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_TagUser(_ptr, hScreenshot, steamID); - } - public virtual bool /*bool*/ ISteamScreenshots_TagPublishedFile( uint hScreenshot, ulong unPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_TagPublishedFile(_ptr, hScreenshot, unPublishedFileID); - } - public virtual bool /*bool*/ ISteamScreenshots_IsScreenshotsHooked() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_IsScreenshotsHooked(_ptr); - } - public virtual ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_AddVRScreenshotToLibrary( VRScreenshotType /*EVRScreenshotType*/ eType, string /*const char **/ pchFilename, string /*const char **/ pchVRFilename ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_AddVRScreenshotToLibrary(_ptr, eType, pchFilename, pchVRFilename); - } - - public virtual bool /*bool*/ ISteamMusic_BIsEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - return Native.SteamAPI_ISteamMusic_BIsEnabled(_ptr); - } - public virtual bool /*bool*/ ISteamMusic_BIsPlaying() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - return Native.SteamAPI_ISteamMusic_BIsPlaying(_ptr); - } - public virtual AudioPlayback_Status /*AudioPlayback_Status*/ ISteamMusic_GetPlaybackStatus() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - return Native.SteamAPI_ISteamMusic_GetPlaybackStatus(_ptr); - } - public virtual void /*void*/ ISteamMusic_Play() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_Play(_ptr); - } - public virtual void /*void*/ ISteamMusic_Pause() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_Pause(_ptr); - } - public virtual void /*void*/ ISteamMusic_PlayPrevious() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_PlayPrevious(_ptr); - } - public virtual void /*void*/ ISteamMusic_PlayNext() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_PlayNext(_ptr); - } - public virtual void /*void*/ ISteamMusic_SetVolume( float /*float*/ flVolume ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_SetVolume(_ptr, flVolume); - } - public virtual float /*float*/ ISteamMusic_GetVolume() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - return Native.SteamAPI_ISteamMusic_GetVolume(_ptr); - } - - public virtual bool /*bool*/ ISteamMusicRemote_RegisterSteamMusicRemote( string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote(_ptr, pchName); - } - public virtual bool /*bool*/ ISteamMusicRemote_DeregisterSteamMusicRemote() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_BIsCurrentMusicRemote() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_BActivationSuccess( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_BActivationSuccess(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetDisplayName( string /*const char **/ pchDisplayName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetDisplayName(_ptr, pchDisplayName); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetPNGIcon_64x64( IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64(_ptr, pvBuffer, cbBufferLength); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnablePlayPrevious( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnablePlayPrevious(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnablePlayNext( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnablePlayNext(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnableShuffled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnableShuffled(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnableLooped( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnableLooped(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnableQueue( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnableQueue(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnablePlaylists( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnablePlaylists(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdatePlaybackStatus( AudioPlayback_Status /*AudioPlayback_Status*/ nStatus ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus(_ptr, nStatus); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateShuffled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateShuffled(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateLooped( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateLooped(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateVolume( float /*float*/ flValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateVolume(_ptr, flValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_CurrentEntryWillChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_CurrentEntryWillChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_CurrentEntryIsAvailable( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAvailable ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable(_ptr, bAvailable); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryText( string /*const char **/ pchText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText(_ptr, pchText); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds( int /*int*/ nValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds(_ptr, nValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryCoverArt( IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt(_ptr, pvBuffer, cbBufferLength); - } - public virtual bool /*bool*/ ISteamMusicRemote_CurrentEntryDidChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_CurrentEntryDidChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_QueueWillChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_QueueWillChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_ResetQueueEntries() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_ResetQueueEntries(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetQueueEntry( int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetQueueEntry(_ptr, nID, nPosition, pchEntryText); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetCurrentQueueEntry( int /*int*/ nID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry(_ptr, nID); - } - public virtual bool /*bool*/ ISteamMusicRemote_QueueDidChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_QueueDidChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_PlaylistWillChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_PlaylistWillChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_ResetPlaylistEntries() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_ResetPlaylistEntries(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetPlaylistEntry( int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetPlaylistEntry(_ptr, nID, nPosition, pchEntryText); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetCurrentPlaylistEntry( int /*int*/ nID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry(_ptr, nID); - } - public virtual bool /*bool*/ ISteamMusicRemote_PlaylistDidChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_PlaylistDidChange(_ptr); - } - - public virtual HTTPRequestHandle /*(HTTPRequestHandle)*/ ISteamHTTP_CreateHTTPRequest( HTTPMethod /*EHTTPMethod*/ eHTTPRequestMethod, string /*const char **/ pchAbsoluteURL ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_CreateHTTPRequest(_ptr, eHTTPRequestMethod, pchAbsoluteURL); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestContextValue( uint hRequest, ulong /*uint64*/ ulContextValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestContextValue(_ptr, hRequest, ulContextValue); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestNetworkActivityTimeout( uint hRequest, uint /*uint32*/ unTimeoutSeconds ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout(_ptr, hRequest, unTimeoutSeconds); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestHeaderValue( uint hRequest, string /*const char **/ pchHeaderName, string /*const char **/ pchHeaderValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue(_ptr, hRequest, pchHeaderName, pchHeaderValue); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestGetOrPostParameter( uint hRequest, string /*const char **/ pchParamName, string /*const char **/ pchParamValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter(_ptr, hRequest, pchParamName, pchParamValue); - } - public virtual bool /*bool*/ ISteamHTTP_SendHTTPRequest( uint hRequest, ref ulong pCallHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SendHTTPRequest(_ptr, hRequest, ref pCallHandle); - } - public virtual bool /*bool*/ ISteamHTTP_SendHTTPRequestAndStreamResponse( uint hRequest, ref ulong pCallHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse(_ptr, hRequest, ref pCallHandle); - } - public virtual bool /*bool*/ ISteamHTTP_DeferHTTPRequest( uint hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_DeferHTTPRequest(_ptr, hRequest); - } - public virtual bool /*bool*/ ISteamHTTP_PrioritizeHTTPRequest( uint hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_PrioritizeHTTPRequest(_ptr, hRequest); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseHeaderSize( uint hRequest, string /*const char **/ pchHeaderName, out uint /*uint32 **/ unResponseHeaderSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize(_ptr, hRequest, pchHeaderName, out unResponseHeaderSize); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseHeaderValue( uint hRequest, string /*const char **/ pchHeaderName, out byte /*uint8 **/ pHeaderValueBuffer, uint /*uint32*/ unBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue(_ptr, hRequest, pchHeaderName, out pHeaderValueBuffer, unBufferSize); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseBodySize( uint hRequest, out uint /*uint32 **/ unBodySize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPResponseBodySize(_ptr, hRequest, out unBodySize); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseBodyData( uint hRequest, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPResponseBodyData(_ptr, hRequest, out pBodyDataBuffer, unBufferSize); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPStreamingResponseBodyData( uint hRequest, uint /*uint32*/ cOffset, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData(_ptr, hRequest, cOffset, out pBodyDataBuffer, unBufferSize); - } - public virtual bool /*bool*/ ISteamHTTP_ReleaseHTTPRequest( uint hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_ReleaseHTTPRequest(_ptr, hRequest); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPDownloadProgressPct( uint hRequest, out float /*float **/ pflPercentOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct(_ptr, hRequest, out pflPercentOut); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestRawPostBody( uint hRequest, string /*const char **/ pchContentType, out byte /*uint8 **/ pubBody, uint /*uint32*/ unBodyLen ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody(_ptr, hRequest, pchContentType, out pubBody, unBodyLen); - } - public virtual HTTPCookieContainerHandle /*(HTTPCookieContainerHandle)*/ ISteamHTTP_CreateCookieContainer( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowResponsesToModify ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_CreateCookieContainer(_ptr, bAllowResponsesToModify); - } - public virtual bool /*bool*/ ISteamHTTP_ReleaseCookieContainer( uint hCookieContainer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_ReleaseCookieContainer(_ptr, hCookieContainer); - } - public virtual bool /*bool*/ ISteamHTTP_SetCookie( uint hCookieContainer, string /*const char **/ pchHost, string /*const char **/ pchUrl, string /*const char **/ pchCookie ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetCookie(_ptr, hCookieContainer, pchHost, pchUrl, pchCookie); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestCookieContainer( uint hRequest, uint hCookieContainer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer(_ptr, hRequest, hCookieContainer); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestUserAgentInfo( uint hRequest, string /*const char **/ pchUserAgentInfo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo(_ptr, hRequest, pchUserAgentInfo); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( uint hRequest, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireVerifiedCertificate ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate(_ptr, hRequest, bRequireVerifiedCertificate); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( uint hRequest, uint /*uint32*/ unMilliseconds ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS(_ptr, hRequest, unMilliseconds); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( uint hRequest, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbWasTimedOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut(_ptr, hRequest, ref pbWasTimedOut); - } - - public virtual bool /*bool*/ ISteamInput_Init() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_Init(_ptr); - } - public virtual bool /*bool*/ ISteamInput_Shutdown() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_Shutdown(_ptr); - } - public virtual void /*void*/ ISteamInput_RunFrame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_RunFrame(_ptr); - } - public virtual int /*int*/ ISteamInput_GetConnectedControllers( IntPtr /*InputHandle_t **/ handlesOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetConnectedControllers(_ptr, handlesOut); - } - public virtual InputActionSetHandle_t /*(InputActionSetHandle_t)*/ ISteamInput_GetActionSetHandle( string /*const char **/ pszActionSetName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetActionSetHandle(_ptr, pszActionSetName); - } - public virtual void /*void*/ ISteamInput_ActivateActionSet( ulong inputHandle, ulong actionSetHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_ActivateActionSet(_ptr, inputHandle, actionSetHandle); - } - public virtual InputActionSetHandle_t /*(InputActionSetHandle_t)*/ ISteamInput_GetCurrentActionSet( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetCurrentActionSet(_ptr, inputHandle); - } - public virtual void /*void*/ ISteamInput_ActivateActionSetLayer( ulong inputHandle, ulong actionSetLayerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_ActivateActionSetLayer(_ptr, inputHandle, actionSetLayerHandle); - } - public virtual void /*void*/ ISteamInput_DeactivateActionSetLayer( ulong inputHandle, ulong actionSetLayerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_DeactivateActionSetLayer(_ptr, inputHandle, actionSetLayerHandle); - } - public virtual void /*void*/ ISteamInput_DeactivateAllActionSetLayers( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_DeactivateAllActionSetLayers(_ptr, inputHandle); - } - public virtual int /*int*/ ISteamInput_GetActiveActionSetLayers( ulong inputHandle, IntPtr /*InputActionSetHandle_t **/ handlesOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetActiveActionSetLayers(_ptr, inputHandle, handlesOut); - } - public virtual InputDigitalActionHandle_t /*(InputDigitalActionHandle_t)*/ ISteamInput_GetDigitalActionHandle( string /*const char **/ pszActionName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetDigitalActionHandle(_ptr, pszActionName); - } - public virtual InputDigitalActionData_t /*struct InputDigitalActionData_t*/ ISteamInput_GetDigitalActionData( ulong inputHandle, ulong digitalActionHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetDigitalActionData(_ptr, inputHandle, digitalActionHandle); - } - public virtual int /*int*/ ISteamInput_GetDigitalActionOrigins( ulong inputHandle, ulong actionSetHandle, ulong digitalActionHandle, out InputActionOrigin /*EInputActionOrigin **/ originsOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetDigitalActionOrigins(_ptr, inputHandle, actionSetHandle, digitalActionHandle, out originsOut); - } - public virtual InputAnalogActionHandle_t /*(InputAnalogActionHandle_t)*/ ISteamInput_GetAnalogActionHandle( string /*const char **/ pszActionName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetAnalogActionHandle(_ptr, pszActionName); - } - public virtual InputAnalogActionData_t /*struct InputAnalogActionData_t*/ ISteamInput_GetAnalogActionData( ulong inputHandle, ulong analogActionHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetAnalogActionData(_ptr, inputHandle, analogActionHandle); - } - public virtual int /*int*/ ISteamInput_GetAnalogActionOrigins( ulong inputHandle, ulong actionSetHandle, ulong analogActionHandle, out InputActionOrigin /*EInputActionOrigin **/ originsOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetAnalogActionOrigins(_ptr, inputHandle, actionSetHandle, analogActionHandle, out originsOut); - } - public virtual IntPtr ISteamInput_GetGlyphForActionOrigin( InputActionOrigin /*EInputActionOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetGlyphForActionOrigin(_ptr, eOrigin); - } - public virtual IntPtr ISteamInput_GetStringForActionOrigin( InputActionOrigin /*EInputActionOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetStringForActionOrigin(_ptr, eOrigin); - } - public virtual void /*void*/ ISteamInput_StopAnalogActionMomentum( ulong inputHandle, ulong eAction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_StopAnalogActionMomentum(_ptr, inputHandle, eAction); - } - public virtual InputMotionData_t /*struct InputMotionData_t*/ ISteamInput_GetMotionData( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetMotionData(_ptr, inputHandle); - } - public virtual void /*void*/ ISteamInput_TriggerVibration( ulong inputHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_TriggerVibration(_ptr, inputHandle, usLeftSpeed, usRightSpeed); - } - public virtual void /*void*/ ISteamInput_SetLEDColor( ulong inputHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_SetLEDColor(_ptr, inputHandle, nColorR, nColorG, nColorB, nFlags); - } - public virtual void /*void*/ ISteamInput_TriggerHapticPulse( ulong inputHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_TriggerHapticPulse(_ptr, inputHandle, eTargetPad, usDurationMicroSec); - } - public virtual void /*void*/ ISteamInput_TriggerRepeatedHapticPulse( ulong inputHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_TriggerRepeatedHapticPulse(_ptr, inputHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags); - } - public virtual bool /*bool*/ ISteamInput_ShowBindingPanel( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_ShowBindingPanel(_ptr, inputHandle); - } - public virtual SteamInputType /*ESteamInputType*/ ISteamInput_GetInputTypeForHandle( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetInputTypeForHandle(_ptr, inputHandle); - } - public virtual InputHandle_t /*(InputHandle_t)*/ ISteamInput_GetControllerForGamepadIndex( int /*int*/ nIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetControllerForGamepadIndex(_ptr, nIndex); - } - public virtual int /*int*/ ISteamInput_GetGamepadIndexForController( ulong ulinputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetGamepadIndexForController(_ptr, ulinputHandle); - } - public virtual IntPtr ISteamInput_GetStringForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetStringForXboxOrigin(_ptr, eOrigin); - } - public virtual IntPtr ISteamInput_GetGlyphForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetGlyphForXboxOrigin(_ptr, eOrigin); - } - public virtual InputActionOrigin /*EInputActionOrigin*/ ISteamInput_GetActionOriginFromXboxOrigin( ulong inputHandle, XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetActionOriginFromXboxOrigin(_ptr, inputHandle, eOrigin); - } - public virtual InputActionOrigin /*EInputActionOrigin*/ ISteamInput_TranslateActionOrigin( SteamInputType /*ESteamInputType*/ eDestinationInputType, InputActionOrigin /*EInputActionOrigin*/ eSourceOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_TranslateActionOrigin(_ptr, eDestinationInputType, eSourceOrigin); - } - - public virtual bool /*bool*/ ISteamController_Init() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_Init(_ptr); - } - public virtual bool /*bool*/ ISteamController_Shutdown() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_Shutdown(_ptr); - } - public virtual void /*void*/ ISteamController_RunFrame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_RunFrame(_ptr); - } - public virtual int /*int*/ ISteamController_GetConnectedControllers( IntPtr /*ControllerHandle_t **/ handlesOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetConnectedControllers(_ptr, handlesOut); - } - public virtual ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ ISteamController_GetActionSetHandle( string /*const char **/ pszActionSetName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetActionSetHandle(_ptr, pszActionSetName); - } - public virtual void /*void*/ ISteamController_ActivateActionSet( ulong controllerHandle, ulong actionSetHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_ActivateActionSet(_ptr, controllerHandle, actionSetHandle); - } - public virtual ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ ISteamController_GetCurrentActionSet( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetCurrentActionSet(_ptr, controllerHandle); - } - public virtual void /*void*/ ISteamController_ActivateActionSetLayer( ulong controllerHandle, ulong actionSetLayerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_ActivateActionSetLayer(_ptr, controllerHandle, actionSetLayerHandle); - } - public virtual void /*void*/ ISteamController_DeactivateActionSetLayer( ulong controllerHandle, ulong actionSetLayerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_DeactivateActionSetLayer(_ptr, controllerHandle, actionSetLayerHandle); - } - public virtual void /*void*/ ISteamController_DeactivateAllActionSetLayers( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_DeactivateAllActionSetLayers(_ptr, controllerHandle); - } - public virtual int /*int*/ ISteamController_GetActiveActionSetLayers( ulong controllerHandle, IntPtr /*ControllerActionSetHandle_t **/ handlesOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetActiveActionSetLayers(_ptr, controllerHandle, handlesOut); - } - public virtual ControllerDigitalActionHandle_t /*(ControllerDigitalActionHandle_t)*/ ISteamController_GetDigitalActionHandle( string /*const char **/ pszActionName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetDigitalActionHandle(_ptr, pszActionName); - } - public virtual InputDigitalActionData_t /*struct InputDigitalActionData_t*/ ISteamController_GetDigitalActionData( ulong controllerHandle, ulong digitalActionHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetDigitalActionData(_ptr, controllerHandle, digitalActionHandle); - } - public virtual int /*int*/ ISteamController_GetDigitalActionOrigins( ulong controllerHandle, ulong actionSetHandle, ulong digitalActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetDigitalActionOrigins(_ptr, controllerHandle, actionSetHandle, digitalActionHandle, out originsOut); - } - public virtual ControllerAnalogActionHandle_t /*(ControllerAnalogActionHandle_t)*/ ISteamController_GetAnalogActionHandle( string /*const char **/ pszActionName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetAnalogActionHandle(_ptr, pszActionName); - } - public virtual InputAnalogActionData_t /*struct InputAnalogActionData_t*/ ISteamController_GetAnalogActionData( ulong controllerHandle, ulong analogActionHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetAnalogActionData(_ptr, controllerHandle, analogActionHandle); - } - public virtual int /*int*/ ISteamController_GetAnalogActionOrigins( ulong controllerHandle, ulong actionSetHandle, ulong analogActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetAnalogActionOrigins(_ptr, controllerHandle, actionSetHandle, analogActionHandle, out originsOut); - } - public virtual IntPtr ISteamController_GetGlyphForActionOrigin( ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetGlyphForActionOrigin(_ptr, eOrigin); - } - public virtual IntPtr ISteamController_GetStringForActionOrigin( ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetStringForActionOrigin(_ptr, eOrigin); - } - public virtual void /*void*/ ISteamController_StopAnalogActionMomentum( ulong controllerHandle, ulong eAction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_StopAnalogActionMomentum(_ptr, controllerHandle, eAction); - } - public virtual InputMotionData_t /*struct InputMotionData_t*/ ISteamController_GetMotionData( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetMotionData(_ptr, controllerHandle); - } - public virtual void /*void*/ ISteamController_TriggerHapticPulse( ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_TriggerHapticPulse(_ptr, controllerHandle, eTargetPad, usDurationMicroSec); - } - public virtual void /*void*/ ISteamController_TriggerRepeatedHapticPulse( ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_TriggerRepeatedHapticPulse(_ptr, controllerHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags); - } - public virtual void /*void*/ ISteamController_TriggerVibration( ulong controllerHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_TriggerVibration(_ptr, controllerHandle, usLeftSpeed, usRightSpeed); - } - public virtual void /*void*/ ISteamController_SetLEDColor( ulong controllerHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_SetLEDColor(_ptr, controllerHandle, nColorR, nColorG, nColorB, nFlags); - } - public virtual bool /*bool*/ ISteamController_ShowBindingPanel( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_ShowBindingPanel(_ptr, controllerHandle); - } - public virtual SteamInputType /*ESteamInputType*/ ISteamController_GetInputTypeForHandle( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetInputTypeForHandle(_ptr, controllerHandle); - } - public virtual ControllerHandle_t /*(ControllerHandle_t)*/ ISteamController_GetControllerForGamepadIndex( int /*int*/ nIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetControllerForGamepadIndex(_ptr, nIndex); - } - public virtual int /*int*/ ISteamController_GetGamepadIndexForController( ulong ulControllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetGamepadIndexForController(_ptr, ulControllerHandle); - } - public virtual IntPtr ISteamController_GetStringForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetStringForXboxOrigin(_ptr, eOrigin); - } - public virtual IntPtr ISteamController_GetGlyphForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetGlyphForXboxOrigin(_ptr, eOrigin); - } - public virtual ControllerActionOrigin /*EControllerActionOrigin*/ ISteamController_GetActionOriginFromXboxOrigin( ulong controllerHandle, XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetActionOriginFromXboxOrigin(_ptr, controllerHandle, eOrigin); - } - public virtual ControllerActionOrigin /*EControllerActionOrigin*/ ISteamController_TranslateActionOrigin( SteamInputType /*ESteamInputType*/ eDestinationInputType, ControllerActionOrigin /*EControllerActionOrigin*/ eSourceOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_TranslateActionOrigin(_ptr, eDestinationInputType, eSourceOrigin); - } - - public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryUserUGCRequest( uint unAccountID, UserUGCList /*EUserUGCList*/ eListType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingUGCType, UserUGCListSortOrder /*EUserUGCListSortOrder*/ eSortOrder, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateQueryUserUGCRequest(_ptr, unAccountID, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID, nConsumerAppID, unPage); - } - public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryAllUGCRequest( UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateQueryAllUGCRequest(_ptr, eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage); - } - public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryAllUGCRequest0( UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, string /*const char **/ pchCursor ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateQueryAllUGCRequest0(_ptr, eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, pchCursor); - } - public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryUGCDetailsRequest( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest(_ptr, pvecPublishedFileID, unNumPublishedFileIDs); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SendQueryUGCRequest( ulong handle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SendQueryUGCRequest(_ptr, handle); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCResult( ulong handle, uint /*uint32*/ index, ref SteamUGCDetails_t /*struct SteamUGCDetails_t **/ pDetails ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - var pDetails_ps = new SteamUGCDetails_t.Pack4(); - var ret = Native.SteamAPI_ISteamUGC_GetQueryUGCResult(_ptr, handle, index, ref pDetails_ps); - pDetails = pDetails_ps; - return ret; - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCPreviewURL( ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchURL, uint /*uint32*/ cchURLSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCPreviewURL(_ptr, handle, index, pchURL, cchURLSize); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCMetadata( ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchMetadata, uint /*uint32*/ cchMetadatasize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCMetadata(_ptr, handle, index, pchMetadata, cchMetadatasize); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCChildren( ulong handle, uint /*uint32*/ index, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCChildren(_ptr, handle, index, pvecPublishedFileID, cMaxEntries); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCStatistic( ulong handle, uint /*uint32*/ index, ItemStatistic /*EItemStatistic*/ eStatType, out ulong /*uint64 **/ pStatValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCStatistic(_ptr, handle, index, eStatType, out pStatValue); - } - public virtual uint /*uint32*/ ISteamUGC_GetQueryUGCNumAdditionalPreviews( ulong handle, uint /*uint32*/ index ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews(_ptr, handle, index); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCAdditionalPreview( ulong handle, uint /*uint32*/ index, uint /*uint32*/ previewIndex, System.Text.StringBuilder /*char **/ pchURLOrVideoID, uint /*uint32*/ cchURLSize, System.Text.StringBuilder /*char **/ pchOriginalFileName, uint /*uint32*/ cchOriginalFileNameSize, out ItemPreviewType /*EItemPreviewType **/ pPreviewType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview(_ptr, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, out pPreviewType); - } - public virtual uint /*uint32*/ ISteamUGC_GetQueryUGCNumKeyValueTags( ulong handle, uint /*uint32*/ index ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags(_ptr, handle, index); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCKeyValueTag( ulong handle, uint /*uint32*/ index, uint /*uint32*/ keyValueTagIndex, System.Text.StringBuilder /*char **/ pchKey, uint /*uint32*/ cchKeySize, System.Text.StringBuilder /*char **/ pchValue, uint /*uint32*/ cchValueSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag(_ptr, handle, index, keyValueTagIndex, pchKey, cchKeySize, pchValue, cchValueSize); - } - public virtual bool /*bool*/ ISteamUGC_ReleaseQueryUGCRequest( ulong handle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_ReleaseQueryUGCRequest(_ptr, handle); - } - public virtual bool /*bool*/ ISteamUGC_AddRequiredTag( ulong handle, string /*const char **/ pTagName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddRequiredTag(_ptr, handle, pTagName); - } - public virtual bool /*bool*/ ISteamUGC_AddExcludedTag( ulong handle, string /*const char **/ pTagName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddExcludedTag(_ptr, handle, pTagName); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnOnlyIDs( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnOnlyIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnOnlyIDs(_ptr, handle, bReturnOnlyIDs); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnKeyValueTags( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnKeyValueTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnKeyValueTags(_ptr, handle, bReturnKeyValueTags); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnLongDescription( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnLongDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnLongDescription(_ptr, handle, bReturnLongDescription); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnMetadata( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnMetadata ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnMetadata(_ptr, handle, bReturnMetadata); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnChildren( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnChildren ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnChildren(_ptr, handle, bReturnChildren); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnAdditionalPreviews( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnAdditionalPreviews ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnAdditionalPreviews(_ptr, handle, bReturnAdditionalPreviews); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnTotalOnly( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnTotalOnly ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnTotalOnly(_ptr, handle, bReturnTotalOnly); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnPlaytimeStats( ulong handle, uint /*uint32*/ unDays ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnPlaytimeStats(_ptr, handle, unDays); - } - public virtual bool /*bool*/ ISteamUGC_SetLanguage( ulong handle, string /*const char **/ pchLanguage ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetLanguage(_ptr, handle, pchLanguage); - } - public virtual bool /*bool*/ ISteamUGC_SetAllowCachedResponse( ulong handle, uint /*uint32*/ unMaxAgeSeconds ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetAllowCachedResponse(_ptr, handle, unMaxAgeSeconds); - } - public virtual bool /*bool*/ ISteamUGC_SetCloudFileNameFilter( ulong handle, string /*const char **/ pMatchCloudFileName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetCloudFileNameFilter(_ptr, handle, pMatchCloudFileName); - } - public virtual bool /*bool*/ ISteamUGC_SetMatchAnyTag( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMatchAnyTag ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetMatchAnyTag(_ptr, handle, bMatchAnyTag); - } - public virtual bool /*bool*/ ISteamUGC_SetSearchText( ulong handle, string /*const char **/ pSearchText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetSearchText(_ptr, handle, pSearchText); - } - public virtual bool /*bool*/ ISteamUGC_SetRankedByTrendDays( ulong handle, uint /*uint32*/ unDays ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetRankedByTrendDays(_ptr, handle, unDays); - } - public virtual bool /*bool*/ ISteamUGC_AddRequiredKeyValueTag( ulong handle, string /*const char **/ pKey, string /*const char **/ pValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddRequiredKeyValueTag(_ptr, handle, pKey, pValue); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RequestUGCDetails( ulong nPublishedFileID, uint /*uint32*/ unMaxAgeSeconds ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RequestUGCDetails(_ptr, nPublishedFileID, unMaxAgeSeconds); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_CreateItem( uint nConsumerAppId, WorkshopFileType /*EWorkshopFileType*/ eFileType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateItem(_ptr, nConsumerAppId, eFileType); - } - public virtual UGCUpdateHandle_t /*(UGCUpdateHandle_t)*/ ISteamUGC_StartItemUpdate( uint nConsumerAppId, ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_StartItemUpdate(_ptr, nConsumerAppId, nPublishedFileID); - } - public virtual bool /*bool*/ ISteamUGC_SetItemTitle( ulong handle, string /*const char **/ pchTitle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemTitle(_ptr, handle, pchTitle); - } - public virtual bool /*bool*/ ISteamUGC_SetItemDescription( ulong handle, string /*const char **/ pchDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemDescription(_ptr, handle, pchDescription); - } - public virtual bool /*bool*/ ISteamUGC_SetItemUpdateLanguage( ulong handle, string /*const char **/ pchLanguage ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemUpdateLanguage(_ptr, handle, pchLanguage); - } - public virtual bool /*bool*/ ISteamUGC_SetItemMetadata( ulong handle, string /*const char **/ pchMetaData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemMetadata(_ptr, handle, pchMetaData); - } - public virtual bool /*bool*/ ISteamUGC_SetItemVisibility( ulong handle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemVisibility(_ptr, handle, eVisibility); - } - public virtual bool /*bool*/ ISteamUGC_SetItemTags( ulong updateHandle, ref SteamParamStringArray_t /*const struct SteamParamStringArray_t **/ pTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack4(); - var ret = Native.SteamAPI_ISteamUGC_SetItemTags(_ptr, updateHandle, ref pTags_ps); - pTags = pTags_ps; - return ret; - } - public virtual bool /*bool*/ ISteamUGC_SetItemContent( ulong handle, string /*const char **/ pszContentFolder ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemContent(_ptr, handle, pszContentFolder); - } - public virtual bool /*bool*/ ISteamUGC_SetItemPreview( ulong handle, string /*const char **/ pszPreviewFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemPreview(_ptr, handle, pszPreviewFile); - } - public virtual bool /*bool*/ ISteamUGC_SetAllowLegacyUpload( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowLegacyUpload ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetAllowLegacyUpload(_ptr, handle, bAllowLegacyUpload); - } - public virtual bool /*bool*/ ISteamUGC_RemoveItemKeyValueTags( ulong handle, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveItemKeyValueTags(_ptr, handle, pchKey); - } - public virtual bool /*bool*/ ISteamUGC_AddItemKeyValueTag( ulong handle, string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddItemKeyValueTag(_ptr, handle, pchKey, pchValue); - } - public virtual bool /*bool*/ ISteamUGC_AddItemPreviewFile( ulong handle, string /*const char **/ pszPreviewFile, ItemPreviewType /*EItemPreviewType*/ type ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddItemPreviewFile(_ptr, handle, pszPreviewFile, type); - } - public virtual bool /*bool*/ ISteamUGC_AddItemPreviewVideo( ulong handle, string /*const char **/ pszVideoID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddItemPreviewVideo(_ptr, handle, pszVideoID); - } - public virtual bool /*bool*/ ISteamUGC_UpdateItemPreviewFile( ulong handle, uint /*uint32*/ index, string /*const char **/ pszPreviewFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_UpdateItemPreviewFile(_ptr, handle, index, pszPreviewFile); - } - public virtual bool /*bool*/ ISteamUGC_UpdateItemPreviewVideo( ulong handle, uint /*uint32*/ index, string /*const char **/ pszVideoID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_UpdateItemPreviewVideo(_ptr, handle, index, pszVideoID); - } - public virtual bool /*bool*/ ISteamUGC_RemoveItemPreview( ulong handle, uint /*uint32*/ index ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveItemPreview(_ptr, handle, index); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SubmitItemUpdate( ulong handle, string /*const char **/ pchChangeNote ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SubmitItemUpdate(_ptr, handle, pchChangeNote); - } - public virtual ItemUpdateStatus /*EItemUpdateStatus*/ ISteamUGC_GetItemUpdateProgress( ulong handle, out ulong /*uint64 **/ punBytesProcessed, out ulong /*uint64 **/ punBytesTotal ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetItemUpdateProgress(_ptr, handle, out punBytesProcessed, out punBytesTotal); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SetUserItemVote( ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetUserItemVote(_ptr, nPublishedFileID, bVoteUp); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_GetUserItemVote( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetUserItemVote(_ptr, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_AddItemToFavorites( uint nAppId, ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddItemToFavorites(_ptr, nAppId, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RemoveItemFromFavorites( uint nAppId, ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveItemFromFavorites(_ptr, nAppId, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SubscribeItem( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SubscribeItem(_ptr, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_UnsubscribeItem( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_UnsubscribeItem(_ptr, nPublishedFileID); - } - public virtual uint /*uint32*/ ISteamUGC_GetNumSubscribedItems() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetNumSubscribedItems(_ptr); - } - public virtual uint /*uint32*/ ISteamUGC_GetSubscribedItems( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetSubscribedItems(_ptr, pvecPublishedFileID, cMaxEntries); - } - public virtual uint /*uint32*/ ISteamUGC_GetItemState( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetItemState(_ptr, nPublishedFileID); - } - public virtual bool /*bool*/ ISteamUGC_GetItemInstallInfo( ulong nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderSize, out uint /*uint32 **/ punTimeStamp ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetItemInstallInfo(_ptr, nPublishedFileID, out punSizeOnDisk, pchFolder, cchFolderSize, out punTimeStamp); - } - public virtual bool /*bool*/ ISteamUGC_GetItemDownloadInfo( ulong nPublishedFileID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetItemDownloadInfo(_ptr, nPublishedFileID, out punBytesDownloaded, out punBytesTotal); - } - public virtual bool /*bool*/ ISteamUGC_DownloadItem( ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHighPriority ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_DownloadItem(_ptr, nPublishedFileID, bHighPriority); - } - public virtual bool /*bool*/ ISteamUGC_BInitWorkshopForGameServer( uint unWorkshopDepotID, string /*const char **/ pszFolder ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_BInitWorkshopForGameServer(_ptr, unWorkshopDepotID, pszFolder); - } - public virtual void /*void*/ ISteamUGC_SuspendDownloads( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSuspend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - Native.SteamAPI_ISteamUGC_SuspendDownloads(_ptr, bSuspend); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StartPlaytimeTracking( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_StartPlaytimeTracking(_ptr, pvecPublishedFileID, unNumPublishedFileIDs); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StopPlaytimeTracking( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_StopPlaytimeTracking(_ptr, pvecPublishedFileID, unNumPublishedFileIDs); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StopPlaytimeTrackingForAllItems() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_AddDependency( ulong nParentPublishedFileID, ulong nChildPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddDependency(_ptr, nParentPublishedFileID, nChildPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RemoveDependency( ulong nParentPublishedFileID, ulong nChildPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveDependency(_ptr, nParentPublishedFileID, nChildPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_AddAppDependency( ulong nPublishedFileID, uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddAppDependency(_ptr, nPublishedFileID, nAppID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RemoveAppDependency( ulong nPublishedFileID, uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveAppDependency(_ptr, nPublishedFileID, nAppID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_GetAppDependencies( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetAppDependencies(_ptr, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_DeleteItem( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_DeleteItem(_ptr, nPublishedFileID); - } - - public virtual uint /*uint32*/ ISteamAppList_GetNumInstalledApps() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetNumInstalledApps(_ptr); - } - public virtual uint /*uint32*/ ISteamAppList_GetInstalledApps( IntPtr /*AppId_t **/ pvecAppID, uint /*uint32*/ unMaxAppIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetInstalledApps(_ptr, pvecAppID, unMaxAppIDs); - } - public virtual int /*int*/ ISteamAppList_GetAppName( uint nAppID, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetAppName(_ptr, nAppID, pchName, cchNameMax); - } - public virtual int /*int*/ ISteamAppList_GetAppInstallDir( uint nAppID, System.Text.StringBuilder /*char **/ pchDirectory, int /*int*/ cchNameMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetAppInstallDir(_ptr, nAppID, pchDirectory, cchNameMax); - } - public virtual int /*int*/ ISteamAppList_GetAppBuildId( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetAppBuildId(_ptr, nAppID); - } - - public virtual void /*void*/ ISteamHTMLSurface_DestructISteamHTMLSurface() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface(_ptr); - } - public virtual bool /*bool*/ ISteamHTMLSurface_Init() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - return Native.SteamAPI_ISteamHTMLSurface_Init(_ptr); - } - public virtual bool /*bool*/ ISteamHTMLSurface_Shutdown() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - return Native.SteamAPI_ISteamHTMLSurface_Shutdown(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamHTMLSurface_CreateBrowser( string /*const char **/ pchUserAgent, string /*const char **/ pchUserCSS ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - return Native.SteamAPI_ISteamHTMLSurface_CreateBrowser(_ptr, pchUserAgent, pchUserCSS); - } - public virtual void /*void*/ ISteamHTMLSurface_RemoveBrowser( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_RemoveBrowser(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_LoadURL( uint unBrowserHandle, string /*const char **/ pchURL, string /*const char **/ pchPostData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_LoadURL(_ptr, unBrowserHandle, pchURL, pchPostData); - } - public virtual void /*void*/ ISteamHTMLSurface_SetSize( uint unBrowserHandle, uint /*uint32*/ unWidth, uint /*uint32*/ unHeight ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetSize(_ptr, unBrowserHandle, unWidth, unHeight); - } - public virtual void /*void*/ ISteamHTMLSurface_StopLoad( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_StopLoad(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_Reload( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_Reload(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_GoBack( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_GoBack(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_GoForward( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_GoForward(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_AddHeader( uint unBrowserHandle, string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_AddHeader(_ptr, unBrowserHandle, pchKey, pchValue); - } - public virtual void /*void*/ ISteamHTMLSurface_ExecuteJavascript( uint unBrowserHandle, string /*const char **/ pchScript ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_ExecuteJavascript(_ptr, unBrowserHandle, pchScript); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseUp( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseUp(_ptr, unBrowserHandle, eMouseButton); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseDown( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseDown(_ptr, unBrowserHandle, eMouseButton); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseDoubleClick( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseDoubleClick(_ptr, unBrowserHandle, eMouseButton); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseMove( uint unBrowserHandle, int /*int*/ x, int /*int*/ y ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseMove(_ptr, unBrowserHandle, x, y); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseWheel( uint unBrowserHandle, int /*int32*/ nDelta ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseWheel(_ptr, unBrowserHandle, nDelta); - } - public virtual void /*void*/ ISteamHTMLSurface_KeyDown( uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bIsSystemKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_KeyDown(_ptr, unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers, bIsSystemKey); - } - public virtual void /*void*/ ISteamHTMLSurface_KeyUp( uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_KeyUp(_ptr, unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers); - } - public virtual void /*void*/ ISteamHTMLSurface_KeyChar( uint unBrowserHandle, uint /*uint32*/ cUnicodeChar, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_KeyChar(_ptr, unBrowserHandle, cUnicodeChar, eHTMLKeyModifiers); - } - public virtual void /*void*/ ISteamHTMLSurface_SetHorizontalScroll( uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetHorizontalScroll(_ptr, unBrowserHandle, nAbsolutePixelScroll); - } - public virtual void /*void*/ ISteamHTMLSurface_SetVerticalScroll( uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetVerticalScroll(_ptr, unBrowserHandle, nAbsolutePixelScroll); - } - public virtual void /*void*/ ISteamHTMLSurface_SetKeyFocus( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHasKeyFocus ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetKeyFocus(_ptr, unBrowserHandle, bHasKeyFocus); - } - public virtual void /*void*/ ISteamHTMLSurface_ViewSource( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_ViewSource(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_CopyToClipboard( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_CopyToClipboard(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_PasteFromClipboard( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_PasteFromClipboard(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_Find( uint unBrowserHandle, string /*const char **/ pchSearchStr, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bCurrentlyInFind, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReverse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_Find(_ptr, unBrowserHandle, pchSearchStr, bCurrentlyInFind, bReverse); - } - public virtual void /*void*/ ISteamHTMLSurface_StopFind( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_StopFind(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_GetLinkAtPosition( uint unBrowserHandle, int /*int*/ x, int /*int*/ y ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_GetLinkAtPosition(_ptr, unBrowserHandle, x, y); - } - public virtual void /*void*/ ISteamHTMLSurface_SetCookie( string /*const char **/ pchHostname, string /*const char **/ pchKey, string /*const char **/ pchValue, string /*const char **/ pchPath, uint nExpires, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHTTPOnly ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetCookie(_ptr, pchHostname, pchKey, pchValue, pchPath, nExpires, bSecure, bHTTPOnly); - } - public virtual void /*void*/ ISteamHTMLSurface_SetPageScaleFactor( uint unBrowserHandle, float /*float*/ flZoom, int /*int*/ nPointX, int /*int*/ nPointY ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetPageScaleFactor(_ptr, unBrowserHandle, flZoom, nPointX, nPointY); - } - public virtual void /*void*/ ISteamHTMLSurface_SetBackgroundMode( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bBackgroundMode ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetBackgroundMode(_ptr, unBrowserHandle, bBackgroundMode); - } - public virtual void /*void*/ ISteamHTMLSurface_SetDPIScalingFactor( uint unBrowserHandle, float /*float*/ flDPIScaling ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor(_ptr, unBrowserHandle, flDPIScaling); - } - public virtual void /*void*/ ISteamHTMLSurface_OpenDeveloperTools( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_OpenDeveloperTools(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_AllowStartRequest( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_AllowStartRequest(_ptr, unBrowserHandle, bAllowed); - } - public virtual void /*void*/ ISteamHTMLSurface_JSDialogResponse( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bResult ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_JSDialogResponse(_ptr, unBrowserHandle, bResult); - } - - public virtual Result /*EResult*/ ISteamInventory_GetResultStatus( int resultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetResultStatus(_ptr, resultHandle); - } - public virtual bool /*bool*/ ISteamInventory_GetResultItems( int resultHandle, IntPtr /*struct SteamItemDetails_t **/ pOutItemsArray, out uint /*uint32 **/ punOutItemsArraySize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetResultItems(_ptr, resultHandle, pOutItemsArray, out punOutItemsArraySize); - } - public virtual bool /*bool*/ ISteamInventory_GetResultItemProperty( int resultHandle, uint /*uint32*/ unItemIndex, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetResultItemProperty(_ptr, resultHandle, unItemIndex, pchPropertyName, pchValueBuffer, out punValueBufferSizeOut); - } - public virtual uint /*uint32*/ ISteamInventory_GetResultTimestamp( int resultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetResultTimestamp(_ptr, resultHandle); - } - public virtual bool /*bool*/ ISteamInventory_CheckResultSteamID( int resultHandle, ulong steamIDExpected ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_CheckResultSteamID(_ptr, resultHandle, steamIDExpected); - } - public virtual void /*void*/ ISteamInventory_DestroyResult( int resultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - Native.SteamAPI_ISteamInventory_DestroyResult(_ptr, resultHandle); - } - public virtual bool /*bool*/ ISteamInventory_GetAllItems( ref int pResultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetAllItems(_ptr, ref pResultHandle); - } - public virtual bool /*bool*/ ISteamInventory_GetItemsByID( ref int pResultHandle, ulong[] pInstanceIDs, uint /*uint32*/ unCountInstanceIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemsByID(_ptr, ref pResultHandle, pInstanceIDs, unCountInstanceIDs); - } - public virtual bool /*bool*/ ISteamInventory_SerializeResult( int resultHandle, IntPtr /*void **/ pOutBuffer, out uint /*uint32 **/ punOutBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SerializeResult(_ptr, resultHandle, pOutBuffer, out punOutBufferSize); - } - public virtual bool /*bool*/ ISteamInventory_DeserializeResult( ref int pOutResultHandle, IntPtr /*const void **/ pBuffer, uint /*uint32*/ unBufferSize, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRESERVED_MUST_BE_FALSE ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_DeserializeResult(_ptr, ref pOutResultHandle, pBuffer, unBufferSize, bRESERVED_MUST_BE_FALSE); - } - public virtual bool /*bool*/ ISteamInventory_GenerateItems( ref int pResultHandle, int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GenerateItems(_ptr, ref pResultHandle, pArrayItemDefs, punArrayQuantity, unArrayLength); - } - public virtual bool /*bool*/ ISteamInventory_GrantPromoItems( ref int pResultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GrantPromoItems(_ptr, ref pResultHandle); - } - public virtual bool /*bool*/ ISteamInventory_AddPromoItem( ref int pResultHandle, int itemDef ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_AddPromoItem(_ptr, ref pResultHandle, itemDef); - } - public virtual bool /*bool*/ ISteamInventory_AddPromoItems( ref int pResultHandle, int[] pArrayItemDefs, uint /*uint32*/ unArrayLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_AddPromoItems(_ptr, ref pResultHandle, pArrayItemDefs, unArrayLength); - } - public virtual bool /*bool*/ ISteamInventory_ConsumeItem( ref int pResultHandle, ulong itemConsume, uint /*uint32*/ unQuantity ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_ConsumeItem(_ptr, ref pResultHandle, itemConsume, unQuantity); - } - public virtual bool /*bool*/ ISteamInventory_ExchangeItems( ref int pResultHandle, int[] pArrayGenerate, uint[] /*const uint32 **/ punArrayGenerateQuantity, uint /*uint32*/ unArrayGenerateLength, ulong[] pArrayDestroy, uint[] /*const uint32 **/ punArrayDestroyQuantity, uint /*uint32*/ unArrayDestroyLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_ExchangeItems(_ptr, ref pResultHandle, pArrayGenerate, punArrayGenerateQuantity, unArrayGenerateLength, pArrayDestroy, punArrayDestroyQuantity, unArrayDestroyLength); - } - public virtual bool /*bool*/ ISteamInventory_TransferItemQuantity( ref int pResultHandle, ulong itemIdSource, uint /*uint32*/ unQuantity, ulong itemIdDest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_TransferItemQuantity(_ptr, ref pResultHandle, itemIdSource, unQuantity, itemIdDest); - } - public virtual void /*void*/ ISteamInventory_SendItemDropHeartbeat() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - Native.SteamAPI_ISteamInventory_SendItemDropHeartbeat(_ptr); - } - public virtual bool /*bool*/ ISteamInventory_TriggerItemDrop( ref int pResultHandle, int dropListDefinition ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_TriggerItemDrop(_ptr, ref pResultHandle, dropListDefinition); - } - public virtual bool /*bool*/ ISteamInventory_TradeItems( ref int pResultHandle, ulong steamIDTradePartner, ulong[] pArrayGive, uint[] /*const uint32 **/ pArrayGiveQuantity, uint /*uint32*/ nArrayGiveLength, ulong[] pArrayGet, uint[] /*const uint32 **/ pArrayGetQuantity, uint /*uint32*/ nArrayGetLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_TradeItems(_ptr, ref pResultHandle, steamIDTradePartner, pArrayGive, pArrayGiveQuantity, nArrayGiveLength, pArrayGet, pArrayGetQuantity, nArrayGetLength); - } - public virtual bool /*bool*/ ISteamInventory_LoadItemDefinitions() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_LoadItemDefinitions(_ptr); - } - public virtual bool /*bool*/ ISteamInventory_GetItemDefinitionIDs( IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemDefinitionIDs(_ptr, pItemDefIDs, out punItemDefIDsArraySize); - } - public virtual bool /*bool*/ ISteamInventory_GetItemDefinitionProperty( int iDefinition, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemDefinitionProperty(_ptr, iDefinition, pchPropertyName, pchValueBuffer, out punValueBufferSizeOut); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamInventory_RequestEligiblePromoItemDefinitionsIDs( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs(_ptr, steamID); - } - public virtual bool /*bool*/ ISteamInventory_GetEligiblePromoItemDefinitionIDs( ulong steamID, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs(_ptr, steamID, pItemDefIDs, out punItemDefIDsArraySize); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamInventory_StartPurchase( int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_StartPurchase(_ptr, pArrayItemDefs, punArrayQuantity, unArrayLength); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamInventory_RequestPrices() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_RequestPrices(_ptr); - } - public virtual uint /*uint32*/ ISteamInventory_GetNumItemsWithPrices() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetNumItemsWithPrices(_ptr); - } - public virtual bool /*bool*/ ISteamInventory_GetItemsWithPrices( IntPtr /*SteamItemDef_t **/ pArrayItemDefs, IntPtr /*uint64 **/ pCurrentPrices, IntPtr /*uint64 **/ pBasePrices, uint /*uint32*/ unArrayLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemsWithPrices(_ptr, pArrayItemDefs, pCurrentPrices, pBasePrices, unArrayLength); - } - public virtual bool /*bool*/ ISteamInventory_GetItemPrice( int iDefinition, out ulong /*uint64 **/ pCurrentPrice, out ulong /*uint64 **/ pBasePrice ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemPrice(_ptr, iDefinition, out pCurrentPrice, out pBasePrice); - } - public virtual SteamInventoryUpdateHandle_t /*(SteamInventoryUpdateHandle_t)*/ ISteamInventory_StartUpdateProperties() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_StartUpdateProperties(_ptr); - } - public virtual bool /*bool*/ ISteamInventory_RemoveProperty( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_RemoveProperty(_ptr, handle, nItemID, pchPropertyName); - } - public virtual bool /*bool*/ ISteamInventory_SetProperty( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, string /*const char **/ pchPropertyValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SetProperty(_ptr, handle, nItemID, pchPropertyName, pchPropertyValue); - } - public virtual bool /*bool*/ ISteamInventory_SetProperty0( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SetProperty0(_ptr, handle, nItemID, pchPropertyName, bValue); - } - public virtual bool /*bool*/ ISteamInventory_SetProperty0( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, long /*int64*/ nValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SetProperty0(_ptr, handle, nItemID, pchPropertyName, nValue); - } - public virtual bool /*bool*/ ISteamInventory_SetProperty0( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, float /*float*/ flValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SetProperty0(_ptr, handle, nItemID, pchPropertyName, flValue); - } - public virtual bool /*bool*/ ISteamInventory_SubmitUpdateProperties( ulong handle, ref int pResultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SubmitUpdateProperties(_ptr, handle, ref pResultHandle); - } - - public virtual void /*void*/ ISteamVideo_GetVideoURL( uint unVideoAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" ); - - Native.SteamAPI_ISteamVideo_GetVideoURL(_ptr, unVideoAppID); - } - public virtual bool /*bool*/ ISteamVideo_IsBroadcasting( IntPtr /*int **/ pnNumViewers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" ); - - return Native.SteamAPI_ISteamVideo_IsBroadcasting(_ptr, pnNumViewers); - } - public virtual void /*void*/ ISteamVideo_GetOPFSettings( uint unVideoAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" ); - - Native.SteamAPI_ISteamVideo_GetOPFSettings(_ptr, unVideoAppID); - } - public virtual bool /*bool*/ ISteamVideo_GetOPFStringForApp( uint unVideoAppID, System.Text.StringBuilder /*char **/ pchBuffer, out int /*int32 **/ pnBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" ); - - return Native.SteamAPI_ISteamVideo_GetOPFStringForApp(_ptr, unVideoAppID, pchBuffer, out pnBufferSize); - } - - public virtual bool /*bool*/ ISteamParentalSettings_BIsParentalLockEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled(_ptr); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsParentalLockLocked() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsParentalLockLocked(_ptr); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsAppBlocked( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsAppBlocked(_ptr, nAppID); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsAppInBlockList( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsAppInBlockList(_ptr, nAppID); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsFeatureBlocked( ParentalFeature /*EParentalFeature*/ eFeature ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsFeatureBlocked(_ptr, eFeature); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsFeatureInBlockList( ParentalFeature /*EParentalFeature*/ eFeature ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList(_ptr, eFeature); - } - - public virtual bool /*bool*/ ISteamGameServer_InitGameServer( uint /*uint32*/ unIP, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, uint /*uint32*/ unFlags, uint nGameAppId, string /*const char **/ pchVersionString ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_InitGameServer(_ptr, unIP, usGamePort, usQueryPort, unFlags, nGameAppId, pchVersionString); - } - public virtual void /*void*/ ISteamGameServer_SetProduct( string /*const char **/ pszProduct ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetProduct(_ptr, pszProduct); - } - public virtual void /*void*/ ISteamGameServer_SetGameDescription( string /*const char **/ pszGameDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetGameDescription(_ptr, pszGameDescription); - } - public virtual void /*void*/ ISteamGameServer_SetModDir( string /*const char **/ pszModDir ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetModDir(_ptr, pszModDir); - } - public virtual void /*void*/ ISteamGameServer_SetDedicatedServer( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bDedicated ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetDedicatedServer(_ptr, bDedicated); - } - public virtual void /*void*/ ISteamGameServer_LogOn( string /*const char **/ pszToken ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_LogOn(_ptr, pszToken); - } - public virtual void /*void*/ ISteamGameServer_LogOnAnonymous() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_LogOnAnonymous(_ptr); - } - public virtual void /*void*/ ISteamGameServer_LogOff() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_LogOff(_ptr); - } - public virtual bool /*bool*/ ISteamGameServer_BLoggedOn() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_BLoggedOn(_ptr); - } - public virtual bool /*bool*/ ISteamGameServer_BSecure() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_BSecure(_ptr); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamGameServer_GetSteamID() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetSteamID(_ptr); - } - public virtual bool /*bool*/ ISteamGameServer_WasRestartRequested() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_WasRestartRequested(_ptr); - } - public virtual void /*void*/ ISteamGameServer_SetMaxPlayerCount( int /*int*/ cPlayersMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetMaxPlayerCount(_ptr, cPlayersMax); - } - public virtual void /*void*/ ISteamGameServer_SetBotPlayerCount( int /*int*/ cBotplayers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetBotPlayerCount(_ptr, cBotplayers); - } - public virtual void /*void*/ ISteamGameServer_SetServerName( string /*const char **/ pszServerName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetServerName(_ptr, pszServerName); - } - public virtual void /*void*/ ISteamGameServer_SetMapName( string /*const char **/ pszMapName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetMapName(_ptr, pszMapName); - } - public virtual void /*void*/ ISteamGameServer_SetPasswordProtected( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bPasswordProtected ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetPasswordProtected(_ptr, bPasswordProtected); - } - public virtual void /*void*/ ISteamGameServer_SetSpectatorPort( ushort /*uint16*/ unSpectatorPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetSpectatorPort(_ptr, unSpectatorPort); - } - public virtual void /*void*/ ISteamGameServer_SetSpectatorServerName( string /*const char **/ pszSpectatorServerName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetSpectatorServerName(_ptr, pszSpectatorServerName); - } - public virtual void /*void*/ ISteamGameServer_ClearAllKeyValues() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_ClearAllKeyValues(_ptr); - } - public virtual void /*void*/ ISteamGameServer_SetKeyValue( string /*const char **/ pKey, string /*const char **/ pValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetKeyValue(_ptr, pKey, pValue); - } - public virtual void /*void*/ ISteamGameServer_SetGameTags( string /*const char **/ pchGameTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetGameTags(_ptr, pchGameTags); - } - public virtual void /*void*/ ISteamGameServer_SetGameData( string /*const char **/ pchGameData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetGameData(_ptr, pchGameData); - } - public virtual void /*void*/ ISteamGameServer_SetRegion( string /*const char **/ pszRegion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetRegion(_ptr, pszRegion); - } - public virtual bool /*bool*/ ISteamGameServer_SendUserConnectAndAuthenticate( uint /*uint32*/ unIPClient, IntPtr /*const void **/ pvAuthBlob, uint /*uint32*/ cubAuthBlobSize, out ulong pSteamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate(_ptr, unIPClient, pvAuthBlob, cubAuthBlobSize, out pSteamIDUser); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamGameServer_CreateUnauthenticatedUserConnection() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection(_ptr); - } - public virtual void /*void*/ ISteamGameServer_SendUserDisconnect( ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SendUserDisconnect(_ptr, steamIDUser); - } - public virtual bool /*bool*/ ISteamGameServer_BUpdateUserData( ulong steamIDUser, string /*const char **/ pchPlayerName, uint /*uint32*/ uScore ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_BUpdateUserData(_ptr, steamIDUser, pchPlayerName, uScore); - } - public virtual HAuthTicket /*(HAuthTicket)*/ ISteamGameServer_GetAuthSessionTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetAuthSessionTicket(_ptr, pTicket, cbMaxTicket, out pcbTicket); - } - public virtual BeginAuthSessionResult /*EBeginAuthSessionResult*/ ISteamGameServer_BeginAuthSession( IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_BeginAuthSession(_ptr, pAuthTicket, cbAuthTicket, steamID); - } - public virtual void /*void*/ ISteamGameServer_EndAuthSession( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_EndAuthSession(_ptr, steamID); - } - public virtual void /*void*/ ISteamGameServer_CancelAuthTicket( uint hAuthTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_CancelAuthTicket(_ptr, hAuthTicket); - } - public virtual UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ ISteamGameServer_UserHasLicenseForApp( ulong steamID, uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_UserHasLicenseForApp(_ptr, steamID, appID); - } - public virtual bool /*bool*/ ISteamGameServer_RequestUserGroupStatus( ulong steamIDUser, ulong steamIDGroup ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_RequestUserGroupStatus(_ptr, steamIDUser, steamIDGroup); - } - public virtual void /*void*/ ISteamGameServer_GetGameplayStats() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_GetGameplayStats(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_GetServerReputation() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetServerReputation(_ptr); - } - public virtual uint /*uint32*/ ISteamGameServer_GetPublicIP() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetPublicIP(_ptr); - } - public virtual bool /*bool*/ ISteamGameServer_HandleIncomingPacket( IntPtr /*const void **/ pData, int /*int*/ cbData, uint /*uint32*/ srcIP, ushort /*uint16*/ srcPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_HandleIncomingPacket(_ptr, pData, cbData, srcIP, srcPort); - } - public virtual int /*int*/ ISteamGameServer_GetNextOutgoingPacket( IntPtr /*void **/ pOut, int /*int*/ cbMaxOut, out uint /*uint32 **/ pNetAdr, out ushort /*uint16 **/ pPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetNextOutgoingPacket(_ptr, pOut, cbMaxOut, out pNetAdr, out pPort); - } - public virtual void /*void*/ ISteamGameServer_EnableHeartbeats( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bActive ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_EnableHeartbeats(_ptr, bActive); - } - public virtual void /*void*/ ISteamGameServer_SetHeartbeatInterval( int /*int*/ iHeartbeatInterval ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetHeartbeatInterval(_ptr, iHeartbeatInterval); - } - public virtual void /*void*/ ISteamGameServer_ForceHeartbeat() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_ForceHeartbeat(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_AssociateWithClan( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_AssociateWithClan(_ptr, steamIDClan); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_ComputeNewPlayerCompatibility( ulong steamIDNewPlayer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility(_ptr, steamIDNewPlayer); - } - - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServerStats_RequestUserStats( ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_RequestUserStats(_ptr, steamIDUser); - } - public virtual bool /*bool*/ ISteamGameServerStats_GetUserStat( ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_GetUserStat(_ptr, steamIDUser, pchName, out pData); - } - public virtual bool /*bool*/ ISteamGameServerStats_GetUserStat0( ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_GetUserStat0(_ptr, steamIDUser, pchName, out pData); - } - public virtual bool /*bool*/ ISteamGameServerStats_GetUserAchievement( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); - } - public virtual bool /*bool*/ ISteamGameServerStats_SetUserStat( ulong steamIDUser, string /*const char **/ pchName, int /*int32*/ nData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_SetUserStat(_ptr, steamIDUser, pchName, nData); - } - public virtual bool /*bool*/ ISteamGameServerStats_SetUserStat0( ulong steamIDUser, string /*const char **/ pchName, float /*float*/ fData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_SetUserStat0(_ptr, steamIDUser, pchName, fData); - } - public virtual bool /*bool*/ ISteamGameServerStats_UpdateUserAvgRateStat( ulong steamIDUser, string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat(_ptr, steamIDUser, pchName, flCountThisSession, dSessionLength); - } - public virtual bool /*bool*/ ISteamGameServerStats_SetUserAchievement( ulong steamIDUser, string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_SetUserAchievement(_ptr, steamIDUser, pchName); - } - public virtual bool /*bool*/ ISteamGameServerStats_ClearUserAchievement( ulong steamIDUser, string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_ClearUserAchievement(_ptr, steamIDUser, pchName); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServerStats_StoreUserStats( ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_StoreUserStats(_ptr, steamIDUser); - } - - public virtual bool /*bool*/ SteamApi_SteamAPI_Init() - { - return Native.SteamAPI_Init(); - } - public virtual void /*void*/ SteamApi_SteamAPI_RunCallbacks() - { - Native.SteamAPI_RunCallbacks(); - } - public virtual void /*void*/ SteamApi_SteamGameServer_RunCallbacks() - { - Native.SteamGameServer_RunCallbacks(); - } - public virtual void /*void*/ SteamApi_SteamAPI_RegisterCallback( IntPtr /*void **/ pCallback, int /*int*/ callback ) - { - Native.SteamAPI_RegisterCallback(pCallback, callback); - } - public virtual void /*void*/ SteamApi_SteamAPI_UnregisterCallback( IntPtr /*void **/ pCallback ) - { - Native.SteamAPI_UnregisterCallback(pCallback); - } - public virtual void /*void*/ SteamApi_SteamAPI_RegisterCallResult( IntPtr /*void **/ pCallback, ulong callback ) - { - Native.SteamAPI_RegisterCallResult(pCallback, callback); - } - public virtual void /*void*/ SteamApi_SteamAPI_UnregisterCallResult( IntPtr /*void **/ pCallback, ulong callback ) - { - Native.SteamAPI_UnregisterCallResult(pCallback, callback); - } - public virtual bool /*bool*/ SteamApi_SteamInternal_GameServer_Init( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, int /*int*/ eServerMode, string /*const char **/ pchVersionString ) - { - return Native.SteamInternal_GameServer_Init(unIP, usPort, usGamePort, usQueryPort, eServerMode, pchVersionString); - } - public virtual void /*void*/ SteamApi_SteamAPI_Shutdown() - { - Native.SteamAPI_Shutdown(); - } - public virtual void /*void*/ SteamApi_SteamGameServer_Shutdown() - { - Native.SteamGameServer_Shutdown(); - } - public virtual HSteamUser /*(HSteamUser)*/ SteamApi_SteamAPI_GetHSteamUser() - { - return Native.SteamAPI_GetHSteamUser(); - } - public virtual HSteamPipe /*(HSteamPipe)*/ SteamApi_SteamAPI_GetHSteamPipe() - { - return Native.SteamAPI_GetHSteamPipe(); - } - public virtual HSteamUser /*(HSteamUser)*/ SteamApi_SteamGameServer_GetHSteamUser() - { - return Native.SteamGameServer_GetHSteamUser(); - } - public virtual HSteamPipe /*(HSteamPipe)*/ SteamApi_SteamGameServer_GetHSteamPipe() - { - return Native.SteamGameServer_GetHSteamPipe(); - } - public virtual IntPtr /*void **/ SteamApi_SteamInternal_CreateInterface( string /*const char **/ version ) - { - return Native.SteamInternal_CreateInterface(version); - } - public virtual bool /*bool*/ SteamApi_SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID ) - { - return Native.SteamAPI_RestartAppIfNecessary(unOwnAppID); - } - - internal static unsafe class Native - { - // - // ISteamClient - // - [DllImport( "libsteam_api.dylib" )] - internal static extern HSteamPipe /*(HSteamPipe)*/ SteamAPI_ISteamClient_CreateSteamPipe( IntPtr ISteamClient ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamClient_BReleaseSteamPipe( IntPtr ISteamClient, int hSteamPipe ); - [DllImport( "libsteam_api.dylib" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_ISteamClient_ConnectToGlobalUser( IntPtr ISteamClient, int hSteamPipe ); - [DllImport( "libsteam_api.dylib" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_ISteamClient_CreateLocalUser( IntPtr ISteamClient, out int phSteamPipe, AccountType /*EAccountType*/ eAccountType ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamClient_ReleaseUser( IntPtr ISteamClient, int hSteamPipe, int hUser ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamUser **/ SteamAPI_ISteamClient_GetISteamUser( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamGameServer **/ SteamAPI_ISteamClient_GetISteamGameServer( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamClient_SetLocalIPBinding( IntPtr ISteamClient, uint /*uint32*/ unIP, ushort /*uint16*/ usPort ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamFriends **/ SteamAPI_ISteamClient_GetISteamFriends( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamUtils **/ SteamAPI_ISteamClient_GetISteamUtils( IntPtr ISteamClient, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamMatchmaking **/ SteamAPI_ISteamClient_GetISteamMatchmaking( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamMatchmakingServers **/ SteamAPI_ISteamClient_GetISteamMatchmakingServers( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*void **/ SteamAPI_ISteamClient_GetISteamGenericInterface( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamUserStats **/ SteamAPI_ISteamClient_GetISteamUserStats( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamGameServerStats **/ SteamAPI_ISteamClient_GetISteamGameServerStats( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamApps **/ SteamAPI_ISteamClient_GetISteamApps( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamNetworking **/ SteamAPI_ISteamClient_GetISteamNetworking( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamRemoteStorage **/ SteamAPI_ISteamClient_GetISteamRemoteStorage( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamScreenshots **/ SteamAPI_ISteamClient_GetISteamScreenshots( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamGameSearch **/ SteamAPI_ISteamClient_GetISteamGameSearch( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamClient_GetIPCCallCount( IntPtr ISteamClient ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamClient_SetWarningMessageHook( IntPtr ISteamClient, IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamClient_BShutdownIfAllPipesClosed( IntPtr ISteamClient ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamHTTP **/ SteamAPI_ISteamClient_GetISteamHTTP( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamController **/ SteamAPI_ISteamClient_GetISteamController( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamUGC **/ SteamAPI_ISteamClient_GetISteamUGC( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamAppList **/ SteamAPI_ISteamClient_GetISteamAppList( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamMusic **/ SteamAPI_ISteamClient_GetISteamMusic( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamMusicRemote **/ SteamAPI_ISteamClient_GetISteamMusicRemote( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamHTMLSurface **/ SteamAPI_ISteamClient_GetISteamHTMLSurface( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamInventory **/ SteamAPI_ISteamClient_GetISteamInventory( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamVideo **/ SteamAPI_ISteamClient_GetISteamVideo( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamParentalSettings **/ SteamAPI_ISteamClient_GetISteamParentalSettings( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamInput **/ SteamAPI_ISteamClient_GetISteamInput( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class ISteamParties **/ SteamAPI_ISteamClient_GetISteamParties( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - - // - // ISteamUser - // - [DllImport( "libsteam_api.dylib" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_ISteamUser_GetHSteamUser( IntPtr ISteamUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BLoggedOn( IntPtr ISteamUser ); - [DllImport( "libsteam_api.dylib" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamUser_GetSteamID( IntPtr ISteamUser ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamUser_InitiateGameConnection( IntPtr ISteamUser, IntPtr /*void **/ pAuthBlob, int /*int*/ cbMaxAuthBlob, ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_TerminateGameConnection( IntPtr ISteamUser, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_TrackAppUsageEvent( IntPtr ISteamUser, ulong gameID, int /*int*/ eAppUsageEvent, string /*const char **/ pchExtraInfo ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_GetUserDataFolder( IntPtr ISteamUser, System.Text.StringBuilder /*char **/ pchBuffer, int /*int*/ cubBuffer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_StartVoiceRecording( IntPtr ISteamUser ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_StopVoiceRecording( IntPtr ISteamUser ); - [DllImport( "libsteam_api.dylib" )] - internal static extern VoiceResult /*EVoiceResult*/ SteamAPI_ISteamUser_GetAvailableVoice( IntPtr ISteamUser, out uint /*uint32 **/ pcbCompressed, out uint /*uint32 **/ pcbUncompressed_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated ); - [DllImport( "libsteam_api.dylib" )] - internal static extern VoiceResult /*EVoiceResult*/ SteamAPI_ISteamUser_GetVoice( IntPtr ISteamUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantUncompressed_Deprecated, IntPtr /*void **/ pUncompressedDestBuffer_Deprecated, uint /*uint32*/ cbUncompressedDestBufferSize_Deprecated, out uint /*uint32 **/ nUncompressBytesWritten_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated ); - [DllImport( "libsteam_api.dylib" )] - internal static extern VoiceResult /*EVoiceResult*/ SteamAPI_ISteamUser_DecompressVoice( IntPtr ISteamUser, IntPtr /*const void **/ pCompressed, uint /*uint32*/ cbCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, uint /*uint32*/ nDesiredSampleRate ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUser_GetVoiceOptimalSampleRate( IntPtr ISteamUser ); - [DllImport( "libsteam_api.dylib" )] - internal static extern HAuthTicket /*(HAuthTicket)*/ SteamAPI_ISteamUser_GetAuthSessionTicket( IntPtr ISteamUser, IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ); - [DllImport( "libsteam_api.dylib" )] - internal static extern BeginAuthSessionResult /*EBeginAuthSessionResult*/ SteamAPI_ISteamUser_BeginAuthSession( IntPtr ISteamUser, IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_EndAuthSession( IntPtr ISteamUser, ulong steamID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_CancelAuthTicket( IntPtr ISteamUser, uint hAuthTicket ); - [DllImport( "libsteam_api.dylib" )] - internal static extern UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ SteamAPI_ISteamUser_UserHasLicenseForApp( IntPtr ISteamUser, ulong steamID, uint appID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsBehindNAT( IntPtr ISteamUser ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_AdvertiseGame( IntPtr ISteamUser, ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUser_RequestEncryptedAppTicket( IntPtr ISteamUser, IntPtr /*void **/ pDataToInclude, int /*int*/ cbDataToInclude ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_GetEncryptedAppTicket( IntPtr ISteamUser, IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamUser_GetGameBadgeLevel( IntPtr ISteamUser, int /*int*/ nSeries, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bFoil ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamUser_GetPlayerSteamLevel( IntPtr ISteamUser ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUser_RequestStoreAuthURL( IntPtr ISteamUser, string /*const char **/ pchRedirectURL ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsPhoneVerified( IntPtr ISteamUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsTwoFactorEnabled( IntPtr ISteamUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsPhoneIdentifying( IntPtr ISteamUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsPhoneRequiringVerification( IntPtr ISteamUser ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUser_GetMarketEligibility( IntPtr ISteamUser ); - - // - // ISteamFriends - // - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetPersonaName( IntPtr ISteamFriends ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_SetPersonaName( IntPtr ISteamFriends, string /*const char **/ pchPersonaName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern PersonaState /*EPersonaState*/ SteamAPI_ISteamFriends_GetPersonaState( IntPtr ISteamFriends ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendCount( IntPtr ISteamFriends, int /*int*/ iFriendFlags ); - [DllImport( "libsteam_api.dylib" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetFriendByIndex( IntPtr ISteamFriends, int /*int*/ iFriend, int /*int*/ iFriendFlags ); - [DllImport( "libsteam_api.dylib" )] - internal static extern FriendRelationship /*EFriendRelationship*/ SteamAPI_ISteamFriends_GetFriendRelationship( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.dylib" )] - internal static extern PersonaState /*EPersonaState*/ SteamAPI_ISteamFriends_GetFriendPersonaState( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendPersonaName( IntPtr ISteamFriends, ulong steamIDFriend ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_GetFriendGamePlayed( IntPtr ISteamFriends, ulong steamIDFriend, ref FriendGameInfo_t.Pack4 /*struct FriendGameInfo_t **/ pFriendGameInfo ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendPersonaNameHistory( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iPersonaName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendSteamLevel( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetPlayerNickname( IntPtr ISteamFriends, ulong steamIDPlayer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendsGroupCount( IntPtr ISteamFriends ); - [DllImport( "libsteam_api.dylib" )] - internal static extern FriendsGroupID_t /*(FriendsGroupID_t)*/ SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex( IntPtr ISteamFriends, int /*int*/ iFG ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendsGroupName( IntPtr ISteamFriends, short friendsGroupID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendsGroupMembersCount( IntPtr ISteamFriends, short friendsGroupID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_GetFriendsGroupMembersList( IntPtr ISteamFriends, short friendsGroupID, IntPtr /*class CSteamID **/ pOutSteamIDMembers, int /*int*/ nMembersCount ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_HasFriend( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iFriendFlags ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanCount( IntPtr ISteamFriends ); - [DllImport( "libsteam_api.dylib" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetClanByIndex( IntPtr ISteamFriends, int /*int*/ iClan ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetClanName( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetClanTag( IntPtr ISteamFriends, ulong steamIDClan ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_GetClanActivityCounts( IntPtr ISteamFriends, ulong steamIDClan, out int /*int **/ pnOnline, out int /*int **/ pnInGame, out int /*int **/ pnChatting ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_DownloadClanActivityCounts( IntPtr ISteamFriends, IntPtr /*class CSteamID **/ psteamIDClans, int /*int*/ cClansToRequest ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendCountFromSource( IntPtr ISteamFriends, ulong steamIDSource ); - [DllImport( "libsteam_api.dylib" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetFriendFromSourceByIndex( IntPtr ISteamFriends, ulong steamIDSource, int /*int*/ iFriend ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsUserInSource( IntPtr ISteamFriends, ulong steamIDUser, ulong steamIDSource ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_SetInGameVoiceSpeaking( IntPtr ISteamFriends, ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSpeaking ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlay( IntPtr ISteamFriends, string /*const char **/ pchDialog ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayToUser( IntPtr ISteamFriends, string /*const char **/ pchDialog, ulong steamID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage( IntPtr ISteamFriends, string /*const char **/ pchURL, ActivateGameOverlayToWebPageMode /*EActivateGameOverlayToWebPageMode*/ eMode ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayToStore( IntPtr ISteamFriends, uint nAppID, OverlayToStoreFlag /*EOverlayToStoreFlag*/ eFlag ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_SetPlayedWith( IntPtr ISteamFriends, ulong steamIDUserPlayedWith ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog( IntPtr ISteamFriends, ulong steamIDLobby ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetSmallFriendAvatar( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetMediumFriendAvatar( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetLargeFriendAvatar( IntPtr ISteamFriends, ulong steamIDFriend ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_RequestUserInformation( IntPtr ISteamFriends, ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireNameOnly ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_RequestClanOfficerList( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "libsteam_api.dylib" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetClanOwner( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanOfficerCount( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "libsteam_api.dylib" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetClanOfficerByIndex( IntPtr ISteamFriends, ulong steamIDClan, int /*int*/ iOfficer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamFriends_GetUserRestrictions( IntPtr ISteamFriends ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_SetRichPresence( IntPtr ISteamFriends, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ClearRichPresence( IntPtr ISteamFriends ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendRichPresence( IntPtr ISteamFriends, ulong steamIDFriend, string /*const char **/ pchKey ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iKey ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_RequestFriendRichPresence( IntPtr ISteamFriends, ulong steamIDFriend ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_InviteUserToGame( IntPtr ISteamFriends, ulong steamIDFriend, string /*const char **/ pchConnectString ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetCoplayFriendCount( IntPtr ISteamFriends ); - [DllImport( "libsteam_api.dylib" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetCoplayFriend( IntPtr ISteamFriends, int /*int*/ iCoplayFriend ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendCoplayTime( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.dylib" )] - internal static extern AppId_t /*(AppId_t)*/ SteamAPI_ISteamFriends_GetFriendCoplayGame( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_JoinClanChatRoom( IntPtr ISteamFriends, ulong steamIDClan ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_LeaveClanChatRoom( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanChatMemberCount( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "libsteam_api.dylib" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetChatMemberByIndex( IntPtr ISteamFriends, ulong steamIDClan, int /*int*/ iUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_SendClanChatMessage( IntPtr ISteamFriends, ulong steamIDClanChat, string /*const char **/ pchText ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanChatMessage( IntPtr ISteamFriends, ulong steamIDClanChat, int /*int*/ iMessage, IntPtr /*void **/ prgchText, int /*int*/ cchTextMax, out ChatEntryType /*EChatEntryType **/ peChatEntryType, out ulong psteamidChatter ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsClanChatAdmin( IntPtr ISteamFriends, ulong steamIDClanChat, ulong steamIDUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam( IntPtr ISteamFriends, ulong steamIDClanChat ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_OpenClanChatWindowInSteam( IntPtr ISteamFriends, ulong steamIDClanChat ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_CloseClanChatWindowInSteam( IntPtr ISteamFriends, ulong steamIDClanChat ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_SetListenForFriendsMessages( IntPtr ISteamFriends, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bInterceptEnabled ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_ReplyToFriendMessage( IntPtr ISteamFriends, ulong steamIDFriend, string /*const char **/ pchMsgToSend ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendMessage( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iMessageID, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_GetFollowerCount( IntPtr ISteamFriends, ulong steamID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_IsFollowing( IntPtr ISteamFriends, ulong steamID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_EnumerateFollowingList( IntPtr ISteamFriends, uint /*uint32*/ unStartIndex ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsClanPublic( IntPtr ISteamFriends, ulong steamIDClan ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsClanOfficialGameGroup( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetNumChatsWithUnreadPriorityMessages( IntPtr ISteamFriends ); - - // - // ISteamUtils - // - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetSecondsSinceAppActive( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetSecondsSinceComputerActive( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.dylib" )] - internal static extern Universe /*EUniverse*/ SteamAPI_ISteamUtils_GetConnectedUniverse( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetServerRealTime( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamUtils_GetIPCountry( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetImageSize( IntPtr ISteamUtils, int /*int*/ iImage, out uint /*uint32 **/ pnWidth, out uint /*uint32 **/ pnHeight ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetImageRGBA( IntPtr ISteamUtils, int /*int*/ iImage, IntPtr /*uint8 **/ pubDest, int /*int*/ nDestBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetCSERIPPort( IntPtr ISteamUtils, out uint /*uint32 **/ unIP, out ushort /*uint16 **/ usPort ); - [DllImport( "libsteam_api.dylib" )] - internal static extern byte /*uint8*/ SteamAPI_ISteamUtils_GetCurrentBatteryPower( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetAppID( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_SetOverlayNotificationPosition( IntPtr ISteamUtils, NotificationPosition /*ENotificationPosition*/ eNotificationPosition ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsAPICallCompleted( IntPtr ISteamUtils, ulong hSteamAPICall, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICallFailure /*ESteamAPICallFailure*/ SteamAPI_ISteamUtils_GetAPICallFailureReason( IntPtr ISteamUtils, ulong hSteamAPICall ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetAPICallResult( IntPtr ISteamUtils, ulong hSteamAPICall, IntPtr /*void **/ pCallback, int /*int*/ cubCallback, int /*int*/ iCallbackExpected, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetIPCCallCount( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_SetWarningMessageHook( IntPtr ISteamUtils, IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsOverlayEnabled( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_BOverlayNeedsPresent( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUtils_CheckFileSignature( IntPtr ISteamUtils, string /*const char **/ szFileName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_ShowGamepadTextInput( IntPtr ISteamUtils, GamepadTextInputMode /*EGamepadTextInputMode*/ eInputMode, GamepadTextInputLineMode /*EGamepadTextInputLineMode*/ eLineInputMode, string /*const char **/ pchDescription, uint /*uint32*/ unCharMax, string /*const char **/ pchExistingText ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetEnteredGamepadTextLength( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetEnteredGamepadTextInput( IntPtr ISteamUtils, System.Text.StringBuilder /*char **/ pchText, uint /*uint32*/ cchText ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamUtils_GetSteamUILanguage( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsSteamRunningInVR( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_SetOverlayNotificationInset( IntPtr ISteamUtils, int /*int*/ nHorizontalInset, int /*int*/ nVerticalInset ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsSteamInBigPictureMode( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_StartVRDashboard( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsVRHeadsetStreamingEnabled( IntPtr ISteamUtils ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_SetVRHeadsetStreamingEnabled( IntPtr ISteamUtils, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled ); - - // - // ISteamMatchmaking - // - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetFavoriteGameCount( IntPtr ISteamMatchmaking ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_GetFavoriteGame( IntPtr ISteamMatchmaking, int /*int*/ iGame, ref uint pnAppID, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnConnPort, out ushort /*uint16 **/ pnQueryPort, out uint /*uint32 **/ punFlags, out uint /*uint32 **/ pRTime32LastPlayedOnServer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_AddFavoriteGame( IntPtr ISteamMatchmaking, uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags, uint /*uint32*/ rTime32LastPlayedOnServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_RemoveFavoriteGame( IntPtr ISteamMatchmaking, uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamMatchmaking_RequestLobbyList( IntPtr ISteamMatchmaking ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter( IntPtr ISteamMatchmaking, string /*const char **/ pchKeyToMatch, string /*const char **/ pchValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter( IntPtr ISteamMatchmaking, string /*const char **/ pchKeyToMatch, int /*int*/ nValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter( IntPtr ISteamMatchmaking, string /*const char **/ pchKeyToMatch, int /*int*/ nValueToBeCloseTo ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable( IntPtr ISteamMatchmaking, int /*int*/ nSlotsAvailable ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter( IntPtr ISteamMatchmaking, LobbyDistanceFilter /*ELobbyDistanceFilter*/ eLobbyDistanceFilter ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter( IntPtr ISteamMatchmaking, int /*int*/ cMaxResults ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [DllImport( "libsteam_api.dylib" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamMatchmaking_GetLobbyByIndex( IntPtr ISteamMatchmaking, int /*int*/ iLobby ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamMatchmaking_CreateLobby( IntPtr ISteamMatchmaking, LobbyType /*ELobbyType*/ eLobbyType, int /*int*/ cMaxMembers ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamMatchmaking_JoinLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_LeaveLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_InviteUserToLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDInvitee ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetNumLobbyMembers( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [DllImport( "libsteam_api.dylib" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ iMember ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamMatchmaking_GetLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetLobbyDataCount( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ iLobbyData, System.Text.StringBuilder /*char **/ pchKey, int /*int*/ cchKeyBufferSize, System.Text.StringBuilder /*char **/ pchValue, int /*int*/ cchValueBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_DeleteLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamMatchmaking_GetLobbyMemberData( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDUser, string /*const char **/ pchKey ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_SetLobbyMemberData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SendLobbyChatMsg( IntPtr ISteamMatchmaking, ulong steamIDLobby, IntPtr /*const void **/ pvMsgBody, int /*int*/ cubMsgBody ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetLobbyChatEntry( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ iChatID, out ulong pSteamIDUser, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_RequestLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_SetLobbyGameServer( IntPtr ISteamMatchmaking, ulong steamIDLobby, uint /*uint32*/ unGameServerIP, ushort /*uint16*/ unGameServerPort, ulong steamIDGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_GetLobbyGameServer( IntPtr ISteamMatchmaking, ulong steamIDLobby, out uint /*uint32 **/ punGameServerIP, out ushort /*uint16 **/ punGameServerPort, out ulong psteamIDGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ cMaxMembers ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyType( IntPtr ISteamMatchmaking, ulong steamIDLobby, LobbyType /*ELobbyType*/ eLobbyType ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyJoinable( IntPtr ISteamMatchmaking, ulong steamIDLobby, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bLobbyJoinable ); - [DllImport( "libsteam_api.dylib" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamMatchmaking_GetLobbyOwner( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyOwner( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDNewOwner ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLinkedLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDLobbyDependent ); - - // - // ISteamMatchmakingServers - // - [DllImport( "libsteam_api.dylib" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestInternetServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.dylib" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestLANServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.dylib" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.dylib" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.dylib" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.dylib" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_ReleaseRequest( IntPtr ISteamMatchmakingServers, IntPtr hServerListRequest ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*class gameserveritem_t **/ SteamAPI_ISteamMatchmakingServers_GetServerDetails( IntPtr ISteamMatchmakingServers, IntPtr hRequest, int /*int*/ iServer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_CancelQuery( IntPtr ISteamMatchmakingServers, IntPtr hRequest ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_RefreshQuery( IntPtr ISteamMatchmakingServers, IntPtr hRequest ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmakingServers_IsRefreshing( IntPtr ISteamMatchmakingServers, IntPtr hRequest ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmakingServers_GetServerCount( IntPtr ISteamMatchmakingServers, IntPtr hRequest ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_RefreshServer( IntPtr ISteamMatchmakingServers, IntPtr hRequest, int /*int*/ iServer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern HServerQuery /*(HServerQuery)*/ SteamAPI_ISteamMatchmakingServers_PingServer( IntPtr ISteamMatchmakingServers, uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPingResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.dylib" )] - internal static extern HServerQuery /*(HServerQuery)*/ SteamAPI_ISteamMatchmakingServers_PlayerDetails( IntPtr ISteamMatchmakingServers, uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPlayersResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.dylib" )] - internal static extern HServerQuery /*(HServerQuery)*/ SteamAPI_ISteamMatchmakingServers_ServerRules( IntPtr ISteamMatchmakingServers, uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingRulesResponse **/ pRequestServersResponse ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_CancelServerQuery( IntPtr ISteamMatchmakingServers, int hServerQuery ); - - // - // ISteamGameSearch - // - [DllImport( "libsteam_api.dylib" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_AddGameSearchParams( IntPtr ISteamGameSearch, string /*const char **/ pchKeyToFind, string /*const char **/ pchValuesToFind ); - [DllImport( "libsteam_api.dylib" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SearchForGameWithLobby( IntPtr ISteamGameSearch, ulong steamIDLobby, int /*int*/ nPlayerMin, int /*int*/ nPlayerMax ); - [DllImport( "libsteam_api.dylib" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SearchForGameSolo( IntPtr ISteamGameSearch, int /*int*/ nPlayerMin, int /*int*/ nPlayerMax ); - [DllImport( "libsteam_api.dylib" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_AcceptGame( IntPtr ISteamGameSearch ); - [DllImport( "libsteam_api.dylib" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_DeclineGame( IntPtr ISteamGameSearch ); - [DllImport( "libsteam_api.dylib" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_RetrieveConnectionDetails( IntPtr ISteamGameSearch, ulong steamIDHost, System.Text.StringBuilder /*char **/ pchConnectionDetails, int /*int*/ cubConnectionDetails ); - [DllImport( "libsteam_api.dylib" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_EndGameSearch( IntPtr ISteamGameSearch ); - [DllImport( "libsteam_api.dylib" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SetGameHostParams( IntPtr ISteamGameSearch, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [DllImport( "libsteam_api.dylib" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SetConnectionDetails( IntPtr ISteamGameSearch, string /*const char **/ pchConnectionDetails, int /*int*/ cubConnectionDetails ); - [DllImport( "libsteam_api.dylib" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_RequestPlayersForGame( IntPtr ISteamGameSearch, int /*int*/ nPlayerMin, int /*int*/ nPlayerMax, int /*int*/ nMaxTeamSize ); - [DllImport( "libsteam_api.dylib" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_HostConfirmGameStart( IntPtr ISteamGameSearch, ulong /*uint64*/ ullUniqueGameID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_CancelRequestPlayersForGame( IntPtr ISteamGameSearch ); - [DllImport( "libsteam_api.dylib" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SubmitPlayerResult( IntPtr ISteamGameSearch, ulong /*uint64*/ ullUniqueGameID, ulong steamIDPlayer, PlayerResult_t /*EPlayerResult_t*/ EPlayerResult ); - [DllImport( "libsteam_api.dylib" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_EndGame( IntPtr ISteamGameSearch, ulong /*uint64*/ ullUniqueGameID ); - - // - // ISteamParties - // - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamParties_GetNumActiveBeacons( IntPtr ISteamParties ); - [DllImport( "libsteam_api.dylib" )] - internal static extern PartyBeaconID_t /*(PartyBeaconID_t)*/ SteamAPI_ISteamParties_GetBeaconByIndex( IntPtr ISteamParties, uint /*uint32*/ unIndex ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_GetBeaconDetails( IntPtr ISteamParties, ulong ulBeaconID, out ulong pSteamIDBeaconOwner, ref SteamPartyBeaconLocation_t.Pack4 /*struct SteamPartyBeaconLocation_t **/ pLocation, System.Text.StringBuilder /*char **/ pchMetadata, int /*int*/ cchMetadata ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamParties_JoinParty( IntPtr ISteamParties, ulong ulBeaconID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_GetNumAvailableBeaconLocations( IntPtr ISteamParties, IntPtr /*uint32 **/ puNumLocations ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_GetAvailableBeaconLocations( IntPtr ISteamParties, ref SteamPartyBeaconLocation_t.Pack4 /*struct SteamPartyBeaconLocation_t **/ pLocationList, uint /*uint32*/ uMaxNumLocations ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamParties_CreateBeacon( IntPtr ISteamParties, uint /*uint32*/ unOpenSlots, ref SteamPartyBeaconLocation_t.Pack4 /*struct SteamPartyBeaconLocation_t **/ pBeaconLocation, string /*const char **/ pchConnectString, string /*const char **/ pchMetadata ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamParties_OnReservationCompleted( IntPtr ISteamParties, ulong ulBeacon, ulong steamIDUser ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamParties_CancelReservation( IntPtr ISteamParties, ulong ulBeacon, ulong steamIDUser ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamParties_ChangeNumOpenSlots( IntPtr ISteamParties, ulong ulBeacon, uint /*uint32*/ unOpenSlots ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_DestroyBeacon( IntPtr ISteamParties, ulong ulBeacon ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_GetBeaconLocationData( IntPtr ISteamParties, SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t*/ BeaconLocation, SteamPartyBeaconLocationData /*ESteamPartyBeaconLocationData*/ eData, System.Text.StringBuilder /*char **/ pchDataStringOut, int /*int*/ cchDataStringOut ); - - // - // ISteamRemoteStorage - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWrite( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, IntPtr /*const void **/ pvData, int /*int32*/ cubData ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_FileRead( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_FileWriteAsync( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, IntPtr /*const void **/ pvData, uint /*uint32*/ cubData ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_FileReadAsync( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, uint /*uint32*/ nOffset, uint /*uint32*/ cubToRead ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete( IntPtr ISteamRemoteStorage, ulong hReadCall, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cubToRead ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileForget( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileDelete( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_FileShare( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_SetSyncPlatforms( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, RemoteStoragePlatform /*ERemoteStoragePlatform*/ eRemoteStoragePlatform ); - [DllImport( "libsteam_api.dylib" )] - internal static extern UGCFileWriteStreamHandle_t /*(UGCFileWriteStreamHandle_t)*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk( IntPtr ISteamRemoteStorage, ulong writeHandle, IntPtr /*const void **/ pvData, int /*int32*/ cubData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamClose( IntPtr ISteamRemoteStorage, ulong writeHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel( IntPtr ISteamRemoteStorage, ulong writeHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileExists( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FilePersisted( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_GetFileSize( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "libsteam_api.dylib" )] - internal static extern long /*int64*/ SteamAPI_ISteamRemoteStorage_GetFileTimestamp( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "libsteam_api.dylib" )] - internal static extern RemoteStoragePlatform /*ERemoteStoragePlatform*/ SteamAPI_ISteamRemoteStorage_GetSyncPlatforms( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_GetFileCount( IntPtr ISteamRemoteStorage ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamRemoteStorage_GetFileNameAndSize( IntPtr ISteamRemoteStorage, int /*int*/ iFile, out int /*int32 **/ pnFileSizeInBytes ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_GetQuota( IntPtr ISteamRemoteStorage, out ulong /*uint64 **/ pnTotalBytes, out ulong /*uint64 **/ puAvailableBytes ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount( IntPtr ISteamRemoteStorage ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp( IntPtr ISteamRemoteStorage ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp( IntPtr ISteamRemoteStorage, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UGCDownload( IntPtr ISteamRemoteStorage, ulong hContent, uint /*uint32*/ unPriority ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress( IntPtr ISteamRemoteStorage, ulong hContent, out int /*int32 **/ pnBytesDownloaded, out int /*int32 **/ pnBytesExpected ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_GetUGCDetails( IntPtr ISteamRemoteStorage, ulong hContent, ref uint pnAppID, System.Text.StringBuilder /*char ***/ ppchName, out int /*int32 **/ pnFileSizeInBytes, out ulong pSteamIDOwner ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_UGCRead( IntPtr ISteamRemoteStorage, ulong hContent, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead, uint /*uint32*/ cOffset, UGCReadAction /*EUGCReadAction*/ eAction ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_GetCachedUGCCount( IntPtr ISteamRemoteStorage ); - [DllImport( "libsteam_api.dylib" )] - internal static extern UGCHandle_t /*(UGCHandle_t)*/ SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle( IntPtr ISteamRemoteStorage, int /*int32*/ iCachedContent ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_PublishWorkshopFile( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t.Pack4 /*struct SteamParamStringArray_t **/ pTags, WorkshopFileType /*EWorkshopFileType*/ eWorkshopFileType ); - [DllImport( "libsteam_api.dylib" )] - internal static extern PublishedFileUpdateHandle_t /*(PublishedFileUpdateHandle_t)*/ SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchPreviewFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchTitle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchDescription ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility( IntPtr ISteamRemoteStorage, ulong updateHandle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags( IntPtr ISteamRemoteStorage, ulong updateHandle, ref SteamParamStringArray_t.Pack4 /*struct SteamParamStringArray_t **/ pTags ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate( IntPtr ISteamRemoteStorage, ulong updateHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails( IntPtr ISteamRemoteStorage, ulong unPublishedFileId, uint /*uint32*/ unMaxSecondsOld ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_DeletePublishedFile( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles( IntPtr ISteamRemoteStorage, uint /*uint32*/ unStartIndex ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_SubscribePublishedFile( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles( IntPtr ISteamRemoteStorage, uint /*uint32*/ unStartIndex ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchChangeDescription ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote( IntPtr ISteamRemoteStorage, ulong unPublishedFileId, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles( IntPtr ISteamRemoteStorage, ulong steamId, uint /*uint32*/ unStartIndex, ref SteamParamStringArray_t.Pack4 /*struct SteamParamStringArray_t **/ pRequiredTags, ref SteamParamStringArray_t.Pack4 /*struct SteamParamStringArray_t **/ pExcludedTags ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_PublishVideo( IntPtr ISteamRemoteStorage, WorkshopVideoProvider /*EWorkshopVideoProvider*/ eVideoProvider, string /*const char **/ pchVideoAccount, string /*const char **/ pchVideoIdentifier, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t.Pack4 /*struct SteamParamStringArray_t **/ pTags ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction( IntPtr ISteamRemoteStorage, ulong unPublishedFileId, WorkshopFileAction /*EWorkshopFileAction*/ eAction ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction( IntPtr ISteamRemoteStorage, WorkshopFileAction /*EWorkshopFileAction*/ eAction, uint /*uint32*/ unStartIndex ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles( IntPtr ISteamRemoteStorage, WorkshopEnumerationType /*EWorkshopEnumerationType*/ eEnumerationType, uint /*uint32*/ unStartIndex, uint /*uint32*/ unCount, uint /*uint32*/ unDays, ref SteamParamStringArray_t.Pack4 /*struct SteamParamStringArray_t **/ pTags, ref SteamParamStringArray_t.Pack4 /*struct SteamParamStringArray_t **/ pUserTags ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation( IntPtr ISteamRemoteStorage, ulong hContent, string /*const char **/ pchLocation, uint /*uint32*/ unPriority ); - - // - // ISteamUserStats - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_RequestCurrentStats( IntPtr ISteamUserStats ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetStat( IntPtr ISteamUserStats, string /*const char **/ pchName, out int /*int32 **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetStat0( IntPtr ISteamUserStats, string /*const char **/ pchName, out float /*float **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_SetStat( IntPtr ISteamUserStats, string /*const char **/ pchName, int /*int32*/ nData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_SetStat0( IntPtr ISteamUserStats, string /*const char **/ pchName, float /*float*/ fData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_UpdateAvgRateStat( IntPtr ISteamUserStats, string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_SetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_ClearAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime( IntPtr ISteamUserStats, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_StoreStats( IntPtr ISteamUserStats ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetAchievementIcon( IntPtr ISteamUserStats, string /*const char **/ pchName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute( IntPtr ISteamUserStats, string /*const char **/ pchName, string /*const char **/ pchKey ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_IndicateAchievementProgress( IntPtr ISteamUserStats, string /*const char **/ pchName, uint /*uint32*/ nCurProgress, uint /*uint32*/ nMaxProgress ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUserStats_GetNumAchievements( IntPtr ISteamUserStats ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamUserStats_GetAchievementName( IntPtr ISteamUserStats, uint /*uint32*/ iAchievement ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_RequestUserStats( IntPtr ISteamUserStats, ulong steamIDUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserStat( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserStat0( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserAchievement( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_ResetAllStats( IntPtr ISteamUserStats, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAchievementsToo ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_FindOrCreateLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName, LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod, LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_FindLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamUserStats_GetLeaderboardName( IntPtr ISteamUserStats, ulong hSteamLeaderboard ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetLeaderboardEntryCount( IntPtr ISteamUserStats, ulong hSteamLeaderboard ); - [DllImport( "libsteam_api.dylib" )] - internal static extern LeaderboardSortMethod /*ELeaderboardSortMethod*/ SteamAPI_ISteamUserStats_GetLeaderboardSortMethod( IntPtr ISteamUserStats, ulong hSteamLeaderboard ); - [DllImport( "libsteam_api.dylib" )] - internal static extern LeaderboardDisplayType /*ELeaderboardDisplayType*/ SteamAPI_ISteamUserStats_GetLeaderboardDisplayType( IntPtr ISteamUserStats, ulong hSteamLeaderboard ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_DownloadLeaderboardEntries( IntPtr ISteamUserStats, ulong hSteamLeaderboard, LeaderboardDataRequest /*ELeaderboardDataRequest*/ eLeaderboardDataRequest, int /*int*/ nRangeStart, int /*int*/ nRangeEnd ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers( IntPtr ISteamUserStats, ulong hSteamLeaderboard, IntPtr /*class CSteamID **/ prgUsers, int /*int*/ cUsers ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry( IntPtr ISteamUserStats, ulong hSteamLeaderboardEntries, int /*int*/ index, ref LeaderboardEntry_t.Pack4 /*struct LeaderboardEntry_t **/ pLeaderboardEntry, IntPtr /*int32 **/ pDetails, int /*int*/ cDetailsMax ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_UploadLeaderboardScore( IntPtr ISteamUserStats, ulong hSteamLeaderboard, LeaderboardUploadScoreMethod /*ELeaderboardUploadScoreMethod*/ eLeaderboardUploadScoreMethod, int /*int32*/ nScore, int[] /*const int32 **/ pScoreDetails, int /*int*/ cScoreDetailsCount ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_AttachLeaderboardUGC( IntPtr ISteamUserStats, ulong hSteamLeaderboard, ulong hUGC ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers( IntPtr ISteamUserStats ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages( IntPtr ISteamUserStats ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetAchievementAchievedPercent( IntPtr ISteamUserStats, string /*const char **/ pchName, out float /*float **/ pflPercent ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_RequestGlobalStats( IntPtr ISteamUserStats, int /*int*/ nHistoryDays ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetGlobalStat( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out long /*int64 **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetGlobalStat0( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out double /*double **/ pData ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int32*/ SteamAPI_ISteamUserStats_GetGlobalStatHistory( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out long /*int64 **/ pData, uint /*uint32*/ cubData ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int32*/ SteamAPI_ISteamUserStats_GetGlobalStatHistory0( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out double /*double **/ pData, uint /*uint32*/ cubData ); - - // - // ISteamApps - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribed( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsLowViolence( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsCybercafe( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsVACBanned( IntPtr ISteamApps ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamApps_GetCurrentGameLanguage( IntPtr ISteamApps ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamApps_GetAvailableGameLanguages( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribedApp( IntPtr ISteamApps, uint appID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsDlcInstalled( IntPtr ISteamApps, uint appID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime( IntPtr ISteamApps, uint nAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend( IntPtr ISteamApps ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamApps_GetDLCCount( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC, ref uint pAppID, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamApps_InstallDLC( IntPtr ISteamApps, uint nAppID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamApps_UninstallDLC( IntPtr ISteamApps, uint nAppID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey( IntPtr ISteamApps, uint nAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_GetCurrentBetaName( IntPtr ISteamApps, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_MarkContentCorrupt( IntPtr ISteamApps, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMissingFilesOnly ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamApps_GetInstalledDepots( IntPtr ISteamApps, uint appID, IntPtr /*DepotId_t **/ pvecDepots, uint /*uint32*/ cMaxDepots ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamApps_GetAppInstallDir( IntPtr ISteamApps, uint appID, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsAppInstalled( IntPtr ISteamApps, uint appID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamApps_GetAppOwner( IntPtr ISteamApps ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamApps_GetLaunchQueryParam( IntPtr ISteamApps, string /*const char **/ pchKey ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_GetDlcDownloadProgress( IntPtr ISteamApps, uint nAppID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamApps_GetAppBuildId( IntPtr ISteamApps ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamApps_RequestAllProofOfPurchaseKeys( IntPtr ISteamApps ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamApps_GetFileDetails( IntPtr ISteamApps, string /*const char **/ pszFileName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamApps_GetLaunchCommandLine( IntPtr ISteamApps, System.Text.StringBuilder /*char **/ pszCommandLine, int /*int*/ cubCommandLine ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribedFromFamilySharing( IntPtr ISteamApps ); - - // - // ISteamNetworking - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_SendP2PPacket( IntPtr ISteamNetworking, ulong steamIDRemote, IntPtr /*const void **/ pubData, uint /*uint32*/ cubData, P2PSend /*EP2PSend*/ eP2PSendType, int /*int*/ nChannel ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_IsP2PPacketAvailable( IntPtr ISteamNetworking, out uint /*uint32 **/ pcubMsgSize, int /*int*/ nChannel ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_ReadP2PPacket( IntPtr ISteamNetworking, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, out ulong psteamIDRemote, int /*int*/ nChannel ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser( IntPtr ISteamNetworking, ulong steamIDRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_CloseP2PSessionWithUser( IntPtr ISteamNetworking, ulong steamIDRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_CloseP2PChannelWithUser( IntPtr ISteamNetworking, ulong steamIDRemote, int /*int*/ nChannel ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_GetP2PSessionState( IntPtr ISteamNetworking, ulong steamIDRemote, ref P2PSessionState_t.Pack4 /*struct P2PSessionState_t **/ pConnectionState ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_AllowP2PPacketRelay( IntPtr ISteamNetworking, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllow ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SNetListenSocket_t /*(SNetListenSocket_t)*/ SteamAPI_ISteamNetworking_CreateListenSocket( IntPtr ISteamNetworking, int /*int*/ nVirtualP2PPort, uint /*uint32*/ nIP, ushort /*uint16*/ nPort, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SNetSocket_t /*(SNetSocket_t)*/ SteamAPI_ISteamNetworking_CreateP2PConnectionSocket( IntPtr ISteamNetworking, ulong steamIDTarget, int /*int*/ nVirtualPort, int /*int*/ nTimeoutSec, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SNetSocket_t /*(SNetSocket_t)*/ SteamAPI_ISteamNetworking_CreateConnectionSocket( IntPtr ISteamNetworking, uint /*uint32*/ nIP, ushort /*uint16*/ nPort, int /*int*/ nTimeoutSec ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_DestroySocket( IntPtr ISteamNetworking, uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_DestroyListenSocket( IntPtr ISteamNetworking, uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_SendDataOnSocket( IntPtr ISteamNetworking, uint hSocket, IntPtr /*void **/ pubData, uint /*uint32*/ cubData, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReliable ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_IsDataAvailableOnSocket( IntPtr ISteamNetworking, uint hSocket, out uint /*uint32 **/ pcubMsgSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_RetrieveDataFromSocket( IntPtr ISteamNetworking, uint hSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_IsDataAvailable( IntPtr ISteamNetworking, uint hListenSocket, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_RetrieveData( IntPtr ISteamNetworking, uint hListenSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_GetSocketInfo( IntPtr ISteamNetworking, uint hSocket, out ulong pSteamIDRemote, IntPtr /*int **/ peSocketStatus, out uint /*uint32 **/ punIPRemote, out ushort /*uint16 **/ punPortRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_GetListenSocketInfo( IntPtr ISteamNetworking, uint hListenSocket, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnPort ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SNetSocketConnectionType /*ESNetSocketConnectionType*/ SteamAPI_ISteamNetworking_GetSocketConnectionType( IntPtr ISteamNetworking, uint hSocket ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamNetworking_GetMaxPacketSize( IntPtr ISteamNetworking, uint hSocket ); - - // - // ISteamScreenshots - // - [DllImport( "libsteam_api.dylib" )] - internal static extern ScreenshotHandle /*(ScreenshotHandle)*/ SteamAPI_ISteamScreenshots_WriteScreenshot( IntPtr ISteamScreenshots, IntPtr /*void **/ pubRGB, uint /*uint32*/ cubRGB, int /*int*/ nWidth, int /*int*/ nHeight ); - [DllImport( "libsteam_api.dylib" )] - internal static extern ScreenshotHandle /*(ScreenshotHandle)*/ SteamAPI_ISteamScreenshots_AddScreenshotToLibrary( IntPtr ISteamScreenshots, string /*const char **/ pchFilename, string /*const char **/ pchThumbnailFilename, int /*int*/ nWidth, int /*int*/ nHeight ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamScreenshots_TriggerScreenshot( IntPtr ISteamScreenshots ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamScreenshots_HookScreenshots( IntPtr ISteamScreenshots, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHook ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_SetLocation( IntPtr ISteamScreenshots, uint hScreenshot, string /*const char **/ pchLocation ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_TagUser( IntPtr ISteamScreenshots, uint hScreenshot, ulong steamID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_TagPublishedFile( IntPtr ISteamScreenshots, uint hScreenshot, ulong unPublishedFileID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_IsScreenshotsHooked( IntPtr ISteamScreenshots ); - [DllImport( "libsteam_api.dylib" )] - internal static extern ScreenshotHandle /*(ScreenshotHandle)*/ SteamAPI_ISteamScreenshots_AddVRScreenshotToLibrary( IntPtr ISteamScreenshots, VRScreenshotType /*EVRScreenshotType*/ eType, string /*const char **/ pchFilename, string /*const char **/ pchVRFilename ); - - // - // ISteamMusic - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusic_BIsEnabled( IntPtr ISteamMusic ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusic_BIsPlaying( IntPtr ISteamMusic ); - [DllImport( "libsteam_api.dylib" )] - internal static extern AudioPlayback_Status /*AudioPlayback_Status*/ SteamAPI_ISteamMusic_GetPlaybackStatus( IntPtr ISteamMusic ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_Play( IntPtr ISteamMusic ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_Pause( IntPtr ISteamMusic ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_PlayPrevious( IntPtr ISteamMusic ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_PlayNext( IntPtr ISteamMusic ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_SetVolume( IntPtr ISteamMusic, float /*float*/ flVolume ); - [DllImport( "libsteam_api.dylib" )] - internal static extern float /*float*/ SteamAPI_ISteamMusic_GetVolume( IntPtr ISteamMusic ); - - // - // ISteamMusicRemote - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote( IntPtr ISteamMusicRemote, string /*const char **/ pchName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_BActivationSuccess( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetDisplayName( IntPtr ISteamMusicRemote, string /*const char **/ pchDisplayName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64( IntPtr ISteamMusicRemote, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnablePlayPrevious( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnablePlayNext( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnableShuffled( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnableLooped( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnableQueue( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnablePlaylists( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus( IntPtr ISteamMusicRemote, AudioPlayback_Status /*AudioPlayback_Status*/ nStatus ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateShuffled( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateLooped( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateVolume( IntPtr ISteamMusicRemote, float /*float*/ flValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_CurrentEntryWillChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAvailable ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText( IntPtr ISteamMusicRemote, string /*const char **/ pchText ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds( IntPtr ISteamMusicRemote, int /*int*/ nValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt( IntPtr ISteamMusicRemote, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_CurrentEntryDidChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_QueueWillChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_ResetQueueEntries( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetQueueEntry( IntPtr ISteamMusicRemote, int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry( IntPtr ISteamMusicRemote, int /*int*/ nID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_QueueDidChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_PlaylistWillChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_ResetPlaylistEntries( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetPlaylistEntry( IntPtr ISteamMusicRemote, int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry( IntPtr ISteamMusicRemote, int /*int*/ nID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_PlaylistDidChange( IntPtr ISteamMusicRemote ); - - // - // ISteamHTTP - // - [DllImport( "libsteam_api.dylib" )] - internal static extern HTTPRequestHandle /*(HTTPRequestHandle)*/ SteamAPI_ISteamHTTP_CreateHTTPRequest( IntPtr ISteamHTTP, HTTPMethod /*EHTTPMethod*/ eHTTPRequestMethod, string /*const char **/ pchAbsoluteURL ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestContextValue( IntPtr ISteamHTTP, uint hRequest, ulong /*uint64*/ ulContextValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout( IntPtr ISteamHTTP, uint hRequest, uint /*uint32*/ unTimeoutSeconds ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchHeaderName, string /*const char **/ pchHeaderValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchParamName, string /*const char **/ pchParamValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SendHTTPRequest( IntPtr ISteamHTTP, uint hRequest, ref ulong pCallHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse( IntPtr ISteamHTTP, uint hRequest, ref ulong pCallHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_DeferHTTPRequest( IntPtr ISteamHTTP, uint hRequest ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_PrioritizeHTTPRequest( IntPtr ISteamHTTP, uint hRequest ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchHeaderName, out uint /*uint32 **/ unResponseHeaderSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchHeaderName, out byte /*uint8 **/ pHeaderValueBuffer, uint /*uint32*/ unBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseBodySize( IntPtr ISteamHTTP, uint hRequest, out uint /*uint32 **/ unBodySize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseBodyData( IntPtr ISteamHTTP, uint hRequest, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData( IntPtr ISteamHTTP, uint hRequest, uint /*uint32*/ cOffset, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_ReleaseHTTPRequest( IntPtr ISteamHTTP, uint hRequest ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct( IntPtr ISteamHTTP, uint hRequest, out float /*float **/ pflPercentOut ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchContentType, out byte /*uint8 **/ pubBody, uint /*uint32*/ unBodyLen ); - [DllImport( "libsteam_api.dylib" )] - internal static extern HTTPCookieContainerHandle /*(HTTPCookieContainerHandle)*/ SteamAPI_ISteamHTTP_CreateCookieContainer( IntPtr ISteamHTTP, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowResponsesToModify ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_ReleaseCookieContainer( IntPtr ISteamHTTP, uint hCookieContainer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetCookie( IntPtr ISteamHTTP, uint hCookieContainer, string /*const char **/ pchHost, string /*const char **/ pchUrl, string /*const char **/ pchCookie ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer( IntPtr ISteamHTTP, uint hRequest, uint hCookieContainer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchUserAgentInfo ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( IntPtr ISteamHTTP, uint hRequest, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireVerifiedCertificate ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( IntPtr ISteamHTTP, uint hRequest, uint /*uint32*/ unMilliseconds ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut( IntPtr ISteamHTTP, uint hRequest, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbWasTimedOut ); - - // - // ISteamInput - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInput_Init( IntPtr ISteamInput ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInput_Shutdown( IntPtr ISteamInput ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_RunFrame( IntPtr ISteamInput ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetConnectedControllers( IntPtr ISteamInput, IntPtr /*InputHandle_t **/ handlesOut ); - [DllImport( "libsteam_api.dylib" )] - internal static extern InputActionSetHandle_t /*(InputActionSetHandle_t)*/ SteamAPI_ISteamInput_GetActionSetHandle( IntPtr ISteamInput, string /*const char **/ pszActionSetName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_ActivateActionSet( IntPtr ISteamInput, ulong inputHandle, ulong actionSetHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern InputActionSetHandle_t /*(InputActionSetHandle_t)*/ SteamAPI_ISteamInput_GetCurrentActionSet( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_ActivateActionSetLayer( IntPtr ISteamInput, ulong inputHandle, ulong actionSetLayerHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_DeactivateActionSetLayer( IntPtr ISteamInput, ulong inputHandle, ulong actionSetLayerHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_DeactivateAllActionSetLayers( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetActiveActionSetLayers( IntPtr ISteamInput, ulong inputHandle, IntPtr /*InputActionSetHandle_t **/ handlesOut ); - [DllImport( "libsteam_api.dylib" )] - internal static extern InputDigitalActionHandle_t /*(InputDigitalActionHandle_t)*/ SteamAPI_ISteamInput_GetDigitalActionHandle( IntPtr ISteamInput, string /*const char **/ pszActionName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern InputDigitalActionData_t /*struct InputDigitalActionData_t*/ SteamAPI_ISteamInput_GetDigitalActionData( IntPtr ISteamInput, ulong inputHandle, ulong digitalActionHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetDigitalActionOrigins( IntPtr ISteamInput, ulong inputHandle, ulong actionSetHandle, ulong digitalActionHandle, out InputActionOrigin /*EInputActionOrigin **/ originsOut ); - [DllImport( "libsteam_api.dylib" )] - internal static extern InputAnalogActionHandle_t /*(InputAnalogActionHandle_t)*/ SteamAPI_ISteamInput_GetAnalogActionHandle( IntPtr ISteamInput, string /*const char **/ pszActionName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern InputAnalogActionData_t /*struct InputAnalogActionData_t*/ SteamAPI_ISteamInput_GetAnalogActionData( IntPtr ISteamInput, ulong inputHandle, ulong analogActionHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetAnalogActionOrigins( IntPtr ISteamInput, ulong inputHandle, ulong actionSetHandle, ulong analogActionHandle, out InputActionOrigin /*EInputActionOrigin **/ originsOut ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamInput_GetGlyphForActionOrigin( IntPtr ISteamInput, InputActionOrigin /*EInputActionOrigin*/ eOrigin ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamInput_GetStringForActionOrigin( IntPtr ISteamInput, InputActionOrigin /*EInputActionOrigin*/ eOrigin ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_StopAnalogActionMomentum( IntPtr ISteamInput, ulong inputHandle, ulong eAction ); - [DllImport( "libsteam_api.dylib" )] - internal static extern InputMotionData_t /*struct InputMotionData_t*/ SteamAPI_ISteamInput_GetMotionData( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_TriggerVibration( IntPtr ISteamInput, ulong inputHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_SetLEDColor( IntPtr ISteamInput, ulong inputHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_TriggerHapticPulse( IntPtr ISteamInput, ulong inputHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_TriggerRepeatedHapticPulse( IntPtr ISteamInput, ulong inputHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInput_ShowBindingPanel( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamInputType /*ESteamInputType*/ SteamAPI_ISteamInput_GetInputTypeForHandle( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern InputHandle_t /*(InputHandle_t)*/ SteamAPI_ISteamInput_GetControllerForGamepadIndex( IntPtr ISteamInput, int /*int*/ nIndex ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetGamepadIndexForController( IntPtr ISteamInput, ulong ulinputHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamInput_GetStringForXboxOrigin( IntPtr ISteamInput, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamInput_GetGlyphForXboxOrigin( IntPtr ISteamInput, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "libsteam_api.dylib" )] - internal static extern InputActionOrigin /*EInputActionOrigin*/ SteamAPI_ISteamInput_GetActionOriginFromXboxOrigin( IntPtr ISteamInput, ulong inputHandle, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "libsteam_api.dylib" )] - internal static extern InputActionOrigin /*EInputActionOrigin*/ SteamAPI_ISteamInput_TranslateActionOrigin( IntPtr ISteamInput, SteamInputType /*ESteamInputType*/ eDestinationInputType, InputActionOrigin /*EInputActionOrigin*/ eSourceOrigin ); - - // - // ISteamController - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamController_Init( IntPtr ISteamController ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamController_Shutdown( IntPtr ISteamController ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamController_RunFrame( IntPtr ISteamController ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetConnectedControllers( IntPtr ISteamController, IntPtr /*ControllerHandle_t **/ handlesOut ); - [DllImport( "libsteam_api.dylib" )] - internal static extern ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ SteamAPI_ISteamController_GetActionSetHandle( IntPtr ISteamController, string /*const char **/ pszActionSetName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamController_ActivateActionSet( IntPtr ISteamController, ulong controllerHandle, ulong actionSetHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ SteamAPI_ISteamController_GetCurrentActionSet( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamController_ActivateActionSetLayer( IntPtr ISteamController, ulong controllerHandle, ulong actionSetLayerHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamController_DeactivateActionSetLayer( IntPtr ISteamController, ulong controllerHandle, ulong actionSetLayerHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamController_DeactivateAllActionSetLayers( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetActiveActionSetLayers( IntPtr ISteamController, ulong controllerHandle, IntPtr /*ControllerActionSetHandle_t **/ handlesOut ); - [DllImport( "libsteam_api.dylib" )] - internal static extern ControllerDigitalActionHandle_t /*(ControllerDigitalActionHandle_t)*/ SteamAPI_ISteamController_GetDigitalActionHandle( IntPtr ISteamController, string /*const char **/ pszActionName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern InputDigitalActionData_t /*struct InputDigitalActionData_t*/ SteamAPI_ISteamController_GetDigitalActionData( IntPtr ISteamController, ulong controllerHandle, ulong digitalActionHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetDigitalActionOrigins( IntPtr ISteamController, ulong controllerHandle, ulong actionSetHandle, ulong digitalActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut ); - [DllImport( "libsteam_api.dylib" )] - internal static extern ControllerAnalogActionHandle_t /*(ControllerAnalogActionHandle_t)*/ SteamAPI_ISteamController_GetAnalogActionHandle( IntPtr ISteamController, string /*const char **/ pszActionName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern InputAnalogActionData_t /*struct InputAnalogActionData_t*/ SteamAPI_ISteamController_GetAnalogActionData( IntPtr ISteamController, ulong controllerHandle, ulong analogActionHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetAnalogActionOrigins( IntPtr ISteamController, ulong controllerHandle, ulong actionSetHandle, ulong analogActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamController_GetGlyphForActionOrigin( IntPtr ISteamController, ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamController_GetStringForActionOrigin( IntPtr ISteamController, ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamController_StopAnalogActionMomentum( IntPtr ISteamController, ulong controllerHandle, ulong eAction ); - [DllImport( "libsteam_api.dylib" )] - internal static extern InputMotionData_t /*struct InputMotionData_t*/ SteamAPI_ISteamController_GetMotionData( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamController_TriggerHapticPulse( IntPtr ISteamController, ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamController_TriggerRepeatedHapticPulse( IntPtr ISteamController, ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamController_TriggerVibration( IntPtr ISteamController, ulong controllerHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamController_SetLEDColor( IntPtr ISteamController, ulong controllerHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamController_ShowBindingPanel( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamInputType /*ESteamInputType*/ SteamAPI_ISteamController_GetInputTypeForHandle( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern ControllerHandle_t /*(ControllerHandle_t)*/ SteamAPI_ISteamController_GetControllerForGamepadIndex( IntPtr ISteamController, int /*int*/ nIndex ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetGamepadIndexForController( IntPtr ISteamController, ulong ulControllerHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamController_GetStringForXboxOrigin( IntPtr ISteamController, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr SteamAPI_ISteamController_GetGlyphForXboxOrigin( IntPtr ISteamController, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "libsteam_api.dylib" )] - internal static extern ControllerActionOrigin /*EControllerActionOrigin*/ SteamAPI_ISteamController_GetActionOriginFromXboxOrigin( IntPtr ISteamController, ulong controllerHandle, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "libsteam_api.dylib" )] - internal static extern ControllerActionOrigin /*EControllerActionOrigin*/ SteamAPI_ISteamController_TranslateActionOrigin( IntPtr ISteamController, SteamInputType /*ESteamInputType*/ eDestinationInputType, ControllerActionOrigin /*EControllerActionOrigin*/ eSourceOrigin ); - - // - // ISteamUGC - // - [DllImport( "libsteam_api.dylib" )] - internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryUserUGCRequest( IntPtr ISteamUGC, uint unAccountID, UserUGCList /*EUserUGCList*/ eListType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingUGCType, UserUGCListSortOrder /*EUserUGCListSortOrder*/ eSortOrder, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage ); - [DllImport( "libsteam_api.dylib" )] - internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryAllUGCRequest( IntPtr ISteamUGC, UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage ); - [DllImport( "libsteam_api.dylib" )] - internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryAllUGCRequest0( IntPtr ISteamUGC, UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, string /*const char **/ pchCursor ); - [DllImport( "libsteam_api.dylib" )] - internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SendQueryUGCRequest( IntPtr ISteamUGC, ulong handle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCResult( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, ref SteamUGCDetails_t.Pack4 /*struct SteamUGCDetails_t **/ pDetails ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCPreviewURL( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchURL, uint /*uint32*/ cchURLSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCMetadata( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchMetadata, uint /*uint32*/ cchMetadatasize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCChildren( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCStatistic( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, ItemStatistic /*EItemStatistic*/ eStatType, out ulong /*uint64 **/ pStatValue ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, uint /*uint32*/ previewIndex, System.Text.StringBuilder /*char **/ pchURLOrVideoID, uint /*uint32*/ cchURLSize, System.Text.StringBuilder /*char **/ pchOriginalFileName, uint /*uint32*/ cchOriginalFileNameSize, out ItemPreviewType /*EItemPreviewType **/ pPreviewType ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, uint /*uint32*/ keyValueTagIndex, System.Text.StringBuilder /*char **/ pchKey, uint /*uint32*/ cchKeySize, System.Text.StringBuilder /*char **/ pchValue, uint /*uint32*/ cchValueSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_ReleaseQueryUGCRequest( IntPtr ISteamUGC, ulong handle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddRequiredTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pTagName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddExcludedTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pTagName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnOnlyIDs( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnOnlyIDs ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnKeyValueTags( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnKeyValueTags ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnLongDescription( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnLongDescription ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnMetadata( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnMetadata ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnChildren( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnChildren ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnAdditionalPreviews( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnAdditionalPreviews ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnTotalOnly( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnTotalOnly ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnPlaytimeStats( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ unDays ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetLanguage( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchLanguage ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetAllowCachedResponse( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ unMaxAgeSeconds ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetCloudFileNameFilter( IntPtr ISteamUGC, ulong handle, string /*const char **/ pMatchCloudFileName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetMatchAnyTag( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMatchAnyTag ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetSearchText( IntPtr ISteamUGC, ulong handle, string /*const char **/ pSearchText ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetRankedByTrendDays( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ unDays ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddRequiredKeyValueTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pKey, string /*const char **/ pValue ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RequestUGCDetails( IntPtr ISteamUGC, ulong nPublishedFileID, uint /*uint32*/ unMaxAgeSeconds ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_CreateItem( IntPtr ISteamUGC, uint nConsumerAppId, WorkshopFileType /*EWorkshopFileType*/ eFileType ); - [DllImport( "libsteam_api.dylib" )] - internal static extern UGCUpdateHandle_t /*(UGCUpdateHandle_t)*/ SteamAPI_ISteamUGC_StartItemUpdate( IntPtr ISteamUGC, uint nConsumerAppId, ulong nPublishedFileID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemTitle( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchTitle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemDescription( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchDescription ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemUpdateLanguage( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchLanguage ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemMetadata( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchMetaData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemVisibility( IntPtr ISteamUGC, ulong handle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemTags( IntPtr ISteamUGC, ulong updateHandle, ref SteamParamStringArray_t.Pack4 /*const struct SteamParamStringArray_t **/ pTags ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemContent( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszContentFolder ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemPreview( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszPreviewFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetAllowLegacyUpload( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowLegacyUpload ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_RemoveItemKeyValueTags( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchKey ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddItemKeyValueTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddItemPreviewFile( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszPreviewFile, ItemPreviewType /*EItemPreviewType*/ type ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddItemPreviewVideo( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszVideoID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_UpdateItemPreviewFile( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, string /*const char **/ pszPreviewFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_UpdateItemPreviewVideo( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, string /*const char **/ pszVideoID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_RemoveItemPreview( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SubmitItemUpdate( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchChangeNote ); - [DllImport( "libsteam_api.dylib" )] - internal static extern ItemUpdateStatus /*EItemUpdateStatus*/ SteamAPI_ISteamUGC_GetItemUpdateProgress( IntPtr ISteamUGC, ulong handle, out ulong /*uint64 **/ punBytesProcessed, out ulong /*uint64 **/ punBytesTotal ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SetUserItemVote( IntPtr ISteamUGC, ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_GetUserItemVote( IntPtr ISteamUGC, ulong nPublishedFileID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_AddItemToFavorites( IntPtr ISteamUGC, uint nAppId, ulong nPublishedFileID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RemoveItemFromFavorites( IntPtr ISteamUGC, uint nAppId, ulong nPublishedFileID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SubscribeItem( IntPtr ISteamUGC, ulong nPublishedFileID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_UnsubscribeItem( IntPtr ISteamUGC, ulong nPublishedFileID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetNumSubscribedItems( IntPtr ISteamUGC ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetSubscribedItems( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetItemState( IntPtr ISteamUGC, ulong nPublishedFileID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetItemInstallInfo( IntPtr ISteamUGC, ulong nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderSize, out uint /*uint32 **/ punTimeStamp ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetItemDownloadInfo( IntPtr ISteamUGC, ulong nPublishedFileID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_DownloadItem( IntPtr ISteamUGC, ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHighPriority ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_BInitWorkshopForGameServer( IntPtr ISteamUGC, uint unWorkshopDepotID, string /*const char **/ pszFolder ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamUGC_SuspendDownloads( IntPtr ISteamUGC, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSuspend ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_StartPlaytimeTracking( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_StopPlaytimeTracking( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems( IntPtr ISteamUGC ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_AddDependency( IntPtr ISteamUGC, ulong nParentPublishedFileID, ulong nChildPublishedFileID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RemoveDependency( IntPtr ISteamUGC, ulong nParentPublishedFileID, ulong nChildPublishedFileID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_AddAppDependency( IntPtr ISteamUGC, ulong nPublishedFileID, uint nAppID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RemoveAppDependency( IntPtr ISteamUGC, ulong nPublishedFileID, uint nAppID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_GetAppDependencies( IntPtr ISteamUGC, ulong nPublishedFileID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_DeleteItem( IntPtr ISteamUGC, ulong nPublishedFileID ); - - // - // ISteamAppList - // - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamAppList_GetNumInstalledApps( IntPtr ISteamAppList ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamAppList_GetInstalledApps( IntPtr ISteamAppList, IntPtr /*AppId_t **/ pvecAppID, uint /*uint32*/ unMaxAppIDs ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamAppList_GetAppName( IntPtr ISteamAppList, uint nAppID, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameMax ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamAppList_GetAppInstallDir( IntPtr ISteamAppList, uint nAppID, System.Text.StringBuilder /*char **/ pchDirectory, int /*int*/ cchNameMax ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamAppList_GetAppBuildId( IntPtr ISteamAppList, uint nAppID ); - - // - // ISteamHTMLSurface - // - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface( IntPtr ISteamHTMLSurface ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTMLSurface_Init( IntPtr ISteamHTMLSurface ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTMLSurface_Shutdown( IntPtr ISteamHTMLSurface ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamHTMLSurface_CreateBrowser( IntPtr ISteamHTMLSurface, string /*const char **/ pchUserAgent, string /*const char **/ pchUserCSS ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_RemoveBrowser( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_LoadURL( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchURL, string /*const char **/ pchPostData ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetSize( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ unWidth, uint /*uint32*/ unHeight ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_StopLoad( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_Reload( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_GoBack( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_GoForward( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_AddHeader( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_ExecuteJavascript( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchScript ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseUp( IntPtr ISteamHTMLSurface, uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseDown( IntPtr ISteamHTMLSurface, uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseDoubleClick( IntPtr ISteamHTMLSurface, uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseMove( IntPtr ISteamHTMLSurface, uint unBrowserHandle, int /*int*/ x, int /*int*/ y ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseWheel( IntPtr ISteamHTMLSurface, uint unBrowserHandle, int /*int32*/ nDelta ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_KeyDown( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bIsSystemKey ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_KeyUp( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_KeyChar( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ cUnicodeChar, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetHorizontalScroll( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetVerticalScroll( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetKeyFocus( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHasKeyFocus ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_ViewSource( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_CopyToClipboard( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_PasteFromClipboard( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_Find( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchSearchStr, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bCurrentlyInFind, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReverse ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_StopFind( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_GetLinkAtPosition( IntPtr ISteamHTMLSurface, uint unBrowserHandle, int /*int*/ x, int /*int*/ y ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetCookie( IntPtr ISteamHTMLSurface, string /*const char **/ pchHostname, string /*const char **/ pchKey, string /*const char **/ pchValue, string /*const char **/ pchPath, uint nExpires, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHTTPOnly ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetPageScaleFactor( IntPtr ISteamHTMLSurface, uint unBrowserHandle, float /*float*/ flZoom, int /*int*/ nPointX, int /*int*/ nPointY ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetBackgroundMode( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bBackgroundMode ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor( IntPtr ISteamHTMLSurface, uint unBrowserHandle, float /*float*/ flDPIScaling ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_OpenDeveloperTools( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_AllowStartRequest( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowed ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_JSDialogResponse( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bResult ); - - // - // ISteamInventory - // - [DllImport( "libsteam_api.dylib" )] - internal static extern Result /*EResult*/ SteamAPI_ISteamInventory_GetResultStatus( IntPtr ISteamInventory, int resultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetResultItems( IntPtr ISteamInventory, int resultHandle, IntPtr /*struct SteamItemDetails_t **/ pOutItemsArray, out uint /*uint32 **/ punOutItemsArraySize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetResultItemProperty( IntPtr ISteamInventory, int resultHandle, uint /*uint32*/ unItemIndex, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamInventory_GetResultTimestamp( IntPtr ISteamInventory, int resultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_CheckResultSteamID( IntPtr ISteamInventory, int resultHandle, ulong steamIDExpected ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamInventory_DestroyResult( IntPtr ISteamInventory, int resultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetAllItems( IntPtr ISteamInventory, ref int pResultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemsByID( IntPtr ISteamInventory, ref int pResultHandle, ulong[] pInstanceIDs, uint /*uint32*/ unCountInstanceIDs ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SerializeResult( IntPtr ISteamInventory, int resultHandle, IntPtr /*void **/ pOutBuffer, out uint /*uint32 **/ punOutBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_DeserializeResult( IntPtr ISteamInventory, ref int pOutResultHandle, IntPtr /*const void **/ pBuffer, uint /*uint32*/ unBufferSize, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRESERVED_MUST_BE_FALSE ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GenerateItems( IntPtr ISteamInventory, ref int pResultHandle, int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GrantPromoItems( IntPtr ISteamInventory, ref int pResultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_AddPromoItem( IntPtr ISteamInventory, ref int pResultHandle, int itemDef ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_AddPromoItems( IntPtr ISteamInventory, ref int pResultHandle, int[] pArrayItemDefs, uint /*uint32*/ unArrayLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_ConsumeItem( IntPtr ISteamInventory, ref int pResultHandle, ulong itemConsume, uint /*uint32*/ unQuantity ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_ExchangeItems( IntPtr ISteamInventory, ref int pResultHandle, int[] pArrayGenerate, uint[] /*const uint32 **/ punArrayGenerateQuantity, uint /*uint32*/ unArrayGenerateLength, ulong[] pArrayDestroy, uint[] /*const uint32 **/ punArrayDestroyQuantity, uint /*uint32*/ unArrayDestroyLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_TransferItemQuantity( IntPtr ISteamInventory, ref int pResultHandle, ulong itemIdSource, uint /*uint32*/ unQuantity, ulong itemIdDest ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamInventory_SendItemDropHeartbeat( IntPtr ISteamInventory ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_TriggerItemDrop( IntPtr ISteamInventory, ref int pResultHandle, int dropListDefinition ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_TradeItems( IntPtr ISteamInventory, ref int pResultHandle, ulong steamIDTradePartner, ulong[] pArrayGive, uint[] /*const uint32 **/ pArrayGiveQuantity, uint /*uint32*/ nArrayGiveLength, ulong[] pArrayGet, uint[] /*const uint32 **/ pArrayGetQuantity, uint /*uint32*/ nArrayGetLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_LoadItemDefinitions( IntPtr ISteamInventory ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemDefinitionIDs( IntPtr ISteamInventory, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemDefinitionProperty( IntPtr ISteamInventory, int iDefinition, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs( IntPtr ISteamInventory, ulong steamID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs( IntPtr ISteamInventory, ulong steamID, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamInventory_StartPurchase( IntPtr ISteamInventory, int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamInventory_RequestPrices( IntPtr ISteamInventory ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamInventory_GetNumItemsWithPrices( IntPtr ISteamInventory ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemsWithPrices( IntPtr ISteamInventory, IntPtr /*SteamItemDef_t **/ pArrayItemDefs, IntPtr /*uint64 **/ pCurrentPrices, IntPtr /*uint64 **/ pBasePrices, uint /*uint32*/ unArrayLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemPrice( IntPtr ISteamInventory, int iDefinition, out ulong /*uint64 **/ pCurrentPrice, out ulong /*uint64 **/ pBasePrice ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamInventoryUpdateHandle_t /*(SteamInventoryUpdateHandle_t)*/ SteamAPI_ISteamInventory_StartUpdateProperties( IntPtr ISteamInventory ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_RemoveProperty( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SetProperty( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, string /*const char **/ pchPropertyValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SetProperty0( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SetProperty0( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, long /*int64*/ nValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SetProperty0( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, float /*float*/ flValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SubmitUpdateProperties( IntPtr ISteamInventory, ulong handle, ref int pResultHandle ); - - // - // ISteamVideo - // - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamVideo_GetVideoURL( IntPtr ISteamVideo, uint unVideoAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamVideo_IsBroadcasting( IntPtr ISteamVideo, IntPtr /*int **/ pnNumViewers ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamVideo_GetOPFSettings( IntPtr ISteamVideo, uint unVideoAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamVideo_GetOPFStringForApp( IntPtr ISteamVideo, uint unVideoAppID, System.Text.StringBuilder /*char **/ pchBuffer, out int /*int32 **/ pnBufferSize ); - - // - // ISteamParentalSettings - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled( IntPtr ISteamParentalSettings ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsParentalLockLocked( IntPtr ISteamParentalSettings ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsAppBlocked( IntPtr ISteamParentalSettings, uint nAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsAppInBlockList( IntPtr ISteamParentalSettings, uint nAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsFeatureBlocked( IntPtr ISteamParentalSettings, ParentalFeature /*EParentalFeature*/ eFeature ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList( IntPtr ISteamParentalSettings, ParentalFeature /*EParentalFeature*/ eFeature ); - - // - // ISteamGameServer - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_InitGameServer( IntPtr ISteamGameServer, uint /*uint32*/ unIP, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, uint /*uint32*/ unFlags, uint nGameAppId, string /*const char **/ pchVersionString ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetProduct( IntPtr ISteamGameServer, string /*const char **/ pszProduct ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetGameDescription( IntPtr ISteamGameServer, string /*const char **/ pszGameDescription ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetModDir( IntPtr ISteamGameServer, string /*const char **/ pszModDir ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetDedicatedServer( IntPtr ISteamGameServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bDedicated ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_LogOn( IntPtr ISteamGameServer, string /*const char **/ pszToken ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_LogOnAnonymous( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_LogOff( IntPtr ISteamGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_BLoggedOn( IntPtr ISteamGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_BSecure( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamGameServer_GetSteamID( IntPtr ISteamGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_WasRestartRequested( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetMaxPlayerCount( IntPtr ISteamGameServer, int /*int*/ cPlayersMax ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetBotPlayerCount( IntPtr ISteamGameServer, int /*int*/ cBotplayers ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetServerName( IntPtr ISteamGameServer, string /*const char **/ pszServerName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetMapName( IntPtr ISteamGameServer, string /*const char **/ pszMapName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetPasswordProtected( IntPtr ISteamGameServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bPasswordProtected ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetSpectatorPort( IntPtr ISteamGameServer, ushort /*uint16*/ unSpectatorPort ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetSpectatorServerName( IntPtr ISteamGameServer, string /*const char **/ pszSpectatorServerName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_ClearAllKeyValues( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetKeyValue( IntPtr ISteamGameServer, string /*const char **/ pKey, string /*const char **/ pValue ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetGameTags( IntPtr ISteamGameServer, string /*const char **/ pchGameTags ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetGameData( IntPtr ISteamGameServer, string /*const char **/ pchGameData ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetRegion( IntPtr ISteamGameServer, string /*const char **/ pszRegion ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate( IntPtr ISteamGameServer, uint /*uint32*/ unIPClient, IntPtr /*const void **/ pvAuthBlob, uint /*uint32*/ cubAuthBlobSize, out ulong pSteamIDUser ); - [DllImport( "libsteam_api.dylib" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SendUserDisconnect( IntPtr ISteamGameServer, ulong steamIDUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_BUpdateUserData( IntPtr ISteamGameServer, ulong steamIDUser, string /*const char **/ pchPlayerName, uint /*uint32*/ uScore ); - [DllImport( "libsteam_api.dylib" )] - internal static extern HAuthTicket /*(HAuthTicket)*/ SteamAPI_ISteamGameServer_GetAuthSessionTicket( IntPtr ISteamGameServer, IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ); - [DllImport( "libsteam_api.dylib" )] - internal static extern BeginAuthSessionResult /*EBeginAuthSessionResult*/ SteamAPI_ISteamGameServer_BeginAuthSession( IntPtr ISteamGameServer, IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_EndAuthSession( IntPtr ISteamGameServer, ulong steamID ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_CancelAuthTicket( IntPtr ISteamGameServer, uint hAuthTicket ); - [DllImport( "libsteam_api.dylib" )] - internal static extern UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ SteamAPI_ISteamGameServer_UserHasLicenseForApp( IntPtr ISteamGameServer, ulong steamID, uint appID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_RequestUserGroupStatus( IntPtr ISteamGameServer, ulong steamIDUser, ulong steamIDGroup ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_GetGameplayStats( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServer_GetServerReputation( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamGameServer_GetPublicIP( IntPtr ISteamGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_HandleIncomingPacket( IntPtr ISteamGameServer, IntPtr /*const void **/ pData, int /*int*/ cbData, uint /*uint32*/ srcIP, ushort /*uint16*/ srcPort ); - [DllImport( "libsteam_api.dylib" )] - internal static extern int /*int*/ SteamAPI_ISteamGameServer_GetNextOutgoingPacket( IntPtr ISteamGameServer, IntPtr /*void **/ pOut, int /*int*/ cbMaxOut, out uint /*uint32 **/ pNetAdr, out ushort /*uint16 **/ pPort ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_EnableHeartbeats( IntPtr ISteamGameServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bActive ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetHeartbeatInterval( IntPtr ISteamGameServer, int /*int*/ iHeartbeatInterval ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_ForceHeartbeat( IntPtr ISteamGameServer ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServer_AssociateWithClan( IntPtr ISteamGameServer, ulong steamIDClan ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility( IntPtr ISteamGameServer, ulong steamIDNewPlayer ); - - // - // ISteamGameServerStats - // - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServerStats_RequestUserStats( IntPtr ISteamGameServerStats, ulong steamIDUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_GetUserStat( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_GetUserStat0( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_GetUserAchievement( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_SetUserStat( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, int /*int32*/ nData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_SetUserStat0( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, float /*float*/ fData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_SetUserAchievement( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_ClearUserAchievement( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName ); - [DllImport( "libsteam_api.dylib" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServerStats_StoreUserStats( IntPtr ISteamGameServerStats, ulong steamIDUser ); - - // - // SteamApi - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_Init(); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_RunCallbacks(); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamGameServer_RunCallbacks(); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_RegisterCallback( IntPtr /*void **/ pCallback, int /*int*/ callback ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_UnregisterCallback( IntPtr /*void **/ pCallback ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_RegisterCallResult( IntPtr /*void **/ pCallback, ulong callback ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_UnregisterCallResult( IntPtr /*void **/ pCallback, ulong callback ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamInternal_GameServer_Init( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, int /*int*/ eServerMode, string /*const char **/ pchVersionString ); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamAPI_Shutdown(); - [DllImport( "libsteam_api.dylib" )] - internal static extern void /*void*/ SteamGameServer_Shutdown(); - [DllImport( "libsteam_api.dylib" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_GetHSteamUser(); - [DllImport( "libsteam_api.dylib" )] - internal static extern HSteamPipe /*(HSteamPipe)*/ SteamAPI_GetHSteamPipe(); - [DllImport( "libsteam_api.dylib" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamGameServer_GetHSteamUser(); - [DllImport( "libsteam_api.dylib" )] - internal static extern HSteamPipe /*(HSteamPipe)*/ SteamGameServer_GetHSteamPipe(); - [DllImport( "libsteam_api.dylib" )] - internal static extern IntPtr /*void **/ SteamInternal_CreateInterface( string /*const char **/ version ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "libsteam_api.dylib" )] - internal static extern bool /*bool*/ SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID ); - - } - } - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Win64.cs b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Win64.cs deleted file mode 100644 index d6f6363..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Win64.cs +++ /dev/null @@ -1,6657 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal static partial class Platform - { - internal class Windows : Interface - { - internal IntPtr _ptr; - public bool IsValid { get{ return _ptr != IntPtr.Zero; } } - - // - // Constructor sets pointer to native class - // - internal Windows( IntPtr pointer ) - { - _ptr = pointer; - } - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - _ptr = IntPtr.Zero; - } - - public virtual HSteamPipe /*(HSteamPipe)*/ ISteamClient_CreateSteamPipe() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_CreateSteamPipe(_ptr); - } - public virtual bool /*bool*/ ISteamClient_BReleaseSteamPipe( int hSteamPipe ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_BReleaseSteamPipe(_ptr, hSteamPipe); - } - public virtual HSteamUser /*(HSteamUser)*/ ISteamClient_ConnectToGlobalUser( int hSteamPipe ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_ConnectToGlobalUser(_ptr, hSteamPipe); - } - public virtual HSteamUser /*(HSteamUser)*/ ISteamClient_CreateLocalUser( out int phSteamPipe, AccountType /*EAccountType*/ eAccountType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_CreateLocalUser(_ptr, out phSteamPipe, eAccountType); - } - public virtual void /*void*/ ISteamClient_ReleaseUser( int hSteamPipe, int hUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - Native.SteamAPI_ISteamClient_ReleaseUser(_ptr, hSteamPipe, hUser); - } - public virtual IntPtr /*class ISteamUser **/ ISteamClient_GetISteamUser( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamUser(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamGameServer **/ ISteamClient_GetISteamGameServer( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamGameServer(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual void /*void*/ ISteamClient_SetLocalIPBinding( uint /*uint32*/ unIP, ushort /*uint16*/ usPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - Native.SteamAPI_ISteamClient_SetLocalIPBinding(_ptr, unIP, usPort); - } - public virtual IntPtr /*class ISteamFriends **/ ISteamClient_GetISteamFriends( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamFriends(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamUtils **/ ISteamClient_GetISteamUtils( int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamUtils(_ptr, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamMatchmaking **/ ISteamClient_GetISteamMatchmaking( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamMatchmaking(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamMatchmakingServers **/ ISteamClient_GetISteamMatchmakingServers( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamMatchmakingServers(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*void **/ ISteamClient_GetISteamGenericInterface( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamGenericInterface(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamUserStats **/ ISteamClient_GetISteamUserStats( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamUserStats(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamGameServerStats **/ ISteamClient_GetISteamGameServerStats( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamGameServerStats(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamApps **/ ISteamClient_GetISteamApps( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamApps(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamNetworking **/ ISteamClient_GetISteamNetworking( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamNetworking(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamRemoteStorage **/ ISteamClient_GetISteamRemoteStorage( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamRemoteStorage(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamScreenshots **/ ISteamClient_GetISteamScreenshots( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamScreenshots(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamGameSearch **/ ISteamClient_GetISteamGameSearch( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamGameSearch(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual uint /*uint32*/ ISteamClient_GetIPCCallCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetIPCCallCount(_ptr); - } - public virtual void /*void*/ ISteamClient_SetWarningMessageHook( IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - Native.SteamAPI_ISteamClient_SetWarningMessageHook(_ptr, pFunction); - } - public virtual bool /*bool*/ ISteamClient_BShutdownIfAllPipesClosed() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_BShutdownIfAllPipesClosed(_ptr); - } - public virtual IntPtr /*class ISteamHTTP **/ ISteamClient_GetISteamHTTP( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamHTTP(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamController **/ ISteamClient_GetISteamController( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamController(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamUGC **/ ISteamClient_GetISteamUGC( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamUGC(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamAppList **/ ISteamClient_GetISteamAppList( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamAppList(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamMusic **/ ISteamClient_GetISteamMusic( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamMusic(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamMusicRemote **/ ISteamClient_GetISteamMusicRemote( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamMusicRemote(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamHTMLSurface **/ ISteamClient_GetISteamHTMLSurface( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamHTMLSurface(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamInventory **/ ISteamClient_GetISteamInventory( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamInventory(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamVideo **/ ISteamClient_GetISteamVideo( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamVideo(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamParentalSettings **/ ISteamClient_GetISteamParentalSettings( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamParentalSettings(_ptr, hSteamuser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamInput **/ ISteamClient_GetISteamInput( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamInput(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - public virtual IntPtr /*class ISteamParties **/ ISteamClient_GetISteamParties( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" ); - - return Native.SteamAPI_ISteamClient_GetISteamParties(_ptr, hSteamUser, hSteamPipe, pchVersion); - } - - public virtual HSteamUser /*(HSteamUser)*/ ISteamUser_GetHSteamUser() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetHSteamUser(_ptr); - } - public virtual bool /*bool*/ ISteamUser_BLoggedOn() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BLoggedOn(_ptr); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamUser_GetSteamID() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetSteamID(_ptr); - } - public virtual int /*int*/ ISteamUser_InitiateGameConnection( IntPtr /*void **/ pAuthBlob, int /*int*/ cbMaxAuthBlob, ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_InitiateGameConnection(_ptr, pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure); - } - public virtual void /*void*/ ISteamUser_TerminateGameConnection( uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_TerminateGameConnection(_ptr, unIPServer, usPortServer); - } - public virtual void /*void*/ ISteamUser_TrackAppUsageEvent( ulong gameID, int /*int*/ eAppUsageEvent, string /*const char **/ pchExtraInfo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_TrackAppUsageEvent(_ptr, gameID, eAppUsageEvent, pchExtraInfo); - } - public virtual bool /*bool*/ ISteamUser_GetUserDataFolder( System.Text.StringBuilder /*char **/ pchBuffer, int /*int*/ cubBuffer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetUserDataFolder(_ptr, pchBuffer, cubBuffer); - } - public virtual void /*void*/ ISteamUser_StartVoiceRecording() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_StartVoiceRecording(_ptr); - } - public virtual void /*void*/ ISteamUser_StopVoiceRecording() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_StopVoiceRecording(_ptr); - } - public virtual VoiceResult /*EVoiceResult*/ ISteamUser_GetAvailableVoice( out uint /*uint32 **/ pcbCompressed, out uint /*uint32 **/ pcbUncompressed_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetAvailableVoice(_ptr, out pcbCompressed, out pcbUncompressed_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated); - } - public virtual VoiceResult /*EVoiceResult*/ ISteamUser_GetVoice( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantUncompressed_Deprecated, IntPtr /*void **/ pUncompressedDestBuffer_Deprecated, uint /*uint32*/ cbUncompressedDestBufferSize_Deprecated, out uint /*uint32 **/ nUncompressBytesWritten_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetVoice(_ptr, bWantCompressed, pDestBuffer, cbDestBufferSize, out nBytesWritten, bWantUncompressed_Deprecated, pUncompressedDestBuffer_Deprecated, cbUncompressedDestBufferSize_Deprecated, out nUncompressBytesWritten_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated); - } - public virtual VoiceResult /*EVoiceResult*/ ISteamUser_DecompressVoice( IntPtr /*const void **/ pCompressed, uint /*uint32*/ cbCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, uint /*uint32*/ nDesiredSampleRate ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_DecompressVoice(_ptr, pCompressed, cbCompressed, pDestBuffer, cbDestBufferSize, out nBytesWritten, nDesiredSampleRate); - } - public virtual uint /*uint32*/ ISteamUser_GetVoiceOptimalSampleRate() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetVoiceOptimalSampleRate(_ptr); - } - public virtual HAuthTicket /*(HAuthTicket)*/ ISteamUser_GetAuthSessionTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetAuthSessionTicket(_ptr, pTicket, cbMaxTicket, out pcbTicket); - } - public virtual BeginAuthSessionResult /*EBeginAuthSessionResult*/ ISteamUser_BeginAuthSession( IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BeginAuthSession(_ptr, pAuthTicket, cbAuthTicket, steamID); - } - public virtual void /*void*/ ISteamUser_EndAuthSession( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_EndAuthSession(_ptr, steamID); - } - public virtual void /*void*/ ISteamUser_CancelAuthTicket( uint hAuthTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_CancelAuthTicket(_ptr, hAuthTicket); - } - public virtual UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ ISteamUser_UserHasLicenseForApp( ulong steamID, uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_UserHasLicenseForApp(_ptr, steamID, appID); - } - public virtual bool /*bool*/ ISteamUser_BIsBehindNAT() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsBehindNAT(_ptr); - } - public virtual void /*void*/ ISteamUser_AdvertiseGame( ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - Native.SteamAPI_ISteamUser_AdvertiseGame(_ptr, steamIDGameServer, unIPServer, usPortServer); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUser_RequestEncryptedAppTicket( IntPtr /*void **/ pDataToInclude, int /*int*/ cbDataToInclude ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_RequestEncryptedAppTicket(_ptr, pDataToInclude, cbDataToInclude); - } - public virtual bool /*bool*/ ISteamUser_GetEncryptedAppTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetEncryptedAppTicket(_ptr, pTicket, cbMaxTicket, out pcbTicket); - } - public virtual int /*int*/ ISteamUser_GetGameBadgeLevel( int /*int*/ nSeries, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bFoil ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetGameBadgeLevel(_ptr, nSeries, bFoil); - } - public virtual int /*int*/ ISteamUser_GetPlayerSteamLevel() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetPlayerSteamLevel(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUser_RequestStoreAuthURL( string /*const char **/ pchRedirectURL ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_RequestStoreAuthURL(_ptr, pchRedirectURL); - } - public virtual bool /*bool*/ ISteamUser_BIsPhoneVerified() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsPhoneVerified(_ptr); - } - public virtual bool /*bool*/ ISteamUser_BIsTwoFactorEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsTwoFactorEnabled(_ptr); - } - public virtual bool /*bool*/ ISteamUser_BIsPhoneIdentifying() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsPhoneIdentifying(_ptr); - } - public virtual bool /*bool*/ ISteamUser_BIsPhoneRequiringVerification() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_BIsPhoneRequiringVerification(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUser_GetMarketEligibility() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" ); - - return Native.SteamAPI_ISteamUser_GetMarketEligibility(_ptr); - } - - public virtual IntPtr ISteamFriends_GetPersonaName() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetPersonaName(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_SetPersonaName( string /*const char **/ pchPersonaName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_SetPersonaName(_ptr, pchPersonaName); - } - public virtual PersonaState /*EPersonaState*/ ISteamFriends_GetPersonaState() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetPersonaState(_ptr); - } - public virtual int /*int*/ ISteamFriends_GetFriendCount( int /*int*/ iFriendFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendCount(_ptr, iFriendFlags); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetFriendByIndex( int /*int*/ iFriend, int /*int*/ iFriendFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendByIndex(_ptr, iFriend, iFriendFlags); - } - public virtual FriendRelationship /*EFriendRelationship*/ ISteamFriends_GetFriendRelationship( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendRelationship(_ptr, steamIDFriend); - } - public virtual PersonaState /*EPersonaState*/ ISteamFriends_GetFriendPersonaState( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendPersonaState(_ptr, steamIDFriend); - } - public virtual IntPtr ISteamFriends_GetFriendPersonaName( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendPersonaName(_ptr, steamIDFriend); - } - public virtual bool /*bool*/ ISteamFriends_GetFriendGamePlayed( ulong steamIDFriend, ref FriendGameInfo_t /*struct FriendGameInfo_t **/ pFriendGameInfo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - var pFriendGameInfo_ps = new FriendGameInfo_t.Pack8(); - var ret = Native.SteamAPI_ISteamFriends_GetFriendGamePlayed(_ptr, steamIDFriend, ref pFriendGameInfo_ps); - pFriendGameInfo = pFriendGameInfo_ps; - return ret; - } - public virtual IntPtr ISteamFriends_GetFriendPersonaNameHistory( ulong steamIDFriend, int /*int*/ iPersonaName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendPersonaNameHistory(_ptr, steamIDFriend, iPersonaName); - } - public virtual int /*int*/ ISteamFriends_GetFriendSteamLevel( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendSteamLevel(_ptr, steamIDFriend); - } - public virtual IntPtr ISteamFriends_GetPlayerNickname( ulong steamIDPlayer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetPlayerNickname(_ptr, steamIDPlayer); - } - public virtual int /*int*/ ISteamFriends_GetFriendsGroupCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendsGroupCount(_ptr); - } - public virtual FriendsGroupID_t /*(FriendsGroupID_t)*/ ISteamFriends_GetFriendsGroupIDByIndex( int /*int*/ iFG ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex(_ptr, iFG); - } - public virtual IntPtr ISteamFriends_GetFriendsGroupName( short friendsGroupID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendsGroupName(_ptr, friendsGroupID); - } - public virtual int /*int*/ ISteamFriends_GetFriendsGroupMembersCount( short friendsGroupID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendsGroupMembersCount(_ptr, friendsGroupID); - } - public virtual void /*void*/ ISteamFriends_GetFriendsGroupMembersList( short friendsGroupID, IntPtr /*class CSteamID **/ pOutSteamIDMembers, int /*int*/ nMembersCount ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_GetFriendsGroupMembersList(_ptr, friendsGroupID, pOutSteamIDMembers, nMembersCount); - } - public virtual bool /*bool*/ ISteamFriends_HasFriend( ulong steamIDFriend, int /*int*/ iFriendFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_HasFriend(_ptr, steamIDFriend, iFriendFlags); - } - public virtual int /*int*/ ISteamFriends_GetClanCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanCount(_ptr); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanByIndex( int /*int*/ iClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanByIndex(_ptr, iClan); - } - public virtual IntPtr ISteamFriends_GetClanName( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanName(_ptr, steamIDClan); - } - public virtual IntPtr ISteamFriends_GetClanTag( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanTag(_ptr, steamIDClan); - } - public virtual bool /*bool*/ ISteamFriends_GetClanActivityCounts( ulong steamIDClan, out int /*int **/ pnOnline, out int /*int **/ pnInGame, out int /*int **/ pnChatting ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanActivityCounts(_ptr, steamIDClan, out pnOnline, out pnInGame, out pnChatting); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_DownloadClanActivityCounts( IntPtr /*class CSteamID **/ psteamIDClans, int /*int*/ cClansToRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_DownloadClanActivityCounts(_ptr, psteamIDClans, cClansToRequest); - } - public virtual int /*int*/ ISteamFriends_GetFriendCountFromSource( ulong steamIDSource ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendCountFromSource(_ptr, steamIDSource); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetFriendFromSourceByIndex( ulong steamIDSource, int /*int*/ iFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendFromSourceByIndex(_ptr, steamIDSource, iFriend); - } - public virtual bool /*bool*/ ISteamFriends_IsUserInSource( ulong steamIDUser, ulong steamIDSource ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsUserInSource(_ptr, steamIDUser, steamIDSource); - } - public virtual void /*void*/ ISteamFriends_SetInGameVoiceSpeaking( ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSpeaking ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_SetInGameVoiceSpeaking(_ptr, steamIDUser, bSpeaking); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlay( string /*const char **/ pchDialog ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlay(_ptr, pchDialog); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlayToUser( string /*const char **/ pchDialog, ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlayToUser(_ptr, pchDialog, steamID); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlayToWebPage( string /*const char **/ pchURL, ActivateGameOverlayToWebPageMode /*EActivateGameOverlayToWebPageMode*/ eMode ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage(_ptr, pchURL, eMode); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlayToStore( uint nAppID, OverlayToStoreFlag /*EOverlayToStoreFlag*/ eFlag ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlayToStore(_ptr, nAppID, eFlag); - } - public virtual void /*void*/ ISteamFriends_SetPlayedWith( ulong steamIDUserPlayedWith ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_SetPlayedWith(_ptr, steamIDUserPlayedWith); - } - public virtual void /*void*/ ISteamFriends_ActivateGameOverlayInviteDialog( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog(_ptr, steamIDLobby); - } - public virtual int /*int*/ ISteamFriends_GetSmallFriendAvatar( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetSmallFriendAvatar(_ptr, steamIDFriend); - } - public virtual int /*int*/ ISteamFriends_GetMediumFriendAvatar( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetMediumFriendAvatar(_ptr, steamIDFriend); - } - public virtual int /*int*/ ISteamFriends_GetLargeFriendAvatar( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetLargeFriendAvatar(_ptr, steamIDFriend); - } - public virtual bool /*bool*/ ISteamFriends_RequestUserInformation( ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireNameOnly ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_RequestUserInformation(_ptr, steamIDUser, bRequireNameOnly); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_RequestClanOfficerList( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_RequestClanOfficerList(_ptr, steamIDClan); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanOwner( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanOwner(_ptr, steamIDClan); - } - public virtual int /*int*/ ISteamFriends_GetClanOfficerCount( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanOfficerCount(_ptr, steamIDClan); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanOfficerByIndex( ulong steamIDClan, int /*int*/ iOfficer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanOfficerByIndex(_ptr, steamIDClan, iOfficer); - } - public virtual uint /*uint32*/ ISteamFriends_GetUserRestrictions() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetUserRestrictions(_ptr); - } - public virtual bool /*bool*/ ISteamFriends_SetRichPresence( string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_SetRichPresence(_ptr, pchKey, pchValue); - } - public virtual void /*void*/ ISteamFriends_ClearRichPresence() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_ClearRichPresence(_ptr); - } - public virtual IntPtr ISteamFriends_GetFriendRichPresence( ulong steamIDFriend, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendRichPresence(_ptr, steamIDFriend, pchKey); - } - public virtual int /*int*/ ISteamFriends_GetFriendRichPresenceKeyCount( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount(_ptr, steamIDFriend); - } - public virtual IntPtr ISteamFriends_GetFriendRichPresenceKeyByIndex( ulong steamIDFriend, int /*int*/ iKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex(_ptr, steamIDFriend, iKey); - } - public virtual void /*void*/ ISteamFriends_RequestFriendRichPresence( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - Native.SteamAPI_ISteamFriends_RequestFriendRichPresence(_ptr, steamIDFriend); - } - public virtual bool /*bool*/ ISteamFriends_InviteUserToGame( ulong steamIDFriend, string /*const char **/ pchConnectString ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_InviteUserToGame(_ptr, steamIDFriend, pchConnectString); - } - public virtual int /*int*/ ISteamFriends_GetCoplayFriendCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetCoplayFriendCount(_ptr); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetCoplayFriend( int /*int*/ iCoplayFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetCoplayFriend(_ptr, iCoplayFriend); - } - public virtual int /*int*/ ISteamFriends_GetFriendCoplayTime( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendCoplayTime(_ptr, steamIDFriend); - } - public virtual AppId_t /*(AppId_t)*/ ISteamFriends_GetFriendCoplayGame( ulong steamIDFriend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendCoplayGame(_ptr, steamIDFriend); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_JoinClanChatRoom( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_JoinClanChatRoom(_ptr, steamIDClan); - } - public virtual bool /*bool*/ ISteamFriends_LeaveClanChatRoom( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_LeaveClanChatRoom(_ptr, steamIDClan); - } - public virtual int /*int*/ ISteamFriends_GetClanChatMemberCount( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanChatMemberCount(_ptr, steamIDClan); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetChatMemberByIndex( ulong steamIDClan, int /*int*/ iUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetChatMemberByIndex(_ptr, steamIDClan, iUser); - } - public virtual bool /*bool*/ ISteamFriends_SendClanChatMessage( ulong steamIDClanChat, string /*const char **/ pchText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_SendClanChatMessage(_ptr, steamIDClanChat, pchText); - } - public virtual int /*int*/ ISteamFriends_GetClanChatMessage( ulong steamIDClanChat, int /*int*/ iMessage, IntPtr /*void **/ prgchText, int /*int*/ cchTextMax, out ChatEntryType /*EChatEntryType **/ peChatEntryType, out ulong psteamidChatter ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetClanChatMessage(_ptr, steamIDClanChat, iMessage, prgchText, cchTextMax, out peChatEntryType, out psteamidChatter); - } - public virtual bool /*bool*/ ISteamFriends_IsClanChatAdmin( ulong steamIDClanChat, ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsClanChatAdmin(_ptr, steamIDClanChat, steamIDUser); - } - public virtual bool /*bool*/ ISteamFriends_IsClanChatWindowOpenInSteam( ulong steamIDClanChat ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam(_ptr, steamIDClanChat); - } - public virtual bool /*bool*/ ISteamFriends_OpenClanChatWindowInSteam( ulong steamIDClanChat ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_OpenClanChatWindowInSteam(_ptr, steamIDClanChat); - } - public virtual bool /*bool*/ ISteamFriends_CloseClanChatWindowInSteam( ulong steamIDClanChat ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_CloseClanChatWindowInSteam(_ptr, steamIDClanChat); - } - public virtual bool /*bool*/ ISteamFriends_SetListenForFriendsMessages( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bInterceptEnabled ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_SetListenForFriendsMessages(_ptr, bInterceptEnabled); - } - public virtual bool /*bool*/ ISteamFriends_ReplyToFriendMessage( ulong steamIDFriend, string /*const char **/ pchMsgToSend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_ReplyToFriendMessage(_ptr, steamIDFriend, pchMsgToSend); - } - public virtual int /*int*/ ISteamFriends_GetFriendMessage( ulong steamIDFriend, int /*int*/ iMessageID, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFriendMessage(_ptr, steamIDFriend, iMessageID, pvData, cubData, out peChatEntryType); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_GetFollowerCount( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetFollowerCount(_ptr, steamID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_IsFollowing( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsFollowing(_ptr, steamID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_EnumerateFollowingList( uint /*uint32*/ unStartIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_EnumerateFollowingList(_ptr, unStartIndex); - } - public virtual bool /*bool*/ ISteamFriends_IsClanPublic( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsClanPublic(_ptr, steamIDClan); - } - public virtual bool /*bool*/ ISteamFriends_IsClanOfficialGameGroup( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_IsClanOfficialGameGroup(_ptr, steamIDClan); - } - public virtual int /*int*/ ISteamFriends_GetNumChatsWithUnreadPriorityMessages() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" ); - - return Native.SteamAPI_ISteamFriends_GetNumChatsWithUnreadPriorityMessages(_ptr); - } - - public virtual uint /*uint32*/ ISteamUtils_GetSecondsSinceAppActive() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetSecondsSinceAppActive(_ptr); - } - public virtual uint /*uint32*/ ISteamUtils_GetSecondsSinceComputerActive() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetSecondsSinceComputerActive(_ptr); - } - public virtual Universe /*EUniverse*/ ISteamUtils_GetConnectedUniverse() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetConnectedUniverse(_ptr); - } - public virtual uint /*uint32*/ ISteamUtils_GetServerRealTime() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetServerRealTime(_ptr); - } - public virtual IntPtr ISteamUtils_GetIPCountry() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetIPCountry(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_GetImageSize( int /*int*/ iImage, out uint /*uint32 **/ pnWidth, out uint /*uint32 **/ pnHeight ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetImageSize(_ptr, iImage, out pnWidth, out pnHeight); - } - public virtual bool /*bool*/ ISteamUtils_GetImageRGBA( int /*int*/ iImage, IntPtr /*uint8 **/ pubDest, int /*int*/ nDestBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetImageRGBA(_ptr, iImage, pubDest, nDestBufferSize); - } - public virtual bool /*bool*/ ISteamUtils_GetCSERIPPort( out uint /*uint32 **/ unIP, out ushort /*uint16 **/ usPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetCSERIPPort(_ptr, out unIP, out usPort); - } - public virtual byte /*uint8*/ ISteamUtils_GetCurrentBatteryPower() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetCurrentBatteryPower(_ptr); - } - public virtual uint /*uint32*/ ISteamUtils_GetAppID() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetAppID(_ptr); - } - public virtual void /*void*/ ISteamUtils_SetOverlayNotificationPosition( NotificationPosition /*ENotificationPosition*/ eNotificationPosition ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_SetOverlayNotificationPosition(_ptr, eNotificationPosition); - } - public virtual bool /*bool*/ ISteamUtils_IsAPICallCompleted( ulong hSteamAPICall, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsAPICallCompleted(_ptr, hSteamAPICall, ref pbFailed); - } - public virtual SteamAPICallFailure /*ESteamAPICallFailure*/ ISteamUtils_GetAPICallFailureReason( ulong hSteamAPICall ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetAPICallFailureReason(_ptr, hSteamAPICall); - } - public virtual bool /*bool*/ ISteamUtils_GetAPICallResult( ulong hSteamAPICall, IntPtr /*void **/ pCallback, int /*int*/ cubCallback, int /*int*/ iCallbackExpected, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetAPICallResult(_ptr, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, ref pbFailed); - } - public virtual uint /*uint32*/ ISteamUtils_GetIPCCallCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetIPCCallCount(_ptr); - } - public virtual void /*void*/ ISteamUtils_SetWarningMessageHook( IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_SetWarningMessageHook(_ptr, pFunction); - } - public virtual bool /*bool*/ ISteamUtils_IsOverlayEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsOverlayEnabled(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_BOverlayNeedsPresent() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_BOverlayNeedsPresent(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUtils_CheckFileSignature( string /*const char **/ szFileName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_CheckFileSignature(_ptr, szFileName); - } - public virtual bool /*bool*/ ISteamUtils_ShowGamepadTextInput( GamepadTextInputMode /*EGamepadTextInputMode*/ eInputMode, GamepadTextInputLineMode /*EGamepadTextInputLineMode*/ eLineInputMode, string /*const char **/ pchDescription, uint /*uint32*/ unCharMax, string /*const char **/ pchExistingText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_ShowGamepadTextInput(_ptr, eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText); - } - public virtual uint /*uint32*/ ISteamUtils_GetEnteredGamepadTextLength() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetEnteredGamepadTextLength(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_GetEnteredGamepadTextInput( System.Text.StringBuilder /*char **/ pchText, uint /*uint32*/ cchText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetEnteredGamepadTextInput(_ptr, pchText, cchText); - } - public virtual IntPtr ISteamUtils_GetSteamUILanguage() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_GetSteamUILanguage(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_IsSteamRunningInVR() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsSteamRunningInVR(_ptr); - } - public virtual void /*void*/ ISteamUtils_SetOverlayNotificationInset( int /*int*/ nHorizontalInset, int /*int*/ nVerticalInset ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_SetOverlayNotificationInset(_ptr, nHorizontalInset, nVerticalInset); - } - public virtual bool /*bool*/ ISteamUtils_IsSteamInBigPictureMode() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsSteamInBigPictureMode(_ptr); - } - public virtual void /*void*/ ISteamUtils_StartVRDashboard() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_StartVRDashboard(_ptr); - } - public virtual bool /*bool*/ ISteamUtils_IsVRHeadsetStreamingEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - return Native.SteamAPI_ISteamUtils_IsVRHeadsetStreamingEnabled(_ptr); - } - public virtual void /*void*/ ISteamUtils_SetVRHeadsetStreamingEnabled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - - Native.SteamAPI_ISteamUtils_SetVRHeadsetStreamingEnabled(_ptr, bEnabled); - } - - public virtual int /*int*/ ISteamMatchmaking_GetFavoriteGameCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetFavoriteGameCount(_ptr); - } - public virtual bool /*bool*/ ISteamMatchmaking_GetFavoriteGame( int /*int*/ iGame, ref uint pnAppID, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnConnPort, out ushort /*uint16 **/ pnQueryPort, out uint /*uint32 **/ punFlags, out uint /*uint32 **/ pRTime32LastPlayedOnServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetFavoriteGame(_ptr, iGame, ref pnAppID, out pnIP, out pnConnPort, out pnQueryPort, out punFlags, out pRTime32LastPlayedOnServer); - } - public virtual int /*int*/ ISteamMatchmaking_AddFavoriteGame( uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags, uint /*uint32*/ rTime32LastPlayedOnServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_AddFavoriteGame(_ptr, nAppID, nIP, nConnPort, nQueryPort, unFlags, rTime32LastPlayedOnServer); - } - public virtual bool /*bool*/ ISteamMatchmaking_RemoveFavoriteGame( uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_RemoveFavoriteGame(_ptr, nAppID, nIP, nConnPort, nQueryPort, unFlags); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_RequestLobbyList() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_RequestLobbyList(_ptr); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListStringFilter( string /*const char **/ pchKeyToMatch, string /*const char **/ pchValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter(_ptr, pchKeyToMatch, pchValueToMatch, eComparisonType); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListNumericalFilter( string /*const char **/ pchKeyToMatch, int /*int*/ nValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter(_ptr, pchKeyToMatch, nValueToMatch, eComparisonType); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListNearValueFilter( string /*const char **/ pchKeyToMatch, int /*int*/ nValueToBeCloseTo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter(_ptr, pchKeyToMatch, nValueToBeCloseTo); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable( int /*int*/ nSlotsAvailable ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable(_ptr, nSlotsAvailable); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListDistanceFilter( LobbyDistanceFilter /*ELobbyDistanceFilter*/ eLobbyDistanceFilter ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter(_ptr, eLobbyDistanceFilter); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListResultCountFilter( int /*int*/ cMaxResults ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter(_ptr, cMaxResults); - } - public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter(_ptr, steamIDLobby); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyByIndex( int /*int*/ iLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyByIndex(_ptr, iLobby); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_CreateLobby( LobbyType /*ELobbyType*/ eLobbyType, int /*int*/ cMaxMembers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_CreateLobby(_ptr, eLobbyType, cMaxMembers); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_JoinLobby( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_JoinLobby(_ptr, steamIDLobby); - } - public virtual void /*void*/ ISteamMatchmaking_LeaveLobby( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_LeaveLobby(_ptr, steamIDLobby); - } - public virtual bool /*bool*/ ISteamMatchmaking_InviteUserToLobby( ulong steamIDLobby, ulong steamIDInvitee ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_InviteUserToLobby(_ptr, steamIDLobby, steamIDInvitee); - } - public virtual int /*int*/ ISteamMatchmaking_GetNumLobbyMembers( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetNumLobbyMembers(_ptr, steamIDLobby); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyMemberByIndex( ulong steamIDLobby, int /*int*/ iMember ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex(_ptr, steamIDLobby, iMember); - } - public virtual IntPtr ISteamMatchmaking_GetLobbyData( ulong steamIDLobby, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyData(_ptr, steamIDLobby, pchKey); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyData( ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyData(_ptr, steamIDLobby, pchKey, pchValue); - } - public virtual int /*int*/ ISteamMatchmaking_GetLobbyDataCount( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyDataCount(_ptr, steamIDLobby); - } - public virtual bool /*bool*/ ISteamMatchmaking_GetLobbyDataByIndex( ulong steamIDLobby, int /*int*/ iLobbyData, System.Text.StringBuilder /*char **/ pchKey, int /*int*/ cchKeyBufferSize, System.Text.StringBuilder /*char **/ pchValue, int /*int*/ cchValueBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex(_ptr, steamIDLobby, iLobbyData, pchKey, cchKeyBufferSize, pchValue, cchValueBufferSize); - } - public virtual bool /*bool*/ ISteamMatchmaking_DeleteLobbyData( ulong steamIDLobby, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_DeleteLobbyData(_ptr, steamIDLobby, pchKey); - } - public virtual IntPtr ISteamMatchmaking_GetLobbyMemberData( ulong steamIDLobby, ulong steamIDUser, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyMemberData(_ptr, steamIDLobby, steamIDUser, pchKey); - } - public virtual void /*void*/ ISteamMatchmaking_SetLobbyMemberData( ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_SetLobbyMemberData(_ptr, steamIDLobby, pchKey, pchValue); - } - public virtual bool /*bool*/ ISteamMatchmaking_SendLobbyChatMsg( ulong steamIDLobby, IntPtr /*const void **/ pvMsgBody, int /*int*/ cubMsgBody ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SendLobbyChatMsg(_ptr, steamIDLobby, pvMsgBody, cubMsgBody); - } - public virtual int /*int*/ ISteamMatchmaking_GetLobbyChatEntry( ulong steamIDLobby, int /*int*/ iChatID, out ulong pSteamIDUser, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyChatEntry(_ptr, steamIDLobby, iChatID, out pSteamIDUser, pvData, cubData, out peChatEntryType); - } - public virtual bool /*bool*/ ISteamMatchmaking_RequestLobbyData( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_RequestLobbyData(_ptr, steamIDLobby); - } - public virtual void /*void*/ ISteamMatchmaking_SetLobbyGameServer( ulong steamIDLobby, uint /*uint32*/ unGameServerIP, ushort /*uint16*/ unGameServerPort, ulong steamIDGameServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmaking_SetLobbyGameServer(_ptr, steamIDLobby, unGameServerIP, unGameServerPort, steamIDGameServer); - } - public virtual bool /*bool*/ ISteamMatchmaking_GetLobbyGameServer( ulong steamIDLobby, out uint /*uint32 **/ punGameServerIP, out ushort /*uint16 **/ punGameServerPort, out ulong psteamIDGameServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyGameServer(_ptr, steamIDLobby, out punGameServerIP, out punGameServerPort, out psteamIDGameServer); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyMemberLimit( ulong steamIDLobby, int /*int*/ cMaxMembers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit(_ptr, steamIDLobby, cMaxMembers); - } - public virtual int /*int*/ ISteamMatchmaking_GetLobbyMemberLimit( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit(_ptr, steamIDLobby); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyType( ulong steamIDLobby, LobbyType /*ELobbyType*/ eLobbyType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyType(_ptr, steamIDLobby, eLobbyType); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyJoinable( ulong steamIDLobby, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bLobbyJoinable ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyJoinable(_ptr, steamIDLobby, bLobbyJoinable); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyOwner( ulong steamIDLobby ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_GetLobbyOwner(_ptr, steamIDLobby); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyOwner( ulong steamIDLobby, ulong steamIDNewOwner ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLobbyOwner(_ptr, steamIDLobby, steamIDNewOwner); - } - public virtual bool /*bool*/ ISteamMatchmaking_SetLinkedLobby( ulong steamIDLobby, ulong steamIDLobbyDependent ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmaking_SetLinkedLobby(_ptr, steamIDLobby, steamIDLobbyDependent); - } - - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestInternetServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestInternetServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestLANServerList( uint iApp, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestLANServerList(_ptr, iApp, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestFriendsServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestFavoritesServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestHistoryServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestSpectatorServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse); - } - public virtual void /*void*/ ISteamMatchmakingServers_ReleaseRequest( IntPtr hServerListRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_ReleaseRequest(_ptr, hServerListRequest); - } - public virtual IntPtr /*class gameserveritem_t **/ ISteamMatchmakingServers_GetServerDetails( IntPtr hRequest, int /*int*/ iServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_GetServerDetails(_ptr, hRequest, iServer); - } - public virtual void /*void*/ ISteamMatchmakingServers_CancelQuery( IntPtr hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_CancelQuery(_ptr, hRequest); - } - public virtual void /*void*/ ISteamMatchmakingServers_RefreshQuery( IntPtr hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_RefreshQuery(_ptr, hRequest); - } - public virtual bool /*bool*/ ISteamMatchmakingServers_IsRefreshing( IntPtr hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_IsRefreshing(_ptr, hRequest); - } - public virtual int /*int*/ ISteamMatchmakingServers_GetServerCount( IntPtr hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_GetServerCount(_ptr, hRequest); - } - public virtual void /*void*/ ISteamMatchmakingServers_RefreshServer( IntPtr hRequest, int /*int*/ iServer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_RefreshServer(_ptr, hRequest, iServer); - } - public virtual HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_PingServer( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPingResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_PingServer(_ptr, unIP, usPort, pRequestServersResponse); - } - public virtual HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_PlayerDetails( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPlayersResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_PlayerDetails(_ptr, unIP, usPort, pRequestServersResponse); - } - public virtual HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_ServerRules( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingRulesResponse **/ pRequestServersResponse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - return Native.SteamAPI_ISteamMatchmakingServers_ServerRules(_ptr, unIP, usPort, pRequestServersResponse); - } - public virtual void /*void*/ ISteamMatchmakingServers_CancelServerQuery( int hServerQuery ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" ); - - Native.SteamAPI_ISteamMatchmakingServers_CancelServerQuery(_ptr, hServerQuery); - } - - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_AddGameSearchParams( string /*const char **/ pchKeyToFind, string /*const char **/ pchValuesToFind ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_AddGameSearchParams(_ptr, pchKeyToFind, pchValuesToFind); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SearchForGameWithLobby( ulong steamIDLobby, int /*int*/ nPlayerMin, int /*int*/ nPlayerMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SearchForGameWithLobby(_ptr, steamIDLobby, nPlayerMin, nPlayerMax); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SearchForGameSolo( int /*int*/ nPlayerMin, int /*int*/ nPlayerMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SearchForGameSolo(_ptr, nPlayerMin, nPlayerMax); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_AcceptGame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_AcceptGame(_ptr); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_DeclineGame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_DeclineGame(_ptr); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_RetrieveConnectionDetails( ulong steamIDHost, System.Text.StringBuilder /*char **/ pchConnectionDetails, int /*int*/ cubConnectionDetails ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_RetrieveConnectionDetails(_ptr, steamIDHost, pchConnectionDetails, cubConnectionDetails); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_EndGameSearch() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_EndGameSearch(_ptr); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SetGameHostParams( string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SetGameHostParams(_ptr, pchKey, pchValue); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SetConnectionDetails( string /*const char **/ pchConnectionDetails, int /*int*/ cubConnectionDetails ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SetConnectionDetails(_ptr, pchConnectionDetails, cubConnectionDetails); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_RequestPlayersForGame( int /*int*/ nPlayerMin, int /*int*/ nPlayerMax, int /*int*/ nMaxTeamSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_RequestPlayersForGame(_ptr, nPlayerMin, nPlayerMax, nMaxTeamSize); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_HostConfirmGameStart( ulong /*uint64*/ ullUniqueGameID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_HostConfirmGameStart(_ptr, ullUniqueGameID); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_CancelRequestPlayersForGame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_CancelRequestPlayersForGame(_ptr); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_SubmitPlayerResult( ulong /*uint64*/ ullUniqueGameID, ulong steamIDPlayer, PlayerResult_t /*EPlayerResult_t*/ EPlayerResult ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_SubmitPlayerResult(_ptr, ullUniqueGameID, steamIDPlayer, EPlayerResult); - } - public virtual GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ ISteamGameSearch_EndGame( ulong /*uint64*/ ullUniqueGameID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameSearch _ptr is null!" ); - - return Native.SteamAPI_ISteamGameSearch_EndGame(_ptr, ullUniqueGameID); - } - - public virtual uint /*uint32*/ ISteamParties_GetNumActiveBeacons() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_GetNumActiveBeacons(_ptr); - } - public virtual PartyBeaconID_t /*(PartyBeaconID_t)*/ ISteamParties_GetBeaconByIndex( uint /*uint32*/ unIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_GetBeaconByIndex(_ptr, unIndex); - } - public virtual bool /*bool*/ ISteamParties_GetBeaconDetails( ulong ulBeaconID, out ulong pSteamIDBeaconOwner, ref SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t **/ pLocation, System.Text.StringBuilder /*char **/ pchMetadata, int /*int*/ cchMetadata ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - var pLocation_ps = new SteamPartyBeaconLocation_t.Pack8(); - var ret = Native.SteamAPI_ISteamParties_GetBeaconDetails(_ptr, ulBeaconID, out pSteamIDBeaconOwner, ref pLocation_ps, pchMetadata, cchMetadata); - pLocation = pLocation_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamParties_JoinParty( ulong ulBeaconID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_JoinParty(_ptr, ulBeaconID); - } - public virtual bool /*bool*/ ISteamParties_GetNumAvailableBeaconLocations( IntPtr /*uint32 **/ puNumLocations ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_GetNumAvailableBeaconLocations(_ptr, puNumLocations); - } - public virtual bool /*bool*/ ISteamParties_GetAvailableBeaconLocations( ref SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t **/ pLocationList, uint /*uint32*/ uMaxNumLocations ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - var pLocationList_ps = new SteamPartyBeaconLocation_t.Pack8(); - var ret = Native.SteamAPI_ISteamParties_GetAvailableBeaconLocations(_ptr, ref pLocationList_ps, uMaxNumLocations); - pLocationList = pLocationList_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamParties_CreateBeacon( uint /*uint32*/ unOpenSlots, ref SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t **/ pBeaconLocation, string /*const char **/ pchConnectString, string /*const char **/ pchMetadata ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - var pBeaconLocation_ps = new SteamPartyBeaconLocation_t.Pack8(); - var ret = Native.SteamAPI_ISteamParties_CreateBeacon(_ptr, unOpenSlots, ref pBeaconLocation_ps, pchConnectString, pchMetadata); - pBeaconLocation = pBeaconLocation_ps; - return ret; - } - public virtual void /*void*/ ISteamParties_OnReservationCompleted( ulong ulBeacon, ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - Native.SteamAPI_ISteamParties_OnReservationCompleted(_ptr, ulBeacon, steamIDUser); - } - public virtual void /*void*/ ISteamParties_CancelReservation( ulong ulBeacon, ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - Native.SteamAPI_ISteamParties_CancelReservation(_ptr, ulBeacon, steamIDUser); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamParties_ChangeNumOpenSlots( ulong ulBeacon, uint /*uint32*/ unOpenSlots ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_ChangeNumOpenSlots(_ptr, ulBeacon, unOpenSlots); - } - public virtual bool /*bool*/ ISteamParties_DestroyBeacon( ulong ulBeacon ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_DestroyBeacon(_ptr, ulBeacon); - } - public virtual bool /*bool*/ ISteamParties_GetBeaconLocationData( SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t*/ BeaconLocation, SteamPartyBeaconLocationData /*ESteamPartyBeaconLocationData*/ eData, System.Text.StringBuilder /*char **/ pchDataStringOut, int /*int*/ cchDataStringOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParties _ptr is null!" ); - - return Native.SteamAPI_ISteamParties_GetBeaconLocationData(_ptr, BeaconLocation, eData, pchDataStringOut, cchDataStringOut); - } - - public virtual bool /*bool*/ ISteamRemoteStorage_FileWrite( string /*const char **/ pchFile, IntPtr /*const void **/ pvData, int /*int32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWrite(_ptr, pchFile, pvData, cubData); - } - public virtual int /*int32*/ ISteamRemoteStorage_FileRead( string /*const char **/ pchFile, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileRead(_ptr, pchFile, pvData, cubDataToRead); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileWriteAsync( string /*const char **/ pchFile, IntPtr /*const void **/ pvData, uint /*uint32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteAsync(_ptr, pchFile, pvData, cubData); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileReadAsync( string /*const char **/ pchFile, uint /*uint32*/ nOffset, uint /*uint32*/ cubToRead ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileReadAsync(_ptr, pchFile, nOffset, cubToRead); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileReadAsyncComplete( ulong hReadCall, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cubToRead ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete(_ptr, hReadCall, pvBuffer, cubToRead); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileForget( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileForget(_ptr, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileDelete( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileDelete(_ptr, pchFile); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileShare( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileShare(_ptr, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_SetSyncPlatforms( string /*const char **/ pchFile, RemoteStoragePlatform /*ERemoteStoragePlatform*/ eRemoteStoragePlatform ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_SetSyncPlatforms(_ptr, pchFile, eRemoteStoragePlatform); - } - public virtual UGCFileWriteStreamHandle_t /*(UGCFileWriteStreamHandle_t)*/ ISteamRemoteStorage_FileWriteStreamOpen( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen(_ptr, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileWriteStreamWriteChunk( ulong writeHandle, IntPtr /*const void **/ pvData, int /*int32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk(_ptr, writeHandle, pvData, cubData); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileWriteStreamClose( ulong writeHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamClose(_ptr, writeHandle); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileWriteStreamCancel( ulong writeHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel(_ptr, writeHandle); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FileExists( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FileExists(_ptr, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_FilePersisted( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_FilePersisted(_ptr, pchFile); - } - public virtual int /*int32*/ ISteamRemoteStorage_GetFileSize( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetFileSize(_ptr, pchFile); - } - public virtual long /*int64*/ ISteamRemoteStorage_GetFileTimestamp( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetFileTimestamp(_ptr, pchFile); - } - public virtual RemoteStoragePlatform /*ERemoteStoragePlatform*/ ISteamRemoteStorage_GetSyncPlatforms( string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetSyncPlatforms(_ptr, pchFile); - } - public virtual int /*int32*/ ISteamRemoteStorage_GetFileCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetFileCount(_ptr); - } - public virtual IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile, out int /*int32 **/ pnFileSizeInBytes ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetFileNameAndSize(_ptr, iFile, out pnFileSizeInBytes); - } - public virtual bool /*bool*/ ISteamRemoteStorage_GetQuota( out ulong /*uint64 **/ pnTotalBytes, out ulong /*uint64 **/ puAvailableBytes ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetQuota(_ptr, out pnTotalBytes, out puAvailableBytes); - } - public virtual bool /*bool*/ ISteamRemoteStorage_IsCloudEnabledForAccount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount(_ptr); - } - public virtual bool /*bool*/ ISteamRemoteStorage_IsCloudEnabledForApp() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp(_ptr); - } - public virtual void /*void*/ ISteamRemoteStorage_SetCloudEnabledForApp( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - Native.SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp(_ptr, bEnabled); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UGCDownload( ulong hContent, uint /*uint32*/ unPriority ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UGCDownload(_ptr, hContent, unPriority); - } - public virtual bool /*bool*/ ISteamRemoteStorage_GetUGCDownloadProgress( ulong hContent, out int /*int32 **/ pnBytesDownloaded, out int /*int32 **/ pnBytesExpected ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress(_ptr, hContent, out pnBytesDownloaded, out pnBytesExpected); - } - public virtual bool /*bool*/ ISteamRemoteStorage_GetUGCDetails( ulong hContent, ref uint pnAppID, System.Text.StringBuilder /*char ***/ ppchName, out int /*int32 **/ pnFileSizeInBytes, out ulong pSteamIDOwner ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetUGCDetails(_ptr, hContent, ref pnAppID, ppchName, out pnFileSizeInBytes, out pSteamIDOwner); - } - public virtual int /*int32*/ ISteamRemoteStorage_UGCRead( ulong hContent, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead, uint /*uint32*/ cOffset, UGCReadAction /*EUGCReadAction*/ eAction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UGCRead(_ptr, hContent, pvData, cubDataToRead, cOffset, eAction); - } - public virtual int /*int32*/ ISteamRemoteStorage_GetCachedUGCCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetCachedUGCCount(_ptr); - } - public virtual UGCHandle_t /*(UGCHandle_t)*/ ISteamRemoteStorage_GetCachedUGCHandle( int /*int32*/ iCachedContent ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle(_ptr, iCachedContent); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_PublishWorkshopFile( string /*const char **/ pchFile, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags, WorkshopFileType /*EWorkshopFileType*/ eWorkshopFileType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack8(); - var ret = Native.SteamAPI_ISteamRemoteStorage_PublishWorkshopFile(_ptr, pchFile, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, ref pTags_ps, eWorkshopFileType); - pTags = pTags_ps; - return ret; - } - public virtual PublishedFileUpdateHandle_t /*(PublishedFileUpdateHandle_t)*/ ISteamRemoteStorage_CreatePublishedFileUpdateRequest( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest(_ptr, unPublishedFileId); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileFile( ulong updateHandle, string /*const char **/ pchFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile(_ptr, updateHandle, pchFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFilePreviewFile( ulong updateHandle, string /*const char **/ pchPreviewFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile(_ptr, updateHandle, pchPreviewFile); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileTitle( ulong updateHandle, string /*const char **/ pchTitle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle(_ptr, updateHandle, pchTitle); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileDescription( ulong updateHandle, string /*const char **/ pchDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription(_ptr, updateHandle, pchDescription); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileVisibility( ulong updateHandle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility(_ptr, updateHandle, eVisibility); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileTags( ulong updateHandle, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack8(); - var ret = Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags(_ptr, updateHandle, ref pTags_ps); - pTags = pTags_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_CommitPublishedFileUpdate( ulong updateHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate(_ptr, updateHandle); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetPublishedFileDetails( ulong unPublishedFileId, uint /*uint32*/ unMaxSecondsOld ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails(_ptr, unPublishedFileId, unMaxSecondsOld); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_DeletePublishedFile( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_DeletePublishedFile(_ptr, unPublishedFileId); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserPublishedFiles( uint /*uint32*/ unStartIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles(_ptr, unStartIndex); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_SubscribePublishedFile( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_SubscribePublishedFile(_ptr, unPublishedFileId); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserSubscribedFiles( uint /*uint32*/ unStartIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles(_ptr, unStartIndex); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UnsubscribePublishedFile( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile(_ptr, unPublishedFileId); - } - public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription( ulong updateHandle, string /*const char **/ pchChangeDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription(_ptr, updateHandle, pchChangeDescription); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetPublishedItemVoteDetails( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails(_ptr, unPublishedFileId); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UpdateUserPublishedItemVote( ulong unPublishedFileId, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote(_ptr, unPublishedFileId, bVoteUp); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetUserPublishedItemVoteDetails( ulong unPublishedFileId ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails(_ptr, unPublishedFileId); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles( ulong steamId, uint /*uint32*/ unStartIndex, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pRequiredTags, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pExcludedTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pRequiredTags_ps = new SteamParamStringArray_t.Pack8(); - var pExcludedTags_ps = new SteamParamStringArray_t.Pack8(); - var ret = Native.SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles(_ptr, steamId, unStartIndex, ref pRequiredTags_ps, ref pExcludedTags_ps); - pRequiredTags = pRequiredTags_ps; - pExcludedTags = pExcludedTags_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_PublishVideo( WorkshopVideoProvider /*EWorkshopVideoProvider*/ eVideoProvider, string /*const char **/ pchVideoAccount, string /*const char **/ pchVideoIdentifier, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack8(); - var ret = Native.SteamAPI_ISteamRemoteStorage_PublishVideo(_ptr, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, ref pTags_ps); - pTags = pTags_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_SetUserPublishedFileAction( ulong unPublishedFileId, WorkshopFileAction /*EWorkshopFileAction*/ eAction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction(_ptr, unPublishedFileId, eAction); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumeratePublishedFilesByUserAction( WorkshopFileAction /*EWorkshopFileAction*/ eAction, uint /*uint32*/ unStartIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction(_ptr, eAction, unStartIndex); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumeratePublishedWorkshopFiles( WorkshopEnumerationType /*EWorkshopEnumerationType*/ eEnumerationType, uint /*uint32*/ unStartIndex, uint /*uint32*/ unCount, uint /*uint32*/ unDays, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pUserTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack8(); - var pUserTags_ps = new SteamParamStringArray_t.Pack8(); - var ret = Native.SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles(_ptr, eEnumerationType, unStartIndex, unCount, unDays, ref pTags_ps, ref pUserTags_ps); - pTags = pTags_ps; - pUserTags = pUserTags_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UGCDownloadToLocation( ulong hContent, string /*const char **/ pchLocation, uint /*uint32*/ unPriority ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" ); - - return Native.SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation(_ptr, hContent, pchLocation, unPriority); - } - - public virtual bool /*bool*/ ISteamUserStats_RequestCurrentStats() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_RequestCurrentStats(_ptr); - } - public virtual bool /*bool*/ ISteamUserStats_GetStat( string /*const char **/ pchName, out int /*int32 **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetStat(_ptr, pchName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_GetStat0( string /*const char **/ pchName, out float /*float **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetStat0(_ptr, pchName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_SetStat( string /*const char **/ pchName, int /*int32*/ nData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_SetStat(_ptr, pchName, nData); - } - public virtual bool /*bool*/ ISteamUserStats_SetStat0( string /*const char **/ pchName, float /*float*/ fData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_SetStat0(_ptr, pchName, fData); - } - public virtual bool /*bool*/ ISteamUserStats_UpdateAvgRateStat( string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_UpdateAvgRateStat(_ptr, pchName, flCountThisSession, dSessionLength); - } - public virtual bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievement(_ptr, pchName, ref pbAchieved); - } - public virtual bool /*bool*/ ISteamUserStats_SetAchievement( string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_SetAchievement(_ptr, pchName); - } - public virtual bool /*bool*/ ISteamUserStats_ClearAchievement( string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_ClearAchievement(_ptr, pchName); - } - public virtual bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime(_ptr, pchName, ref pbAchieved, out punUnlockTime); - } - public virtual bool /*bool*/ ISteamUserStats_StoreStats() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_StoreStats(_ptr); - } - public virtual int /*int*/ ISteamUserStats_GetAchievementIcon( string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementIcon(_ptr, pchName); - } - public virtual IntPtr ISteamUserStats_GetAchievementDisplayAttribute( string /*const char **/ pchName, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute(_ptr, pchName, pchKey); - } - public virtual bool /*bool*/ ISteamUserStats_IndicateAchievementProgress( string /*const char **/ pchName, uint /*uint32*/ nCurProgress, uint /*uint32*/ nMaxProgress ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_IndicateAchievementProgress(_ptr, pchName, nCurProgress, nMaxProgress); - } - public virtual uint /*uint32*/ ISteamUserStats_GetNumAchievements() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetNumAchievements(_ptr); - } - public virtual IntPtr ISteamUserStats_GetAchievementName( uint /*uint32*/ iAchievement ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementName(_ptr, iAchievement); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestUserStats( ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_RequestUserStats(_ptr, steamIDUser); - } - public virtual bool /*bool*/ ISteamUserStats_GetUserStat( ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetUserStat(_ptr, steamIDUser, pchName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_GetUserStat0( ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetUserStat0(_ptr, steamIDUser, pchName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievement( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); - } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime(_ptr, steamIDUser, pchName, ref pbAchieved, out punUnlockTime); - } - public virtual bool /*bool*/ ISteamUserStats_ResetAllStats( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAchievementsToo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_ResetAllStats(_ptr, bAchievementsToo); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_FindOrCreateLeaderboard( string /*const char **/ pchLeaderboardName, LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod, LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_FindOrCreateLeaderboard(_ptr, pchLeaderboardName, eLeaderboardSortMethod, eLeaderboardDisplayType); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_FindLeaderboard( string /*const char **/ pchLeaderboardName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_FindLeaderboard(_ptr, pchLeaderboardName); - } - public virtual IntPtr ISteamUserStats_GetLeaderboardName( ulong hSteamLeaderboard ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetLeaderboardName(_ptr, hSteamLeaderboard); - } - public virtual int /*int*/ ISteamUserStats_GetLeaderboardEntryCount( ulong hSteamLeaderboard ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetLeaderboardEntryCount(_ptr, hSteamLeaderboard); - } - public virtual LeaderboardSortMethod /*ELeaderboardSortMethod*/ ISteamUserStats_GetLeaderboardSortMethod( ulong hSteamLeaderboard ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetLeaderboardSortMethod(_ptr, hSteamLeaderboard); - } - public virtual LeaderboardDisplayType /*ELeaderboardDisplayType*/ ISteamUserStats_GetLeaderboardDisplayType( ulong hSteamLeaderboard ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetLeaderboardDisplayType(_ptr, hSteamLeaderboard); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_DownloadLeaderboardEntries( ulong hSteamLeaderboard, LeaderboardDataRequest /*ELeaderboardDataRequest*/ eLeaderboardDataRequest, int /*int*/ nRangeStart, int /*int*/ nRangeEnd ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_DownloadLeaderboardEntries(_ptr, hSteamLeaderboard, eLeaderboardDataRequest, nRangeStart, nRangeEnd); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_DownloadLeaderboardEntriesForUsers( ulong hSteamLeaderboard, IntPtr /*class CSteamID **/ prgUsers, int /*int*/ cUsers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers(_ptr, hSteamLeaderboard, prgUsers, cUsers); - } - public virtual bool /*bool*/ ISteamUserStats_GetDownloadedLeaderboardEntry( ulong hSteamLeaderboardEntries, int /*int*/ index, ref LeaderboardEntry_t /*struct LeaderboardEntry_t **/ pLeaderboardEntry, IntPtr /*int32 **/ pDetails, int /*int*/ cDetailsMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - var pLeaderboardEntry_ps = new LeaderboardEntry_t.Pack8(); - var ret = Native.SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry(_ptr, hSteamLeaderboardEntries, index, ref pLeaderboardEntry_ps, pDetails, cDetailsMax); - pLeaderboardEntry = pLeaderboardEntry_ps; - return ret; - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_UploadLeaderboardScore( ulong hSteamLeaderboard, LeaderboardUploadScoreMethod /*ELeaderboardUploadScoreMethod*/ eLeaderboardUploadScoreMethod, int /*int32*/ nScore, int[] /*const int32 **/ pScoreDetails, int /*int*/ cScoreDetailsCount ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_UploadLeaderboardScore(_ptr, hSteamLeaderboard, eLeaderboardUploadScoreMethod, nScore, pScoreDetails, cScoreDetailsCount); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_AttachLeaderboardUGC( ulong hSteamLeaderboard, ulong hUGC ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_AttachLeaderboardUGC(_ptr, hSteamLeaderboard, hUGC); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_GetNumberOfCurrentPlayers() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestGlobalAchievementPercentages() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages(_ptr); - } - public virtual int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo(_ptr, pchName, unNameBufLen, out pflPercent, ref pbAchieved); - } - public virtual int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo(_ptr, iIteratorPrevious, pchName, unNameBufLen, out pflPercent, ref pbAchieved); - } - public virtual bool /*bool*/ ISteamUserStats_GetAchievementAchievedPercent( string /*const char **/ pchName, out float /*float **/ pflPercent ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetAchievementAchievedPercent(_ptr, pchName, out pflPercent); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestGlobalStats( int /*int*/ nHistoryDays ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_RequestGlobalStats(_ptr, nHistoryDays); - } - public virtual bool /*bool*/ ISteamUserStats_GetGlobalStat( string /*const char **/ pchStatName, out long /*int64 **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetGlobalStat(_ptr, pchStatName, out pData); - } - public virtual bool /*bool*/ ISteamUserStats_GetGlobalStat0( string /*const char **/ pchStatName, out double /*double **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetGlobalStat0(_ptr, pchStatName, out pData); - } - public virtual int /*int32*/ ISteamUserStats_GetGlobalStatHistory( string /*const char **/ pchStatName, out long /*int64 **/ pData, uint /*uint32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetGlobalStatHistory(_ptr, pchStatName, out pData, cubData); - } - public virtual int /*int32*/ ISteamUserStats_GetGlobalStatHistory0( string /*const char **/ pchStatName, out double /*double **/ pData, uint /*uint32*/ cubData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - - return Native.SteamAPI_ISteamUserStats_GetGlobalStatHistory0(_ptr, pchStatName, out pData, cubData); - } - - public virtual bool /*bool*/ ISteamApps_BIsSubscribed() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsSubscribed(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BIsLowViolence() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsLowViolence(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BIsCybercafe() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsCybercafe(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BIsVACBanned() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsVACBanned(_ptr); - } - public virtual IntPtr ISteamApps_GetCurrentGameLanguage() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetCurrentGameLanguage(_ptr); - } - public virtual IntPtr ISteamApps_GetAvailableGameLanguages() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetAvailableGameLanguages(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BIsSubscribedApp( uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsSubscribedApp(_ptr, appID); - } - public virtual bool /*bool*/ ISteamApps_BIsDlcInstalled( uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsDlcInstalled(_ptr, appID); - } - public virtual uint /*uint32*/ ISteamApps_GetEarliestPurchaseUnixTime( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime(_ptr, nAppID); - } - public virtual bool /*bool*/ ISteamApps_BIsSubscribedFromFreeWeekend() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend(_ptr); - } - public virtual int /*int*/ ISteamApps_GetDLCCount() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetDLCCount(_ptr); - } - public virtual bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC, ref uint pAppID, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BGetDLCDataByIndex(_ptr, iDLC, ref pAppID, ref pbAvailable, pchName, cchNameBufferSize); - } - public virtual void /*void*/ ISteamApps_InstallDLC( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - Native.SteamAPI_ISteamApps_InstallDLC(_ptr, nAppID); - } - public virtual void /*void*/ ISteamApps_UninstallDLC( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - Native.SteamAPI_ISteamApps_UninstallDLC(_ptr, nAppID); - } - public virtual void /*void*/ ISteamApps_RequestAppProofOfPurchaseKey( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - Native.SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey(_ptr, nAppID); - } - public virtual bool /*bool*/ ISteamApps_GetCurrentBetaName( System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetCurrentBetaName(_ptr, pchName, cchNameBufferSize); - } - public virtual bool /*bool*/ ISteamApps_MarkContentCorrupt( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMissingFilesOnly ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_MarkContentCorrupt(_ptr, bMissingFilesOnly); - } - public virtual uint /*uint32*/ ISteamApps_GetInstalledDepots( uint appID, IntPtr /*DepotId_t **/ pvecDepots, uint /*uint32*/ cMaxDepots ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetInstalledDepots(_ptr, appID, pvecDepots, cMaxDepots); - } - public virtual uint /*uint32*/ ISteamApps_GetAppInstallDir( uint appID, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetAppInstallDir(_ptr, appID, pchFolder, cchFolderBufferSize); - } - public virtual bool /*bool*/ ISteamApps_BIsAppInstalled( uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsAppInstalled(_ptr, appID); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamApps_GetAppOwner() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetAppOwner(_ptr); - } - public virtual IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetLaunchQueryParam(_ptr, pchKey); - } - public virtual bool /*bool*/ ISteamApps_GetDlcDownloadProgress( uint nAppID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetDlcDownloadProgress(_ptr, nAppID, out punBytesDownloaded, out punBytesTotal); - } - public virtual int /*int*/ ISteamApps_GetAppBuildId() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetAppBuildId(_ptr); - } - public virtual void /*void*/ ISteamApps_RequestAllProofOfPurchaseKeys() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - Native.SteamAPI_ISteamApps_RequestAllProofOfPurchaseKeys(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamApps_GetFileDetails( string /*const char **/ pszFileName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetFileDetails(_ptr, pszFileName); - } - public virtual int /*int*/ ISteamApps_GetLaunchCommandLine( System.Text.StringBuilder /*char **/ pszCommandLine, int /*int*/ cubCommandLine ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_GetLaunchCommandLine(_ptr, pszCommandLine, cubCommandLine); - } - public virtual bool /*bool*/ ISteamApps_BIsSubscribedFromFamilySharing() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" ); - - return Native.SteamAPI_ISteamApps_BIsSubscribedFromFamilySharing(_ptr); - } - - public virtual bool /*bool*/ ISteamNetworking_SendP2PPacket( ulong steamIDRemote, IntPtr /*const void **/ pubData, uint /*uint32*/ cubData, P2PSend /*EP2PSend*/ eP2PSendType, int /*int*/ nChannel ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_SendP2PPacket(_ptr, steamIDRemote, pubData, cubData, eP2PSendType, nChannel); - } - public virtual bool /*bool*/ ISteamNetworking_IsP2PPacketAvailable( out uint /*uint32 **/ pcubMsgSize, int /*int*/ nChannel ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_IsP2PPacketAvailable(_ptr, out pcubMsgSize, nChannel); - } - public virtual bool /*bool*/ ISteamNetworking_ReadP2PPacket( IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, out ulong psteamIDRemote, int /*int*/ nChannel ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_ReadP2PPacket(_ptr, pubDest, cubDest, out pcubMsgSize, out psteamIDRemote, nChannel); - } - public virtual bool /*bool*/ ISteamNetworking_AcceptP2PSessionWithUser( ulong steamIDRemote ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser(_ptr, steamIDRemote); - } - public virtual bool /*bool*/ ISteamNetworking_CloseP2PSessionWithUser( ulong steamIDRemote ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CloseP2PSessionWithUser(_ptr, steamIDRemote); - } - public virtual bool /*bool*/ ISteamNetworking_CloseP2PChannelWithUser( ulong steamIDRemote, int /*int*/ nChannel ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CloseP2PChannelWithUser(_ptr, steamIDRemote, nChannel); - } - public virtual bool /*bool*/ ISteamNetworking_GetP2PSessionState( ulong steamIDRemote, ref P2PSessionState_t /*struct P2PSessionState_t **/ pConnectionState ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - var pConnectionState_ps = new P2PSessionState_t.Pack8(); - var ret = Native.SteamAPI_ISteamNetworking_GetP2PSessionState(_ptr, steamIDRemote, ref pConnectionState_ps); - pConnectionState = pConnectionState_ps; - return ret; - } - public virtual bool /*bool*/ ISteamNetworking_AllowP2PPacketRelay( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllow ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_AllowP2PPacketRelay(_ptr, bAllow); - } - public virtual SNetListenSocket_t /*(SNetListenSocket_t)*/ ISteamNetworking_CreateListenSocket( int /*int*/ nVirtualP2PPort, uint /*uint32*/ nIP, ushort /*uint16*/ nPort, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CreateListenSocket(_ptr, nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay); - } - public virtual SNetSocket_t /*(SNetSocket_t)*/ ISteamNetworking_CreateP2PConnectionSocket( ulong steamIDTarget, int /*int*/ nVirtualPort, int /*int*/ nTimeoutSec, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CreateP2PConnectionSocket(_ptr, steamIDTarget, nVirtualPort, nTimeoutSec, bAllowUseOfPacketRelay); - } - public virtual SNetSocket_t /*(SNetSocket_t)*/ ISteamNetworking_CreateConnectionSocket( uint /*uint32*/ nIP, ushort /*uint16*/ nPort, int /*int*/ nTimeoutSec ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_CreateConnectionSocket(_ptr, nIP, nPort, nTimeoutSec); - } - public virtual bool /*bool*/ ISteamNetworking_DestroySocket( uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_DestroySocket(_ptr, hSocket, bNotifyRemoteEnd); - } - public virtual bool /*bool*/ ISteamNetworking_DestroyListenSocket( uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_DestroyListenSocket(_ptr, hSocket, bNotifyRemoteEnd); - } - public virtual bool /*bool*/ ISteamNetworking_SendDataOnSocket( uint hSocket, IntPtr /*void **/ pubData, uint /*uint32*/ cubData, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReliable ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_SendDataOnSocket(_ptr, hSocket, pubData, cubData, bReliable); - } - public virtual bool /*bool*/ ISteamNetworking_IsDataAvailableOnSocket( uint hSocket, out uint /*uint32 **/ pcubMsgSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_IsDataAvailableOnSocket(_ptr, hSocket, out pcubMsgSize); - } - public virtual bool /*bool*/ ISteamNetworking_RetrieveDataFromSocket( uint hSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_RetrieveDataFromSocket(_ptr, hSocket, pubDest, cubDest, out pcubMsgSize); - } - public virtual bool /*bool*/ ISteamNetworking_IsDataAvailable( uint hListenSocket, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_IsDataAvailable(_ptr, hListenSocket, out pcubMsgSize, ref phSocket); - } - public virtual bool /*bool*/ ISteamNetworking_RetrieveData( uint hListenSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_RetrieveData(_ptr, hListenSocket, pubDest, cubDest, out pcubMsgSize, ref phSocket); - } - public virtual bool /*bool*/ ISteamNetworking_GetSocketInfo( uint hSocket, out ulong pSteamIDRemote, IntPtr /*int **/ peSocketStatus, out uint /*uint32 **/ punIPRemote, out ushort /*uint16 **/ punPortRemote ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_GetSocketInfo(_ptr, hSocket, out pSteamIDRemote, peSocketStatus, out punIPRemote, out punPortRemote); - } - public virtual bool /*bool*/ ISteamNetworking_GetListenSocketInfo( uint hListenSocket, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_GetListenSocketInfo(_ptr, hListenSocket, out pnIP, out pnPort); - } - public virtual SNetSocketConnectionType /*ESNetSocketConnectionType*/ ISteamNetworking_GetSocketConnectionType( uint hSocket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_GetSocketConnectionType(_ptr, hSocket); - } - public virtual int /*int*/ ISteamNetworking_GetMaxPacketSize( uint hSocket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" ); - - return Native.SteamAPI_ISteamNetworking_GetMaxPacketSize(_ptr, hSocket); - } - - public virtual ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_WriteScreenshot( IntPtr /*void **/ pubRGB, uint /*uint32*/ cubRGB, int /*int*/ nWidth, int /*int*/ nHeight ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_WriteScreenshot(_ptr, pubRGB, cubRGB, nWidth, nHeight); - } - public virtual ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_AddScreenshotToLibrary( string /*const char **/ pchFilename, string /*const char **/ pchThumbnailFilename, int /*int*/ nWidth, int /*int*/ nHeight ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_AddScreenshotToLibrary(_ptr, pchFilename, pchThumbnailFilename, nWidth, nHeight); - } - public virtual void /*void*/ ISteamScreenshots_TriggerScreenshot() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - Native.SteamAPI_ISteamScreenshots_TriggerScreenshot(_ptr); - } - public virtual void /*void*/ ISteamScreenshots_HookScreenshots( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHook ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - Native.SteamAPI_ISteamScreenshots_HookScreenshots(_ptr, bHook); - } - public virtual bool /*bool*/ ISteamScreenshots_SetLocation( uint hScreenshot, string /*const char **/ pchLocation ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_SetLocation(_ptr, hScreenshot, pchLocation); - } - public virtual bool /*bool*/ ISteamScreenshots_TagUser( uint hScreenshot, ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_TagUser(_ptr, hScreenshot, steamID); - } - public virtual bool /*bool*/ ISteamScreenshots_TagPublishedFile( uint hScreenshot, ulong unPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_TagPublishedFile(_ptr, hScreenshot, unPublishedFileID); - } - public virtual bool /*bool*/ ISteamScreenshots_IsScreenshotsHooked() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_IsScreenshotsHooked(_ptr); - } - public virtual ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_AddVRScreenshotToLibrary( VRScreenshotType /*EVRScreenshotType*/ eType, string /*const char **/ pchFilename, string /*const char **/ pchVRFilename ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" ); - - return Native.SteamAPI_ISteamScreenshots_AddVRScreenshotToLibrary(_ptr, eType, pchFilename, pchVRFilename); - } - - public virtual bool /*bool*/ ISteamMusic_BIsEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - return Native.SteamAPI_ISteamMusic_BIsEnabled(_ptr); - } - public virtual bool /*bool*/ ISteamMusic_BIsPlaying() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - return Native.SteamAPI_ISteamMusic_BIsPlaying(_ptr); - } - public virtual AudioPlayback_Status /*AudioPlayback_Status*/ ISteamMusic_GetPlaybackStatus() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - return Native.SteamAPI_ISteamMusic_GetPlaybackStatus(_ptr); - } - public virtual void /*void*/ ISteamMusic_Play() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_Play(_ptr); - } - public virtual void /*void*/ ISteamMusic_Pause() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_Pause(_ptr); - } - public virtual void /*void*/ ISteamMusic_PlayPrevious() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_PlayPrevious(_ptr); - } - public virtual void /*void*/ ISteamMusic_PlayNext() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_PlayNext(_ptr); - } - public virtual void /*void*/ ISteamMusic_SetVolume( float /*float*/ flVolume ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - Native.SteamAPI_ISteamMusic_SetVolume(_ptr, flVolume); - } - public virtual float /*float*/ ISteamMusic_GetVolume() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" ); - - return Native.SteamAPI_ISteamMusic_GetVolume(_ptr); - } - - public virtual bool /*bool*/ ISteamMusicRemote_RegisterSteamMusicRemote( string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote(_ptr, pchName); - } - public virtual bool /*bool*/ ISteamMusicRemote_DeregisterSteamMusicRemote() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_BIsCurrentMusicRemote() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_BActivationSuccess( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_BActivationSuccess(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetDisplayName( string /*const char **/ pchDisplayName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetDisplayName(_ptr, pchDisplayName); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetPNGIcon_64x64( IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64(_ptr, pvBuffer, cbBufferLength); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnablePlayPrevious( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnablePlayPrevious(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnablePlayNext( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnablePlayNext(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnableShuffled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnableShuffled(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnableLooped( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnableLooped(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnableQueue( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnableQueue(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_EnablePlaylists( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_EnablePlaylists(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdatePlaybackStatus( AudioPlayback_Status /*AudioPlayback_Status*/ nStatus ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus(_ptr, nStatus); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateShuffled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateShuffled(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateLooped( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateLooped(_ptr, bValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateVolume( float /*float*/ flValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateVolume(_ptr, flValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_CurrentEntryWillChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_CurrentEntryWillChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_CurrentEntryIsAvailable( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAvailable ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable(_ptr, bAvailable); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryText( string /*const char **/ pchText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText(_ptr, pchText); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds( int /*int*/ nValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds(_ptr, nValue); - } - public virtual bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryCoverArt( IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt(_ptr, pvBuffer, cbBufferLength); - } - public virtual bool /*bool*/ ISteamMusicRemote_CurrentEntryDidChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_CurrentEntryDidChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_QueueWillChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_QueueWillChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_ResetQueueEntries() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_ResetQueueEntries(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetQueueEntry( int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetQueueEntry(_ptr, nID, nPosition, pchEntryText); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetCurrentQueueEntry( int /*int*/ nID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry(_ptr, nID); - } - public virtual bool /*bool*/ ISteamMusicRemote_QueueDidChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_QueueDidChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_PlaylistWillChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_PlaylistWillChange(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_ResetPlaylistEntries() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_ResetPlaylistEntries(_ptr); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetPlaylistEntry( int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetPlaylistEntry(_ptr, nID, nPosition, pchEntryText); - } - public virtual bool /*bool*/ ISteamMusicRemote_SetCurrentPlaylistEntry( int /*int*/ nID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry(_ptr, nID); - } - public virtual bool /*bool*/ ISteamMusicRemote_PlaylistDidChange() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" ); - - return Native.SteamAPI_ISteamMusicRemote_PlaylistDidChange(_ptr); - } - - public virtual HTTPRequestHandle /*(HTTPRequestHandle)*/ ISteamHTTP_CreateHTTPRequest( HTTPMethod /*EHTTPMethod*/ eHTTPRequestMethod, string /*const char **/ pchAbsoluteURL ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_CreateHTTPRequest(_ptr, eHTTPRequestMethod, pchAbsoluteURL); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestContextValue( uint hRequest, ulong /*uint64*/ ulContextValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestContextValue(_ptr, hRequest, ulContextValue); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestNetworkActivityTimeout( uint hRequest, uint /*uint32*/ unTimeoutSeconds ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout(_ptr, hRequest, unTimeoutSeconds); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestHeaderValue( uint hRequest, string /*const char **/ pchHeaderName, string /*const char **/ pchHeaderValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue(_ptr, hRequest, pchHeaderName, pchHeaderValue); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestGetOrPostParameter( uint hRequest, string /*const char **/ pchParamName, string /*const char **/ pchParamValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter(_ptr, hRequest, pchParamName, pchParamValue); - } - public virtual bool /*bool*/ ISteamHTTP_SendHTTPRequest( uint hRequest, ref ulong pCallHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SendHTTPRequest(_ptr, hRequest, ref pCallHandle); - } - public virtual bool /*bool*/ ISteamHTTP_SendHTTPRequestAndStreamResponse( uint hRequest, ref ulong pCallHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse(_ptr, hRequest, ref pCallHandle); - } - public virtual bool /*bool*/ ISteamHTTP_DeferHTTPRequest( uint hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_DeferHTTPRequest(_ptr, hRequest); - } - public virtual bool /*bool*/ ISteamHTTP_PrioritizeHTTPRequest( uint hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_PrioritizeHTTPRequest(_ptr, hRequest); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseHeaderSize( uint hRequest, string /*const char **/ pchHeaderName, out uint /*uint32 **/ unResponseHeaderSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize(_ptr, hRequest, pchHeaderName, out unResponseHeaderSize); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseHeaderValue( uint hRequest, string /*const char **/ pchHeaderName, out byte /*uint8 **/ pHeaderValueBuffer, uint /*uint32*/ unBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue(_ptr, hRequest, pchHeaderName, out pHeaderValueBuffer, unBufferSize); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseBodySize( uint hRequest, out uint /*uint32 **/ unBodySize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPResponseBodySize(_ptr, hRequest, out unBodySize); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseBodyData( uint hRequest, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPResponseBodyData(_ptr, hRequest, out pBodyDataBuffer, unBufferSize); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPStreamingResponseBodyData( uint hRequest, uint /*uint32*/ cOffset, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData(_ptr, hRequest, cOffset, out pBodyDataBuffer, unBufferSize); - } - public virtual bool /*bool*/ ISteamHTTP_ReleaseHTTPRequest( uint hRequest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_ReleaseHTTPRequest(_ptr, hRequest); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPDownloadProgressPct( uint hRequest, out float /*float **/ pflPercentOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct(_ptr, hRequest, out pflPercentOut); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestRawPostBody( uint hRequest, string /*const char **/ pchContentType, out byte /*uint8 **/ pubBody, uint /*uint32*/ unBodyLen ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody(_ptr, hRequest, pchContentType, out pubBody, unBodyLen); - } - public virtual HTTPCookieContainerHandle /*(HTTPCookieContainerHandle)*/ ISteamHTTP_CreateCookieContainer( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowResponsesToModify ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_CreateCookieContainer(_ptr, bAllowResponsesToModify); - } - public virtual bool /*bool*/ ISteamHTTP_ReleaseCookieContainer( uint hCookieContainer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_ReleaseCookieContainer(_ptr, hCookieContainer); - } - public virtual bool /*bool*/ ISteamHTTP_SetCookie( uint hCookieContainer, string /*const char **/ pchHost, string /*const char **/ pchUrl, string /*const char **/ pchCookie ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetCookie(_ptr, hCookieContainer, pchHost, pchUrl, pchCookie); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestCookieContainer( uint hRequest, uint hCookieContainer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer(_ptr, hRequest, hCookieContainer); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestUserAgentInfo( uint hRequest, string /*const char **/ pchUserAgentInfo ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo(_ptr, hRequest, pchUserAgentInfo); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( uint hRequest, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireVerifiedCertificate ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate(_ptr, hRequest, bRequireVerifiedCertificate); - } - public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( uint hRequest, uint /*uint32*/ unMilliseconds ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS(_ptr, hRequest, unMilliseconds); - } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( uint hRequest, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbWasTimedOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - - return Native.SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut(_ptr, hRequest, ref pbWasTimedOut); - } - - public virtual bool /*bool*/ ISteamInput_Init() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_Init(_ptr); - } - public virtual bool /*bool*/ ISteamInput_Shutdown() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_Shutdown(_ptr); - } - public virtual void /*void*/ ISteamInput_RunFrame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_RunFrame(_ptr); - } - public virtual int /*int*/ ISteamInput_GetConnectedControllers( IntPtr /*InputHandle_t **/ handlesOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetConnectedControllers(_ptr, handlesOut); - } - public virtual InputActionSetHandle_t /*(InputActionSetHandle_t)*/ ISteamInput_GetActionSetHandle( string /*const char **/ pszActionSetName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetActionSetHandle(_ptr, pszActionSetName); - } - public virtual void /*void*/ ISteamInput_ActivateActionSet( ulong inputHandle, ulong actionSetHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_ActivateActionSet(_ptr, inputHandle, actionSetHandle); - } - public virtual InputActionSetHandle_t /*(InputActionSetHandle_t)*/ ISteamInput_GetCurrentActionSet( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetCurrentActionSet(_ptr, inputHandle); - } - public virtual void /*void*/ ISteamInput_ActivateActionSetLayer( ulong inputHandle, ulong actionSetLayerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_ActivateActionSetLayer(_ptr, inputHandle, actionSetLayerHandle); - } - public virtual void /*void*/ ISteamInput_DeactivateActionSetLayer( ulong inputHandle, ulong actionSetLayerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_DeactivateActionSetLayer(_ptr, inputHandle, actionSetLayerHandle); - } - public virtual void /*void*/ ISteamInput_DeactivateAllActionSetLayers( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_DeactivateAllActionSetLayers(_ptr, inputHandle); - } - public virtual int /*int*/ ISteamInput_GetActiveActionSetLayers( ulong inputHandle, IntPtr /*InputActionSetHandle_t **/ handlesOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetActiveActionSetLayers(_ptr, inputHandle, handlesOut); - } - public virtual InputDigitalActionHandle_t /*(InputDigitalActionHandle_t)*/ ISteamInput_GetDigitalActionHandle( string /*const char **/ pszActionName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetDigitalActionHandle(_ptr, pszActionName); - } - public virtual InputDigitalActionData_t /*struct InputDigitalActionData_t*/ ISteamInput_GetDigitalActionData( ulong inputHandle, ulong digitalActionHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetDigitalActionData(_ptr, inputHandle, digitalActionHandle); - } - public virtual int /*int*/ ISteamInput_GetDigitalActionOrigins( ulong inputHandle, ulong actionSetHandle, ulong digitalActionHandle, out InputActionOrigin /*EInputActionOrigin **/ originsOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetDigitalActionOrigins(_ptr, inputHandle, actionSetHandle, digitalActionHandle, out originsOut); - } - public virtual InputAnalogActionHandle_t /*(InputAnalogActionHandle_t)*/ ISteamInput_GetAnalogActionHandle( string /*const char **/ pszActionName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetAnalogActionHandle(_ptr, pszActionName); - } - public virtual InputAnalogActionData_t /*struct InputAnalogActionData_t*/ ISteamInput_GetAnalogActionData( ulong inputHandle, ulong analogActionHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetAnalogActionData(_ptr, inputHandle, analogActionHandle); - } - public virtual int /*int*/ ISteamInput_GetAnalogActionOrigins( ulong inputHandle, ulong actionSetHandle, ulong analogActionHandle, out InputActionOrigin /*EInputActionOrigin **/ originsOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetAnalogActionOrigins(_ptr, inputHandle, actionSetHandle, analogActionHandle, out originsOut); - } - public virtual IntPtr ISteamInput_GetGlyphForActionOrigin( InputActionOrigin /*EInputActionOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetGlyphForActionOrigin(_ptr, eOrigin); - } - public virtual IntPtr ISteamInput_GetStringForActionOrigin( InputActionOrigin /*EInputActionOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetStringForActionOrigin(_ptr, eOrigin); - } - public virtual void /*void*/ ISteamInput_StopAnalogActionMomentum( ulong inputHandle, ulong eAction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_StopAnalogActionMomentum(_ptr, inputHandle, eAction); - } - public virtual InputMotionData_t /*struct InputMotionData_t*/ ISteamInput_GetMotionData( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetMotionData(_ptr, inputHandle); - } - public virtual void /*void*/ ISteamInput_TriggerVibration( ulong inputHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_TriggerVibration(_ptr, inputHandle, usLeftSpeed, usRightSpeed); - } - public virtual void /*void*/ ISteamInput_SetLEDColor( ulong inputHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_SetLEDColor(_ptr, inputHandle, nColorR, nColorG, nColorB, nFlags); - } - public virtual void /*void*/ ISteamInput_TriggerHapticPulse( ulong inputHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_TriggerHapticPulse(_ptr, inputHandle, eTargetPad, usDurationMicroSec); - } - public virtual void /*void*/ ISteamInput_TriggerRepeatedHapticPulse( ulong inputHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - Native.SteamAPI_ISteamInput_TriggerRepeatedHapticPulse(_ptr, inputHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags); - } - public virtual bool /*bool*/ ISteamInput_ShowBindingPanel( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_ShowBindingPanel(_ptr, inputHandle); - } - public virtual SteamInputType /*ESteamInputType*/ ISteamInput_GetInputTypeForHandle( ulong inputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetInputTypeForHandle(_ptr, inputHandle); - } - public virtual InputHandle_t /*(InputHandle_t)*/ ISteamInput_GetControllerForGamepadIndex( int /*int*/ nIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetControllerForGamepadIndex(_ptr, nIndex); - } - public virtual int /*int*/ ISteamInput_GetGamepadIndexForController( ulong ulinputHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetGamepadIndexForController(_ptr, ulinputHandle); - } - public virtual IntPtr ISteamInput_GetStringForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetStringForXboxOrigin(_ptr, eOrigin); - } - public virtual IntPtr ISteamInput_GetGlyphForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetGlyphForXboxOrigin(_ptr, eOrigin); - } - public virtual InputActionOrigin /*EInputActionOrigin*/ ISteamInput_GetActionOriginFromXboxOrigin( ulong inputHandle, XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_GetActionOriginFromXboxOrigin(_ptr, inputHandle, eOrigin); - } - public virtual InputActionOrigin /*EInputActionOrigin*/ ISteamInput_TranslateActionOrigin( SteamInputType /*ESteamInputType*/ eDestinationInputType, InputActionOrigin /*EInputActionOrigin*/ eSourceOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInput _ptr is null!" ); - - return Native.SteamAPI_ISteamInput_TranslateActionOrigin(_ptr, eDestinationInputType, eSourceOrigin); - } - - public virtual bool /*bool*/ ISteamController_Init() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_Init(_ptr); - } - public virtual bool /*bool*/ ISteamController_Shutdown() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_Shutdown(_ptr); - } - public virtual void /*void*/ ISteamController_RunFrame() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_RunFrame(_ptr); - } - public virtual int /*int*/ ISteamController_GetConnectedControllers( IntPtr /*ControllerHandle_t **/ handlesOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetConnectedControllers(_ptr, handlesOut); - } - public virtual ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ ISteamController_GetActionSetHandle( string /*const char **/ pszActionSetName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetActionSetHandle(_ptr, pszActionSetName); - } - public virtual void /*void*/ ISteamController_ActivateActionSet( ulong controllerHandle, ulong actionSetHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_ActivateActionSet(_ptr, controllerHandle, actionSetHandle); - } - public virtual ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ ISteamController_GetCurrentActionSet( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetCurrentActionSet(_ptr, controllerHandle); - } - public virtual void /*void*/ ISteamController_ActivateActionSetLayer( ulong controllerHandle, ulong actionSetLayerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_ActivateActionSetLayer(_ptr, controllerHandle, actionSetLayerHandle); - } - public virtual void /*void*/ ISteamController_DeactivateActionSetLayer( ulong controllerHandle, ulong actionSetLayerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_DeactivateActionSetLayer(_ptr, controllerHandle, actionSetLayerHandle); - } - public virtual void /*void*/ ISteamController_DeactivateAllActionSetLayers( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_DeactivateAllActionSetLayers(_ptr, controllerHandle); - } - public virtual int /*int*/ ISteamController_GetActiveActionSetLayers( ulong controllerHandle, IntPtr /*ControllerActionSetHandle_t **/ handlesOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetActiveActionSetLayers(_ptr, controllerHandle, handlesOut); - } - public virtual ControllerDigitalActionHandle_t /*(ControllerDigitalActionHandle_t)*/ ISteamController_GetDigitalActionHandle( string /*const char **/ pszActionName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetDigitalActionHandle(_ptr, pszActionName); - } - public virtual InputDigitalActionData_t /*struct InputDigitalActionData_t*/ ISteamController_GetDigitalActionData( ulong controllerHandle, ulong digitalActionHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetDigitalActionData(_ptr, controllerHandle, digitalActionHandle); - } - public virtual int /*int*/ ISteamController_GetDigitalActionOrigins( ulong controllerHandle, ulong actionSetHandle, ulong digitalActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetDigitalActionOrigins(_ptr, controllerHandle, actionSetHandle, digitalActionHandle, out originsOut); - } - public virtual ControllerAnalogActionHandle_t /*(ControllerAnalogActionHandle_t)*/ ISteamController_GetAnalogActionHandle( string /*const char **/ pszActionName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetAnalogActionHandle(_ptr, pszActionName); - } - public virtual InputAnalogActionData_t /*struct InputAnalogActionData_t*/ ISteamController_GetAnalogActionData( ulong controllerHandle, ulong analogActionHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetAnalogActionData(_ptr, controllerHandle, analogActionHandle); - } - public virtual int /*int*/ ISteamController_GetAnalogActionOrigins( ulong controllerHandle, ulong actionSetHandle, ulong analogActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetAnalogActionOrigins(_ptr, controllerHandle, actionSetHandle, analogActionHandle, out originsOut); - } - public virtual IntPtr ISteamController_GetGlyphForActionOrigin( ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetGlyphForActionOrigin(_ptr, eOrigin); - } - public virtual IntPtr ISteamController_GetStringForActionOrigin( ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetStringForActionOrigin(_ptr, eOrigin); - } - public virtual void /*void*/ ISteamController_StopAnalogActionMomentum( ulong controllerHandle, ulong eAction ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_StopAnalogActionMomentum(_ptr, controllerHandle, eAction); - } - public virtual InputMotionData_t /*struct InputMotionData_t*/ ISteamController_GetMotionData( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetMotionData(_ptr, controllerHandle); - } - public virtual void /*void*/ ISteamController_TriggerHapticPulse( ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_TriggerHapticPulse(_ptr, controllerHandle, eTargetPad, usDurationMicroSec); - } - public virtual void /*void*/ ISteamController_TriggerRepeatedHapticPulse( ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_TriggerRepeatedHapticPulse(_ptr, controllerHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags); - } - public virtual void /*void*/ ISteamController_TriggerVibration( ulong controllerHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_TriggerVibration(_ptr, controllerHandle, usLeftSpeed, usRightSpeed); - } - public virtual void /*void*/ ISteamController_SetLEDColor( ulong controllerHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - Native.SteamAPI_ISteamController_SetLEDColor(_ptr, controllerHandle, nColorR, nColorG, nColorB, nFlags); - } - public virtual bool /*bool*/ ISteamController_ShowBindingPanel( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_ShowBindingPanel(_ptr, controllerHandle); - } - public virtual SteamInputType /*ESteamInputType*/ ISteamController_GetInputTypeForHandle( ulong controllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetInputTypeForHandle(_ptr, controllerHandle); - } - public virtual ControllerHandle_t /*(ControllerHandle_t)*/ ISteamController_GetControllerForGamepadIndex( int /*int*/ nIndex ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetControllerForGamepadIndex(_ptr, nIndex); - } - public virtual int /*int*/ ISteamController_GetGamepadIndexForController( ulong ulControllerHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetGamepadIndexForController(_ptr, ulControllerHandle); - } - public virtual IntPtr ISteamController_GetStringForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetStringForXboxOrigin(_ptr, eOrigin); - } - public virtual IntPtr ISteamController_GetGlyphForXboxOrigin( XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetGlyphForXboxOrigin(_ptr, eOrigin); - } - public virtual ControllerActionOrigin /*EControllerActionOrigin*/ ISteamController_GetActionOriginFromXboxOrigin( ulong controllerHandle, XboxOrigin /*EXboxOrigin*/ eOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_GetActionOriginFromXboxOrigin(_ptr, controllerHandle, eOrigin); - } - public virtual ControllerActionOrigin /*EControllerActionOrigin*/ ISteamController_TranslateActionOrigin( SteamInputType /*ESteamInputType*/ eDestinationInputType, ControllerActionOrigin /*EControllerActionOrigin*/ eSourceOrigin ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" ); - - return Native.SteamAPI_ISteamController_TranslateActionOrigin(_ptr, eDestinationInputType, eSourceOrigin); - } - - public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryUserUGCRequest( uint unAccountID, UserUGCList /*EUserUGCList*/ eListType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingUGCType, UserUGCListSortOrder /*EUserUGCListSortOrder*/ eSortOrder, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateQueryUserUGCRequest(_ptr, unAccountID, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID, nConsumerAppID, unPage); - } - public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryAllUGCRequest( UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateQueryAllUGCRequest(_ptr, eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage); - } - public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryAllUGCRequest0( UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, string /*const char **/ pchCursor ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateQueryAllUGCRequest0(_ptr, eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, pchCursor); - } - public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryUGCDetailsRequest( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest(_ptr, pvecPublishedFileID, unNumPublishedFileIDs); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SendQueryUGCRequest( ulong handle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SendQueryUGCRequest(_ptr, handle); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCResult( ulong handle, uint /*uint32*/ index, ref SteamUGCDetails_t /*struct SteamUGCDetails_t **/ pDetails ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - var pDetails_ps = new SteamUGCDetails_t.Pack8(); - var ret = Native.SteamAPI_ISteamUGC_GetQueryUGCResult(_ptr, handle, index, ref pDetails_ps); - pDetails = pDetails_ps; - return ret; - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCPreviewURL( ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchURL, uint /*uint32*/ cchURLSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCPreviewURL(_ptr, handle, index, pchURL, cchURLSize); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCMetadata( ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchMetadata, uint /*uint32*/ cchMetadatasize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCMetadata(_ptr, handle, index, pchMetadata, cchMetadatasize); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCChildren( ulong handle, uint /*uint32*/ index, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCChildren(_ptr, handle, index, pvecPublishedFileID, cMaxEntries); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCStatistic( ulong handle, uint /*uint32*/ index, ItemStatistic /*EItemStatistic*/ eStatType, out ulong /*uint64 **/ pStatValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCStatistic(_ptr, handle, index, eStatType, out pStatValue); - } - public virtual uint /*uint32*/ ISteamUGC_GetQueryUGCNumAdditionalPreviews( ulong handle, uint /*uint32*/ index ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews(_ptr, handle, index); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCAdditionalPreview( ulong handle, uint /*uint32*/ index, uint /*uint32*/ previewIndex, System.Text.StringBuilder /*char **/ pchURLOrVideoID, uint /*uint32*/ cchURLSize, System.Text.StringBuilder /*char **/ pchOriginalFileName, uint /*uint32*/ cchOriginalFileNameSize, out ItemPreviewType /*EItemPreviewType **/ pPreviewType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview(_ptr, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, out pPreviewType); - } - public virtual uint /*uint32*/ ISteamUGC_GetQueryUGCNumKeyValueTags( ulong handle, uint /*uint32*/ index ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags(_ptr, handle, index); - } - public virtual bool /*bool*/ ISteamUGC_GetQueryUGCKeyValueTag( ulong handle, uint /*uint32*/ index, uint /*uint32*/ keyValueTagIndex, System.Text.StringBuilder /*char **/ pchKey, uint /*uint32*/ cchKeySize, System.Text.StringBuilder /*char **/ pchValue, uint /*uint32*/ cchValueSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag(_ptr, handle, index, keyValueTagIndex, pchKey, cchKeySize, pchValue, cchValueSize); - } - public virtual bool /*bool*/ ISteamUGC_ReleaseQueryUGCRequest( ulong handle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_ReleaseQueryUGCRequest(_ptr, handle); - } - public virtual bool /*bool*/ ISteamUGC_AddRequiredTag( ulong handle, string /*const char **/ pTagName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddRequiredTag(_ptr, handle, pTagName); - } - public virtual bool /*bool*/ ISteamUGC_AddExcludedTag( ulong handle, string /*const char **/ pTagName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddExcludedTag(_ptr, handle, pTagName); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnOnlyIDs( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnOnlyIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnOnlyIDs(_ptr, handle, bReturnOnlyIDs); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnKeyValueTags( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnKeyValueTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnKeyValueTags(_ptr, handle, bReturnKeyValueTags); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnLongDescription( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnLongDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnLongDescription(_ptr, handle, bReturnLongDescription); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnMetadata( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnMetadata ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnMetadata(_ptr, handle, bReturnMetadata); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnChildren( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnChildren ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnChildren(_ptr, handle, bReturnChildren); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnAdditionalPreviews( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnAdditionalPreviews ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnAdditionalPreviews(_ptr, handle, bReturnAdditionalPreviews); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnTotalOnly( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnTotalOnly ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnTotalOnly(_ptr, handle, bReturnTotalOnly); - } - public virtual bool /*bool*/ ISteamUGC_SetReturnPlaytimeStats( ulong handle, uint /*uint32*/ unDays ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetReturnPlaytimeStats(_ptr, handle, unDays); - } - public virtual bool /*bool*/ ISteamUGC_SetLanguage( ulong handle, string /*const char **/ pchLanguage ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetLanguage(_ptr, handle, pchLanguage); - } - public virtual bool /*bool*/ ISteamUGC_SetAllowCachedResponse( ulong handle, uint /*uint32*/ unMaxAgeSeconds ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetAllowCachedResponse(_ptr, handle, unMaxAgeSeconds); - } - public virtual bool /*bool*/ ISteamUGC_SetCloudFileNameFilter( ulong handle, string /*const char **/ pMatchCloudFileName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetCloudFileNameFilter(_ptr, handle, pMatchCloudFileName); - } - public virtual bool /*bool*/ ISteamUGC_SetMatchAnyTag( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMatchAnyTag ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetMatchAnyTag(_ptr, handle, bMatchAnyTag); - } - public virtual bool /*bool*/ ISteamUGC_SetSearchText( ulong handle, string /*const char **/ pSearchText ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetSearchText(_ptr, handle, pSearchText); - } - public virtual bool /*bool*/ ISteamUGC_SetRankedByTrendDays( ulong handle, uint /*uint32*/ unDays ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetRankedByTrendDays(_ptr, handle, unDays); - } - public virtual bool /*bool*/ ISteamUGC_AddRequiredKeyValueTag( ulong handle, string /*const char **/ pKey, string /*const char **/ pValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddRequiredKeyValueTag(_ptr, handle, pKey, pValue); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RequestUGCDetails( ulong nPublishedFileID, uint /*uint32*/ unMaxAgeSeconds ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RequestUGCDetails(_ptr, nPublishedFileID, unMaxAgeSeconds); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_CreateItem( uint nConsumerAppId, WorkshopFileType /*EWorkshopFileType*/ eFileType ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_CreateItem(_ptr, nConsumerAppId, eFileType); - } - public virtual UGCUpdateHandle_t /*(UGCUpdateHandle_t)*/ ISteamUGC_StartItemUpdate( uint nConsumerAppId, ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_StartItemUpdate(_ptr, nConsumerAppId, nPublishedFileID); - } - public virtual bool /*bool*/ ISteamUGC_SetItemTitle( ulong handle, string /*const char **/ pchTitle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemTitle(_ptr, handle, pchTitle); - } - public virtual bool /*bool*/ ISteamUGC_SetItemDescription( ulong handle, string /*const char **/ pchDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemDescription(_ptr, handle, pchDescription); - } - public virtual bool /*bool*/ ISteamUGC_SetItemUpdateLanguage( ulong handle, string /*const char **/ pchLanguage ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemUpdateLanguage(_ptr, handle, pchLanguage); - } - public virtual bool /*bool*/ ISteamUGC_SetItemMetadata( ulong handle, string /*const char **/ pchMetaData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemMetadata(_ptr, handle, pchMetaData); - } - public virtual bool /*bool*/ ISteamUGC_SetItemVisibility( ulong handle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemVisibility(_ptr, handle, eVisibility); - } - public virtual bool /*bool*/ ISteamUGC_SetItemTags( ulong updateHandle, ref SteamParamStringArray_t /*const struct SteamParamStringArray_t **/ pTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - var pTags_ps = new SteamParamStringArray_t.Pack8(); - var ret = Native.SteamAPI_ISteamUGC_SetItemTags(_ptr, updateHandle, ref pTags_ps); - pTags = pTags_ps; - return ret; - } - public virtual bool /*bool*/ ISteamUGC_SetItemContent( ulong handle, string /*const char **/ pszContentFolder ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemContent(_ptr, handle, pszContentFolder); - } - public virtual bool /*bool*/ ISteamUGC_SetItemPreview( ulong handle, string /*const char **/ pszPreviewFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetItemPreview(_ptr, handle, pszPreviewFile); - } - public virtual bool /*bool*/ ISteamUGC_SetAllowLegacyUpload( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowLegacyUpload ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetAllowLegacyUpload(_ptr, handle, bAllowLegacyUpload); - } - public virtual bool /*bool*/ ISteamUGC_RemoveItemKeyValueTags( ulong handle, string /*const char **/ pchKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveItemKeyValueTags(_ptr, handle, pchKey); - } - public virtual bool /*bool*/ ISteamUGC_AddItemKeyValueTag( ulong handle, string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddItemKeyValueTag(_ptr, handle, pchKey, pchValue); - } - public virtual bool /*bool*/ ISteamUGC_AddItemPreviewFile( ulong handle, string /*const char **/ pszPreviewFile, ItemPreviewType /*EItemPreviewType*/ type ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddItemPreviewFile(_ptr, handle, pszPreviewFile, type); - } - public virtual bool /*bool*/ ISteamUGC_AddItemPreviewVideo( ulong handle, string /*const char **/ pszVideoID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddItemPreviewVideo(_ptr, handle, pszVideoID); - } - public virtual bool /*bool*/ ISteamUGC_UpdateItemPreviewFile( ulong handle, uint /*uint32*/ index, string /*const char **/ pszPreviewFile ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_UpdateItemPreviewFile(_ptr, handle, index, pszPreviewFile); - } - public virtual bool /*bool*/ ISteamUGC_UpdateItemPreviewVideo( ulong handle, uint /*uint32*/ index, string /*const char **/ pszVideoID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_UpdateItemPreviewVideo(_ptr, handle, index, pszVideoID); - } - public virtual bool /*bool*/ ISteamUGC_RemoveItemPreview( ulong handle, uint /*uint32*/ index ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveItemPreview(_ptr, handle, index); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SubmitItemUpdate( ulong handle, string /*const char **/ pchChangeNote ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SubmitItemUpdate(_ptr, handle, pchChangeNote); - } - public virtual ItemUpdateStatus /*EItemUpdateStatus*/ ISteamUGC_GetItemUpdateProgress( ulong handle, out ulong /*uint64 **/ punBytesProcessed, out ulong /*uint64 **/ punBytesTotal ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetItemUpdateProgress(_ptr, handle, out punBytesProcessed, out punBytesTotal); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SetUserItemVote( ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SetUserItemVote(_ptr, nPublishedFileID, bVoteUp); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_GetUserItemVote( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetUserItemVote(_ptr, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_AddItemToFavorites( uint nAppId, ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddItemToFavorites(_ptr, nAppId, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RemoveItemFromFavorites( uint nAppId, ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveItemFromFavorites(_ptr, nAppId, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SubscribeItem( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_SubscribeItem(_ptr, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_UnsubscribeItem( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_UnsubscribeItem(_ptr, nPublishedFileID); - } - public virtual uint /*uint32*/ ISteamUGC_GetNumSubscribedItems() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetNumSubscribedItems(_ptr); - } - public virtual uint /*uint32*/ ISteamUGC_GetSubscribedItems( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetSubscribedItems(_ptr, pvecPublishedFileID, cMaxEntries); - } - public virtual uint /*uint32*/ ISteamUGC_GetItemState( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetItemState(_ptr, nPublishedFileID); - } - public virtual bool /*bool*/ ISteamUGC_GetItemInstallInfo( ulong nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderSize, out uint /*uint32 **/ punTimeStamp ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetItemInstallInfo(_ptr, nPublishedFileID, out punSizeOnDisk, pchFolder, cchFolderSize, out punTimeStamp); - } - public virtual bool /*bool*/ ISteamUGC_GetItemDownloadInfo( ulong nPublishedFileID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetItemDownloadInfo(_ptr, nPublishedFileID, out punBytesDownloaded, out punBytesTotal); - } - public virtual bool /*bool*/ ISteamUGC_DownloadItem( ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHighPriority ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_DownloadItem(_ptr, nPublishedFileID, bHighPriority); - } - public virtual bool /*bool*/ ISteamUGC_BInitWorkshopForGameServer( uint unWorkshopDepotID, string /*const char **/ pszFolder ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_BInitWorkshopForGameServer(_ptr, unWorkshopDepotID, pszFolder); - } - public virtual void /*void*/ ISteamUGC_SuspendDownloads( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSuspend ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - Native.SteamAPI_ISteamUGC_SuspendDownloads(_ptr, bSuspend); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StartPlaytimeTracking( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_StartPlaytimeTracking(_ptr, pvecPublishedFileID, unNumPublishedFileIDs); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StopPlaytimeTracking( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_StopPlaytimeTracking(_ptr, pvecPublishedFileID, unNumPublishedFileIDs); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StopPlaytimeTrackingForAllItems() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_AddDependency( ulong nParentPublishedFileID, ulong nChildPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddDependency(_ptr, nParentPublishedFileID, nChildPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RemoveDependency( ulong nParentPublishedFileID, ulong nChildPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveDependency(_ptr, nParentPublishedFileID, nChildPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_AddAppDependency( ulong nPublishedFileID, uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_AddAppDependency(_ptr, nPublishedFileID, nAppID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RemoveAppDependency( ulong nPublishedFileID, uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_RemoveAppDependency(_ptr, nPublishedFileID, nAppID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_GetAppDependencies( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_GetAppDependencies(_ptr, nPublishedFileID); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_DeleteItem( ulong nPublishedFileID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" ); - - return Native.SteamAPI_ISteamUGC_DeleteItem(_ptr, nPublishedFileID); - } - - public virtual uint /*uint32*/ ISteamAppList_GetNumInstalledApps() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetNumInstalledApps(_ptr); - } - public virtual uint /*uint32*/ ISteamAppList_GetInstalledApps( IntPtr /*AppId_t **/ pvecAppID, uint /*uint32*/ unMaxAppIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetInstalledApps(_ptr, pvecAppID, unMaxAppIDs); - } - public virtual int /*int*/ ISteamAppList_GetAppName( uint nAppID, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetAppName(_ptr, nAppID, pchName, cchNameMax); - } - public virtual int /*int*/ ISteamAppList_GetAppInstallDir( uint nAppID, System.Text.StringBuilder /*char **/ pchDirectory, int /*int*/ cchNameMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetAppInstallDir(_ptr, nAppID, pchDirectory, cchNameMax); - } - public virtual int /*int*/ ISteamAppList_GetAppBuildId( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" ); - - return Native.SteamAPI_ISteamAppList_GetAppBuildId(_ptr, nAppID); - } - - public virtual void /*void*/ ISteamHTMLSurface_DestructISteamHTMLSurface() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface(_ptr); - } - public virtual bool /*bool*/ ISteamHTMLSurface_Init() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - return Native.SteamAPI_ISteamHTMLSurface_Init(_ptr); - } - public virtual bool /*bool*/ ISteamHTMLSurface_Shutdown() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - return Native.SteamAPI_ISteamHTMLSurface_Shutdown(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamHTMLSurface_CreateBrowser( string /*const char **/ pchUserAgent, string /*const char **/ pchUserCSS ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - return Native.SteamAPI_ISteamHTMLSurface_CreateBrowser(_ptr, pchUserAgent, pchUserCSS); - } - public virtual void /*void*/ ISteamHTMLSurface_RemoveBrowser( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_RemoveBrowser(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_LoadURL( uint unBrowserHandle, string /*const char **/ pchURL, string /*const char **/ pchPostData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_LoadURL(_ptr, unBrowserHandle, pchURL, pchPostData); - } - public virtual void /*void*/ ISteamHTMLSurface_SetSize( uint unBrowserHandle, uint /*uint32*/ unWidth, uint /*uint32*/ unHeight ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetSize(_ptr, unBrowserHandle, unWidth, unHeight); - } - public virtual void /*void*/ ISteamHTMLSurface_StopLoad( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_StopLoad(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_Reload( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_Reload(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_GoBack( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_GoBack(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_GoForward( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_GoForward(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_AddHeader( uint unBrowserHandle, string /*const char **/ pchKey, string /*const char **/ pchValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_AddHeader(_ptr, unBrowserHandle, pchKey, pchValue); - } - public virtual void /*void*/ ISteamHTMLSurface_ExecuteJavascript( uint unBrowserHandle, string /*const char **/ pchScript ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_ExecuteJavascript(_ptr, unBrowserHandle, pchScript); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseUp( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseUp(_ptr, unBrowserHandle, eMouseButton); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseDown( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseDown(_ptr, unBrowserHandle, eMouseButton); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseDoubleClick( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseDoubleClick(_ptr, unBrowserHandle, eMouseButton); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseMove( uint unBrowserHandle, int /*int*/ x, int /*int*/ y ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseMove(_ptr, unBrowserHandle, x, y); - } - public virtual void /*void*/ ISteamHTMLSurface_MouseWheel( uint unBrowserHandle, int /*int32*/ nDelta ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_MouseWheel(_ptr, unBrowserHandle, nDelta); - } - public virtual void /*void*/ ISteamHTMLSurface_KeyDown( uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bIsSystemKey ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_KeyDown(_ptr, unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers, bIsSystemKey); - } - public virtual void /*void*/ ISteamHTMLSurface_KeyUp( uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_KeyUp(_ptr, unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers); - } - public virtual void /*void*/ ISteamHTMLSurface_KeyChar( uint unBrowserHandle, uint /*uint32*/ cUnicodeChar, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_KeyChar(_ptr, unBrowserHandle, cUnicodeChar, eHTMLKeyModifiers); - } - public virtual void /*void*/ ISteamHTMLSurface_SetHorizontalScroll( uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetHorizontalScroll(_ptr, unBrowserHandle, nAbsolutePixelScroll); - } - public virtual void /*void*/ ISteamHTMLSurface_SetVerticalScroll( uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetVerticalScroll(_ptr, unBrowserHandle, nAbsolutePixelScroll); - } - public virtual void /*void*/ ISteamHTMLSurface_SetKeyFocus( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHasKeyFocus ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetKeyFocus(_ptr, unBrowserHandle, bHasKeyFocus); - } - public virtual void /*void*/ ISteamHTMLSurface_ViewSource( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_ViewSource(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_CopyToClipboard( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_CopyToClipboard(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_PasteFromClipboard( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_PasteFromClipboard(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_Find( uint unBrowserHandle, string /*const char **/ pchSearchStr, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bCurrentlyInFind, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReverse ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_Find(_ptr, unBrowserHandle, pchSearchStr, bCurrentlyInFind, bReverse); - } - public virtual void /*void*/ ISteamHTMLSurface_StopFind( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_StopFind(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_GetLinkAtPosition( uint unBrowserHandle, int /*int*/ x, int /*int*/ y ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_GetLinkAtPosition(_ptr, unBrowserHandle, x, y); - } - public virtual void /*void*/ ISteamHTMLSurface_SetCookie( string /*const char **/ pchHostname, string /*const char **/ pchKey, string /*const char **/ pchValue, string /*const char **/ pchPath, uint nExpires, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHTTPOnly ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetCookie(_ptr, pchHostname, pchKey, pchValue, pchPath, nExpires, bSecure, bHTTPOnly); - } - public virtual void /*void*/ ISteamHTMLSurface_SetPageScaleFactor( uint unBrowserHandle, float /*float*/ flZoom, int /*int*/ nPointX, int /*int*/ nPointY ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetPageScaleFactor(_ptr, unBrowserHandle, flZoom, nPointX, nPointY); - } - public virtual void /*void*/ ISteamHTMLSurface_SetBackgroundMode( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bBackgroundMode ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetBackgroundMode(_ptr, unBrowserHandle, bBackgroundMode); - } - public virtual void /*void*/ ISteamHTMLSurface_SetDPIScalingFactor( uint unBrowserHandle, float /*float*/ flDPIScaling ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor(_ptr, unBrowserHandle, flDPIScaling); - } - public virtual void /*void*/ ISteamHTMLSurface_OpenDeveloperTools( uint unBrowserHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_OpenDeveloperTools(_ptr, unBrowserHandle); - } - public virtual void /*void*/ ISteamHTMLSurface_AllowStartRequest( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowed ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_AllowStartRequest(_ptr, unBrowserHandle, bAllowed); - } - public virtual void /*void*/ ISteamHTMLSurface_JSDialogResponse( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bResult ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" ); - - Native.SteamAPI_ISteamHTMLSurface_JSDialogResponse(_ptr, unBrowserHandle, bResult); - } - - public virtual Result /*EResult*/ ISteamInventory_GetResultStatus( int resultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetResultStatus(_ptr, resultHandle); - } - public virtual bool /*bool*/ ISteamInventory_GetResultItems( int resultHandle, IntPtr /*struct SteamItemDetails_t **/ pOutItemsArray, out uint /*uint32 **/ punOutItemsArraySize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetResultItems(_ptr, resultHandle, pOutItemsArray, out punOutItemsArraySize); - } - public virtual bool /*bool*/ ISteamInventory_GetResultItemProperty( int resultHandle, uint /*uint32*/ unItemIndex, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetResultItemProperty(_ptr, resultHandle, unItemIndex, pchPropertyName, pchValueBuffer, out punValueBufferSizeOut); - } - public virtual uint /*uint32*/ ISteamInventory_GetResultTimestamp( int resultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetResultTimestamp(_ptr, resultHandle); - } - public virtual bool /*bool*/ ISteamInventory_CheckResultSteamID( int resultHandle, ulong steamIDExpected ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_CheckResultSteamID(_ptr, resultHandle, steamIDExpected); - } - public virtual void /*void*/ ISteamInventory_DestroyResult( int resultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - Native.SteamAPI_ISteamInventory_DestroyResult(_ptr, resultHandle); - } - public virtual bool /*bool*/ ISteamInventory_GetAllItems( ref int pResultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetAllItems(_ptr, ref pResultHandle); - } - public virtual bool /*bool*/ ISteamInventory_GetItemsByID( ref int pResultHandle, ulong[] pInstanceIDs, uint /*uint32*/ unCountInstanceIDs ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemsByID(_ptr, ref pResultHandle, pInstanceIDs, unCountInstanceIDs); - } - public virtual bool /*bool*/ ISteamInventory_SerializeResult( int resultHandle, IntPtr /*void **/ pOutBuffer, out uint /*uint32 **/ punOutBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SerializeResult(_ptr, resultHandle, pOutBuffer, out punOutBufferSize); - } - public virtual bool /*bool*/ ISteamInventory_DeserializeResult( ref int pOutResultHandle, IntPtr /*const void **/ pBuffer, uint /*uint32*/ unBufferSize, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRESERVED_MUST_BE_FALSE ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_DeserializeResult(_ptr, ref pOutResultHandle, pBuffer, unBufferSize, bRESERVED_MUST_BE_FALSE); - } - public virtual bool /*bool*/ ISteamInventory_GenerateItems( ref int pResultHandle, int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GenerateItems(_ptr, ref pResultHandle, pArrayItemDefs, punArrayQuantity, unArrayLength); - } - public virtual bool /*bool*/ ISteamInventory_GrantPromoItems( ref int pResultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GrantPromoItems(_ptr, ref pResultHandle); - } - public virtual bool /*bool*/ ISteamInventory_AddPromoItem( ref int pResultHandle, int itemDef ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_AddPromoItem(_ptr, ref pResultHandle, itemDef); - } - public virtual bool /*bool*/ ISteamInventory_AddPromoItems( ref int pResultHandle, int[] pArrayItemDefs, uint /*uint32*/ unArrayLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_AddPromoItems(_ptr, ref pResultHandle, pArrayItemDefs, unArrayLength); - } - public virtual bool /*bool*/ ISteamInventory_ConsumeItem( ref int pResultHandle, ulong itemConsume, uint /*uint32*/ unQuantity ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_ConsumeItem(_ptr, ref pResultHandle, itemConsume, unQuantity); - } - public virtual bool /*bool*/ ISteamInventory_ExchangeItems( ref int pResultHandle, int[] pArrayGenerate, uint[] /*const uint32 **/ punArrayGenerateQuantity, uint /*uint32*/ unArrayGenerateLength, ulong[] pArrayDestroy, uint[] /*const uint32 **/ punArrayDestroyQuantity, uint /*uint32*/ unArrayDestroyLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_ExchangeItems(_ptr, ref pResultHandle, pArrayGenerate, punArrayGenerateQuantity, unArrayGenerateLength, pArrayDestroy, punArrayDestroyQuantity, unArrayDestroyLength); - } - public virtual bool /*bool*/ ISteamInventory_TransferItemQuantity( ref int pResultHandle, ulong itemIdSource, uint /*uint32*/ unQuantity, ulong itemIdDest ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_TransferItemQuantity(_ptr, ref pResultHandle, itemIdSource, unQuantity, itemIdDest); - } - public virtual void /*void*/ ISteamInventory_SendItemDropHeartbeat() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - Native.SteamAPI_ISteamInventory_SendItemDropHeartbeat(_ptr); - } - public virtual bool /*bool*/ ISteamInventory_TriggerItemDrop( ref int pResultHandle, int dropListDefinition ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_TriggerItemDrop(_ptr, ref pResultHandle, dropListDefinition); - } - public virtual bool /*bool*/ ISteamInventory_TradeItems( ref int pResultHandle, ulong steamIDTradePartner, ulong[] pArrayGive, uint[] /*const uint32 **/ pArrayGiveQuantity, uint /*uint32*/ nArrayGiveLength, ulong[] pArrayGet, uint[] /*const uint32 **/ pArrayGetQuantity, uint /*uint32*/ nArrayGetLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_TradeItems(_ptr, ref pResultHandle, steamIDTradePartner, pArrayGive, pArrayGiveQuantity, nArrayGiveLength, pArrayGet, pArrayGetQuantity, nArrayGetLength); - } - public virtual bool /*bool*/ ISteamInventory_LoadItemDefinitions() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_LoadItemDefinitions(_ptr); - } - public virtual bool /*bool*/ ISteamInventory_GetItemDefinitionIDs( IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemDefinitionIDs(_ptr, pItemDefIDs, out punItemDefIDsArraySize); - } - public virtual bool /*bool*/ ISteamInventory_GetItemDefinitionProperty( int iDefinition, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemDefinitionProperty(_ptr, iDefinition, pchPropertyName, pchValueBuffer, out punValueBufferSizeOut); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamInventory_RequestEligiblePromoItemDefinitionsIDs( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs(_ptr, steamID); - } - public virtual bool /*bool*/ ISteamInventory_GetEligiblePromoItemDefinitionIDs( ulong steamID, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs(_ptr, steamID, pItemDefIDs, out punItemDefIDsArraySize); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamInventory_StartPurchase( int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_StartPurchase(_ptr, pArrayItemDefs, punArrayQuantity, unArrayLength); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamInventory_RequestPrices() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_RequestPrices(_ptr); - } - public virtual uint /*uint32*/ ISteamInventory_GetNumItemsWithPrices() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetNumItemsWithPrices(_ptr); - } - public virtual bool /*bool*/ ISteamInventory_GetItemsWithPrices( IntPtr /*SteamItemDef_t **/ pArrayItemDefs, IntPtr /*uint64 **/ pCurrentPrices, IntPtr /*uint64 **/ pBasePrices, uint /*uint32*/ unArrayLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemsWithPrices(_ptr, pArrayItemDefs, pCurrentPrices, pBasePrices, unArrayLength); - } - public virtual bool /*bool*/ ISteamInventory_GetItemPrice( int iDefinition, out ulong /*uint64 **/ pCurrentPrice, out ulong /*uint64 **/ pBasePrice ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_GetItemPrice(_ptr, iDefinition, out pCurrentPrice, out pBasePrice); - } - public virtual SteamInventoryUpdateHandle_t /*(SteamInventoryUpdateHandle_t)*/ ISteamInventory_StartUpdateProperties() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_StartUpdateProperties(_ptr); - } - public virtual bool /*bool*/ ISteamInventory_RemoveProperty( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_RemoveProperty(_ptr, handle, nItemID, pchPropertyName); - } - public virtual bool /*bool*/ ISteamInventory_SetProperty( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, string /*const char **/ pchPropertyValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SetProperty(_ptr, handle, nItemID, pchPropertyName, pchPropertyValue); - } - public virtual bool /*bool*/ ISteamInventory_SetProperty0( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SetProperty0(_ptr, handle, nItemID, pchPropertyName, bValue); - } - public virtual bool /*bool*/ ISteamInventory_SetProperty0( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, long /*int64*/ nValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SetProperty0(_ptr, handle, nItemID, pchPropertyName, nValue); - } - public virtual bool /*bool*/ ISteamInventory_SetProperty0( ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, float /*float*/ flValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SetProperty0(_ptr, handle, nItemID, pchPropertyName, flValue); - } - public virtual bool /*bool*/ ISteamInventory_SubmitUpdateProperties( ulong handle, ref int pResultHandle ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" ); - - return Native.SteamAPI_ISteamInventory_SubmitUpdateProperties(_ptr, handle, ref pResultHandle); - } - - public virtual void /*void*/ ISteamVideo_GetVideoURL( uint unVideoAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" ); - - Native.SteamAPI_ISteamVideo_GetVideoURL(_ptr, unVideoAppID); - } - public virtual bool /*bool*/ ISteamVideo_IsBroadcasting( IntPtr /*int **/ pnNumViewers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" ); - - return Native.SteamAPI_ISteamVideo_IsBroadcasting(_ptr, pnNumViewers); - } - public virtual void /*void*/ ISteamVideo_GetOPFSettings( uint unVideoAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" ); - - Native.SteamAPI_ISteamVideo_GetOPFSettings(_ptr, unVideoAppID); - } - public virtual bool /*bool*/ ISteamVideo_GetOPFStringForApp( uint unVideoAppID, System.Text.StringBuilder /*char **/ pchBuffer, out int /*int32 **/ pnBufferSize ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" ); - - return Native.SteamAPI_ISteamVideo_GetOPFStringForApp(_ptr, unVideoAppID, pchBuffer, out pnBufferSize); - } - - public virtual bool /*bool*/ ISteamParentalSettings_BIsParentalLockEnabled() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled(_ptr); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsParentalLockLocked() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsParentalLockLocked(_ptr); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsAppBlocked( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsAppBlocked(_ptr, nAppID); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsAppInBlockList( uint nAppID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsAppInBlockList(_ptr, nAppID); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsFeatureBlocked( ParentalFeature /*EParentalFeature*/ eFeature ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsFeatureBlocked(_ptr, eFeature); - } - public virtual bool /*bool*/ ISteamParentalSettings_BIsFeatureInBlockList( ParentalFeature /*EParentalFeature*/ eFeature ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamParentalSettings _ptr is null!" ); - - return Native.SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList(_ptr, eFeature); - } - - public virtual bool /*bool*/ ISteamGameServer_InitGameServer( uint /*uint32*/ unIP, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, uint /*uint32*/ unFlags, uint nGameAppId, string /*const char **/ pchVersionString ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_InitGameServer(_ptr, unIP, usGamePort, usQueryPort, unFlags, nGameAppId, pchVersionString); - } - public virtual void /*void*/ ISteamGameServer_SetProduct( string /*const char **/ pszProduct ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetProduct(_ptr, pszProduct); - } - public virtual void /*void*/ ISteamGameServer_SetGameDescription( string /*const char **/ pszGameDescription ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetGameDescription(_ptr, pszGameDescription); - } - public virtual void /*void*/ ISteamGameServer_SetModDir( string /*const char **/ pszModDir ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetModDir(_ptr, pszModDir); - } - public virtual void /*void*/ ISteamGameServer_SetDedicatedServer( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bDedicated ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetDedicatedServer(_ptr, bDedicated); - } - public virtual void /*void*/ ISteamGameServer_LogOn( string /*const char **/ pszToken ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_LogOn(_ptr, pszToken); - } - public virtual void /*void*/ ISteamGameServer_LogOnAnonymous() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_LogOnAnonymous(_ptr); - } - public virtual void /*void*/ ISteamGameServer_LogOff() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_LogOff(_ptr); - } - public virtual bool /*bool*/ ISteamGameServer_BLoggedOn() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_BLoggedOn(_ptr); - } - public virtual bool /*bool*/ ISteamGameServer_BSecure() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_BSecure(_ptr); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamGameServer_GetSteamID() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetSteamID(_ptr); - } - public virtual bool /*bool*/ ISteamGameServer_WasRestartRequested() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_WasRestartRequested(_ptr); - } - public virtual void /*void*/ ISteamGameServer_SetMaxPlayerCount( int /*int*/ cPlayersMax ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetMaxPlayerCount(_ptr, cPlayersMax); - } - public virtual void /*void*/ ISteamGameServer_SetBotPlayerCount( int /*int*/ cBotplayers ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetBotPlayerCount(_ptr, cBotplayers); - } - public virtual void /*void*/ ISteamGameServer_SetServerName( string /*const char **/ pszServerName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetServerName(_ptr, pszServerName); - } - public virtual void /*void*/ ISteamGameServer_SetMapName( string /*const char **/ pszMapName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetMapName(_ptr, pszMapName); - } - public virtual void /*void*/ ISteamGameServer_SetPasswordProtected( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bPasswordProtected ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetPasswordProtected(_ptr, bPasswordProtected); - } - public virtual void /*void*/ ISteamGameServer_SetSpectatorPort( ushort /*uint16*/ unSpectatorPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetSpectatorPort(_ptr, unSpectatorPort); - } - public virtual void /*void*/ ISteamGameServer_SetSpectatorServerName( string /*const char **/ pszSpectatorServerName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetSpectatorServerName(_ptr, pszSpectatorServerName); - } - public virtual void /*void*/ ISteamGameServer_ClearAllKeyValues() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_ClearAllKeyValues(_ptr); - } - public virtual void /*void*/ ISteamGameServer_SetKeyValue( string /*const char **/ pKey, string /*const char **/ pValue ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetKeyValue(_ptr, pKey, pValue); - } - public virtual void /*void*/ ISteamGameServer_SetGameTags( string /*const char **/ pchGameTags ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetGameTags(_ptr, pchGameTags); - } - public virtual void /*void*/ ISteamGameServer_SetGameData( string /*const char **/ pchGameData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetGameData(_ptr, pchGameData); - } - public virtual void /*void*/ ISteamGameServer_SetRegion( string /*const char **/ pszRegion ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetRegion(_ptr, pszRegion); - } - public virtual bool /*bool*/ ISteamGameServer_SendUserConnectAndAuthenticate( uint /*uint32*/ unIPClient, IntPtr /*const void **/ pvAuthBlob, uint /*uint32*/ cubAuthBlobSize, out ulong pSteamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate(_ptr, unIPClient, pvAuthBlob, cubAuthBlobSize, out pSteamIDUser); - } - public virtual CSteamID /*(class CSteamID)*/ ISteamGameServer_CreateUnauthenticatedUserConnection() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection(_ptr); - } - public virtual void /*void*/ ISteamGameServer_SendUserDisconnect( ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SendUserDisconnect(_ptr, steamIDUser); - } - public virtual bool /*bool*/ ISteamGameServer_BUpdateUserData( ulong steamIDUser, string /*const char **/ pchPlayerName, uint /*uint32*/ uScore ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_BUpdateUserData(_ptr, steamIDUser, pchPlayerName, uScore); - } - public virtual HAuthTicket /*(HAuthTicket)*/ ISteamGameServer_GetAuthSessionTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetAuthSessionTicket(_ptr, pTicket, cbMaxTicket, out pcbTicket); - } - public virtual BeginAuthSessionResult /*EBeginAuthSessionResult*/ ISteamGameServer_BeginAuthSession( IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_BeginAuthSession(_ptr, pAuthTicket, cbAuthTicket, steamID); - } - public virtual void /*void*/ ISteamGameServer_EndAuthSession( ulong steamID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_EndAuthSession(_ptr, steamID); - } - public virtual void /*void*/ ISteamGameServer_CancelAuthTicket( uint hAuthTicket ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_CancelAuthTicket(_ptr, hAuthTicket); - } - public virtual UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ ISteamGameServer_UserHasLicenseForApp( ulong steamID, uint appID ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_UserHasLicenseForApp(_ptr, steamID, appID); - } - public virtual bool /*bool*/ ISteamGameServer_RequestUserGroupStatus( ulong steamIDUser, ulong steamIDGroup ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_RequestUserGroupStatus(_ptr, steamIDUser, steamIDGroup); - } - public virtual void /*void*/ ISteamGameServer_GetGameplayStats() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_GetGameplayStats(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_GetServerReputation() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetServerReputation(_ptr); - } - public virtual uint /*uint32*/ ISteamGameServer_GetPublicIP() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetPublicIP(_ptr); - } - public virtual bool /*bool*/ ISteamGameServer_HandleIncomingPacket( IntPtr /*const void **/ pData, int /*int*/ cbData, uint /*uint32*/ srcIP, ushort /*uint16*/ srcPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_HandleIncomingPacket(_ptr, pData, cbData, srcIP, srcPort); - } - public virtual int /*int*/ ISteamGameServer_GetNextOutgoingPacket( IntPtr /*void **/ pOut, int /*int*/ cbMaxOut, out uint /*uint32 **/ pNetAdr, out ushort /*uint16 **/ pPort ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_GetNextOutgoingPacket(_ptr, pOut, cbMaxOut, out pNetAdr, out pPort); - } - public virtual void /*void*/ ISteamGameServer_EnableHeartbeats( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bActive ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_EnableHeartbeats(_ptr, bActive); - } - public virtual void /*void*/ ISteamGameServer_SetHeartbeatInterval( int /*int*/ iHeartbeatInterval ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_SetHeartbeatInterval(_ptr, iHeartbeatInterval); - } - public virtual void /*void*/ ISteamGameServer_ForceHeartbeat() - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - Native.SteamAPI_ISteamGameServer_ForceHeartbeat(_ptr); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_AssociateWithClan( ulong steamIDClan ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_AssociateWithClan(_ptr, steamIDClan); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_ComputeNewPlayerCompatibility( ulong steamIDNewPlayer ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility(_ptr, steamIDNewPlayer); - } - - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServerStats_RequestUserStats( ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_RequestUserStats(_ptr, steamIDUser); - } - public virtual bool /*bool*/ ISteamGameServerStats_GetUserStat( ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_GetUserStat(_ptr, steamIDUser, pchName, out pData); - } - public virtual bool /*bool*/ ISteamGameServerStats_GetUserStat0( ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_GetUserStat0(_ptr, steamIDUser, pchName, out pData); - } - public virtual bool /*bool*/ ISteamGameServerStats_GetUserAchievement( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); - } - public virtual bool /*bool*/ ISteamGameServerStats_SetUserStat( ulong steamIDUser, string /*const char **/ pchName, int /*int32*/ nData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_SetUserStat(_ptr, steamIDUser, pchName, nData); - } - public virtual bool /*bool*/ ISteamGameServerStats_SetUserStat0( ulong steamIDUser, string /*const char **/ pchName, float /*float*/ fData ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_SetUserStat0(_ptr, steamIDUser, pchName, fData); - } - public virtual bool /*bool*/ ISteamGameServerStats_UpdateUserAvgRateStat( ulong steamIDUser, string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat(_ptr, steamIDUser, pchName, flCountThisSession, dSessionLength); - } - public virtual bool /*bool*/ ISteamGameServerStats_SetUserAchievement( ulong steamIDUser, string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_SetUserAchievement(_ptr, steamIDUser, pchName); - } - public virtual bool /*bool*/ ISteamGameServerStats_ClearUserAchievement( ulong steamIDUser, string /*const char **/ pchName ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_ClearUserAchievement(_ptr, steamIDUser, pchName); - } - public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServerStats_StoreUserStats( ulong steamIDUser ) - { - if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - - return Native.SteamAPI_ISteamGameServerStats_StoreUserStats(_ptr, steamIDUser); - } - - public virtual bool /*bool*/ SteamApi_SteamAPI_Init() - { - return Native.SteamAPI_Init(); - } - public virtual void /*void*/ SteamApi_SteamAPI_RunCallbacks() - { - Native.SteamAPI_RunCallbacks(); - } - public virtual void /*void*/ SteamApi_SteamGameServer_RunCallbacks() - { - Native.SteamGameServer_RunCallbacks(); - } - public virtual void /*void*/ SteamApi_SteamAPI_RegisterCallback( IntPtr /*void **/ pCallback, int /*int*/ callback ) - { - Native.SteamAPI_RegisterCallback(pCallback, callback); - } - public virtual void /*void*/ SteamApi_SteamAPI_UnregisterCallback( IntPtr /*void **/ pCallback ) - { - Native.SteamAPI_UnregisterCallback(pCallback); - } - public virtual void /*void*/ SteamApi_SteamAPI_RegisterCallResult( IntPtr /*void **/ pCallback, ulong callback ) - { - Native.SteamAPI_RegisterCallResult(pCallback, callback); - } - public virtual void /*void*/ SteamApi_SteamAPI_UnregisterCallResult( IntPtr /*void **/ pCallback, ulong callback ) - { - Native.SteamAPI_UnregisterCallResult(pCallback, callback); - } - public virtual bool /*bool*/ SteamApi_SteamInternal_GameServer_Init( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, int /*int*/ eServerMode, string /*const char **/ pchVersionString ) - { - return Native.SteamInternal_GameServer_Init(unIP, usPort, usGamePort, usQueryPort, eServerMode, pchVersionString); - } - public virtual void /*void*/ SteamApi_SteamAPI_Shutdown() - { - Native.SteamAPI_Shutdown(); - } - public virtual void /*void*/ SteamApi_SteamGameServer_Shutdown() - { - Native.SteamGameServer_Shutdown(); - } - public virtual HSteamUser /*(HSteamUser)*/ SteamApi_SteamAPI_GetHSteamUser() - { - return Native.SteamAPI_GetHSteamUser(); - } - public virtual HSteamPipe /*(HSteamPipe)*/ SteamApi_SteamAPI_GetHSteamPipe() - { - return Native.SteamAPI_GetHSteamPipe(); - } - public virtual HSteamUser /*(HSteamUser)*/ SteamApi_SteamGameServer_GetHSteamUser() - { - return Native.SteamGameServer_GetHSteamUser(); - } - public virtual HSteamPipe /*(HSteamPipe)*/ SteamApi_SteamGameServer_GetHSteamPipe() - { - return Native.SteamGameServer_GetHSteamPipe(); - } - public virtual IntPtr /*void **/ SteamApi_SteamInternal_CreateInterface( string /*const char **/ version ) - { - return Native.SteamInternal_CreateInterface(version); - } - public virtual bool /*bool*/ SteamApi_SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID ) - { - return Native.SteamAPI_RestartAppIfNecessary(unOwnAppID); - } - - internal static unsafe class Native - { - // - // ISteamClient - // - [DllImport( "steam_api64.dll" )] - internal static extern HSteamPipe /*(HSteamPipe)*/ SteamAPI_ISteamClient_CreateSteamPipe( IntPtr ISteamClient ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamClient_BReleaseSteamPipe( IntPtr ISteamClient, int hSteamPipe ); - [DllImport( "steam_api64.dll" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_ISteamClient_ConnectToGlobalUser( IntPtr ISteamClient, int hSteamPipe ); - [DllImport( "steam_api64.dll" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_ISteamClient_CreateLocalUser( IntPtr ISteamClient, out int phSteamPipe, AccountType /*EAccountType*/ eAccountType ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamClient_ReleaseUser( IntPtr ISteamClient, int hSteamPipe, int hUser ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamUser **/ SteamAPI_ISteamClient_GetISteamUser( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamGameServer **/ SteamAPI_ISteamClient_GetISteamGameServer( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamClient_SetLocalIPBinding( IntPtr ISteamClient, uint /*uint32*/ unIP, ushort /*uint16*/ usPort ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamFriends **/ SteamAPI_ISteamClient_GetISteamFriends( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamUtils **/ SteamAPI_ISteamClient_GetISteamUtils( IntPtr ISteamClient, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamMatchmaking **/ SteamAPI_ISteamClient_GetISteamMatchmaking( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamMatchmakingServers **/ SteamAPI_ISteamClient_GetISteamMatchmakingServers( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*void **/ SteamAPI_ISteamClient_GetISteamGenericInterface( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamUserStats **/ SteamAPI_ISteamClient_GetISteamUserStats( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamGameServerStats **/ SteamAPI_ISteamClient_GetISteamGameServerStats( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamApps **/ SteamAPI_ISteamClient_GetISteamApps( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamNetworking **/ SteamAPI_ISteamClient_GetISteamNetworking( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamRemoteStorage **/ SteamAPI_ISteamClient_GetISteamRemoteStorage( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamScreenshots **/ SteamAPI_ISteamClient_GetISteamScreenshots( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamGameSearch **/ SteamAPI_ISteamClient_GetISteamGameSearch( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamClient_GetIPCCallCount( IntPtr ISteamClient ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamClient_SetWarningMessageHook( IntPtr ISteamClient, IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamClient_BShutdownIfAllPipesClosed( IntPtr ISteamClient ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamHTTP **/ SteamAPI_ISteamClient_GetISteamHTTP( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamController **/ SteamAPI_ISteamClient_GetISteamController( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamUGC **/ SteamAPI_ISteamClient_GetISteamUGC( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamAppList **/ SteamAPI_ISteamClient_GetISteamAppList( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamMusic **/ SteamAPI_ISteamClient_GetISteamMusic( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamMusicRemote **/ SteamAPI_ISteamClient_GetISteamMusicRemote( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamHTMLSurface **/ SteamAPI_ISteamClient_GetISteamHTMLSurface( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamInventory **/ SteamAPI_ISteamClient_GetISteamInventory( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamVideo **/ SteamAPI_ISteamClient_GetISteamVideo( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamParentalSettings **/ SteamAPI_ISteamClient_GetISteamParentalSettings( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamInput **/ SteamAPI_ISteamClient_GetISteamInput( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class ISteamParties **/ SteamAPI_ISteamClient_GetISteamParties( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion ); - - // - // ISteamUser - // - [DllImport( "steam_api64.dll" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_ISteamUser_GetHSteamUser( IntPtr ISteamUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BLoggedOn( IntPtr ISteamUser ); - [DllImport( "steam_api64.dll" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamUser_GetSteamID( IntPtr ISteamUser ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamUser_InitiateGameConnection( IntPtr ISteamUser, IntPtr /*void **/ pAuthBlob, int /*int*/ cbMaxAuthBlob, ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_TerminateGameConnection( IntPtr ISteamUser, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_TrackAppUsageEvent( IntPtr ISteamUser, ulong gameID, int /*int*/ eAppUsageEvent, string /*const char **/ pchExtraInfo ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_GetUserDataFolder( IntPtr ISteamUser, System.Text.StringBuilder /*char **/ pchBuffer, int /*int*/ cubBuffer ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_StartVoiceRecording( IntPtr ISteamUser ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_StopVoiceRecording( IntPtr ISteamUser ); - [DllImport( "steam_api64.dll" )] - internal static extern VoiceResult /*EVoiceResult*/ SteamAPI_ISteamUser_GetAvailableVoice( IntPtr ISteamUser, out uint /*uint32 **/ pcbCompressed, out uint /*uint32 **/ pcbUncompressed_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated ); - [DllImport( "steam_api64.dll" )] - internal static extern VoiceResult /*EVoiceResult*/ SteamAPI_ISteamUser_GetVoice( IntPtr ISteamUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantUncompressed_Deprecated, IntPtr /*void **/ pUncompressedDestBuffer_Deprecated, uint /*uint32*/ cbUncompressedDestBufferSize_Deprecated, out uint /*uint32 **/ nUncompressBytesWritten_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated ); - [DllImport( "steam_api64.dll" )] - internal static extern VoiceResult /*EVoiceResult*/ SteamAPI_ISteamUser_DecompressVoice( IntPtr ISteamUser, IntPtr /*const void **/ pCompressed, uint /*uint32*/ cbCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, uint /*uint32*/ nDesiredSampleRate ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUser_GetVoiceOptimalSampleRate( IntPtr ISteamUser ); - [DllImport( "steam_api64.dll" )] - internal static extern HAuthTicket /*(HAuthTicket)*/ SteamAPI_ISteamUser_GetAuthSessionTicket( IntPtr ISteamUser, IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ); - [DllImport( "steam_api64.dll" )] - internal static extern BeginAuthSessionResult /*EBeginAuthSessionResult*/ SteamAPI_ISteamUser_BeginAuthSession( IntPtr ISteamUser, IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_EndAuthSession( IntPtr ISteamUser, ulong steamID ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_CancelAuthTicket( IntPtr ISteamUser, uint hAuthTicket ); - [DllImport( "steam_api64.dll" )] - internal static extern UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ SteamAPI_ISteamUser_UserHasLicenseForApp( IntPtr ISteamUser, ulong steamID, uint appID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsBehindNAT( IntPtr ISteamUser ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamUser_AdvertiseGame( IntPtr ISteamUser, ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUser_RequestEncryptedAppTicket( IntPtr ISteamUser, IntPtr /*void **/ pDataToInclude, int /*int*/ cbDataToInclude ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_GetEncryptedAppTicket( IntPtr ISteamUser, IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamUser_GetGameBadgeLevel( IntPtr ISteamUser, int /*int*/ nSeries, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bFoil ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamUser_GetPlayerSteamLevel( IntPtr ISteamUser ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUser_RequestStoreAuthURL( IntPtr ISteamUser, string /*const char **/ pchRedirectURL ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsPhoneVerified( IntPtr ISteamUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsTwoFactorEnabled( IntPtr ISteamUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsPhoneIdentifying( IntPtr ISteamUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsPhoneRequiringVerification( IntPtr ISteamUser ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUser_GetMarketEligibility( IntPtr ISteamUser ); - - // - // ISteamFriends - // - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetPersonaName( IntPtr ISteamFriends ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_SetPersonaName( IntPtr ISteamFriends, string /*const char **/ pchPersonaName ); - [DllImport( "steam_api64.dll" )] - internal static extern PersonaState /*EPersonaState*/ SteamAPI_ISteamFriends_GetPersonaState( IntPtr ISteamFriends ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendCount( IntPtr ISteamFriends, int /*int*/ iFriendFlags ); - [DllImport( "steam_api64.dll" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetFriendByIndex( IntPtr ISteamFriends, int /*int*/ iFriend, int /*int*/ iFriendFlags ); - [DllImport( "steam_api64.dll" )] - internal static extern FriendRelationship /*EFriendRelationship*/ SteamAPI_ISteamFriends_GetFriendRelationship( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "steam_api64.dll" )] - internal static extern PersonaState /*EPersonaState*/ SteamAPI_ISteamFriends_GetFriendPersonaState( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendPersonaName( IntPtr ISteamFriends, ulong steamIDFriend ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_GetFriendGamePlayed( IntPtr ISteamFriends, ulong steamIDFriend, ref FriendGameInfo_t.Pack8 /*struct FriendGameInfo_t **/ pFriendGameInfo ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendPersonaNameHistory( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iPersonaName ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendSteamLevel( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetPlayerNickname( IntPtr ISteamFriends, ulong steamIDPlayer ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendsGroupCount( IntPtr ISteamFriends ); - [DllImport( "steam_api64.dll" )] - internal static extern FriendsGroupID_t /*(FriendsGroupID_t)*/ SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex( IntPtr ISteamFriends, int /*int*/ iFG ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendsGroupName( IntPtr ISteamFriends, short friendsGroupID ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendsGroupMembersCount( IntPtr ISteamFriends, short friendsGroupID ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_GetFriendsGroupMembersList( IntPtr ISteamFriends, short friendsGroupID, IntPtr /*class CSteamID **/ pOutSteamIDMembers, int /*int*/ nMembersCount ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_HasFriend( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iFriendFlags ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanCount( IntPtr ISteamFriends ); - [DllImport( "steam_api64.dll" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetClanByIndex( IntPtr ISteamFriends, int /*int*/ iClan ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetClanName( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetClanTag( IntPtr ISteamFriends, ulong steamIDClan ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_GetClanActivityCounts( IntPtr ISteamFriends, ulong steamIDClan, out int /*int **/ pnOnline, out int /*int **/ pnInGame, out int /*int **/ pnChatting ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_DownloadClanActivityCounts( IntPtr ISteamFriends, IntPtr /*class CSteamID **/ psteamIDClans, int /*int*/ cClansToRequest ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendCountFromSource( IntPtr ISteamFriends, ulong steamIDSource ); - [DllImport( "steam_api64.dll" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetFriendFromSourceByIndex( IntPtr ISteamFriends, ulong steamIDSource, int /*int*/ iFriend ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsUserInSource( IntPtr ISteamFriends, ulong steamIDUser, ulong steamIDSource ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_SetInGameVoiceSpeaking( IntPtr ISteamFriends, ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSpeaking ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlay( IntPtr ISteamFriends, string /*const char **/ pchDialog ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayToUser( IntPtr ISteamFriends, string /*const char **/ pchDialog, ulong steamID ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage( IntPtr ISteamFriends, string /*const char **/ pchURL, ActivateGameOverlayToWebPageMode /*EActivateGameOverlayToWebPageMode*/ eMode ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayToStore( IntPtr ISteamFriends, uint nAppID, OverlayToStoreFlag /*EOverlayToStoreFlag*/ eFlag ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_SetPlayedWith( IntPtr ISteamFriends, ulong steamIDUserPlayedWith ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog( IntPtr ISteamFriends, ulong steamIDLobby ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetSmallFriendAvatar( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetMediumFriendAvatar( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetLargeFriendAvatar( IntPtr ISteamFriends, ulong steamIDFriend ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_RequestUserInformation( IntPtr ISteamFriends, ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireNameOnly ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_RequestClanOfficerList( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "steam_api64.dll" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetClanOwner( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanOfficerCount( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "steam_api64.dll" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetClanOfficerByIndex( IntPtr ISteamFriends, ulong steamIDClan, int /*int*/ iOfficer ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamFriends_GetUserRestrictions( IntPtr ISteamFriends ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_SetRichPresence( IntPtr ISteamFriends, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_ClearRichPresence( IntPtr ISteamFriends ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendRichPresence( IntPtr ISteamFriends, ulong steamIDFriend, string /*const char **/ pchKey ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iKey ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamFriends_RequestFriendRichPresence( IntPtr ISteamFriends, ulong steamIDFriend ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_InviteUserToGame( IntPtr ISteamFriends, ulong steamIDFriend, string /*const char **/ pchConnectString ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetCoplayFriendCount( IntPtr ISteamFriends ); - [DllImport( "steam_api64.dll" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetCoplayFriend( IntPtr ISteamFriends, int /*int*/ iCoplayFriend ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendCoplayTime( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "steam_api64.dll" )] - internal static extern AppId_t /*(AppId_t)*/ SteamAPI_ISteamFriends_GetFriendCoplayGame( IntPtr ISteamFriends, ulong steamIDFriend ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_JoinClanChatRoom( IntPtr ISteamFriends, ulong steamIDClan ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_LeaveClanChatRoom( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanChatMemberCount( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "steam_api64.dll" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetChatMemberByIndex( IntPtr ISteamFriends, ulong steamIDClan, int /*int*/ iUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_SendClanChatMessage( IntPtr ISteamFriends, ulong steamIDClanChat, string /*const char **/ pchText ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanChatMessage( IntPtr ISteamFriends, ulong steamIDClanChat, int /*int*/ iMessage, IntPtr /*void **/ prgchText, int /*int*/ cchTextMax, out ChatEntryType /*EChatEntryType **/ peChatEntryType, out ulong psteamidChatter ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsClanChatAdmin( IntPtr ISteamFriends, ulong steamIDClanChat, ulong steamIDUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam( IntPtr ISteamFriends, ulong steamIDClanChat ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_OpenClanChatWindowInSteam( IntPtr ISteamFriends, ulong steamIDClanChat ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_CloseClanChatWindowInSteam( IntPtr ISteamFriends, ulong steamIDClanChat ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_SetListenForFriendsMessages( IntPtr ISteamFriends, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bInterceptEnabled ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_ReplyToFriendMessage( IntPtr ISteamFriends, ulong steamIDFriend, string /*const char **/ pchMsgToSend ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendMessage( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iMessageID, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_GetFollowerCount( IntPtr ISteamFriends, ulong steamID ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_IsFollowing( IntPtr ISteamFriends, ulong steamID ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_EnumerateFollowingList( IntPtr ISteamFriends, uint /*uint32*/ unStartIndex ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsClanPublic( IntPtr ISteamFriends, ulong steamIDClan ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsClanOfficialGameGroup( IntPtr ISteamFriends, ulong steamIDClan ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamFriends_GetNumChatsWithUnreadPriorityMessages( IntPtr ISteamFriends ); - - // - // ISteamUtils - // - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetSecondsSinceAppActive( IntPtr ISteamUtils ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetSecondsSinceComputerActive( IntPtr ISteamUtils ); - [DllImport( "steam_api64.dll" )] - internal static extern Universe /*EUniverse*/ SteamAPI_ISteamUtils_GetConnectedUniverse( IntPtr ISteamUtils ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetServerRealTime( IntPtr ISteamUtils ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamUtils_GetIPCountry( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetImageSize( IntPtr ISteamUtils, int /*int*/ iImage, out uint /*uint32 **/ pnWidth, out uint /*uint32 **/ pnHeight ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetImageRGBA( IntPtr ISteamUtils, int /*int*/ iImage, IntPtr /*uint8 **/ pubDest, int /*int*/ nDestBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetCSERIPPort( IntPtr ISteamUtils, out uint /*uint32 **/ unIP, out ushort /*uint16 **/ usPort ); - [DllImport( "steam_api64.dll" )] - internal static extern byte /*uint8*/ SteamAPI_ISteamUtils_GetCurrentBatteryPower( IntPtr ISteamUtils ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetAppID( IntPtr ISteamUtils ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_SetOverlayNotificationPosition( IntPtr ISteamUtils, NotificationPosition /*ENotificationPosition*/ eNotificationPosition ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsAPICallCompleted( IntPtr ISteamUtils, ulong hSteamAPICall, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICallFailure /*ESteamAPICallFailure*/ SteamAPI_ISteamUtils_GetAPICallFailureReason( IntPtr ISteamUtils, ulong hSteamAPICall ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetAPICallResult( IntPtr ISteamUtils, ulong hSteamAPICall, IntPtr /*void **/ pCallback, int /*int*/ cubCallback, int /*int*/ iCallbackExpected, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetIPCCallCount( IntPtr ISteamUtils ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_SetWarningMessageHook( IntPtr ISteamUtils, IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsOverlayEnabled( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_BOverlayNeedsPresent( IntPtr ISteamUtils ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUtils_CheckFileSignature( IntPtr ISteamUtils, string /*const char **/ szFileName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_ShowGamepadTextInput( IntPtr ISteamUtils, GamepadTextInputMode /*EGamepadTextInputMode*/ eInputMode, GamepadTextInputLineMode /*EGamepadTextInputLineMode*/ eLineInputMode, string /*const char **/ pchDescription, uint /*uint32*/ unCharMax, string /*const char **/ pchExistingText ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetEnteredGamepadTextLength( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetEnteredGamepadTextInput( IntPtr ISteamUtils, System.Text.StringBuilder /*char **/ pchText, uint /*uint32*/ cchText ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamUtils_GetSteamUILanguage( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsSteamRunningInVR( IntPtr ISteamUtils ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_SetOverlayNotificationInset( IntPtr ISteamUtils, int /*int*/ nHorizontalInset, int /*int*/ nVerticalInset ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsSteamInBigPictureMode( IntPtr ISteamUtils ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_StartVRDashboard( IntPtr ISteamUtils ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsVRHeadsetStreamingEnabled( IntPtr ISteamUtils ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamUtils_SetVRHeadsetStreamingEnabled( IntPtr ISteamUtils, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled ); - - // - // ISteamMatchmaking - // - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetFavoriteGameCount( IntPtr ISteamMatchmaking ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_GetFavoriteGame( IntPtr ISteamMatchmaking, int /*int*/ iGame, ref uint pnAppID, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnConnPort, out ushort /*uint16 **/ pnQueryPort, out uint /*uint32 **/ punFlags, out uint /*uint32 **/ pRTime32LastPlayedOnServer ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_AddFavoriteGame( IntPtr ISteamMatchmaking, uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags, uint /*uint32*/ rTime32LastPlayedOnServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_RemoveFavoriteGame( IntPtr ISteamMatchmaking, uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamMatchmaking_RequestLobbyList( IntPtr ISteamMatchmaking ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter( IntPtr ISteamMatchmaking, string /*const char **/ pchKeyToMatch, string /*const char **/ pchValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter( IntPtr ISteamMatchmaking, string /*const char **/ pchKeyToMatch, int /*int*/ nValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter( IntPtr ISteamMatchmaking, string /*const char **/ pchKeyToMatch, int /*int*/ nValueToBeCloseTo ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable( IntPtr ISteamMatchmaking, int /*int*/ nSlotsAvailable ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter( IntPtr ISteamMatchmaking, LobbyDistanceFilter /*ELobbyDistanceFilter*/ eLobbyDistanceFilter ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter( IntPtr ISteamMatchmaking, int /*int*/ cMaxResults ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [DllImport( "steam_api64.dll" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamMatchmaking_GetLobbyByIndex( IntPtr ISteamMatchmaking, int /*int*/ iLobby ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamMatchmaking_CreateLobby( IntPtr ISteamMatchmaking, LobbyType /*ELobbyType*/ eLobbyType, int /*int*/ cMaxMembers ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamMatchmaking_JoinLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_LeaveLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_InviteUserToLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDInvitee ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetNumLobbyMembers( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [DllImport( "steam_api64.dll" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ iMember ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamMatchmaking_GetLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetLobbyDataCount( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ iLobbyData, System.Text.StringBuilder /*char **/ pchKey, int /*int*/ cchKeyBufferSize, System.Text.StringBuilder /*char **/ pchValue, int /*int*/ cchValueBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_DeleteLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamMatchmaking_GetLobbyMemberData( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDUser, string /*const char **/ pchKey ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_SetLobbyMemberData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SendLobbyChatMsg( IntPtr ISteamMatchmaking, ulong steamIDLobby, IntPtr /*const void **/ pvMsgBody, int /*int*/ cubMsgBody ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetLobbyChatEntry( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ iChatID, out ulong pSteamIDUser, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_RequestLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_SetLobbyGameServer( IntPtr ISteamMatchmaking, ulong steamIDLobby, uint /*uint32*/ unGameServerIP, ushort /*uint16*/ unGameServerPort, ulong steamIDGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_GetLobbyGameServer( IntPtr ISteamMatchmaking, ulong steamIDLobby, out uint /*uint32 **/ punGameServerIP, out ushort /*uint16 **/ punGameServerPort, out ulong psteamIDGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ cMaxMembers ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyType( IntPtr ISteamMatchmaking, ulong steamIDLobby, LobbyType /*ELobbyType*/ eLobbyType ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyJoinable( IntPtr ISteamMatchmaking, ulong steamIDLobby, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bLobbyJoinable ); - [DllImport( "steam_api64.dll" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamMatchmaking_GetLobbyOwner( IntPtr ISteamMatchmaking, ulong steamIDLobby ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyOwner( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDNewOwner ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLinkedLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDLobbyDependent ); - - // - // ISteamMatchmakingServers - // - [DllImport( "steam_api64.dll" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestInternetServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "steam_api64.dll" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestLANServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "steam_api64.dll" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "steam_api64.dll" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "steam_api64.dll" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "steam_api64.dll" )] - internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_ReleaseRequest( IntPtr ISteamMatchmakingServers, IntPtr hServerListRequest ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*class gameserveritem_t **/ SteamAPI_ISteamMatchmakingServers_GetServerDetails( IntPtr ISteamMatchmakingServers, IntPtr hRequest, int /*int*/ iServer ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_CancelQuery( IntPtr ISteamMatchmakingServers, IntPtr hRequest ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_RefreshQuery( IntPtr ISteamMatchmakingServers, IntPtr hRequest ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMatchmakingServers_IsRefreshing( IntPtr ISteamMatchmakingServers, IntPtr hRequest ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamMatchmakingServers_GetServerCount( IntPtr ISteamMatchmakingServers, IntPtr hRequest ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_RefreshServer( IntPtr ISteamMatchmakingServers, IntPtr hRequest, int /*int*/ iServer ); - [DllImport( "steam_api64.dll" )] - internal static extern HServerQuery /*(HServerQuery)*/ SteamAPI_ISteamMatchmakingServers_PingServer( IntPtr ISteamMatchmakingServers, uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPingResponse **/ pRequestServersResponse ); - [DllImport( "steam_api64.dll" )] - internal static extern HServerQuery /*(HServerQuery)*/ SteamAPI_ISteamMatchmakingServers_PlayerDetails( IntPtr ISteamMatchmakingServers, uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPlayersResponse **/ pRequestServersResponse ); - [DllImport( "steam_api64.dll" )] - internal static extern HServerQuery /*(HServerQuery)*/ SteamAPI_ISteamMatchmakingServers_ServerRules( IntPtr ISteamMatchmakingServers, uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingRulesResponse **/ pRequestServersResponse ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_CancelServerQuery( IntPtr ISteamMatchmakingServers, int hServerQuery ); - - // - // ISteamGameSearch - // - [DllImport( "steam_api64.dll" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_AddGameSearchParams( IntPtr ISteamGameSearch, string /*const char **/ pchKeyToFind, string /*const char **/ pchValuesToFind ); - [DllImport( "steam_api64.dll" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SearchForGameWithLobby( IntPtr ISteamGameSearch, ulong steamIDLobby, int /*int*/ nPlayerMin, int /*int*/ nPlayerMax ); - [DllImport( "steam_api64.dll" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SearchForGameSolo( IntPtr ISteamGameSearch, int /*int*/ nPlayerMin, int /*int*/ nPlayerMax ); - [DllImport( "steam_api64.dll" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_AcceptGame( IntPtr ISteamGameSearch ); - [DllImport( "steam_api64.dll" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_DeclineGame( IntPtr ISteamGameSearch ); - [DllImport( "steam_api64.dll" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_RetrieveConnectionDetails( IntPtr ISteamGameSearch, ulong steamIDHost, System.Text.StringBuilder /*char **/ pchConnectionDetails, int /*int*/ cubConnectionDetails ); - [DllImport( "steam_api64.dll" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_EndGameSearch( IntPtr ISteamGameSearch ); - [DllImport( "steam_api64.dll" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SetGameHostParams( IntPtr ISteamGameSearch, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [DllImport( "steam_api64.dll" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SetConnectionDetails( IntPtr ISteamGameSearch, string /*const char **/ pchConnectionDetails, int /*int*/ cubConnectionDetails ); - [DllImport( "steam_api64.dll" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_RequestPlayersForGame( IntPtr ISteamGameSearch, int /*int*/ nPlayerMin, int /*int*/ nPlayerMax, int /*int*/ nMaxTeamSize ); - [DllImport( "steam_api64.dll" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_HostConfirmGameStart( IntPtr ISteamGameSearch, ulong /*uint64*/ ullUniqueGameID ); - [DllImport( "steam_api64.dll" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_CancelRequestPlayersForGame( IntPtr ISteamGameSearch ); - [DllImport( "steam_api64.dll" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_SubmitPlayerResult( IntPtr ISteamGameSearch, ulong /*uint64*/ ullUniqueGameID, ulong steamIDPlayer, PlayerResult_t /*EPlayerResult_t*/ EPlayerResult ); - [DllImport( "steam_api64.dll" )] - internal static extern GameSearchErrorCode_t /*EGameSearchErrorCode_t*/ SteamAPI_ISteamGameSearch_EndGame( IntPtr ISteamGameSearch, ulong /*uint64*/ ullUniqueGameID ); - - // - // ISteamParties - // - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamParties_GetNumActiveBeacons( IntPtr ISteamParties ); - [DllImport( "steam_api64.dll" )] - internal static extern PartyBeaconID_t /*(PartyBeaconID_t)*/ SteamAPI_ISteamParties_GetBeaconByIndex( IntPtr ISteamParties, uint /*uint32*/ unIndex ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_GetBeaconDetails( IntPtr ISteamParties, ulong ulBeaconID, out ulong pSteamIDBeaconOwner, ref SteamPartyBeaconLocation_t.Pack8 /*struct SteamPartyBeaconLocation_t **/ pLocation, System.Text.StringBuilder /*char **/ pchMetadata, int /*int*/ cchMetadata ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamParties_JoinParty( IntPtr ISteamParties, ulong ulBeaconID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_GetNumAvailableBeaconLocations( IntPtr ISteamParties, IntPtr /*uint32 **/ puNumLocations ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_GetAvailableBeaconLocations( IntPtr ISteamParties, ref SteamPartyBeaconLocation_t.Pack8 /*struct SteamPartyBeaconLocation_t **/ pLocationList, uint /*uint32*/ uMaxNumLocations ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamParties_CreateBeacon( IntPtr ISteamParties, uint /*uint32*/ unOpenSlots, ref SteamPartyBeaconLocation_t.Pack8 /*struct SteamPartyBeaconLocation_t **/ pBeaconLocation, string /*const char **/ pchConnectString, string /*const char **/ pchMetadata ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamParties_OnReservationCompleted( IntPtr ISteamParties, ulong ulBeacon, ulong steamIDUser ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamParties_CancelReservation( IntPtr ISteamParties, ulong ulBeacon, ulong steamIDUser ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamParties_ChangeNumOpenSlots( IntPtr ISteamParties, ulong ulBeacon, uint /*uint32*/ unOpenSlots ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_DestroyBeacon( IntPtr ISteamParties, ulong ulBeacon ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParties_GetBeaconLocationData( IntPtr ISteamParties, SteamPartyBeaconLocation_t /*struct SteamPartyBeaconLocation_t*/ BeaconLocation, SteamPartyBeaconLocationData /*ESteamPartyBeaconLocationData*/ eData, System.Text.StringBuilder /*char **/ pchDataStringOut, int /*int*/ cchDataStringOut ); - - // - // ISteamRemoteStorage - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWrite( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, IntPtr /*const void **/ pvData, int /*int32*/ cubData ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_FileRead( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_FileWriteAsync( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, IntPtr /*const void **/ pvData, uint /*uint32*/ cubData ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_FileReadAsync( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, uint /*uint32*/ nOffset, uint /*uint32*/ cubToRead ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete( IntPtr ISteamRemoteStorage, ulong hReadCall, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cubToRead ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileForget( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileDelete( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_FileShare( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_SetSyncPlatforms( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, RemoteStoragePlatform /*ERemoteStoragePlatform*/ eRemoteStoragePlatform ); - [DllImport( "steam_api64.dll" )] - internal static extern UGCFileWriteStreamHandle_t /*(UGCFileWriteStreamHandle_t)*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk( IntPtr ISteamRemoteStorage, ulong writeHandle, IntPtr /*const void **/ pvData, int /*int32*/ cubData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamClose( IntPtr ISteamRemoteStorage, ulong writeHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel( IntPtr ISteamRemoteStorage, ulong writeHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileExists( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FilePersisted( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_GetFileSize( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "steam_api64.dll" )] - internal static extern long /*int64*/ SteamAPI_ISteamRemoteStorage_GetFileTimestamp( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "steam_api64.dll" )] - internal static extern RemoteStoragePlatform /*ERemoteStoragePlatform*/ SteamAPI_ISteamRemoteStorage_GetSyncPlatforms( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_GetFileCount( IntPtr ISteamRemoteStorage ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamRemoteStorage_GetFileNameAndSize( IntPtr ISteamRemoteStorage, int /*int*/ iFile, out int /*int32 **/ pnFileSizeInBytes ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_GetQuota( IntPtr ISteamRemoteStorage, out ulong /*uint64 **/ pnTotalBytes, out ulong /*uint64 **/ puAvailableBytes ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount( IntPtr ISteamRemoteStorage ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp( IntPtr ISteamRemoteStorage ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp( IntPtr ISteamRemoteStorage, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UGCDownload( IntPtr ISteamRemoteStorage, ulong hContent, uint /*uint32*/ unPriority ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress( IntPtr ISteamRemoteStorage, ulong hContent, out int /*int32 **/ pnBytesDownloaded, out int /*int32 **/ pnBytesExpected ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_GetUGCDetails( IntPtr ISteamRemoteStorage, ulong hContent, ref uint pnAppID, System.Text.StringBuilder /*char ***/ ppchName, out int /*int32 **/ pnFileSizeInBytes, out ulong pSteamIDOwner ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_UGCRead( IntPtr ISteamRemoteStorage, ulong hContent, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead, uint /*uint32*/ cOffset, UGCReadAction /*EUGCReadAction*/ eAction ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_GetCachedUGCCount( IntPtr ISteamRemoteStorage ); - [DllImport( "steam_api64.dll" )] - internal static extern UGCHandle_t /*(UGCHandle_t)*/ SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle( IntPtr ISteamRemoteStorage, int /*int32*/ iCachedContent ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_PublishWorkshopFile( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t.Pack8 /*struct SteamParamStringArray_t **/ pTags, WorkshopFileType /*EWorkshopFileType*/ eWorkshopFileType ); - [DllImport( "steam_api64.dll" )] - internal static extern PublishedFileUpdateHandle_t /*(PublishedFileUpdateHandle_t)*/ SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchPreviewFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchTitle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchDescription ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility( IntPtr ISteamRemoteStorage, ulong updateHandle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags( IntPtr ISteamRemoteStorage, ulong updateHandle, ref SteamParamStringArray_t.Pack8 /*struct SteamParamStringArray_t **/ pTags ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate( IntPtr ISteamRemoteStorage, ulong updateHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails( IntPtr ISteamRemoteStorage, ulong unPublishedFileId, uint /*uint32*/ unMaxSecondsOld ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_DeletePublishedFile( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles( IntPtr ISteamRemoteStorage, uint /*uint32*/ unStartIndex ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_SubscribePublishedFile( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles( IntPtr ISteamRemoteStorage, uint /*uint32*/ unStartIndex ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchChangeDescription ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote( IntPtr ISteamRemoteStorage, ulong unPublishedFileId, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails( IntPtr ISteamRemoteStorage, ulong unPublishedFileId ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles( IntPtr ISteamRemoteStorage, ulong steamId, uint /*uint32*/ unStartIndex, ref SteamParamStringArray_t.Pack8 /*struct SteamParamStringArray_t **/ pRequiredTags, ref SteamParamStringArray_t.Pack8 /*struct SteamParamStringArray_t **/ pExcludedTags ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_PublishVideo( IntPtr ISteamRemoteStorage, WorkshopVideoProvider /*EWorkshopVideoProvider*/ eVideoProvider, string /*const char **/ pchVideoAccount, string /*const char **/ pchVideoIdentifier, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t.Pack8 /*struct SteamParamStringArray_t **/ pTags ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction( IntPtr ISteamRemoteStorage, ulong unPublishedFileId, WorkshopFileAction /*EWorkshopFileAction*/ eAction ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction( IntPtr ISteamRemoteStorage, WorkshopFileAction /*EWorkshopFileAction*/ eAction, uint /*uint32*/ unStartIndex ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles( IntPtr ISteamRemoteStorage, WorkshopEnumerationType /*EWorkshopEnumerationType*/ eEnumerationType, uint /*uint32*/ unStartIndex, uint /*uint32*/ unCount, uint /*uint32*/ unDays, ref SteamParamStringArray_t.Pack8 /*struct SteamParamStringArray_t **/ pTags, ref SteamParamStringArray_t.Pack8 /*struct SteamParamStringArray_t **/ pUserTags ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation( IntPtr ISteamRemoteStorage, ulong hContent, string /*const char **/ pchLocation, uint /*uint32*/ unPriority ); - - // - // ISteamUserStats - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_RequestCurrentStats( IntPtr ISteamUserStats ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetStat( IntPtr ISteamUserStats, string /*const char **/ pchName, out int /*int32 **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetStat0( IntPtr ISteamUserStats, string /*const char **/ pchName, out float /*float **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_SetStat( IntPtr ISteamUserStats, string /*const char **/ pchName, int /*int32*/ nData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_SetStat0( IntPtr ISteamUserStats, string /*const char **/ pchName, float /*float*/ fData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_UpdateAvgRateStat( IntPtr ISteamUserStats, string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_SetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_ClearAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime( IntPtr ISteamUserStats, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_StoreStats( IntPtr ISteamUserStats ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetAchievementIcon( IntPtr ISteamUserStats, string /*const char **/ pchName ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute( IntPtr ISteamUserStats, string /*const char **/ pchName, string /*const char **/ pchKey ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_IndicateAchievementProgress( IntPtr ISteamUserStats, string /*const char **/ pchName, uint /*uint32*/ nCurProgress, uint /*uint32*/ nMaxProgress ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUserStats_GetNumAchievements( IntPtr ISteamUserStats ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamUserStats_GetAchievementName( IntPtr ISteamUserStats, uint /*uint32*/ iAchievement ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_RequestUserStats( IntPtr ISteamUserStats, ulong steamIDUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserStat( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserStat0( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserAchievement( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_ResetAllStats( IntPtr ISteamUserStats, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAchievementsToo ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_FindOrCreateLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName, LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod, LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_FindLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamUserStats_GetLeaderboardName( IntPtr ISteamUserStats, ulong hSteamLeaderboard ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetLeaderboardEntryCount( IntPtr ISteamUserStats, ulong hSteamLeaderboard ); - [DllImport( "steam_api64.dll" )] - internal static extern LeaderboardSortMethod /*ELeaderboardSortMethod*/ SteamAPI_ISteamUserStats_GetLeaderboardSortMethod( IntPtr ISteamUserStats, ulong hSteamLeaderboard ); - [DllImport( "steam_api64.dll" )] - internal static extern LeaderboardDisplayType /*ELeaderboardDisplayType*/ SteamAPI_ISteamUserStats_GetLeaderboardDisplayType( IntPtr ISteamUserStats, ulong hSteamLeaderboard ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_DownloadLeaderboardEntries( IntPtr ISteamUserStats, ulong hSteamLeaderboard, LeaderboardDataRequest /*ELeaderboardDataRequest*/ eLeaderboardDataRequest, int /*int*/ nRangeStart, int /*int*/ nRangeEnd ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers( IntPtr ISteamUserStats, ulong hSteamLeaderboard, IntPtr /*class CSteamID **/ prgUsers, int /*int*/ cUsers ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry( IntPtr ISteamUserStats, ulong hSteamLeaderboardEntries, int /*int*/ index, ref LeaderboardEntry_t.Pack8 /*struct LeaderboardEntry_t **/ pLeaderboardEntry, IntPtr /*int32 **/ pDetails, int /*int*/ cDetailsMax ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_UploadLeaderboardScore( IntPtr ISteamUserStats, ulong hSteamLeaderboard, LeaderboardUploadScoreMethod /*ELeaderboardUploadScoreMethod*/ eLeaderboardUploadScoreMethod, int /*int32*/ nScore, int[] /*const int32 **/ pScoreDetails, int /*int*/ cScoreDetailsCount ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_AttachLeaderboardUGC( IntPtr ISteamUserStats, ulong hSteamLeaderboard, ulong hUGC ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers( IntPtr ISteamUserStats ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages( IntPtr ISteamUserStats ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetAchievementAchievedPercent( IntPtr ISteamUserStats, string /*const char **/ pchName, out float /*float **/ pflPercent ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_RequestGlobalStats( IntPtr ISteamUserStats, int /*int*/ nHistoryDays ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetGlobalStat( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out long /*int64 **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetGlobalStat0( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out double /*double **/ pData ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int32*/ SteamAPI_ISteamUserStats_GetGlobalStatHistory( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out long /*int64 **/ pData, uint /*uint32*/ cubData ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int32*/ SteamAPI_ISteamUserStats_GetGlobalStatHistory0( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out double /*double **/ pData, uint /*uint32*/ cubData ); - - // - // ISteamApps - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribed( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsLowViolence( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsCybercafe( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsVACBanned( IntPtr ISteamApps ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamApps_GetCurrentGameLanguage( IntPtr ISteamApps ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamApps_GetAvailableGameLanguages( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribedApp( IntPtr ISteamApps, uint appID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsDlcInstalled( IntPtr ISteamApps, uint appID ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime( IntPtr ISteamApps, uint nAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend( IntPtr ISteamApps ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamApps_GetDLCCount( IntPtr ISteamApps ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC, ref uint pAppID, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamApps_InstallDLC( IntPtr ISteamApps, uint nAppID ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamApps_UninstallDLC( IntPtr ISteamApps, uint nAppID ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey( IntPtr ISteamApps, uint nAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_GetCurrentBetaName( IntPtr ISteamApps, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_MarkContentCorrupt( IntPtr ISteamApps, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMissingFilesOnly ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamApps_GetInstalledDepots( IntPtr ISteamApps, uint appID, IntPtr /*DepotId_t **/ pvecDepots, uint /*uint32*/ cMaxDepots ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamApps_GetAppInstallDir( IntPtr ISteamApps, uint appID, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsAppInstalled( IntPtr ISteamApps, uint appID ); - [DllImport( "steam_api64.dll" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamApps_GetAppOwner( IntPtr ISteamApps ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamApps_GetLaunchQueryParam( IntPtr ISteamApps, string /*const char **/ pchKey ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_GetDlcDownloadProgress( IntPtr ISteamApps, uint nAppID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamApps_GetAppBuildId( IntPtr ISteamApps ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamApps_RequestAllProofOfPurchaseKeys( IntPtr ISteamApps ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamApps_GetFileDetails( IntPtr ISteamApps, string /*const char **/ pszFileName ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamApps_GetLaunchCommandLine( IntPtr ISteamApps, System.Text.StringBuilder /*char **/ pszCommandLine, int /*int*/ cubCommandLine ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribedFromFamilySharing( IntPtr ISteamApps ); - - // - // ISteamNetworking - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_SendP2PPacket( IntPtr ISteamNetworking, ulong steamIDRemote, IntPtr /*const void **/ pubData, uint /*uint32*/ cubData, P2PSend /*EP2PSend*/ eP2PSendType, int /*int*/ nChannel ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_IsP2PPacketAvailable( IntPtr ISteamNetworking, out uint /*uint32 **/ pcubMsgSize, int /*int*/ nChannel ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_ReadP2PPacket( IntPtr ISteamNetworking, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, out ulong psteamIDRemote, int /*int*/ nChannel ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser( IntPtr ISteamNetworking, ulong steamIDRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_CloseP2PSessionWithUser( IntPtr ISteamNetworking, ulong steamIDRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_CloseP2PChannelWithUser( IntPtr ISteamNetworking, ulong steamIDRemote, int /*int*/ nChannel ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_GetP2PSessionState( IntPtr ISteamNetworking, ulong steamIDRemote, ref P2PSessionState_t.Pack8 /*struct P2PSessionState_t **/ pConnectionState ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_AllowP2PPacketRelay( IntPtr ISteamNetworking, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllow ); - [DllImport( "steam_api64.dll" )] - internal static extern SNetListenSocket_t /*(SNetListenSocket_t)*/ SteamAPI_ISteamNetworking_CreateListenSocket( IntPtr ISteamNetworking, int /*int*/ nVirtualP2PPort, uint /*uint32*/ nIP, ushort /*uint16*/ nPort, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay ); - [DllImport( "steam_api64.dll" )] - internal static extern SNetSocket_t /*(SNetSocket_t)*/ SteamAPI_ISteamNetworking_CreateP2PConnectionSocket( IntPtr ISteamNetworking, ulong steamIDTarget, int /*int*/ nVirtualPort, int /*int*/ nTimeoutSec, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay ); - [DllImport( "steam_api64.dll" )] - internal static extern SNetSocket_t /*(SNetSocket_t)*/ SteamAPI_ISteamNetworking_CreateConnectionSocket( IntPtr ISteamNetworking, uint /*uint32*/ nIP, ushort /*uint16*/ nPort, int /*int*/ nTimeoutSec ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_DestroySocket( IntPtr ISteamNetworking, uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_DestroyListenSocket( IntPtr ISteamNetworking, uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_SendDataOnSocket( IntPtr ISteamNetworking, uint hSocket, IntPtr /*void **/ pubData, uint /*uint32*/ cubData, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReliable ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_IsDataAvailableOnSocket( IntPtr ISteamNetworking, uint hSocket, out uint /*uint32 **/ pcubMsgSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_RetrieveDataFromSocket( IntPtr ISteamNetworking, uint hSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_IsDataAvailable( IntPtr ISteamNetworking, uint hListenSocket, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_RetrieveData( IntPtr ISteamNetworking, uint hListenSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_GetSocketInfo( IntPtr ISteamNetworking, uint hSocket, out ulong pSteamIDRemote, IntPtr /*int **/ peSocketStatus, out uint /*uint32 **/ punIPRemote, out ushort /*uint16 **/ punPortRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_GetListenSocketInfo( IntPtr ISteamNetworking, uint hListenSocket, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnPort ); - [DllImport( "steam_api64.dll" )] - internal static extern SNetSocketConnectionType /*ESNetSocketConnectionType*/ SteamAPI_ISteamNetworking_GetSocketConnectionType( IntPtr ISteamNetworking, uint hSocket ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamNetworking_GetMaxPacketSize( IntPtr ISteamNetworking, uint hSocket ); - - // - // ISteamScreenshots - // - [DllImport( "steam_api64.dll" )] - internal static extern ScreenshotHandle /*(ScreenshotHandle)*/ SteamAPI_ISteamScreenshots_WriteScreenshot( IntPtr ISteamScreenshots, IntPtr /*void **/ pubRGB, uint /*uint32*/ cubRGB, int /*int*/ nWidth, int /*int*/ nHeight ); - [DllImport( "steam_api64.dll" )] - internal static extern ScreenshotHandle /*(ScreenshotHandle)*/ SteamAPI_ISteamScreenshots_AddScreenshotToLibrary( IntPtr ISteamScreenshots, string /*const char **/ pchFilename, string /*const char **/ pchThumbnailFilename, int /*int*/ nWidth, int /*int*/ nHeight ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamScreenshots_TriggerScreenshot( IntPtr ISteamScreenshots ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamScreenshots_HookScreenshots( IntPtr ISteamScreenshots, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHook ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_SetLocation( IntPtr ISteamScreenshots, uint hScreenshot, string /*const char **/ pchLocation ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_TagUser( IntPtr ISteamScreenshots, uint hScreenshot, ulong steamID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_TagPublishedFile( IntPtr ISteamScreenshots, uint hScreenshot, ulong unPublishedFileID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_IsScreenshotsHooked( IntPtr ISteamScreenshots ); - [DllImport( "steam_api64.dll" )] - internal static extern ScreenshotHandle /*(ScreenshotHandle)*/ SteamAPI_ISteamScreenshots_AddVRScreenshotToLibrary( IntPtr ISteamScreenshots, VRScreenshotType /*EVRScreenshotType*/ eType, string /*const char **/ pchFilename, string /*const char **/ pchVRFilename ); - - // - // ISteamMusic - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusic_BIsEnabled( IntPtr ISteamMusic ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusic_BIsPlaying( IntPtr ISteamMusic ); - [DllImport( "steam_api64.dll" )] - internal static extern AudioPlayback_Status /*AudioPlayback_Status*/ SteamAPI_ISteamMusic_GetPlaybackStatus( IntPtr ISteamMusic ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_Play( IntPtr ISteamMusic ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_Pause( IntPtr ISteamMusic ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_PlayPrevious( IntPtr ISteamMusic ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_PlayNext( IntPtr ISteamMusic ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamMusic_SetVolume( IntPtr ISteamMusic, float /*float*/ flVolume ); - [DllImport( "steam_api64.dll" )] - internal static extern float /*float*/ SteamAPI_ISteamMusic_GetVolume( IntPtr ISteamMusic ); - - // - // ISteamMusicRemote - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote( IntPtr ISteamMusicRemote, string /*const char **/ pchName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_BActivationSuccess( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetDisplayName( IntPtr ISteamMusicRemote, string /*const char **/ pchDisplayName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64( IntPtr ISteamMusicRemote, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnablePlayPrevious( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnablePlayNext( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnableShuffled( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnableLooped( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnableQueue( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnablePlaylists( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus( IntPtr ISteamMusicRemote, AudioPlayback_Status /*AudioPlayback_Status*/ nStatus ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateShuffled( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateLooped( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateVolume( IntPtr ISteamMusicRemote, float /*float*/ flValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_CurrentEntryWillChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAvailable ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText( IntPtr ISteamMusicRemote, string /*const char **/ pchText ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds( IntPtr ISteamMusicRemote, int /*int*/ nValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt( IntPtr ISteamMusicRemote, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_CurrentEntryDidChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_QueueWillChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_ResetQueueEntries( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetQueueEntry( IntPtr ISteamMusicRemote, int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry( IntPtr ISteamMusicRemote, int /*int*/ nID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_QueueDidChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_PlaylistWillChange( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_ResetPlaylistEntries( IntPtr ISteamMusicRemote ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetPlaylistEntry( IntPtr ISteamMusicRemote, int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry( IntPtr ISteamMusicRemote, int /*int*/ nID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_PlaylistDidChange( IntPtr ISteamMusicRemote ); - - // - // ISteamHTTP - // - [DllImport( "steam_api64.dll" )] - internal static extern HTTPRequestHandle /*(HTTPRequestHandle)*/ SteamAPI_ISteamHTTP_CreateHTTPRequest( IntPtr ISteamHTTP, HTTPMethod /*EHTTPMethod*/ eHTTPRequestMethod, string /*const char **/ pchAbsoluteURL ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestContextValue( IntPtr ISteamHTTP, uint hRequest, ulong /*uint64*/ ulContextValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout( IntPtr ISteamHTTP, uint hRequest, uint /*uint32*/ unTimeoutSeconds ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchHeaderName, string /*const char **/ pchHeaderValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchParamName, string /*const char **/ pchParamValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SendHTTPRequest( IntPtr ISteamHTTP, uint hRequest, ref ulong pCallHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse( IntPtr ISteamHTTP, uint hRequest, ref ulong pCallHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_DeferHTTPRequest( IntPtr ISteamHTTP, uint hRequest ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_PrioritizeHTTPRequest( IntPtr ISteamHTTP, uint hRequest ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchHeaderName, out uint /*uint32 **/ unResponseHeaderSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchHeaderName, out byte /*uint8 **/ pHeaderValueBuffer, uint /*uint32*/ unBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseBodySize( IntPtr ISteamHTTP, uint hRequest, out uint /*uint32 **/ unBodySize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseBodyData( IntPtr ISteamHTTP, uint hRequest, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData( IntPtr ISteamHTTP, uint hRequest, uint /*uint32*/ cOffset, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_ReleaseHTTPRequest( IntPtr ISteamHTTP, uint hRequest ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct( IntPtr ISteamHTTP, uint hRequest, out float /*float **/ pflPercentOut ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchContentType, out byte /*uint8 **/ pubBody, uint /*uint32*/ unBodyLen ); - [DllImport( "steam_api64.dll" )] - internal static extern HTTPCookieContainerHandle /*(HTTPCookieContainerHandle)*/ SteamAPI_ISteamHTTP_CreateCookieContainer( IntPtr ISteamHTTP, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowResponsesToModify ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_ReleaseCookieContainer( IntPtr ISteamHTTP, uint hCookieContainer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetCookie( IntPtr ISteamHTTP, uint hCookieContainer, string /*const char **/ pchHost, string /*const char **/ pchUrl, string /*const char **/ pchCookie ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer( IntPtr ISteamHTTP, uint hRequest, uint hCookieContainer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchUserAgentInfo ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( IntPtr ISteamHTTP, uint hRequest, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireVerifiedCertificate ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( IntPtr ISteamHTTP, uint hRequest, uint /*uint32*/ unMilliseconds ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut( IntPtr ISteamHTTP, uint hRequest, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbWasTimedOut ); - - // - // ISteamInput - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInput_Init( IntPtr ISteamInput ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInput_Shutdown( IntPtr ISteamInput ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_RunFrame( IntPtr ISteamInput ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetConnectedControllers( IntPtr ISteamInput, IntPtr /*InputHandle_t **/ handlesOut ); - [DllImport( "steam_api64.dll" )] - internal static extern InputActionSetHandle_t /*(InputActionSetHandle_t)*/ SteamAPI_ISteamInput_GetActionSetHandle( IntPtr ISteamInput, string /*const char **/ pszActionSetName ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_ActivateActionSet( IntPtr ISteamInput, ulong inputHandle, ulong actionSetHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern InputActionSetHandle_t /*(InputActionSetHandle_t)*/ SteamAPI_ISteamInput_GetCurrentActionSet( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_ActivateActionSetLayer( IntPtr ISteamInput, ulong inputHandle, ulong actionSetLayerHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_DeactivateActionSetLayer( IntPtr ISteamInput, ulong inputHandle, ulong actionSetLayerHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_DeactivateAllActionSetLayers( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetActiveActionSetLayers( IntPtr ISteamInput, ulong inputHandle, IntPtr /*InputActionSetHandle_t **/ handlesOut ); - [DllImport( "steam_api64.dll" )] - internal static extern InputDigitalActionHandle_t /*(InputDigitalActionHandle_t)*/ SteamAPI_ISteamInput_GetDigitalActionHandle( IntPtr ISteamInput, string /*const char **/ pszActionName ); - [DllImport( "steam_api64.dll" )] - internal static extern InputDigitalActionData_t /*struct InputDigitalActionData_t*/ SteamAPI_ISteamInput_GetDigitalActionData( IntPtr ISteamInput, ulong inputHandle, ulong digitalActionHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetDigitalActionOrigins( IntPtr ISteamInput, ulong inputHandle, ulong actionSetHandle, ulong digitalActionHandle, out InputActionOrigin /*EInputActionOrigin **/ originsOut ); - [DllImport( "steam_api64.dll" )] - internal static extern InputAnalogActionHandle_t /*(InputAnalogActionHandle_t)*/ SteamAPI_ISteamInput_GetAnalogActionHandle( IntPtr ISteamInput, string /*const char **/ pszActionName ); - [DllImport( "steam_api64.dll" )] - internal static extern InputAnalogActionData_t /*struct InputAnalogActionData_t*/ SteamAPI_ISteamInput_GetAnalogActionData( IntPtr ISteamInput, ulong inputHandle, ulong analogActionHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetAnalogActionOrigins( IntPtr ISteamInput, ulong inputHandle, ulong actionSetHandle, ulong analogActionHandle, out InputActionOrigin /*EInputActionOrigin **/ originsOut ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamInput_GetGlyphForActionOrigin( IntPtr ISteamInput, InputActionOrigin /*EInputActionOrigin*/ eOrigin ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamInput_GetStringForActionOrigin( IntPtr ISteamInput, InputActionOrigin /*EInputActionOrigin*/ eOrigin ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_StopAnalogActionMomentum( IntPtr ISteamInput, ulong inputHandle, ulong eAction ); - [DllImport( "steam_api64.dll" )] - internal static extern InputMotionData_t /*struct InputMotionData_t*/ SteamAPI_ISteamInput_GetMotionData( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_TriggerVibration( IntPtr ISteamInput, ulong inputHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_SetLEDColor( IntPtr ISteamInput, ulong inputHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_TriggerHapticPulse( IntPtr ISteamInput, ulong inputHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamInput_TriggerRepeatedHapticPulse( IntPtr ISteamInput, ulong inputHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInput_ShowBindingPanel( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamInputType /*ESteamInputType*/ SteamAPI_ISteamInput_GetInputTypeForHandle( IntPtr ISteamInput, ulong inputHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern InputHandle_t /*(InputHandle_t)*/ SteamAPI_ISteamInput_GetControllerForGamepadIndex( IntPtr ISteamInput, int /*int*/ nIndex ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamInput_GetGamepadIndexForController( IntPtr ISteamInput, ulong ulinputHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamInput_GetStringForXboxOrigin( IntPtr ISteamInput, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamInput_GetGlyphForXboxOrigin( IntPtr ISteamInput, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "steam_api64.dll" )] - internal static extern InputActionOrigin /*EInputActionOrigin*/ SteamAPI_ISteamInput_GetActionOriginFromXboxOrigin( IntPtr ISteamInput, ulong inputHandle, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "steam_api64.dll" )] - internal static extern InputActionOrigin /*EInputActionOrigin*/ SteamAPI_ISteamInput_TranslateActionOrigin( IntPtr ISteamInput, SteamInputType /*ESteamInputType*/ eDestinationInputType, InputActionOrigin /*EInputActionOrigin*/ eSourceOrigin ); - - // - // ISteamController - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamController_Init( IntPtr ISteamController ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamController_Shutdown( IntPtr ISteamController ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamController_RunFrame( IntPtr ISteamController ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetConnectedControllers( IntPtr ISteamController, IntPtr /*ControllerHandle_t **/ handlesOut ); - [DllImport( "steam_api64.dll" )] - internal static extern ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ SteamAPI_ISteamController_GetActionSetHandle( IntPtr ISteamController, string /*const char **/ pszActionSetName ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamController_ActivateActionSet( IntPtr ISteamController, ulong controllerHandle, ulong actionSetHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ SteamAPI_ISteamController_GetCurrentActionSet( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamController_ActivateActionSetLayer( IntPtr ISteamController, ulong controllerHandle, ulong actionSetLayerHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamController_DeactivateActionSetLayer( IntPtr ISteamController, ulong controllerHandle, ulong actionSetLayerHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamController_DeactivateAllActionSetLayers( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetActiveActionSetLayers( IntPtr ISteamController, ulong controllerHandle, IntPtr /*ControllerActionSetHandle_t **/ handlesOut ); - [DllImport( "steam_api64.dll" )] - internal static extern ControllerDigitalActionHandle_t /*(ControllerDigitalActionHandle_t)*/ SteamAPI_ISteamController_GetDigitalActionHandle( IntPtr ISteamController, string /*const char **/ pszActionName ); - [DllImport( "steam_api64.dll" )] - internal static extern InputDigitalActionData_t /*struct InputDigitalActionData_t*/ SteamAPI_ISteamController_GetDigitalActionData( IntPtr ISteamController, ulong controllerHandle, ulong digitalActionHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetDigitalActionOrigins( IntPtr ISteamController, ulong controllerHandle, ulong actionSetHandle, ulong digitalActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut ); - [DllImport( "steam_api64.dll" )] - internal static extern ControllerAnalogActionHandle_t /*(ControllerAnalogActionHandle_t)*/ SteamAPI_ISteamController_GetAnalogActionHandle( IntPtr ISteamController, string /*const char **/ pszActionName ); - [DllImport( "steam_api64.dll" )] - internal static extern InputAnalogActionData_t /*struct InputAnalogActionData_t*/ SteamAPI_ISteamController_GetAnalogActionData( IntPtr ISteamController, ulong controllerHandle, ulong analogActionHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetAnalogActionOrigins( IntPtr ISteamController, ulong controllerHandle, ulong actionSetHandle, ulong analogActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamController_GetGlyphForActionOrigin( IntPtr ISteamController, ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamController_GetStringForActionOrigin( IntPtr ISteamController, ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamController_StopAnalogActionMomentum( IntPtr ISteamController, ulong controllerHandle, ulong eAction ); - [DllImport( "steam_api64.dll" )] - internal static extern InputMotionData_t /*struct InputMotionData_t*/ SteamAPI_ISteamController_GetMotionData( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamController_TriggerHapticPulse( IntPtr ISteamController, ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamController_TriggerRepeatedHapticPulse( IntPtr ISteamController, ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamController_TriggerVibration( IntPtr ISteamController, ulong controllerHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamController_SetLEDColor( IntPtr ISteamController, ulong controllerHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamController_ShowBindingPanel( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamInputType /*ESteamInputType*/ SteamAPI_ISteamController_GetInputTypeForHandle( IntPtr ISteamController, ulong controllerHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern ControllerHandle_t /*(ControllerHandle_t)*/ SteamAPI_ISteamController_GetControllerForGamepadIndex( IntPtr ISteamController, int /*int*/ nIndex ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamController_GetGamepadIndexForController( IntPtr ISteamController, ulong ulControllerHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamController_GetStringForXboxOrigin( IntPtr ISteamController, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr SteamAPI_ISteamController_GetGlyphForXboxOrigin( IntPtr ISteamController, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "steam_api64.dll" )] - internal static extern ControllerActionOrigin /*EControllerActionOrigin*/ SteamAPI_ISteamController_GetActionOriginFromXboxOrigin( IntPtr ISteamController, ulong controllerHandle, XboxOrigin /*EXboxOrigin*/ eOrigin ); - [DllImport( "steam_api64.dll" )] - internal static extern ControllerActionOrigin /*EControllerActionOrigin*/ SteamAPI_ISteamController_TranslateActionOrigin( IntPtr ISteamController, SteamInputType /*ESteamInputType*/ eDestinationInputType, ControllerActionOrigin /*EControllerActionOrigin*/ eSourceOrigin ); - - // - // ISteamUGC - // - [DllImport( "steam_api64.dll" )] - internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryUserUGCRequest( IntPtr ISteamUGC, uint unAccountID, UserUGCList /*EUserUGCList*/ eListType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingUGCType, UserUGCListSortOrder /*EUserUGCListSortOrder*/ eSortOrder, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage ); - [DllImport( "steam_api64.dll" )] - internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryAllUGCRequest( IntPtr ISteamUGC, UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage ); - [DllImport( "steam_api64.dll" )] - internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryAllUGCRequest0( IntPtr ISteamUGC, UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, string /*const char **/ pchCursor ); - [DllImport( "steam_api64.dll" )] - internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SendQueryUGCRequest( IntPtr ISteamUGC, ulong handle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCResult( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, ref SteamUGCDetails_t.Pack8 /*struct SteamUGCDetails_t **/ pDetails ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCPreviewURL( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchURL, uint /*uint32*/ cchURLSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCMetadata( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchMetadata, uint /*uint32*/ cchMetadatasize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCChildren( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCStatistic( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, ItemStatistic /*EItemStatistic*/ eStatType, out ulong /*uint64 **/ pStatValue ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, uint /*uint32*/ previewIndex, System.Text.StringBuilder /*char **/ pchURLOrVideoID, uint /*uint32*/ cchURLSize, System.Text.StringBuilder /*char **/ pchOriginalFileName, uint /*uint32*/ cchOriginalFileNameSize, out ItemPreviewType /*EItemPreviewType **/ pPreviewType ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, uint /*uint32*/ keyValueTagIndex, System.Text.StringBuilder /*char **/ pchKey, uint /*uint32*/ cchKeySize, System.Text.StringBuilder /*char **/ pchValue, uint /*uint32*/ cchValueSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_ReleaseQueryUGCRequest( IntPtr ISteamUGC, ulong handle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddRequiredTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pTagName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddExcludedTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pTagName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnOnlyIDs( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnOnlyIDs ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnKeyValueTags( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnKeyValueTags ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnLongDescription( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnLongDescription ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnMetadata( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnMetadata ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnChildren( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnChildren ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnAdditionalPreviews( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnAdditionalPreviews ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnTotalOnly( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnTotalOnly ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnPlaytimeStats( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ unDays ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetLanguage( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchLanguage ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetAllowCachedResponse( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ unMaxAgeSeconds ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetCloudFileNameFilter( IntPtr ISteamUGC, ulong handle, string /*const char **/ pMatchCloudFileName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetMatchAnyTag( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMatchAnyTag ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetSearchText( IntPtr ISteamUGC, ulong handle, string /*const char **/ pSearchText ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetRankedByTrendDays( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ unDays ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddRequiredKeyValueTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pKey, string /*const char **/ pValue ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RequestUGCDetails( IntPtr ISteamUGC, ulong nPublishedFileID, uint /*uint32*/ unMaxAgeSeconds ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_CreateItem( IntPtr ISteamUGC, uint nConsumerAppId, WorkshopFileType /*EWorkshopFileType*/ eFileType ); - [DllImport( "steam_api64.dll" )] - internal static extern UGCUpdateHandle_t /*(UGCUpdateHandle_t)*/ SteamAPI_ISteamUGC_StartItemUpdate( IntPtr ISteamUGC, uint nConsumerAppId, ulong nPublishedFileID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemTitle( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchTitle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemDescription( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchDescription ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemUpdateLanguage( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchLanguage ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemMetadata( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchMetaData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemVisibility( IntPtr ISteamUGC, ulong handle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemTags( IntPtr ISteamUGC, ulong updateHandle, ref SteamParamStringArray_t.Pack8 /*const struct SteamParamStringArray_t **/ pTags ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemContent( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszContentFolder ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemPreview( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszPreviewFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetAllowLegacyUpload( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowLegacyUpload ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_RemoveItemKeyValueTags( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchKey ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddItemKeyValueTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddItemPreviewFile( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszPreviewFile, ItemPreviewType /*EItemPreviewType*/ type ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddItemPreviewVideo( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszVideoID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_UpdateItemPreviewFile( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, string /*const char **/ pszPreviewFile ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_UpdateItemPreviewVideo( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, string /*const char **/ pszVideoID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_RemoveItemPreview( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SubmitItemUpdate( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchChangeNote ); - [DllImport( "steam_api64.dll" )] - internal static extern ItemUpdateStatus /*EItemUpdateStatus*/ SteamAPI_ISteamUGC_GetItemUpdateProgress( IntPtr ISteamUGC, ulong handle, out ulong /*uint64 **/ punBytesProcessed, out ulong /*uint64 **/ punBytesTotal ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SetUserItemVote( IntPtr ISteamUGC, ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_GetUserItemVote( IntPtr ISteamUGC, ulong nPublishedFileID ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_AddItemToFavorites( IntPtr ISteamUGC, uint nAppId, ulong nPublishedFileID ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RemoveItemFromFavorites( IntPtr ISteamUGC, uint nAppId, ulong nPublishedFileID ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SubscribeItem( IntPtr ISteamUGC, ulong nPublishedFileID ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_UnsubscribeItem( IntPtr ISteamUGC, ulong nPublishedFileID ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetNumSubscribedItems( IntPtr ISteamUGC ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetSubscribedItems( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetItemState( IntPtr ISteamUGC, ulong nPublishedFileID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetItemInstallInfo( IntPtr ISteamUGC, ulong nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderSize, out uint /*uint32 **/ punTimeStamp ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetItemDownloadInfo( IntPtr ISteamUGC, ulong nPublishedFileID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_DownloadItem( IntPtr ISteamUGC, ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHighPriority ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamUGC_BInitWorkshopForGameServer( IntPtr ISteamUGC, uint unWorkshopDepotID, string /*const char **/ pszFolder ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamUGC_SuspendDownloads( IntPtr ISteamUGC, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSuspend ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_StartPlaytimeTracking( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_StopPlaytimeTracking( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems( IntPtr ISteamUGC ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_AddDependency( IntPtr ISteamUGC, ulong nParentPublishedFileID, ulong nChildPublishedFileID ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RemoveDependency( IntPtr ISteamUGC, ulong nParentPublishedFileID, ulong nChildPublishedFileID ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_AddAppDependency( IntPtr ISteamUGC, ulong nPublishedFileID, uint nAppID ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RemoveAppDependency( IntPtr ISteamUGC, ulong nPublishedFileID, uint nAppID ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_GetAppDependencies( IntPtr ISteamUGC, ulong nPublishedFileID ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_DeleteItem( IntPtr ISteamUGC, ulong nPublishedFileID ); - - // - // ISteamAppList - // - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamAppList_GetNumInstalledApps( IntPtr ISteamAppList ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamAppList_GetInstalledApps( IntPtr ISteamAppList, IntPtr /*AppId_t **/ pvecAppID, uint /*uint32*/ unMaxAppIDs ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamAppList_GetAppName( IntPtr ISteamAppList, uint nAppID, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameMax ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamAppList_GetAppInstallDir( IntPtr ISteamAppList, uint nAppID, System.Text.StringBuilder /*char **/ pchDirectory, int /*int*/ cchNameMax ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamAppList_GetAppBuildId( IntPtr ISteamAppList, uint nAppID ); - - // - // ISteamHTMLSurface - // - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface( IntPtr ISteamHTMLSurface ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTMLSurface_Init( IntPtr ISteamHTMLSurface ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamHTMLSurface_Shutdown( IntPtr ISteamHTMLSurface ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamHTMLSurface_CreateBrowser( IntPtr ISteamHTMLSurface, string /*const char **/ pchUserAgent, string /*const char **/ pchUserCSS ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_RemoveBrowser( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_LoadURL( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchURL, string /*const char **/ pchPostData ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetSize( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ unWidth, uint /*uint32*/ unHeight ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_StopLoad( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_Reload( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_GoBack( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_GoForward( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_AddHeader( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchKey, string /*const char **/ pchValue ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_ExecuteJavascript( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchScript ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseUp( IntPtr ISteamHTMLSurface, uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseDown( IntPtr ISteamHTMLSurface, uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseDoubleClick( IntPtr ISteamHTMLSurface, uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseMove( IntPtr ISteamHTMLSurface, uint unBrowserHandle, int /*int*/ x, int /*int*/ y ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseWheel( IntPtr ISteamHTMLSurface, uint unBrowserHandle, int /*int32*/ nDelta ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_KeyDown( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bIsSystemKey ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_KeyUp( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_KeyChar( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ cUnicodeChar, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetHorizontalScroll( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetVerticalScroll( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetKeyFocus( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHasKeyFocus ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_ViewSource( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_CopyToClipboard( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_PasteFromClipboard( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_Find( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchSearchStr, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bCurrentlyInFind, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReverse ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_StopFind( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_GetLinkAtPosition( IntPtr ISteamHTMLSurface, uint unBrowserHandle, int /*int*/ x, int /*int*/ y ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetCookie( IntPtr ISteamHTMLSurface, string /*const char **/ pchHostname, string /*const char **/ pchKey, string /*const char **/ pchValue, string /*const char **/ pchPath, uint nExpires, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHTTPOnly ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetPageScaleFactor( IntPtr ISteamHTMLSurface, uint unBrowserHandle, float /*float*/ flZoom, int /*int*/ nPointX, int /*int*/ nPointY ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetBackgroundMode( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bBackgroundMode ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor( IntPtr ISteamHTMLSurface, uint unBrowserHandle, float /*float*/ flDPIScaling ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_OpenDeveloperTools( IntPtr ISteamHTMLSurface, uint unBrowserHandle ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_AllowStartRequest( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowed ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_JSDialogResponse( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bResult ); - - // - // ISteamInventory - // - [DllImport( "steam_api64.dll" )] - internal static extern Result /*EResult*/ SteamAPI_ISteamInventory_GetResultStatus( IntPtr ISteamInventory, int resultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetResultItems( IntPtr ISteamInventory, int resultHandle, IntPtr /*struct SteamItemDetails_t **/ pOutItemsArray, out uint /*uint32 **/ punOutItemsArraySize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetResultItemProperty( IntPtr ISteamInventory, int resultHandle, uint /*uint32*/ unItemIndex, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamInventory_GetResultTimestamp( IntPtr ISteamInventory, int resultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_CheckResultSteamID( IntPtr ISteamInventory, int resultHandle, ulong steamIDExpected ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamInventory_DestroyResult( IntPtr ISteamInventory, int resultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetAllItems( IntPtr ISteamInventory, ref int pResultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemsByID( IntPtr ISteamInventory, ref int pResultHandle, ulong[] pInstanceIDs, uint /*uint32*/ unCountInstanceIDs ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SerializeResult( IntPtr ISteamInventory, int resultHandle, IntPtr /*void **/ pOutBuffer, out uint /*uint32 **/ punOutBufferSize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_DeserializeResult( IntPtr ISteamInventory, ref int pOutResultHandle, IntPtr /*const void **/ pBuffer, uint /*uint32*/ unBufferSize, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRESERVED_MUST_BE_FALSE ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GenerateItems( IntPtr ISteamInventory, ref int pResultHandle, int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GrantPromoItems( IntPtr ISteamInventory, ref int pResultHandle ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_AddPromoItem( IntPtr ISteamInventory, ref int pResultHandle, int itemDef ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_AddPromoItems( IntPtr ISteamInventory, ref int pResultHandle, int[] pArrayItemDefs, uint /*uint32*/ unArrayLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_ConsumeItem( IntPtr ISteamInventory, ref int pResultHandle, ulong itemConsume, uint /*uint32*/ unQuantity ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_ExchangeItems( IntPtr ISteamInventory, ref int pResultHandle, int[] pArrayGenerate, uint[] /*const uint32 **/ punArrayGenerateQuantity, uint /*uint32*/ unArrayGenerateLength, ulong[] pArrayDestroy, uint[] /*const uint32 **/ punArrayDestroyQuantity, uint /*uint32*/ unArrayDestroyLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_TransferItemQuantity( IntPtr ISteamInventory, ref int pResultHandle, ulong itemIdSource, uint /*uint32*/ unQuantity, ulong itemIdDest ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamInventory_SendItemDropHeartbeat( IntPtr ISteamInventory ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_TriggerItemDrop( IntPtr ISteamInventory, ref int pResultHandle, int dropListDefinition ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_TradeItems( IntPtr ISteamInventory, ref int pResultHandle, ulong steamIDTradePartner, ulong[] pArrayGive, uint[] /*const uint32 **/ pArrayGiveQuantity, uint /*uint32*/ nArrayGiveLength, ulong[] pArrayGet, uint[] /*const uint32 **/ pArrayGetQuantity, uint /*uint32*/ nArrayGetLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_LoadItemDefinitions( IntPtr ISteamInventory ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemDefinitionIDs( IntPtr ISteamInventory, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemDefinitionProperty( IntPtr ISteamInventory, int iDefinition, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs( IntPtr ISteamInventory, ulong steamID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs( IntPtr ISteamInventory, ulong steamID, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamInventory_StartPurchase( IntPtr ISteamInventory, int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamInventory_RequestPrices( IntPtr ISteamInventory ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamInventory_GetNumItemsWithPrices( IntPtr ISteamInventory ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemsWithPrices( IntPtr ISteamInventory, IntPtr /*SteamItemDef_t **/ pArrayItemDefs, IntPtr /*uint64 **/ pCurrentPrices, IntPtr /*uint64 **/ pBasePrices, uint /*uint32*/ unArrayLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemPrice( IntPtr ISteamInventory, int iDefinition, out ulong /*uint64 **/ pCurrentPrice, out ulong /*uint64 **/ pBasePrice ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamInventoryUpdateHandle_t /*(SteamInventoryUpdateHandle_t)*/ SteamAPI_ISteamInventory_StartUpdateProperties( IntPtr ISteamInventory ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_RemoveProperty( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SetProperty( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, string /*const char **/ pchPropertyValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SetProperty0( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SetProperty0( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, long /*int64*/ nValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SetProperty0( IntPtr ISteamInventory, ulong handle, ulong nItemID, string /*const char **/ pchPropertyName, float /*float*/ flValue ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SubmitUpdateProperties( IntPtr ISteamInventory, ulong handle, ref int pResultHandle ); - - // - // ISteamVideo - // - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamVideo_GetVideoURL( IntPtr ISteamVideo, uint unVideoAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamVideo_IsBroadcasting( IntPtr ISteamVideo, IntPtr /*int **/ pnNumViewers ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamVideo_GetOPFSettings( IntPtr ISteamVideo, uint unVideoAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamVideo_GetOPFStringForApp( IntPtr ISteamVideo, uint unVideoAppID, System.Text.StringBuilder /*char **/ pchBuffer, out int /*int32 **/ pnBufferSize ); - - // - // ISteamParentalSettings - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled( IntPtr ISteamParentalSettings ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsParentalLockLocked( IntPtr ISteamParentalSettings ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsAppBlocked( IntPtr ISteamParentalSettings, uint nAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsAppInBlockList( IntPtr ISteamParentalSettings, uint nAppID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsFeatureBlocked( IntPtr ISteamParentalSettings, ParentalFeature /*EParentalFeature*/ eFeature ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList( IntPtr ISteamParentalSettings, ParentalFeature /*EParentalFeature*/ eFeature ); - - // - // ISteamGameServer - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_InitGameServer( IntPtr ISteamGameServer, uint /*uint32*/ unIP, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, uint /*uint32*/ unFlags, uint nGameAppId, string /*const char **/ pchVersionString ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetProduct( IntPtr ISteamGameServer, string /*const char **/ pszProduct ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetGameDescription( IntPtr ISteamGameServer, string /*const char **/ pszGameDescription ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetModDir( IntPtr ISteamGameServer, string /*const char **/ pszModDir ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetDedicatedServer( IntPtr ISteamGameServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bDedicated ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_LogOn( IntPtr ISteamGameServer, string /*const char **/ pszToken ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_LogOnAnonymous( IntPtr ISteamGameServer ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_LogOff( IntPtr ISteamGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_BLoggedOn( IntPtr ISteamGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_BSecure( IntPtr ISteamGameServer ); - [DllImport( "steam_api64.dll" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamGameServer_GetSteamID( IntPtr ISteamGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_WasRestartRequested( IntPtr ISteamGameServer ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetMaxPlayerCount( IntPtr ISteamGameServer, int /*int*/ cPlayersMax ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetBotPlayerCount( IntPtr ISteamGameServer, int /*int*/ cBotplayers ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetServerName( IntPtr ISteamGameServer, string /*const char **/ pszServerName ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetMapName( IntPtr ISteamGameServer, string /*const char **/ pszMapName ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetPasswordProtected( IntPtr ISteamGameServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bPasswordProtected ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetSpectatorPort( IntPtr ISteamGameServer, ushort /*uint16*/ unSpectatorPort ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetSpectatorServerName( IntPtr ISteamGameServer, string /*const char **/ pszSpectatorServerName ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_ClearAllKeyValues( IntPtr ISteamGameServer ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetKeyValue( IntPtr ISteamGameServer, string /*const char **/ pKey, string /*const char **/ pValue ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetGameTags( IntPtr ISteamGameServer, string /*const char **/ pchGameTags ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetGameData( IntPtr ISteamGameServer, string /*const char **/ pchGameData ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetRegion( IntPtr ISteamGameServer, string /*const char **/ pszRegion ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate( IntPtr ISteamGameServer, uint /*uint32*/ unIPClient, IntPtr /*const void **/ pvAuthBlob, uint /*uint32*/ cubAuthBlobSize, out ulong pSteamIDUser ); - [DllImport( "steam_api64.dll" )] - internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection( IntPtr ISteamGameServer ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SendUserDisconnect( IntPtr ISteamGameServer, ulong steamIDUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_BUpdateUserData( IntPtr ISteamGameServer, ulong steamIDUser, string /*const char **/ pchPlayerName, uint /*uint32*/ uScore ); - [DllImport( "steam_api64.dll" )] - internal static extern HAuthTicket /*(HAuthTicket)*/ SteamAPI_ISteamGameServer_GetAuthSessionTicket( IntPtr ISteamGameServer, IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket ); - [DllImport( "steam_api64.dll" )] - internal static extern BeginAuthSessionResult /*EBeginAuthSessionResult*/ SteamAPI_ISteamGameServer_BeginAuthSession( IntPtr ISteamGameServer, IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_EndAuthSession( IntPtr ISteamGameServer, ulong steamID ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_CancelAuthTicket( IntPtr ISteamGameServer, uint hAuthTicket ); - [DllImport( "steam_api64.dll" )] - internal static extern UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ SteamAPI_ISteamGameServer_UserHasLicenseForApp( IntPtr ISteamGameServer, ulong steamID, uint appID ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_RequestUserGroupStatus( IntPtr ISteamGameServer, ulong steamIDUser, ulong steamIDGroup ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_GetGameplayStats( IntPtr ISteamGameServer ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServer_GetServerReputation( IntPtr ISteamGameServer ); - [DllImport( "steam_api64.dll" )] - internal static extern uint /*uint32*/ SteamAPI_ISteamGameServer_GetPublicIP( IntPtr ISteamGameServer ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_HandleIncomingPacket( IntPtr ISteamGameServer, IntPtr /*const void **/ pData, int /*int*/ cbData, uint /*uint32*/ srcIP, ushort /*uint16*/ srcPort ); - [DllImport( "steam_api64.dll" )] - internal static extern int /*int*/ SteamAPI_ISteamGameServer_GetNextOutgoingPacket( IntPtr ISteamGameServer, IntPtr /*void **/ pOut, int /*int*/ cbMaxOut, out uint /*uint32 **/ pNetAdr, out ushort /*uint16 **/ pPort ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_EnableHeartbeats( IntPtr ISteamGameServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bActive ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetHeartbeatInterval( IntPtr ISteamGameServer, int /*int*/ iHeartbeatInterval ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_ISteamGameServer_ForceHeartbeat( IntPtr ISteamGameServer ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServer_AssociateWithClan( IntPtr ISteamGameServer, ulong steamIDClan ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility( IntPtr ISteamGameServer, ulong steamIDNewPlayer ); - - // - // ISteamGameServerStats - // - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServerStats_RequestUserStats( IntPtr ISteamGameServerStats, ulong steamIDUser ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_GetUserStat( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_GetUserStat0( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_GetUserAchievement( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_SetUserStat( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, int /*int32*/ nData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_SetUserStat0( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, float /*float*/ fData ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_SetUserAchievement( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_ClearUserAchievement( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName ); - [DllImport( "steam_api64.dll" )] - internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServerStats_StoreUserStats( IntPtr ISteamGameServerStats, ulong steamIDUser ); - - // - // SteamApi - // - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_Init(); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_RunCallbacks(); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamGameServer_RunCallbacks(); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_RegisterCallback( IntPtr /*void **/ pCallback, int /*int*/ callback ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_UnregisterCallback( IntPtr /*void **/ pCallback ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_RegisterCallResult( IntPtr /*void **/ pCallback, ulong callback ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_UnregisterCallResult( IntPtr /*void **/ pCallback, ulong callback ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamInternal_GameServer_Init( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, int /*int*/ eServerMode, string /*const char **/ pchVersionString ); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamAPI_Shutdown(); - [DllImport( "steam_api64.dll" )] - internal static extern void /*void*/ SteamGameServer_Shutdown(); - [DllImport( "steam_api64.dll" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_GetHSteamUser(); - [DllImport( "steam_api64.dll" )] - internal static extern HSteamPipe /*(HSteamPipe)*/ SteamAPI_GetHSteamPipe(); - [DllImport( "steam_api64.dll" )] - internal static extern HSteamUser /*(HSteamUser)*/ SteamGameServer_GetHSteamUser(); - [DllImport( "steam_api64.dll" )] - internal static extern HSteamPipe /*(HSteamPipe)*/ SteamGameServer_GetHSteamPipe(); - [DllImport( "steam_api64.dll" )] - internal static extern IntPtr /*void **/ SteamInternal_CreateInterface( string /*const char **/ version ); - [return: MarshalAs(UnmanagedType.U1)] - [DllImport( "steam_api64.dll" )] - internal static extern bool /*bool*/ SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID ); - - } - } - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.cs b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.cs deleted file mode 100644 index bf8cfa9..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.cs +++ /dev/null @@ -1,76 +0,0 @@ -using System; -using System.IO; -using System.Runtime.InteropServices; - -namespace Facepunch.Steamworks -{ - public enum OperatingSystem - { - Unset, - Windows, - Linux, - macOS, - } -} - -namespace SteamNative -{ - internal static partial class Platform - { - private static Facepunch.Steamworks.OperatingSystem _os; - - public static Facepunch.Steamworks.OperatingSystem RunningPlatform() - { - switch (Environment.OSVersion.Platform) - { - case PlatformID.Unix: - // macOS sometimes reports to .NET as Unix. Fix is to check against macOS root folders - if (Directory.Exists("/Applications") && Directory.Exists("/System") && Directory.Exists("/Users") && Directory.Exists("/Volumes")) - return Facepunch.Steamworks.OperatingSystem.macOS; - else - return Facepunch.Steamworks.OperatingSystem.Linux; - case PlatformID.MacOSX: - return Facepunch.Steamworks.OperatingSystem.macOS; - - default: - return Facepunch.Steamworks.OperatingSystem.Windows; - } - } - - internal static Facepunch.Steamworks.OperatingSystem Os - { - get - { - // - // Work out our platform - // - if ( _os == Facepunch.Steamworks.OperatingSystem.Unset ) - { - _os = Facepunch.Steamworks.OperatingSystem.Windows; - -#if !NET_CORE - // Fixed Bet - _os = RunningPlatform(); -#endif - } - - return _os; - } - - set - { - _os = value; - } - } - - public static bool IsWindows => Os == Facepunch.Steamworks.OperatingSystem.Windows; - public static bool IsLinux => Os == Facepunch.Steamworks.OperatingSystem.Linux; - public static bool IsOsx => Os == Facepunch.Steamworks.OperatingSystem.macOS; - - - /// - /// We're only Pack = 8 on Windows - /// - public static bool PackSmall => Os != Facepunch.Steamworks.OperatingSystem.Windows; - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamApi.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamApi.cs deleted file mode 100644 index f2d680a..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamApi.cs +++ /dev/null @@ -1,139 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamApi : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamApi() - { - - if ( Platform.IsWindows ) platform = new Platform.Windows( ((IntPtr)1) ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( ((IntPtr)1) ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( ((IntPtr)1) ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // HSteamPipe - public HSteamPipe SteamAPI_GetHSteamPipe() - { - return platform.SteamApi_SteamAPI_GetHSteamPipe(); - } - - // HSteamUser - public HSteamUser SteamAPI_GetHSteamUser() - { - return platform.SteamApi_SteamAPI_GetHSteamUser(); - } - - // bool - public bool SteamAPI_Init() - { - return platform.SteamApi_SteamAPI_Init(); - } - - // void - public void SteamAPI_RegisterCallback( IntPtr pCallback /*void **/, int callback /*int*/ ) - { - platform.SteamApi_SteamAPI_RegisterCallback( (IntPtr) pCallback, callback ); - } - - // void - public void SteamAPI_RegisterCallResult( IntPtr pCallback /*void **/, SteamAPICall_t callback /*SteamAPICall_t*/ ) - { - platform.SteamApi_SteamAPI_RegisterCallResult( (IntPtr) pCallback, callback.Value ); - } - - // bool - public bool SteamAPI_RestartAppIfNecessary( uint unOwnAppID /*uint32*/ ) - { - return platform.SteamApi_SteamAPI_RestartAppIfNecessary( unOwnAppID ); - } - - // void - public void SteamAPI_RunCallbacks() - { - platform.SteamApi_SteamAPI_RunCallbacks(); - } - - // void - public void SteamAPI_Shutdown() - { - platform.SteamApi_SteamAPI_Shutdown(); - } - - // void - public void SteamAPI_UnregisterCallback( IntPtr pCallback /*void **/ ) - { - platform.SteamApi_SteamAPI_UnregisterCallback( (IntPtr) pCallback ); - } - - // void - public void SteamAPI_UnregisterCallResult( IntPtr pCallback /*void **/, SteamAPICall_t callback /*SteamAPICall_t*/ ) - { - platform.SteamApi_SteamAPI_UnregisterCallResult( (IntPtr) pCallback, callback.Value ); - } - - // HSteamPipe - public HSteamPipe SteamGameServer_GetHSteamPipe() - { - return platform.SteamApi_SteamGameServer_GetHSteamPipe(); - } - - // HSteamUser - public HSteamUser SteamGameServer_GetHSteamUser() - { - return platform.SteamApi_SteamGameServer_GetHSteamUser(); - } - - // void - public void SteamGameServer_RunCallbacks() - { - platform.SteamApi_SteamGameServer_RunCallbacks(); - } - - // void - public void SteamGameServer_Shutdown() - { - platform.SteamApi_SteamGameServer_Shutdown(); - } - - // IntPtr - public IntPtr SteamInternal_CreateInterface( string version /*const char **/ ) - { - return platform.SteamApi_SteamInternal_CreateInterface( version ); - } - - // bool - public bool SteamInternal_GameServer_Init( uint unIP /*uint32*/, ushort usPort /*uint16*/, ushort usGamePort /*uint16*/, ushort usQueryPort /*uint16*/, int eServerMode /*int*/, string pchVersionString /*const char **/ ) - { - return platform.SteamApi_SteamInternal_GameServer_Init( unIP, usPort, usGamePort, usQueryPort, eServerMode, pchVersionString ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamAppList.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamAppList.cs deleted file mode 100644 index e6697e9..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamAppList.cs +++ /dev/null @@ -1,92 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamAppList : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamAppList( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // int - public int GetAppBuildId( AppId_t nAppID /*AppId_t*/ ) - { - return platform.ISteamAppList_GetAppBuildId( nAppID.Value ); - } - - // int - // with: Detect_StringFetch True - public string GetAppInstallDir( AppId_t nAppID /*AppId_t*/ ) - { - int bSuccess = default( int ); - System.Text.StringBuilder pchDirectory_sb = Helpers.TakeStringBuilder(); - int cchNameMax = 4096; - bSuccess = platform.ISteamAppList_GetAppInstallDir( nAppID.Value, pchDirectory_sb, cchNameMax ); - if ( bSuccess <= 0 ) return null; - return pchDirectory_sb.ToString(); - } - - // int - // with: Detect_StringFetch True - public string GetAppName( AppId_t nAppID /*AppId_t*/ ) - { - int bSuccess = default( int ); - System.Text.StringBuilder pchName_sb = Helpers.TakeStringBuilder(); - int cchNameMax = 4096; - bSuccess = platform.ISteamAppList_GetAppName( nAppID.Value, pchName_sb, cchNameMax ); - if ( bSuccess <= 0 ) return null; - return pchName_sb.ToString(); - } - - // with: Detect_VectorReturn - // uint - public uint GetInstalledApps( AppId_t[] pvecAppID /*AppId_t **/ ) - { - var unMaxAppIDs = (uint) pvecAppID.Length; - fixed ( AppId_t* pvecAppID_ptr = pvecAppID ) - { - return platform.ISteamAppList_GetInstalledApps( (IntPtr) pvecAppID_ptr, unMaxAppIDs ); - } - } - - // uint - public uint GetNumInstalledApps() - { - return platform.ISteamAppList_GetNumInstalledApps(); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamApps.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamApps.cs deleted file mode 100644 index db5e24d..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamApps.cs +++ /dev/null @@ -1,254 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamApps : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamApps( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // bool - // with: Detect_StringFetch False - public bool BGetDLCDataByIndex( int iDLC /*int*/, ref AppId_t pAppID /*AppId_t **/, ref bool pbAvailable /*bool **/, out string pchName /*char **/ ) - { - bool bSuccess = default( bool ); - pchName = string.Empty; - System.Text.StringBuilder pchName_sb = Helpers.TakeStringBuilder(); - int cchNameBufferSize = 4096; - bSuccess = platform.ISteamApps_BGetDLCDataByIndex( iDLC, ref pAppID.Value, ref pbAvailable, pchName_sb, cchNameBufferSize ); - if ( !bSuccess ) return bSuccess; - pchName = pchName_sb.ToString(); - return bSuccess; - } - - // bool - public bool BIsAppInstalled( AppId_t appID /*AppId_t*/ ) - { - return platform.ISteamApps_BIsAppInstalled( appID.Value ); - } - - // bool - public bool BIsCybercafe() - { - return platform.ISteamApps_BIsCybercafe(); - } - - // bool - public bool BIsDlcInstalled( AppId_t appID /*AppId_t*/ ) - { - return platform.ISteamApps_BIsDlcInstalled( appID.Value ); - } - - // bool - public bool BIsLowViolence() - { - return platform.ISteamApps_BIsLowViolence(); - } - - // bool - public bool BIsSubscribed() - { - return platform.ISteamApps_BIsSubscribed(); - } - - // bool - public bool BIsSubscribedApp( AppId_t appID /*AppId_t*/ ) - { - return platform.ISteamApps_BIsSubscribedApp( appID.Value ); - } - - // bool - public bool BIsSubscribedFromFamilySharing() - { - return platform.ISteamApps_BIsSubscribedFromFamilySharing(); - } - - // bool - public bool BIsSubscribedFromFreeWeekend() - { - return platform.ISteamApps_BIsSubscribedFromFreeWeekend(); - } - - // bool - public bool BIsVACBanned() - { - return platform.ISteamApps_BIsVACBanned(); - } - - // int - public int GetAppBuildId() - { - return platform.ISteamApps_GetAppBuildId(); - } - - // uint - // with: Detect_StringFetch True - public string GetAppInstallDir( AppId_t appID /*AppId_t*/ ) - { - uint bSuccess = default( uint ); - System.Text.StringBuilder pchFolder_sb = Helpers.TakeStringBuilder(); - uint cchFolderBufferSize = 4096; - bSuccess = platform.ISteamApps_GetAppInstallDir( appID.Value, pchFolder_sb, cchFolderBufferSize ); - if ( bSuccess <= 0 ) return null; - return pchFolder_sb.ToString(); - } - - // ulong - public ulong GetAppOwner() - { - return platform.ISteamApps_GetAppOwner(); - } - - // string - // with: Detect_StringReturn - public string GetAvailableGameLanguages() - { - IntPtr string_pointer; - string_pointer = platform.ISteamApps_GetAvailableGameLanguages(); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // bool - // with: Detect_StringFetch True - public string GetCurrentBetaName() - { - bool bSuccess = default( bool ); - System.Text.StringBuilder pchName_sb = Helpers.TakeStringBuilder(); - int cchNameBufferSize = 4096; - bSuccess = platform.ISteamApps_GetCurrentBetaName( pchName_sb, cchNameBufferSize ); - if ( !bSuccess ) return null; - return pchName_sb.ToString(); - } - - // string - // with: Detect_StringReturn - public string GetCurrentGameLanguage() - { - IntPtr string_pointer; - string_pointer = platform.ISteamApps_GetCurrentGameLanguage(); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // int - public int GetDLCCount() - { - return platform.ISteamApps_GetDLCCount(); - } - - // bool - public bool GetDlcDownloadProgress( AppId_t nAppID /*AppId_t*/, out ulong punBytesDownloaded /*uint64 **/, out ulong punBytesTotal /*uint64 **/ ) - { - return platform.ISteamApps_GetDlcDownloadProgress( nAppID.Value, out punBytesDownloaded, out punBytesTotal ); - } - - // uint - public uint GetEarliestPurchaseUnixTime( AppId_t nAppID /*AppId_t*/ ) - { - return platform.ISteamApps_GetEarliestPurchaseUnixTime( nAppID.Value ); - } - - // SteamAPICall_t - public CallResult GetFileDetails( string pszFileName /*const char **/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamApps_GetFileDetails( pszFileName ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // uint - public uint GetInstalledDepots( AppId_t appID /*AppId_t*/, IntPtr pvecDepots /*DepotId_t **/, uint cMaxDepots /*uint32*/ ) - { - return platform.ISteamApps_GetInstalledDepots( appID.Value, (IntPtr) pvecDepots, cMaxDepots ); - } - - // int - // with: Detect_StringFetch True - public string GetLaunchCommandLine() - { - int bSuccess = default( int ); - System.Text.StringBuilder pszCommandLine_sb = Helpers.TakeStringBuilder(); - int cubCommandLine = 4096; - bSuccess = platform.ISteamApps_GetLaunchCommandLine( pszCommandLine_sb, cubCommandLine ); - if ( bSuccess <= 0 ) return null; - return pszCommandLine_sb.ToString(); - } - - // string - // with: Detect_StringReturn - public string GetLaunchQueryParam( string pchKey /*const char **/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamApps_GetLaunchQueryParam( pchKey ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // void - public void InstallDLC( AppId_t nAppID /*AppId_t*/ ) - { - platform.ISteamApps_InstallDLC( nAppID.Value ); - } - - // bool - public bool MarkContentCorrupt( bool bMissingFilesOnly /*bool*/ ) - { - return platform.ISteamApps_MarkContentCorrupt( bMissingFilesOnly ); - } - - // void - public void RequestAllProofOfPurchaseKeys() - { - platform.ISteamApps_RequestAllProofOfPurchaseKeys(); - } - - // void - public void RequestAppProofOfPurchaseKey( AppId_t nAppID /*AppId_t*/ ) - { - platform.ISteamApps_RequestAppProofOfPurchaseKey( nAppID.Value ); - } - - // void - public void UninstallDLC( AppId_t nAppID /*AppId_t*/ ) - { - platform.ISteamApps_UninstallDLC( nAppID.Value ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamClient.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamClient.cs deleted file mode 100644 index 74863bc..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamClient.cs +++ /dev/null @@ -1,330 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamClient : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamClient( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // bool - public bool BReleaseSteamPipe( HSteamPipe hSteamPipe /*HSteamPipe*/ ) - { - return platform.ISteamClient_BReleaseSteamPipe( hSteamPipe.Value ); - } - - // bool - public bool BShutdownIfAllPipesClosed() - { - return platform.ISteamClient_BShutdownIfAllPipesClosed(); - } - - // HSteamUser - public HSteamUser ConnectToGlobalUser( HSteamPipe hSteamPipe /*HSteamPipe*/ ) - { - return platform.ISteamClient_ConnectToGlobalUser( hSteamPipe.Value ); - } - - // HSteamUser - public HSteamUser CreateLocalUser( out HSteamPipe phSteamPipe /*HSteamPipe **/, AccountType eAccountType /*EAccountType*/ ) - { - return platform.ISteamClient_CreateLocalUser( out phSteamPipe.Value, eAccountType ); - } - - // HSteamPipe - public HSteamPipe CreateSteamPipe() - { - return platform.ISteamClient_CreateSteamPipe(); - } - - // uint - public uint GetIPCCallCount() - { - return platform.ISteamClient_GetIPCCallCount(); - } - - // ISteamAppList * - public SteamAppList GetISteamAppList( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamAppList( hSteamUser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamAppList( steamworks, interface_pointer ); - } - - // ISteamApps * - public SteamApps GetISteamApps( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamApps( hSteamUser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamApps( steamworks, interface_pointer ); - } - - // ISteamController * - public SteamController GetISteamController( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamController( hSteamUser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamController( steamworks, interface_pointer ); - } - - // ISteamFriends * - public SteamFriends GetISteamFriends( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamFriends( hSteamUser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamFriends( steamworks, interface_pointer ); - } - - // ISteamGameSearch * - public SteamGameSearch GetISteamGameSearch( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamGameSearch( hSteamuser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamGameSearch( steamworks, interface_pointer ); - } - - // ISteamGameServer * - public SteamGameServer GetISteamGameServer( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamGameServer( hSteamUser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamGameServer( steamworks, interface_pointer ); - } - - // ISteamGameServerStats * - public SteamGameServerStats GetISteamGameServerStats( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamGameServerStats( hSteamuser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamGameServerStats( steamworks, interface_pointer ); - } - - // IntPtr - public IntPtr GetISteamGenericInterface( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - return platform.ISteamClient_GetISteamGenericInterface( hSteamUser.Value, hSteamPipe.Value, pchVersion ); - } - - // ISteamHTMLSurface * - public SteamHTMLSurface GetISteamHTMLSurface( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamHTMLSurface( hSteamuser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamHTMLSurface( steamworks, interface_pointer ); - } - - // ISteamHTTP * - public SteamHTTP GetISteamHTTP( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamHTTP( hSteamuser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamHTTP( steamworks, interface_pointer ); - } - - // ISteamInput * - public SteamInput GetISteamInput( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamInput( hSteamUser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamInput( steamworks, interface_pointer ); - } - - // ISteamInventory * - public SteamInventory GetISteamInventory( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamInventory( hSteamuser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamInventory( steamworks, interface_pointer ); - } - - // ISteamMatchmaking * - public SteamMatchmaking GetISteamMatchmaking( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamMatchmaking( hSteamUser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamMatchmaking( steamworks, interface_pointer ); - } - - // ISteamMatchmakingServers * - public SteamMatchmakingServers GetISteamMatchmakingServers( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamMatchmakingServers( hSteamUser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamMatchmakingServers( steamworks, interface_pointer ); - } - - // ISteamMusic * - public SteamMusic GetISteamMusic( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamMusic( hSteamuser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamMusic( steamworks, interface_pointer ); - } - - // ISteamMusicRemote * - public SteamMusicRemote GetISteamMusicRemote( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamMusicRemote( hSteamuser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamMusicRemote( steamworks, interface_pointer ); - } - - // ISteamNetworking * - public SteamNetworking GetISteamNetworking( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamNetworking( hSteamUser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamNetworking( steamworks, interface_pointer ); - } - - // ISteamParentalSettings * - public SteamParentalSettings GetISteamParentalSettings( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamParentalSettings( hSteamuser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamParentalSettings( steamworks, interface_pointer ); - } - - // ISteamParties * - public SteamParties GetISteamParties( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamParties( hSteamUser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamParties( steamworks, interface_pointer ); - } - - // ISteamRemoteStorage * - public SteamRemoteStorage GetISteamRemoteStorage( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamRemoteStorage( hSteamuser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamRemoteStorage( steamworks, interface_pointer ); - } - - // ISteamScreenshots * - public SteamScreenshots GetISteamScreenshots( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamScreenshots( hSteamuser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamScreenshots( steamworks, interface_pointer ); - } - - // ISteamUGC * - public SteamUGC GetISteamUGC( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamUGC( hSteamUser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamUGC( steamworks, interface_pointer ); - } - - // ISteamUser * - public SteamUser GetISteamUser( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamUser( hSteamUser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamUser( steamworks, interface_pointer ); - } - - // ISteamUserStats * - public SteamUserStats GetISteamUserStats( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamUserStats( hSteamUser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamUserStats( steamworks, interface_pointer ); - } - - // ISteamUtils * - public SteamUtils GetISteamUtils( HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamUtils( hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamUtils( steamworks, interface_pointer ); - } - - // ISteamVideo * - public SteamVideo GetISteamVideo( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ ) - { - IntPtr interface_pointer; - interface_pointer = platform.ISteamClient_GetISteamVideo( hSteamuser.Value, hSteamPipe.Value, pchVersion ); - if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}"); - return new SteamVideo( steamworks, interface_pointer ); - } - - // void - public void ReleaseUser( HSteamPipe hSteamPipe /*HSteamPipe*/, HSteamUser hUser /*HSteamUser*/ ) - { - platform.ISteamClient_ReleaseUser( hSteamPipe.Value, hUser.Value ); - } - - // void - public void SetLocalIPBinding( uint unIP /*uint32*/, ushort usPort /*uint16*/ ) - { - platform.ISteamClient_SetLocalIPBinding( unIP, usPort ); - } - - // void - public void SetWarningMessageHook( IntPtr pFunction /*SteamAPIWarningMessageHook_t*/ ) - { - platform.ISteamClient_SetWarningMessageHook( (IntPtr) pFunction ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamController.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamController.cs deleted file mode 100644 index 63990e2..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamController.cs +++ /dev/null @@ -1,255 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamController : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamController( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // void - public void ActivateActionSet( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ControllerActionSetHandle_t actionSetHandle /*ControllerActionSetHandle_t*/ ) - { - platform.ISteamController_ActivateActionSet( controllerHandle.Value, actionSetHandle.Value ); - } - - // void - public void ActivateActionSetLayer( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ControllerActionSetHandle_t actionSetLayerHandle /*ControllerActionSetHandle_t*/ ) - { - platform.ISteamController_ActivateActionSetLayer( controllerHandle.Value, actionSetLayerHandle.Value ); - } - - // void - public void DeactivateActionSetLayer( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ControllerActionSetHandle_t actionSetLayerHandle /*ControllerActionSetHandle_t*/ ) - { - platform.ISteamController_DeactivateActionSetLayer( controllerHandle.Value, actionSetLayerHandle.Value ); - } - - // void - public void DeactivateAllActionSetLayers( ControllerHandle_t controllerHandle /*ControllerHandle_t*/ ) - { - platform.ISteamController_DeactivateAllActionSetLayers( controllerHandle.Value ); - } - - // ControllerActionOrigin - public ControllerActionOrigin GetActionOriginFromXboxOrigin( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, XboxOrigin eOrigin /*EXboxOrigin*/ ) - { - return platform.ISteamController_GetActionOriginFromXboxOrigin( controllerHandle.Value, eOrigin ); - } - - // ControllerActionSetHandle_t - public ControllerActionSetHandle_t GetActionSetHandle( string pszActionSetName /*const char **/ ) - { - return platform.ISteamController_GetActionSetHandle( pszActionSetName ); - } - - // int - public int GetActiveActionSetLayers( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, IntPtr handlesOut /*ControllerActionSetHandle_t **/ ) - { - return platform.ISteamController_GetActiveActionSetLayers( controllerHandle.Value, (IntPtr) handlesOut ); - } - - // InputAnalogActionData_t - public InputAnalogActionData_t GetAnalogActionData( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ControllerAnalogActionHandle_t analogActionHandle /*ControllerAnalogActionHandle_t*/ ) - { - return platform.ISteamController_GetAnalogActionData( controllerHandle.Value, analogActionHandle.Value ); - } - - // ControllerAnalogActionHandle_t - public ControllerAnalogActionHandle_t GetAnalogActionHandle( string pszActionName /*const char **/ ) - { - return platform.ISteamController_GetAnalogActionHandle( pszActionName ); - } - - // int - public int GetAnalogActionOrigins( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ControllerActionSetHandle_t actionSetHandle /*ControllerActionSetHandle_t*/, ControllerAnalogActionHandle_t analogActionHandle /*ControllerAnalogActionHandle_t*/, out ControllerActionOrigin originsOut /*EControllerActionOrigin **/ ) - { - return platform.ISteamController_GetAnalogActionOrigins( controllerHandle.Value, actionSetHandle.Value, analogActionHandle.Value, out originsOut ); - } - - // int - public int GetConnectedControllers( IntPtr handlesOut /*ControllerHandle_t **/ ) - { - return platform.ISteamController_GetConnectedControllers( (IntPtr) handlesOut ); - } - - // ControllerHandle_t - public ControllerHandle_t GetControllerForGamepadIndex( int nIndex /*int*/ ) - { - return platform.ISteamController_GetControllerForGamepadIndex( nIndex ); - } - - // ControllerActionSetHandle_t - public ControllerActionSetHandle_t GetCurrentActionSet( ControllerHandle_t controllerHandle /*ControllerHandle_t*/ ) - { - return platform.ISteamController_GetCurrentActionSet( controllerHandle.Value ); - } - - // InputDigitalActionData_t - public InputDigitalActionData_t GetDigitalActionData( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ControllerDigitalActionHandle_t digitalActionHandle /*ControllerDigitalActionHandle_t*/ ) - { - return platform.ISteamController_GetDigitalActionData( controllerHandle.Value, digitalActionHandle.Value ); - } - - // ControllerDigitalActionHandle_t - public ControllerDigitalActionHandle_t GetDigitalActionHandle( string pszActionName /*const char **/ ) - { - return platform.ISteamController_GetDigitalActionHandle( pszActionName ); - } - - // int - public int GetDigitalActionOrigins( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ControllerActionSetHandle_t actionSetHandle /*ControllerActionSetHandle_t*/, ControllerDigitalActionHandle_t digitalActionHandle /*ControllerDigitalActionHandle_t*/, out ControllerActionOrigin originsOut /*EControllerActionOrigin **/ ) - { - return platform.ISteamController_GetDigitalActionOrigins( controllerHandle.Value, actionSetHandle.Value, digitalActionHandle.Value, out originsOut ); - } - - // int - public int GetGamepadIndexForController( ControllerHandle_t ulControllerHandle /*ControllerHandle_t*/ ) - { - return platform.ISteamController_GetGamepadIndexForController( ulControllerHandle.Value ); - } - - // string - // with: Detect_StringReturn - public string GetGlyphForActionOrigin( ControllerActionOrigin eOrigin /*EControllerActionOrigin*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamController_GetGlyphForActionOrigin( eOrigin ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // string - // with: Detect_StringReturn - public string GetGlyphForXboxOrigin( XboxOrigin eOrigin /*EXboxOrigin*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamController_GetGlyphForXboxOrigin( eOrigin ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // SteamInputType - public SteamInputType GetInputTypeForHandle( ControllerHandle_t controllerHandle /*ControllerHandle_t*/ ) - { - return platform.ISteamController_GetInputTypeForHandle( controllerHandle.Value ); - } - - // InputMotionData_t - public InputMotionData_t GetMotionData( ControllerHandle_t controllerHandle /*ControllerHandle_t*/ ) - { - return platform.ISteamController_GetMotionData( controllerHandle.Value ); - } - - // string - // with: Detect_StringReturn - public string GetStringForActionOrigin( ControllerActionOrigin eOrigin /*EControllerActionOrigin*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamController_GetStringForActionOrigin( eOrigin ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // string - // with: Detect_StringReturn - public string GetStringForXboxOrigin( XboxOrigin eOrigin /*EXboxOrigin*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamController_GetStringForXboxOrigin( eOrigin ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // bool - public bool Init() - { - return platform.ISteamController_Init(); - } - - // void - public void RunFrame() - { - platform.ISteamController_RunFrame(); - } - - // void - public void SetLEDColor( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, byte nColorR /*uint8*/, byte nColorG /*uint8*/, byte nColorB /*uint8*/, uint nFlags /*unsigned int*/ ) - { - platform.ISteamController_SetLEDColor( controllerHandle.Value, nColorR, nColorG, nColorB, nFlags ); - } - - // bool - public bool ShowBindingPanel( ControllerHandle_t controllerHandle /*ControllerHandle_t*/ ) - { - return platform.ISteamController_ShowBindingPanel( controllerHandle.Value ); - } - - // bool - public bool Shutdown() - { - return platform.ISteamController_Shutdown(); - } - - // void - public void StopAnalogActionMomentum( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ControllerAnalogActionHandle_t eAction /*ControllerAnalogActionHandle_t*/ ) - { - platform.ISteamController_StopAnalogActionMomentum( controllerHandle.Value, eAction.Value ); - } - - // ControllerActionOrigin - public ControllerActionOrigin TranslateActionOrigin( SteamInputType eDestinationInputType /*ESteamInputType*/, ControllerActionOrigin eSourceOrigin /*EControllerActionOrigin*/ ) - { - return platform.ISteamController_TranslateActionOrigin( eDestinationInputType, eSourceOrigin ); - } - - // void - public void TriggerHapticPulse( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, SteamControllerPad eTargetPad /*ESteamControllerPad*/, ushort usDurationMicroSec /*unsigned short*/ ) - { - platform.ISteamController_TriggerHapticPulse( controllerHandle.Value, eTargetPad, usDurationMicroSec ); - } - - // void - public void TriggerRepeatedHapticPulse( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, SteamControllerPad eTargetPad /*ESteamControllerPad*/, ushort usDurationMicroSec /*unsigned short*/, ushort usOffMicroSec /*unsigned short*/, ushort unRepeat /*unsigned short*/, uint nFlags /*unsigned int*/ ) - { - platform.ISteamController_TriggerRepeatedHapticPulse( controllerHandle.Value, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags ); - } - - // void - public void TriggerVibration( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ushort usLeftSpeed /*unsigned short*/, ushort usRightSpeed /*unsigned short*/ ) - { - platform.ISteamController_TriggerVibration( controllerHandle.Value, usLeftSpeed, usRightSpeed ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamFriends.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamFriends.cs deleted file mode 100644 index 99cc338..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamFriends.cs +++ /dev/null @@ -1,546 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamFriends : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamFriends( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // void - public void ActivateGameOverlay( string pchDialog /*const char **/ ) - { - platform.ISteamFriends_ActivateGameOverlay( pchDialog ); - } - - // void - public void ActivateGameOverlayInviteDialog( CSteamID steamIDLobby /*class CSteamID*/ ) - { - platform.ISteamFriends_ActivateGameOverlayInviteDialog( steamIDLobby.Value ); - } - - // void - public void ActivateGameOverlayToStore( AppId_t nAppID /*AppId_t*/, OverlayToStoreFlag eFlag /*EOverlayToStoreFlag*/ ) - { - platform.ISteamFriends_ActivateGameOverlayToStore( nAppID.Value, eFlag ); - } - - // void - public void ActivateGameOverlayToUser( string pchDialog /*const char **/, CSteamID steamID /*class CSteamID*/ ) - { - platform.ISteamFriends_ActivateGameOverlayToUser( pchDialog, steamID.Value ); - } - - // void - public void ActivateGameOverlayToWebPage( string pchURL /*const char **/, ActivateGameOverlayToWebPageMode eMode /*EActivateGameOverlayToWebPageMode*/ ) - { - platform.ISteamFriends_ActivateGameOverlayToWebPage( pchURL, eMode ); - } - - // void - public void ClearRichPresence() - { - platform.ISteamFriends_ClearRichPresence(); - } - - // bool - public bool CloseClanChatWindowInSteam( CSteamID steamIDClanChat /*class CSteamID*/ ) - { - return platform.ISteamFriends_CloseClanChatWindowInSteam( steamIDClanChat.Value ); - } - - // SteamAPICall_t - public SteamAPICall_t DownloadClanActivityCounts( IntPtr psteamIDClans /*class CSteamID **/, int cClansToRequest /*int*/ ) - { - return platform.ISteamFriends_DownloadClanActivityCounts( (IntPtr) psteamIDClans, cClansToRequest ); - } - - // SteamAPICall_t - public CallResult EnumerateFollowingList( uint unStartIndex /*uint32*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamFriends_EnumerateFollowingList( unStartIndex ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // ulong - public ulong GetChatMemberByIndex( CSteamID steamIDClan /*class CSteamID*/, int iUser /*int*/ ) - { - return platform.ISteamFriends_GetChatMemberByIndex( steamIDClan.Value, iUser ); - } - - // bool - public bool GetClanActivityCounts( CSteamID steamIDClan /*class CSteamID*/, out int pnOnline /*int **/, out int pnInGame /*int **/, out int pnChatting /*int **/ ) - { - return platform.ISteamFriends_GetClanActivityCounts( steamIDClan.Value, out pnOnline, out pnInGame, out pnChatting ); - } - - // ulong - public ulong GetClanByIndex( int iClan /*int*/ ) - { - return platform.ISteamFriends_GetClanByIndex( iClan ); - } - - // int - public int GetClanChatMemberCount( CSteamID steamIDClan /*class CSteamID*/ ) - { - return platform.ISteamFriends_GetClanChatMemberCount( steamIDClan.Value ); - } - - // int - public int GetClanChatMessage( CSteamID steamIDClanChat /*class CSteamID*/, int iMessage /*int*/, IntPtr prgchText /*void **/, int cchTextMax /*int*/, out ChatEntryType peChatEntryType /*EChatEntryType **/, out CSteamID psteamidChatter /*class CSteamID **/ ) - { - return platform.ISteamFriends_GetClanChatMessage( steamIDClanChat.Value, iMessage, (IntPtr) prgchText, cchTextMax, out peChatEntryType, out psteamidChatter.Value ); - } - - // int - public int GetClanCount() - { - return platform.ISteamFriends_GetClanCount(); - } - - // string - // with: Detect_StringReturn - public string GetClanName( CSteamID steamIDClan /*class CSteamID*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamFriends_GetClanName( steamIDClan.Value ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // ulong - public ulong GetClanOfficerByIndex( CSteamID steamIDClan /*class CSteamID*/, int iOfficer /*int*/ ) - { - return platform.ISteamFriends_GetClanOfficerByIndex( steamIDClan.Value, iOfficer ); - } - - // int - public int GetClanOfficerCount( CSteamID steamIDClan /*class CSteamID*/ ) - { - return platform.ISteamFriends_GetClanOfficerCount( steamIDClan.Value ); - } - - // ulong - public ulong GetClanOwner( CSteamID steamIDClan /*class CSteamID*/ ) - { - return platform.ISteamFriends_GetClanOwner( steamIDClan.Value ); - } - - // string - // with: Detect_StringReturn - public string GetClanTag( CSteamID steamIDClan /*class CSteamID*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamFriends_GetClanTag( steamIDClan.Value ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // ulong - public ulong GetCoplayFriend( int iCoplayFriend /*int*/ ) - { - return platform.ISteamFriends_GetCoplayFriend( iCoplayFriend ); - } - - // int - public int GetCoplayFriendCount() - { - return platform.ISteamFriends_GetCoplayFriendCount(); - } - - // SteamAPICall_t - public CallResult GetFollowerCount( CSteamID steamID /*class CSteamID*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamFriends_GetFollowerCount( steamID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // ulong - public ulong GetFriendByIndex( int iFriend /*int*/, int iFriendFlags /*int*/ ) - { - return platform.ISteamFriends_GetFriendByIndex( iFriend, iFriendFlags ); - } - - // AppId_t - public AppId_t GetFriendCoplayGame( CSteamID steamIDFriend /*class CSteamID*/ ) - { - return platform.ISteamFriends_GetFriendCoplayGame( steamIDFriend.Value ); - } - - // int - public int GetFriendCoplayTime( CSteamID steamIDFriend /*class CSteamID*/ ) - { - return platform.ISteamFriends_GetFriendCoplayTime( steamIDFriend.Value ); - } - - // int - public int GetFriendCount( int iFriendFlags /*int*/ ) - { - return platform.ISteamFriends_GetFriendCount( iFriendFlags ); - } - - // int - public int GetFriendCountFromSource( CSteamID steamIDSource /*class CSteamID*/ ) - { - return platform.ISteamFriends_GetFriendCountFromSource( steamIDSource.Value ); - } - - // ulong - public ulong GetFriendFromSourceByIndex( CSteamID steamIDSource /*class CSteamID*/, int iFriend /*int*/ ) - { - return platform.ISteamFriends_GetFriendFromSourceByIndex( steamIDSource.Value, iFriend ); - } - - // bool - public bool GetFriendGamePlayed( CSteamID steamIDFriend /*class CSteamID*/, ref FriendGameInfo_t pFriendGameInfo /*struct FriendGameInfo_t **/ ) - { - return platform.ISteamFriends_GetFriendGamePlayed( steamIDFriend.Value, ref pFriendGameInfo ); - } - - // int - public int GetFriendMessage( CSteamID steamIDFriend /*class CSteamID*/, int iMessageID /*int*/, IntPtr pvData /*void **/, int cubData /*int*/, out ChatEntryType peChatEntryType /*EChatEntryType **/ ) - { - return platform.ISteamFriends_GetFriendMessage( steamIDFriend.Value, iMessageID, (IntPtr) pvData, cubData, out peChatEntryType ); - } - - // string - // with: Detect_StringReturn - public string GetFriendPersonaName( CSteamID steamIDFriend /*class CSteamID*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamFriends_GetFriendPersonaName( steamIDFriend.Value ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // string - // with: Detect_StringReturn - public string GetFriendPersonaNameHistory( CSteamID steamIDFriend /*class CSteamID*/, int iPersonaName /*int*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamFriends_GetFriendPersonaNameHistory( steamIDFriend.Value, iPersonaName ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // PersonaState - public PersonaState GetFriendPersonaState( CSteamID steamIDFriend /*class CSteamID*/ ) - { - return platform.ISteamFriends_GetFriendPersonaState( steamIDFriend.Value ); - } - - // FriendRelationship - public FriendRelationship GetFriendRelationship( CSteamID steamIDFriend /*class CSteamID*/ ) - { - return platform.ISteamFriends_GetFriendRelationship( steamIDFriend.Value ); - } - - // string - // with: Detect_StringReturn - public string GetFriendRichPresence( CSteamID steamIDFriend /*class CSteamID*/, string pchKey /*const char **/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamFriends_GetFriendRichPresence( steamIDFriend.Value, pchKey ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // string - // with: Detect_StringReturn - public string GetFriendRichPresenceKeyByIndex( CSteamID steamIDFriend /*class CSteamID*/, int iKey /*int*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamFriends_GetFriendRichPresenceKeyByIndex( steamIDFriend.Value, iKey ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // int - public int GetFriendRichPresenceKeyCount( CSteamID steamIDFriend /*class CSteamID*/ ) - { - return platform.ISteamFriends_GetFriendRichPresenceKeyCount( steamIDFriend.Value ); - } - - // int - public int GetFriendsGroupCount() - { - return platform.ISteamFriends_GetFriendsGroupCount(); - } - - // FriendsGroupID_t - public FriendsGroupID_t GetFriendsGroupIDByIndex( int iFG /*int*/ ) - { - return platform.ISteamFriends_GetFriendsGroupIDByIndex( iFG ); - } - - // int - public int GetFriendsGroupMembersCount( FriendsGroupID_t friendsGroupID /*FriendsGroupID_t*/ ) - { - return platform.ISteamFriends_GetFriendsGroupMembersCount( friendsGroupID.Value ); - } - - // void - public void GetFriendsGroupMembersList( FriendsGroupID_t friendsGroupID /*FriendsGroupID_t*/, IntPtr pOutSteamIDMembers /*class CSteamID **/, int nMembersCount /*int*/ ) - { - platform.ISteamFriends_GetFriendsGroupMembersList( friendsGroupID.Value, (IntPtr) pOutSteamIDMembers, nMembersCount ); - } - - // string - // with: Detect_StringReturn - public string GetFriendsGroupName( FriendsGroupID_t friendsGroupID /*FriendsGroupID_t*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamFriends_GetFriendsGroupName( friendsGroupID.Value ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // int - public int GetFriendSteamLevel( CSteamID steamIDFriend /*class CSteamID*/ ) - { - return platform.ISteamFriends_GetFriendSteamLevel( steamIDFriend.Value ); - } - - // int - public int GetLargeFriendAvatar( CSteamID steamIDFriend /*class CSteamID*/ ) - { - return platform.ISteamFriends_GetLargeFriendAvatar( steamIDFriend.Value ); - } - - // int - public int GetMediumFriendAvatar( CSteamID steamIDFriend /*class CSteamID*/ ) - { - return platform.ISteamFriends_GetMediumFriendAvatar( steamIDFriend.Value ); - } - - // int - public int GetNumChatsWithUnreadPriorityMessages() - { - return platform.ISteamFriends_GetNumChatsWithUnreadPriorityMessages(); - } - - // string - // with: Detect_StringReturn - public string GetPersonaName() - { - IntPtr string_pointer; - string_pointer = platform.ISteamFriends_GetPersonaName(); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // PersonaState - public PersonaState GetPersonaState() - { - return platform.ISteamFriends_GetPersonaState(); - } - - // string - // with: Detect_StringReturn - public string GetPlayerNickname( CSteamID steamIDPlayer /*class CSteamID*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamFriends_GetPlayerNickname( steamIDPlayer.Value ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // int - public int GetSmallFriendAvatar( CSteamID steamIDFriend /*class CSteamID*/ ) - { - return platform.ISteamFriends_GetSmallFriendAvatar( steamIDFriend.Value ); - } - - // uint - public uint GetUserRestrictions() - { - return platform.ISteamFriends_GetUserRestrictions(); - } - - // bool - public bool HasFriend( CSteamID steamIDFriend /*class CSteamID*/, int iFriendFlags /*int*/ ) - { - return platform.ISteamFriends_HasFriend( steamIDFriend.Value, iFriendFlags ); - } - - // bool - public bool InviteUserToGame( CSteamID steamIDFriend /*class CSteamID*/, string pchConnectString /*const char **/ ) - { - return platform.ISteamFriends_InviteUserToGame( steamIDFriend.Value, pchConnectString ); - } - - // bool - public bool IsClanChatAdmin( CSteamID steamIDClanChat /*class CSteamID*/, CSteamID steamIDUser /*class CSteamID*/ ) - { - return platform.ISteamFriends_IsClanChatAdmin( steamIDClanChat.Value, steamIDUser.Value ); - } - - // bool - public bool IsClanChatWindowOpenInSteam( CSteamID steamIDClanChat /*class CSteamID*/ ) - { - return platform.ISteamFriends_IsClanChatWindowOpenInSteam( steamIDClanChat.Value ); - } - - // bool - public bool IsClanOfficialGameGroup( CSteamID steamIDClan /*class CSteamID*/ ) - { - return platform.ISteamFriends_IsClanOfficialGameGroup( steamIDClan.Value ); - } - - // bool - public bool IsClanPublic( CSteamID steamIDClan /*class CSteamID*/ ) - { - return platform.ISteamFriends_IsClanPublic( steamIDClan.Value ); - } - - // SteamAPICall_t - public CallResult IsFollowing( CSteamID steamID /*class CSteamID*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamFriends_IsFollowing( steamID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool IsUserInSource( CSteamID steamIDUser /*class CSteamID*/, CSteamID steamIDSource /*class CSteamID*/ ) - { - return platform.ISteamFriends_IsUserInSource( steamIDUser.Value, steamIDSource.Value ); - } - - // SteamAPICall_t - public CallResult JoinClanChatRoom( CSteamID steamIDClan /*class CSteamID*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamFriends_JoinClanChatRoom( steamIDClan.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool LeaveClanChatRoom( CSteamID steamIDClan /*class CSteamID*/ ) - { - return platform.ISteamFriends_LeaveClanChatRoom( steamIDClan.Value ); - } - - // bool - public bool OpenClanChatWindowInSteam( CSteamID steamIDClanChat /*class CSteamID*/ ) - { - return platform.ISteamFriends_OpenClanChatWindowInSteam( steamIDClanChat.Value ); - } - - // bool - public bool ReplyToFriendMessage( CSteamID steamIDFriend /*class CSteamID*/, string pchMsgToSend /*const char **/ ) - { - return platform.ISteamFriends_ReplyToFriendMessage( steamIDFriend.Value, pchMsgToSend ); - } - - // SteamAPICall_t - public CallResult RequestClanOfficerList( CSteamID steamIDClan /*class CSteamID*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamFriends_RequestClanOfficerList( steamIDClan.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // void - public void RequestFriendRichPresence( CSteamID steamIDFriend /*class CSteamID*/ ) - { - platform.ISteamFriends_RequestFriendRichPresence( steamIDFriend.Value ); - } - - // bool - public bool RequestUserInformation( CSteamID steamIDUser /*class CSteamID*/, bool bRequireNameOnly /*bool*/ ) - { - return platform.ISteamFriends_RequestUserInformation( steamIDUser.Value, bRequireNameOnly ); - } - - // bool - public bool SendClanChatMessage( CSteamID steamIDClanChat /*class CSteamID*/, string pchText /*const char **/ ) - { - return platform.ISteamFriends_SendClanChatMessage( steamIDClanChat.Value, pchText ); - } - - // void - public void SetInGameVoiceSpeaking( CSteamID steamIDUser /*class CSteamID*/, bool bSpeaking /*bool*/ ) - { - platform.ISteamFriends_SetInGameVoiceSpeaking( steamIDUser.Value, bSpeaking ); - } - - // bool - public bool SetListenForFriendsMessages( bool bInterceptEnabled /*bool*/ ) - { - return platform.ISteamFriends_SetListenForFriendsMessages( bInterceptEnabled ); - } - - // SteamAPICall_t - public CallResult SetPersonaName( string pchPersonaName /*const char **/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamFriends_SetPersonaName( pchPersonaName ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // void - public void SetPlayedWith( CSteamID steamIDUserPlayedWith /*class CSteamID*/ ) - { - platform.ISteamFriends_SetPlayedWith( steamIDUserPlayedWith.Value ); - } - - // bool - public bool SetRichPresence( string pchKey /*const char **/, string pchValue /*const char **/ ) - { - return platform.ISteamFriends_SetRichPresence( pchKey, pchValue ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameSearch.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameSearch.cs deleted file mode 100644 index 0f0e49e..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameSearch.cs +++ /dev/null @@ -1,136 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamGameSearch : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamGameSearch( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // GameSearchErrorCode_t - public GameSearchErrorCode_t AcceptGame() - { - return platform.ISteamGameSearch_AcceptGame(); - } - - // GameSearchErrorCode_t - public GameSearchErrorCode_t AddGameSearchParams( string pchKeyToFind /*const char **/, string pchValuesToFind /*const char **/ ) - { - return platform.ISteamGameSearch_AddGameSearchParams( pchKeyToFind, pchValuesToFind ); - } - - // GameSearchErrorCode_t - public GameSearchErrorCode_t CancelRequestPlayersForGame() - { - return platform.ISteamGameSearch_CancelRequestPlayersForGame(); - } - - // GameSearchErrorCode_t - public GameSearchErrorCode_t DeclineGame() - { - return platform.ISteamGameSearch_DeclineGame(); - } - - // GameSearchErrorCode_t - public GameSearchErrorCode_t EndGame( ulong ullUniqueGameID /*uint64*/ ) - { - return platform.ISteamGameSearch_EndGame( ullUniqueGameID ); - } - - // GameSearchErrorCode_t - public GameSearchErrorCode_t EndGameSearch() - { - return platform.ISteamGameSearch_EndGameSearch(); - } - - // GameSearchErrorCode_t - public GameSearchErrorCode_t HostConfirmGameStart( ulong ullUniqueGameID /*uint64*/ ) - { - return platform.ISteamGameSearch_HostConfirmGameStart( ullUniqueGameID ); - } - - // GameSearchErrorCode_t - public GameSearchErrorCode_t RequestPlayersForGame( int nPlayerMin /*int*/, int nPlayerMax /*int*/, int nMaxTeamSize /*int*/ ) - { - return platform.ISteamGameSearch_RequestPlayersForGame( nPlayerMin, nPlayerMax, nMaxTeamSize ); - } - - // GameSearchErrorCode_t - // with: Detect_StringFetch False - public GameSearchErrorCode_t RetrieveConnectionDetails( CSteamID steamIDHost /*class CSteamID*/, out string pchConnectionDetails /*char **/ ) - { - GameSearchErrorCode_t bSuccess = default( GameSearchErrorCode_t ); - pchConnectionDetails = string.Empty; - System.Text.StringBuilder pchConnectionDetails_sb = Helpers.TakeStringBuilder(); - int cubConnectionDetails = 4096; - bSuccess = platform.ISteamGameSearch_RetrieveConnectionDetails( steamIDHost.Value, pchConnectionDetails_sb, cubConnectionDetails ); - pchConnectionDetails = pchConnectionDetails_sb.ToString(); - return bSuccess; - } - - // GameSearchErrorCode_t - public GameSearchErrorCode_t SearchForGameSolo( int nPlayerMin /*int*/, int nPlayerMax /*int*/ ) - { - return platform.ISteamGameSearch_SearchForGameSolo( nPlayerMin, nPlayerMax ); - } - - // GameSearchErrorCode_t - public GameSearchErrorCode_t SearchForGameWithLobby( CSteamID steamIDLobby /*class CSteamID*/, int nPlayerMin /*int*/, int nPlayerMax /*int*/ ) - { - return platform.ISteamGameSearch_SearchForGameWithLobby( steamIDLobby.Value, nPlayerMin, nPlayerMax ); - } - - // GameSearchErrorCode_t - public GameSearchErrorCode_t SetConnectionDetails( string pchConnectionDetails /*const char **/, int cubConnectionDetails /*int*/ ) - { - return platform.ISteamGameSearch_SetConnectionDetails( pchConnectionDetails, cubConnectionDetails ); - } - - // GameSearchErrorCode_t - public GameSearchErrorCode_t SetGameHostParams( string pchKey /*const char **/, string pchValue /*const char **/ ) - { - return platform.ISteamGameSearch_SetGameHostParams( pchKey, pchValue ); - } - - // GameSearchErrorCode_t - public GameSearchErrorCode_t SubmitPlayerResult( ulong ullUniqueGameID /*uint64*/, CSteamID steamIDPlayer /*class CSteamID*/, PlayerResult_t EPlayerResult /*EPlayerResult_t*/ ) - { - return platform.ISteamGameSearch_SubmitPlayerResult( ullUniqueGameID, steamIDPlayer.Value, EPlayerResult ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameServer.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameServer.cs deleted file mode 100644 index 7e5aa83..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameServer.cs +++ /dev/null @@ -1,327 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamGameServer : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamGameServer( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // SteamAPICall_t - public CallResult AssociateWithClan( CSteamID steamIDClan /*class CSteamID*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamGameServer_AssociateWithClan( steamIDClan.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // BeginAuthSessionResult - public BeginAuthSessionResult BeginAuthSession( IntPtr pAuthTicket /*const void **/, int cbAuthTicket /*int*/, CSteamID steamID /*class CSteamID*/ ) - { - return platform.ISteamGameServer_BeginAuthSession( (IntPtr) pAuthTicket, cbAuthTicket, steamID.Value ); - } - - // bool - public bool BLoggedOn() - { - return platform.ISteamGameServer_BLoggedOn(); - } - - // bool - public bool BSecure() - { - return platform.ISteamGameServer_BSecure(); - } - - // bool - public bool BUpdateUserData( CSteamID steamIDUser /*class CSteamID*/, string pchPlayerName /*const char **/, uint uScore /*uint32*/ ) - { - return platform.ISteamGameServer_BUpdateUserData( steamIDUser.Value, pchPlayerName, uScore ); - } - - // void - public void CancelAuthTicket( HAuthTicket hAuthTicket /*HAuthTicket*/ ) - { - platform.ISteamGameServer_CancelAuthTicket( hAuthTicket.Value ); - } - - // void - public void ClearAllKeyValues() - { - platform.ISteamGameServer_ClearAllKeyValues(); - } - - // SteamAPICall_t - public CallResult ComputeNewPlayerCompatibility( CSteamID steamIDNewPlayer /*class CSteamID*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamGameServer_ComputeNewPlayerCompatibility( steamIDNewPlayer.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // ulong - public ulong CreateUnauthenticatedUserConnection() - { - return platform.ISteamGameServer_CreateUnauthenticatedUserConnection(); - } - - // void - public void EnableHeartbeats( bool bActive /*bool*/ ) - { - platform.ISteamGameServer_EnableHeartbeats( bActive ); - } - - // void - public void EndAuthSession( CSteamID steamID /*class CSteamID*/ ) - { - platform.ISteamGameServer_EndAuthSession( steamID.Value ); - } - - // void - public void ForceHeartbeat() - { - platform.ISteamGameServer_ForceHeartbeat(); - } - - // HAuthTicket - public HAuthTicket GetAuthSessionTicket( IntPtr pTicket /*void **/, int cbMaxTicket /*int*/, out uint pcbTicket /*uint32 **/ ) - { - return platform.ISteamGameServer_GetAuthSessionTicket( (IntPtr) pTicket, cbMaxTicket, out pcbTicket ); - } - - // void - public void GetGameplayStats() - { - platform.ISteamGameServer_GetGameplayStats(); - } - - // int - public int GetNextOutgoingPacket( IntPtr pOut /*void **/, int cbMaxOut /*int*/, out uint pNetAdr /*uint32 **/, out ushort pPort /*uint16 **/ ) - { - return platform.ISteamGameServer_GetNextOutgoingPacket( (IntPtr) pOut, cbMaxOut, out pNetAdr, out pPort ); - } - - // uint - public uint GetPublicIP() - { - return platform.ISteamGameServer_GetPublicIP(); - } - - // SteamAPICall_t - public CallResult GetServerReputation( Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamGameServer_GetServerReputation(); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // ulong - public ulong GetSteamID() - { - return platform.ISteamGameServer_GetSteamID(); - } - - // bool - public bool HandleIncomingPacket( IntPtr pData /*const void **/, int cbData /*int*/, uint srcIP /*uint32*/, ushort srcPort /*uint16*/ ) - { - return platform.ISteamGameServer_HandleIncomingPacket( (IntPtr) pData, cbData, srcIP, srcPort ); - } - - // bool - public bool InitGameServer( uint unIP /*uint32*/, ushort usGamePort /*uint16*/, ushort usQueryPort /*uint16*/, uint unFlags /*uint32*/, AppId_t nGameAppId /*AppId_t*/, string pchVersionString /*const char **/ ) - { - return platform.ISteamGameServer_InitGameServer( unIP, usGamePort, usQueryPort, unFlags, nGameAppId.Value, pchVersionString ); - } - - // void - public void LogOff() - { - platform.ISteamGameServer_LogOff(); - } - - // void - public void LogOn( string pszToken /*const char **/ ) - { - platform.ISteamGameServer_LogOn( pszToken ); - } - - // void - public void LogOnAnonymous() - { - platform.ISteamGameServer_LogOnAnonymous(); - } - - // bool - public bool RequestUserGroupStatus( CSteamID steamIDUser /*class CSteamID*/, CSteamID steamIDGroup /*class CSteamID*/ ) - { - return platform.ISteamGameServer_RequestUserGroupStatus( steamIDUser.Value, steamIDGroup.Value ); - } - - // bool - public bool SendUserConnectAndAuthenticate( uint unIPClient /*uint32*/, IntPtr pvAuthBlob /*const void **/, uint cubAuthBlobSize /*uint32*/, out CSteamID pSteamIDUser /*class CSteamID **/ ) - { - return platform.ISteamGameServer_SendUserConnectAndAuthenticate( unIPClient, (IntPtr) pvAuthBlob, cubAuthBlobSize, out pSteamIDUser.Value ); - } - - // void - public void SendUserDisconnect( CSteamID steamIDUser /*class CSteamID*/ ) - { - platform.ISteamGameServer_SendUserDisconnect( steamIDUser.Value ); - } - - // void - public void SetBotPlayerCount( int cBotplayers /*int*/ ) - { - platform.ISteamGameServer_SetBotPlayerCount( cBotplayers ); - } - - // void - public void SetDedicatedServer( bool bDedicated /*bool*/ ) - { - platform.ISteamGameServer_SetDedicatedServer( bDedicated ); - } - - // void - public void SetGameData( string pchGameData /*const char **/ ) - { - platform.ISteamGameServer_SetGameData( pchGameData ); - } - - // void - public void SetGameDescription( string pszGameDescription /*const char **/ ) - { - platform.ISteamGameServer_SetGameDescription( pszGameDescription ); - } - - // void - public void SetGameTags( string pchGameTags /*const char **/ ) - { - platform.ISteamGameServer_SetGameTags( pchGameTags ); - } - - // void - public void SetHeartbeatInterval( int iHeartbeatInterval /*int*/ ) - { - platform.ISteamGameServer_SetHeartbeatInterval( iHeartbeatInterval ); - } - - // void - public void SetKeyValue( string pKey /*const char **/, string pValue /*const char **/ ) - { - platform.ISteamGameServer_SetKeyValue( pKey, pValue ); - } - - // void - public void SetMapName( string pszMapName /*const char **/ ) - { - platform.ISteamGameServer_SetMapName( pszMapName ); - } - - // void - public void SetMaxPlayerCount( int cPlayersMax /*int*/ ) - { - platform.ISteamGameServer_SetMaxPlayerCount( cPlayersMax ); - } - - // void - public void SetModDir( string pszModDir /*const char **/ ) - { - platform.ISteamGameServer_SetModDir( pszModDir ); - } - - // void - public void SetPasswordProtected( bool bPasswordProtected /*bool*/ ) - { - platform.ISteamGameServer_SetPasswordProtected( bPasswordProtected ); - } - - // void - public void SetProduct( string pszProduct /*const char **/ ) - { - platform.ISteamGameServer_SetProduct( pszProduct ); - } - - // void - public void SetRegion( string pszRegion /*const char **/ ) - { - platform.ISteamGameServer_SetRegion( pszRegion ); - } - - // void - public void SetServerName( string pszServerName /*const char **/ ) - { - platform.ISteamGameServer_SetServerName( pszServerName ); - } - - // void - public void SetSpectatorPort( ushort unSpectatorPort /*uint16*/ ) - { - platform.ISteamGameServer_SetSpectatorPort( unSpectatorPort ); - } - - // void - public void SetSpectatorServerName( string pszSpectatorServerName /*const char **/ ) - { - platform.ISteamGameServer_SetSpectatorServerName( pszSpectatorServerName ); - } - - // UserHasLicenseForAppResult - public UserHasLicenseForAppResult UserHasLicenseForApp( CSteamID steamID /*class CSteamID*/, AppId_t appID /*AppId_t*/ ) - { - return platform.ISteamGameServer_UserHasLicenseForApp( steamID.Value, appID.Value ); - } - - // bool - public bool WasRestartRequested() - { - return platform.ISteamGameServer_WasRestartRequested(); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameServerStats.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameServerStats.cs deleted file mode 100644 index 4a23bcc..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameServerStats.cs +++ /dev/null @@ -1,117 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamGameServerStats : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamGameServerStats( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // bool - public bool ClearUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/ ) - { - return platform.ISteamGameServerStats_ClearUserAchievement( steamIDUser.Value, pchName ); - } - - // bool - public bool GetUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, ref bool pbAchieved /*bool **/ ) - { - return platform.ISteamGameServerStats_GetUserAchievement( steamIDUser.Value, pchName, ref pbAchieved ); - } - - // bool - public bool GetUserStat( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, out int pData /*int32 **/ ) - { - return platform.ISteamGameServerStats_GetUserStat( steamIDUser.Value, pchName, out pData ); - } - - // bool - public bool GetUserStat0( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, out float pData /*float **/ ) - { - return platform.ISteamGameServerStats_GetUserStat0( steamIDUser.Value, pchName, out pData ); - } - - // SteamAPICall_t - public CallResult RequestUserStats( CSteamID steamIDUser /*class CSteamID*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamGameServerStats_RequestUserStats( steamIDUser.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool SetUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/ ) - { - return platform.ISteamGameServerStats_SetUserAchievement( steamIDUser.Value, pchName ); - } - - // bool - public bool SetUserStat( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, int nData /*int32*/ ) - { - return platform.ISteamGameServerStats_SetUserStat( steamIDUser.Value, pchName, nData ); - } - - // bool - public bool SetUserStat0( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, float fData /*float*/ ) - { - return platform.ISteamGameServerStats_SetUserStat0( steamIDUser.Value, pchName, fData ); - } - - // SteamAPICall_t - public CallResult StoreUserStats( CSteamID steamIDUser /*class CSteamID*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamGameServerStats_StoreUserStats( steamIDUser.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool UpdateUserAvgRateStat( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, float flCountThisSession /*float*/, double dSessionLength /*double*/ ) - { - return platform.ISteamGameServerStats_UpdateUserAvgRateStat( steamIDUser.Value, pchName, flCountThisSession, dSessionLength ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamHTMLSurface.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamHTMLSurface.cs deleted file mode 100644 index 6494d58..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamHTMLSurface.cs +++ /dev/null @@ -1,273 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamHTMLSurface : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamHTMLSurface( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // void - public void AddHeader( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, string pchKey /*const char **/, string pchValue /*const char **/ ) - { - platform.ISteamHTMLSurface_AddHeader( unBrowserHandle.Value, pchKey, pchValue ); - } - - // void - public void AllowStartRequest( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, bool bAllowed /*bool*/ ) - { - platform.ISteamHTMLSurface_AllowStartRequest( unBrowserHandle.Value, bAllowed ); - } - - // void - public void CopyToClipboard( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ ) - { - platform.ISteamHTMLSurface_CopyToClipboard( unBrowserHandle.Value ); - } - - // SteamAPICall_t - public CallResult CreateBrowser( string pchUserAgent /*const char **/, string pchUserCSS /*const char **/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamHTMLSurface_CreateBrowser( pchUserAgent, pchUserCSS ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // void - public void DestructISteamHTMLSurface() - { - platform.ISteamHTMLSurface_DestructISteamHTMLSurface(); - } - - // void - public void ExecuteJavascript( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, string pchScript /*const char **/ ) - { - platform.ISteamHTMLSurface_ExecuteJavascript( unBrowserHandle.Value, pchScript ); - } - - // void - public void Find( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, string pchSearchStr /*const char **/, bool bCurrentlyInFind /*bool*/, bool bReverse /*bool*/ ) - { - platform.ISteamHTMLSurface_Find( unBrowserHandle.Value, pchSearchStr, bCurrentlyInFind, bReverse ); - } - - // void - public void GetLinkAtPosition( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, int x /*int*/, int y /*int*/ ) - { - platform.ISteamHTMLSurface_GetLinkAtPosition( unBrowserHandle.Value, x, y ); - } - - // void - public void GoBack( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ ) - { - platform.ISteamHTMLSurface_GoBack( unBrowserHandle.Value ); - } - - // void - public void GoForward( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ ) - { - platform.ISteamHTMLSurface_GoForward( unBrowserHandle.Value ); - } - - // bool - public bool Init() - { - return platform.ISteamHTMLSurface_Init(); - } - - // void - public void JSDialogResponse( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, bool bResult /*bool*/ ) - { - platform.ISteamHTMLSurface_JSDialogResponse( unBrowserHandle.Value, bResult ); - } - - // void - public void KeyChar( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint cUnicodeChar /*uint32*/, HTMLKeyModifiers eHTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ ) - { - platform.ISteamHTMLSurface_KeyChar( unBrowserHandle.Value, cUnicodeChar, eHTMLKeyModifiers ); - } - - // void - public void KeyDown( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint nNativeKeyCode /*uint32*/, HTMLKeyModifiers eHTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/, bool bIsSystemKey /*bool*/ ) - { - platform.ISteamHTMLSurface_KeyDown( unBrowserHandle.Value, nNativeKeyCode, eHTMLKeyModifiers, bIsSystemKey ); - } - - // void - public void KeyUp( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint nNativeKeyCode /*uint32*/, HTMLKeyModifiers eHTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ ) - { - platform.ISteamHTMLSurface_KeyUp( unBrowserHandle.Value, nNativeKeyCode, eHTMLKeyModifiers ); - } - - // void - public void LoadURL( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, string pchURL /*const char **/, string pchPostData /*const char **/ ) - { - platform.ISteamHTMLSurface_LoadURL( unBrowserHandle.Value, pchURL, pchPostData ); - } - - // void - public void MouseDoubleClick( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, HTMLMouseButton eMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ ) - { - platform.ISteamHTMLSurface_MouseDoubleClick( unBrowserHandle.Value, eMouseButton ); - } - - // void - public void MouseDown( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, HTMLMouseButton eMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ ) - { - platform.ISteamHTMLSurface_MouseDown( unBrowserHandle.Value, eMouseButton ); - } - - // void - public void MouseMove( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, int x /*int*/, int y /*int*/ ) - { - platform.ISteamHTMLSurface_MouseMove( unBrowserHandle.Value, x, y ); - } - - // void - public void MouseUp( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, HTMLMouseButton eMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ ) - { - platform.ISteamHTMLSurface_MouseUp( unBrowserHandle.Value, eMouseButton ); - } - - // void - public void MouseWheel( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, int nDelta /*int32*/ ) - { - platform.ISteamHTMLSurface_MouseWheel( unBrowserHandle.Value, nDelta ); - } - - // void - public void OpenDeveloperTools( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ ) - { - platform.ISteamHTMLSurface_OpenDeveloperTools( unBrowserHandle.Value ); - } - - // void - public void PasteFromClipboard( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ ) - { - platform.ISteamHTMLSurface_PasteFromClipboard( unBrowserHandle.Value ); - } - - // void - public void Reload( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ ) - { - platform.ISteamHTMLSurface_Reload( unBrowserHandle.Value ); - } - - // void - public void RemoveBrowser( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ ) - { - platform.ISteamHTMLSurface_RemoveBrowser( unBrowserHandle.Value ); - } - - // void - public void SetBackgroundMode( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, bool bBackgroundMode /*bool*/ ) - { - platform.ISteamHTMLSurface_SetBackgroundMode( unBrowserHandle.Value, bBackgroundMode ); - } - - // void - public void SetCookie( string pchHostname /*const char **/, string pchKey /*const char **/, string pchValue /*const char **/, string pchPath /*const char **/, RTime32 nExpires /*RTime32*/, bool bSecure /*bool*/, bool bHTTPOnly /*bool*/ ) - { - platform.ISteamHTMLSurface_SetCookie( pchHostname, pchKey, pchValue, pchPath, nExpires.Value, bSecure, bHTTPOnly ); - } - - // void - public void SetDPIScalingFactor( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, float flDPIScaling /*float*/ ) - { - platform.ISteamHTMLSurface_SetDPIScalingFactor( unBrowserHandle.Value, flDPIScaling ); - } - - // void - public void SetHorizontalScroll( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint nAbsolutePixelScroll /*uint32*/ ) - { - platform.ISteamHTMLSurface_SetHorizontalScroll( unBrowserHandle.Value, nAbsolutePixelScroll ); - } - - // void - public void SetKeyFocus( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, bool bHasKeyFocus /*bool*/ ) - { - platform.ISteamHTMLSurface_SetKeyFocus( unBrowserHandle.Value, bHasKeyFocus ); - } - - // void - public void SetPageScaleFactor( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, float flZoom /*float*/, int nPointX /*int*/, int nPointY /*int*/ ) - { - platform.ISteamHTMLSurface_SetPageScaleFactor( unBrowserHandle.Value, flZoom, nPointX, nPointY ); - } - - // void - public void SetSize( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint unWidth /*uint32*/, uint unHeight /*uint32*/ ) - { - platform.ISteamHTMLSurface_SetSize( unBrowserHandle.Value, unWidth, unHeight ); - } - - // void - public void SetVerticalScroll( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint nAbsolutePixelScroll /*uint32*/ ) - { - platform.ISteamHTMLSurface_SetVerticalScroll( unBrowserHandle.Value, nAbsolutePixelScroll ); - } - - // bool - public bool Shutdown() - { - return platform.ISteamHTMLSurface_Shutdown(); - } - - // void - public void StopFind( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ ) - { - platform.ISteamHTMLSurface_StopFind( unBrowserHandle.Value ); - } - - // void - public void StopLoad( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ ) - { - platform.ISteamHTMLSurface_StopLoad( unBrowserHandle.Value ); - } - - // void - public void ViewSource( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ ) - { - platform.ISteamHTMLSurface_ViewSource( unBrowserHandle.Value ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamHTTP.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamHTTP.cs deleted file mode 100644 index c80cd3f..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamHTTP.cs +++ /dev/null @@ -1,195 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamHTTP : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamHTTP( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // HTTPCookieContainerHandle - public HTTPCookieContainerHandle CreateCookieContainer( bool bAllowResponsesToModify /*bool*/ ) - { - return platform.ISteamHTTP_CreateCookieContainer( bAllowResponsesToModify ); - } - - // HTTPRequestHandle - public HTTPRequestHandle CreateHTTPRequest( HTTPMethod eHTTPRequestMethod /*EHTTPMethod*/, string pchAbsoluteURL /*const char **/ ) - { - return platform.ISteamHTTP_CreateHTTPRequest( eHTTPRequestMethod, pchAbsoluteURL ); - } - - // bool - public bool DeferHTTPRequest( HTTPRequestHandle hRequest /*HTTPRequestHandle*/ ) - { - return platform.ISteamHTTP_DeferHTTPRequest( hRequest.Value ); - } - - // bool - public bool GetHTTPDownloadProgressPct( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, out float pflPercentOut /*float **/ ) - { - return platform.ISteamHTTP_GetHTTPDownloadProgressPct( hRequest.Value, out pflPercentOut ); - } - - // bool - public bool GetHTTPRequestWasTimedOut( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, ref bool pbWasTimedOut /*bool **/ ) - { - return platform.ISteamHTTP_GetHTTPRequestWasTimedOut( hRequest.Value, ref pbWasTimedOut ); - } - - // bool - public bool GetHTTPResponseBodyData( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, out byte pBodyDataBuffer /*uint8 **/, uint unBufferSize /*uint32*/ ) - { - return platform.ISteamHTTP_GetHTTPResponseBodyData( hRequest.Value, out pBodyDataBuffer, unBufferSize ); - } - - // bool - public bool GetHTTPResponseBodySize( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, out uint unBodySize /*uint32 **/ ) - { - return platform.ISteamHTTP_GetHTTPResponseBodySize( hRequest.Value, out unBodySize ); - } - - // bool - public bool GetHTTPResponseHeaderSize( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, string pchHeaderName /*const char **/, out uint unResponseHeaderSize /*uint32 **/ ) - { - return platform.ISteamHTTP_GetHTTPResponseHeaderSize( hRequest.Value, pchHeaderName, out unResponseHeaderSize ); - } - - // bool - public bool GetHTTPResponseHeaderValue( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, string pchHeaderName /*const char **/, out byte pHeaderValueBuffer /*uint8 **/, uint unBufferSize /*uint32*/ ) - { - return platform.ISteamHTTP_GetHTTPResponseHeaderValue( hRequest.Value, pchHeaderName, out pHeaderValueBuffer, unBufferSize ); - } - - // bool - public bool GetHTTPStreamingResponseBodyData( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, uint cOffset /*uint32*/, out byte pBodyDataBuffer /*uint8 **/, uint unBufferSize /*uint32*/ ) - { - return platform.ISteamHTTP_GetHTTPStreamingResponseBodyData( hRequest.Value, cOffset, out pBodyDataBuffer, unBufferSize ); - } - - // bool - public bool PrioritizeHTTPRequest( HTTPRequestHandle hRequest /*HTTPRequestHandle*/ ) - { - return platform.ISteamHTTP_PrioritizeHTTPRequest( hRequest.Value ); - } - - // bool - public bool ReleaseCookieContainer( HTTPCookieContainerHandle hCookieContainer /*HTTPCookieContainerHandle*/ ) - { - return platform.ISteamHTTP_ReleaseCookieContainer( hCookieContainer.Value ); - } - - // bool - public bool ReleaseHTTPRequest( HTTPRequestHandle hRequest /*HTTPRequestHandle*/ ) - { - return platform.ISteamHTTP_ReleaseHTTPRequest( hRequest.Value ); - } - - // bool - public bool SendHTTPRequest( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, ref SteamAPICall_t pCallHandle /*SteamAPICall_t **/ ) - { - return platform.ISteamHTTP_SendHTTPRequest( hRequest.Value, ref pCallHandle.Value ); - } - - // bool - public bool SendHTTPRequestAndStreamResponse( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, ref SteamAPICall_t pCallHandle /*SteamAPICall_t **/ ) - { - return platform.ISteamHTTP_SendHTTPRequestAndStreamResponse( hRequest.Value, ref pCallHandle.Value ); - } - - // bool - public bool SetCookie( HTTPCookieContainerHandle hCookieContainer /*HTTPCookieContainerHandle*/, string pchHost /*const char **/, string pchUrl /*const char **/, string pchCookie /*const char **/ ) - { - return platform.ISteamHTTP_SetCookie( hCookieContainer.Value, pchHost, pchUrl, pchCookie ); - } - - // bool - public bool SetHTTPRequestAbsoluteTimeoutMS( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, uint unMilliseconds /*uint32*/ ) - { - return platform.ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( hRequest.Value, unMilliseconds ); - } - - // bool - public bool SetHTTPRequestContextValue( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, ulong ulContextValue /*uint64*/ ) - { - return platform.ISteamHTTP_SetHTTPRequestContextValue( hRequest.Value, ulContextValue ); - } - - // bool - public bool SetHTTPRequestCookieContainer( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, HTTPCookieContainerHandle hCookieContainer /*HTTPCookieContainerHandle*/ ) - { - return platform.ISteamHTTP_SetHTTPRequestCookieContainer( hRequest.Value, hCookieContainer.Value ); - } - - // bool - public bool SetHTTPRequestGetOrPostParameter( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, string pchParamName /*const char **/, string pchParamValue /*const char **/ ) - { - return platform.ISteamHTTP_SetHTTPRequestGetOrPostParameter( hRequest.Value, pchParamName, pchParamValue ); - } - - // bool - public bool SetHTTPRequestHeaderValue( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, string pchHeaderName /*const char **/, string pchHeaderValue /*const char **/ ) - { - return platform.ISteamHTTP_SetHTTPRequestHeaderValue( hRequest.Value, pchHeaderName, pchHeaderValue ); - } - - // bool - public bool SetHTTPRequestNetworkActivityTimeout( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, uint unTimeoutSeconds /*uint32*/ ) - { - return platform.ISteamHTTP_SetHTTPRequestNetworkActivityTimeout( hRequest.Value, unTimeoutSeconds ); - } - - // bool - public bool SetHTTPRequestRawPostBody( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, string pchContentType /*const char **/, out byte pubBody /*uint8 **/, uint unBodyLen /*uint32*/ ) - { - return platform.ISteamHTTP_SetHTTPRequestRawPostBody( hRequest.Value, pchContentType, out pubBody, unBodyLen ); - } - - // bool - public bool SetHTTPRequestRequiresVerifiedCertificate( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, bool bRequireVerifiedCertificate /*bool*/ ) - { - return platform.ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( hRequest.Value, bRequireVerifiedCertificate ); - } - - // bool - public bool SetHTTPRequestUserAgentInfo( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, string pchUserAgentInfo /*const char **/ ) - { - return platform.ISteamHTTP_SetHTTPRequestUserAgentInfo( hRequest.Value, pchUserAgentInfo ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamInput.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamInput.cs deleted file mode 100644 index cdd674f..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamInput.cs +++ /dev/null @@ -1,255 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamInput : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamInput( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // void - public void ActivateActionSet( InputHandle_t inputHandle /*InputHandle_t*/, InputActionSetHandle_t actionSetHandle /*InputActionSetHandle_t*/ ) - { - platform.ISteamInput_ActivateActionSet( inputHandle.Value, actionSetHandle.Value ); - } - - // void - public void ActivateActionSetLayer( InputHandle_t inputHandle /*InputHandle_t*/, InputActionSetHandle_t actionSetLayerHandle /*InputActionSetHandle_t*/ ) - { - platform.ISteamInput_ActivateActionSetLayer( inputHandle.Value, actionSetLayerHandle.Value ); - } - - // void - public void DeactivateActionSetLayer( InputHandle_t inputHandle /*InputHandle_t*/, InputActionSetHandle_t actionSetLayerHandle /*InputActionSetHandle_t*/ ) - { - platform.ISteamInput_DeactivateActionSetLayer( inputHandle.Value, actionSetLayerHandle.Value ); - } - - // void - public void DeactivateAllActionSetLayers( InputHandle_t inputHandle /*InputHandle_t*/ ) - { - platform.ISteamInput_DeactivateAllActionSetLayers( inputHandle.Value ); - } - - // InputActionOrigin - public InputActionOrigin GetActionOriginFromXboxOrigin( InputHandle_t inputHandle /*InputHandle_t*/, XboxOrigin eOrigin /*EXboxOrigin*/ ) - { - return platform.ISteamInput_GetActionOriginFromXboxOrigin( inputHandle.Value, eOrigin ); - } - - // InputActionSetHandle_t - public InputActionSetHandle_t GetActionSetHandle( string pszActionSetName /*const char **/ ) - { - return platform.ISteamInput_GetActionSetHandle( pszActionSetName ); - } - - // int - public int GetActiveActionSetLayers( InputHandle_t inputHandle /*InputHandle_t*/, IntPtr handlesOut /*InputActionSetHandle_t **/ ) - { - return platform.ISteamInput_GetActiveActionSetLayers( inputHandle.Value, (IntPtr) handlesOut ); - } - - // InputAnalogActionData_t - public InputAnalogActionData_t GetAnalogActionData( InputHandle_t inputHandle /*InputHandle_t*/, InputAnalogActionHandle_t analogActionHandle /*InputAnalogActionHandle_t*/ ) - { - return platform.ISteamInput_GetAnalogActionData( inputHandle.Value, analogActionHandle.Value ); - } - - // InputAnalogActionHandle_t - public InputAnalogActionHandle_t GetAnalogActionHandle( string pszActionName /*const char **/ ) - { - return platform.ISteamInput_GetAnalogActionHandle( pszActionName ); - } - - // int - public int GetAnalogActionOrigins( InputHandle_t inputHandle /*InputHandle_t*/, InputActionSetHandle_t actionSetHandle /*InputActionSetHandle_t*/, InputAnalogActionHandle_t analogActionHandle /*InputAnalogActionHandle_t*/, out InputActionOrigin originsOut /*EInputActionOrigin **/ ) - { - return platform.ISteamInput_GetAnalogActionOrigins( inputHandle.Value, actionSetHandle.Value, analogActionHandle.Value, out originsOut ); - } - - // int - public int GetConnectedControllers( IntPtr handlesOut /*InputHandle_t **/ ) - { - return platform.ISteamInput_GetConnectedControllers( (IntPtr) handlesOut ); - } - - // InputHandle_t - public InputHandle_t GetControllerForGamepadIndex( int nIndex /*int*/ ) - { - return platform.ISteamInput_GetControllerForGamepadIndex( nIndex ); - } - - // InputActionSetHandle_t - public InputActionSetHandle_t GetCurrentActionSet( InputHandle_t inputHandle /*InputHandle_t*/ ) - { - return platform.ISteamInput_GetCurrentActionSet( inputHandle.Value ); - } - - // InputDigitalActionData_t - public InputDigitalActionData_t GetDigitalActionData( InputHandle_t inputHandle /*InputHandle_t*/, InputDigitalActionHandle_t digitalActionHandle /*InputDigitalActionHandle_t*/ ) - { - return platform.ISteamInput_GetDigitalActionData( inputHandle.Value, digitalActionHandle.Value ); - } - - // InputDigitalActionHandle_t - public InputDigitalActionHandle_t GetDigitalActionHandle( string pszActionName /*const char **/ ) - { - return platform.ISteamInput_GetDigitalActionHandle( pszActionName ); - } - - // int - public int GetDigitalActionOrigins( InputHandle_t inputHandle /*InputHandle_t*/, InputActionSetHandle_t actionSetHandle /*InputActionSetHandle_t*/, InputDigitalActionHandle_t digitalActionHandle /*InputDigitalActionHandle_t*/, out InputActionOrigin originsOut /*EInputActionOrigin **/ ) - { - return platform.ISteamInput_GetDigitalActionOrigins( inputHandle.Value, actionSetHandle.Value, digitalActionHandle.Value, out originsOut ); - } - - // int - public int GetGamepadIndexForController( InputHandle_t ulinputHandle /*InputHandle_t*/ ) - { - return platform.ISteamInput_GetGamepadIndexForController( ulinputHandle.Value ); - } - - // string - // with: Detect_StringReturn - public string GetGlyphForActionOrigin( InputActionOrigin eOrigin /*EInputActionOrigin*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamInput_GetGlyphForActionOrigin( eOrigin ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // string - // with: Detect_StringReturn - public string GetGlyphForXboxOrigin( XboxOrigin eOrigin /*EXboxOrigin*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamInput_GetGlyphForXboxOrigin( eOrigin ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // SteamInputType - public SteamInputType GetInputTypeForHandle( InputHandle_t inputHandle /*InputHandle_t*/ ) - { - return platform.ISteamInput_GetInputTypeForHandle( inputHandle.Value ); - } - - // InputMotionData_t - public InputMotionData_t GetMotionData( InputHandle_t inputHandle /*InputHandle_t*/ ) - { - return platform.ISteamInput_GetMotionData( inputHandle.Value ); - } - - // string - // with: Detect_StringReturn - public string GetStringForActionOrigin( InputActionOrigin eOrigin /*EInputActionOrigin*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamInput_GetStringForActionOrigin( eOrigin ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // string - // with: Detect_StringReturn - public string GetStringForXboxOrigin( XboxOrigin eOrigin /*EXboxOrigin*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamInput_GetStringForXboxOrigin( eOrigin ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // bool - public bool Init() - { - return platform.ISteamInput_Init(); - } - - // void - public void RunFrame() - { - platform.ISteamInput_RunFrame(); - } - - // void - public void SetLEDColor( InputHandle_t inputHandle /*InputHandle_t*/, byte nColorR /*uint8*/, byte nColorG /*uint8*/, byte nColorB /*uint8*/, uint nFlags /*unsigned int*/ ) - { - platform.ISteamInput_SetLEDColor( inputHandle.Value, nColorR, nColorG, nColorB, nFlags ); - } - - // bool - public bool ShowBindingPanel( InputHandle_t inputHandle /*InputHandle_t*/ ) - { - return platform.ISteamInput_ShowBindingPanel( inputHandle.Value ); - } - - // bool - public bool Shutdown() - { - return platform.ISteamInput_Shutdown(); - } - - // void - public void StopAnalogActionMomentum( InputHandle_t inputHandle /*InputHandle_t*/, InputAnalogActionHandle_t eAction /*InputAnalogActionHandle_t*/ ) - { - platform.ISteamInput_StopAnalogActionMomentum( inputHandle.Value, eAction.Value ); - } - - // InputActionOrigin - public InputActionOrigin TranslateActionOrigin( SteamInputType eDestinationInputType /*ESteamInputType*/, InputActionOrigin eSourceOrigin /*EInputActionOrigin*/ ) - { - return platform.ISteamInput_TranslateActionOrigin( eDestinationInputType, eSourceOrigin ); - } - - // void - public void TriggerHapticPulse( InputHandle_t inputHandle /*InputHandle_t*/, SteamControllerPad eTargetPad /*ESteamControllerPad*/, ushort usDurationMicroSec /*unsigned short*/ ) - { - platform.ISteamInput_TriggerHapticPulse( inputHandle.Value, eTargetPad, usDurationMicroSec ); - } - - // void - public void TriggerRepeatedHapticPulse( InputHandle_t inputHandle /*InputHandle_t*/, SteamControllerPad eTargetPad /*ESteamControllerPad*/, ushort usDurationMicroSec /*unsigned short*/, ushort usOffMicroSec /*unsigned short*/, ushort unRepeat /*unsigned short*/, uint nFlags /*unsigned int*/ ) - { - platform.ISteamInput_TriggerRepeatedHapticPulse( inputHandle.Value, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags ); - } - - // void - public void TriggerVibration( InputHandle_t inputHandle /*InputHandle_t*/, ushort usLeftSpeed /*unsigned short*/, ushort usRightSpeed /*unsigned short*/ ) - { - platform.ISteamInput_TriggerVibration( inputHandle.Value, usLeftSpeed, usRightSpeed ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamInventory.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamInventory.cs deleted file mode 100644 index 3041544..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamInventory.cs +++ /dev/null @@ -1,340 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamInventory : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamInventory( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // bool - public bool AddPromoItem( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, SteamItemDef_t itemDef /*SteamItemDef_t*/ ) - { - return platform.ISteamInventory_AddPromoItem( ref pResultHandle.Value, itemDef.Value ); - } - - // bool - public bool AddPromoItems( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, SteamItemDef_t[] pArrayItemDefs /*const SteamItemDef_t **/, uint unArrayLength /*uint32*/ ) - { - return platform.ISteamInventory_AddPromoItems( ref pResultHandle.Value, pArrayItemDefs.Select( x => x.Value ).ToArray(), unArrayLength ); - } - - // bool - public bool CheckResultSteamID( SteamInventoryResult_t resultHandle /*SteamInventoryResult_t*/, CSteamID steamIDExpected /*class CSteamID*/ ) - { - return platform.ISteamInventory_CheckResultSteamID( resultHandle.Value, steamIDExpected.Value ); - } - - // bool - public bool ConsumeItem( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, SteamItemInstanceID_t itemConsume /*SteamItemInstanceID_t*/, uint unQuantity /*uint32*/ ) - { - return platform.ISteamInventory_ConsumeItem( ref pResultHandle.Value, itemConsume.Value, unQuantity ); - } - - // bool - public bool DeserializeResult( ref SteamInventoryResult_t pOutResultHandle /*SteamInventoryResult_t **/, IntPtr pBuffer /*const void **/, uint unBufferSize /*uint32*/, bool bRESERVED_MUST_BE_FALSE /*bool*/ ) - { - return platform.ISteamInventory_DeserializeResult( ref pOutResultHandle.Value, (IntPtr) pBuffer, unBufferSize, bRESERVED_MUST_BE_FALSE ); - } - - // void - public void DestroyResult( SteamInventoryResult_t resultHandle /*SteamInventoryResult_t*/ ) - { - platform.ISteamInventory_DestroyResult( resultHandle.Value ); - } - - // bool - public bool ExchangeItems( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, SteamItemDef_t[] pArrayGenerate /*const SteamItemDef_t **/, uint[] punArrayGenerateQuantity /*const uint32 **/, uint unArrayGenerateLength /*uint32*/, SteamItemInstanceID_t[] pArrayDestroy /*const SteamItemInstanceID_t **/, uint[] punArrayDestroyQuantity /*const uint32 **/, uint unArrayDestroyLength /*uint32*/ ) - { - return platform.ISteamInventory_ExchangeItems( ref pResultHandle.Value, pArrayGenerate.Select( x => x.Value ).ToArray(), punArrayGenerateQuantity, unArrayGenerateLength, pArrayDestroy.Select( x => x.Value ).ToArray(), punArrayDestroyQuantity, unArrayDestroyLength ); - } - - // bool - public bool GenerateItems( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, SteamItemDef_t[] pArrayItemDefs /*const SteamItemDef_t **/, uint[] punArrayQuantity /*const uint32 **/, uint unArrayLength /*uint32*/ ) - { - return platform.ISteamInventory_GenerateItems( ref pResultHandle.Value, pArrayItemDefs.Select( x => x.Value ).ToArray(), punArrayQuantity, unArrayLength ); - } - - // bool - public bool GetAllItems( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/ ) - { - return platform.ISteamInventory_GetAllItems( ref pResultHandle.Value ); - } - - // bool - // using: Detect_MultiSizeArrayReturn - public SteamItemDef_t[] GetEligiblePromoItemDefinitionIDs( CSteamID steamID /*class CSteamID*/ ) - { - uint punItemDefIDsArraySize = 0; - - bool success = false; - success = platform.ISteamInventory_GetEligiblePromoItemDefinitionIDs( steamID.Value, IntPtr.Zero, out punItemDefIDsArraySize ); - if ( !success || punItemDefIDsArraySize == 0) return null; - - var pItemDefIDs = new SteamItemDef_t[punItemDefIDsArraySize]; - fixed ( void* pItemDefIDs_ptr = pItemDefIDs ) - { - success = platform.ISteamInventory_GetEligiblePromoItemDefinitionIDs( steamID.Value, (IntPtr) pItemDefIDs_ptr, out punItemDefIDsArraySize ); - if ( !success ) return null; - return pItemDefIDs; - } - } - - // bool - // using: Detect_MultiSizeArrayReturn - public SteamItemDef_t[] GetItemDefinitionIDs() - { - uint punItemDefIDsArraySize = 0; - - bool success = false; - success = platform.ISteamInventory_GetItemDefinitionIDs( IntPtr.Zero, out punItemDefIDsArraySize ); - if ( !success || punItemDefIDsArraySize == 0) return null; - - var pItemDefIDs = new SteamItemDef_t[punItemDefIDsArraySize]; - fixed ( void* pItemDefIDs_ptr = pItemDefIDs ) - { - success = platform.ISteamInventory_GetItemDefinitionIDs( (IntPtr) pItemDefIDs_ptr, out punItemDefIDsArraySize ); - if ( !success ) return null; - return pItemDefIDs; - } - } - - // bool - // with: Detect_StringFetch False - public bool GetItemDefinitionProperty( SteamItemDef_t iDefinition /*SteamItemDef_t*/, string pchPropertyName /*const char **/, out string pchValueBuffer /*char **/ ) - { - bool bSuccess = default( bool ); - pchValueBuffer = string.Empty; - System.Text.StringBuilder pchValueBuffer_sb = Helpers.TakeStringBuilder(); - uint punValueBufferSizeOut = 4096; - bSuccess = platform.ISteamInventory_GetItemDefinitionProperty( iDefinition.Value, pchPropertyName, pchValueBuffer_sb, out punValueBufferSizeOut ); - if ( !bSuccess ) return bSuccess; - pchValueBuffer = pchValueBuffer_sb.ToString(); - return bSuccess; - } - - // bool - public bool GetItemPrice( SteamItemDef_t iDefinition /*SteamItemDef_t*/, out ulong pCurrentPrice /*uint64 **/, out ulong pBasePrice /*uint64 **/ ) - { - return platform.ISteamInventory_GetItemPrice( iDefinition.Value, out pCurrentPrice, out pBasePrice ); - } - - // bool - public bool GetItemsByID( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, SteamItemInstanceID_t[] pInstanceIDs /*const SteamItemInstanceID_t **/, uint unCountInstanceIDs /*uint32*/ ) - { - return platform.ISteamInventory_GetItemsByID( ref pResultHandle.Value, pInstanceIDs.Select( x => x.Value ).ToArray(), unCountInstanceIDs ); - } - - // bool - public bool GetItemsWithPrices( IntPtr pArrayItemDefs /*SteamItemDef_t **/, IntPtr pCurrentPrices /*uint64 **/, IntPtr pBasePrices /*uint64 **/, uint unArrayLength /*uint32*/ ) - { - return platform.ISteamInventory_GetItemsWithPrices( (IntPtr) pArrayItemDefs, (IntPtr) pCurrentPrices, (IntPtr) pBasePrices, unArrayLength ); - } - - // uint - public uint GetNumItemsWithPrices() - { - return platform.ISteamInventory_GetNumItemsWithPrices(); - } - - // bool - // with: Detect_StringFetch False - public bool GetResultItemProperty( SteamInventoryResult_t resultHandle /*SteamInventoryResult_t*/, uint unItemIndex /*uint32*/, string pchPropertyName /*const char **/, out string pchValueBuffer /*char **/ ) - { - bool bSuccess = default( bool ); - pchValueBuffer = string.Empty; - System.Text.StringBuilder pchValueBuffer_sb = Helpers.TakeStringBuilder(); - uint punValueBufferSizeOut = 4096; - bSuccess = platform.ISteamInventory_GetResultItemProperty( resultHandle.Value, unItemIndex, pchPropertyName, pchValueBuffer_sb, out punValueBufferSizeOut ); - if ( !bSuccess ) return bSuccess; - pchValueBuffer = pchValueBuffer_sb.ToString(); - return bSuccess; - } - - // bool - // using: Detect_MultiSizeArrayReturn - public SteamItemDetails_t[] GetResultItems( SteamInventoryResult_t resultHandle /*SteamInventoryResult_t*/ ) - { - uint punOutItemsArraySize = 0; - - bool success = false; - success = platform.ISteamInventory_GetResultItems( resultHandle.Value, IntPtr.Zero, out punOutItemsArraySize ); - if ( !success || punOutItemsArraySize == 0) return null; - - var pOutItemsArray = new SteamItemDetails_t[punOutItemsArraySize]; - fixed ( void* pOutItemsArray_ptr = pOutItemsArray ) - { - success = platform.ISteamInventory_GetResultItems( resultHandle.Value, (IntPtr) pOutItemsArray_ptr, out punOutItemsArraySize ); - if ( !success ) return null; - return pOutItemsArray; - } - } - - // Result - public Result GetResultStatus( SteamInventoryResult_t resultHandle /*SteamInventoryResult_t*/ ) - { - return platform.ISteamInventory_GetResultStatus( resultHandle.Value ); - } - - // uint - public uint GetResultTimestamp( SteamInventoryResult_t resultHandle /*SteamInventoryResult_t*/ ) - { - return platform.ISteamInventory_GetResultTimestamp( resultHandle.Value ); - } - - // bool - public bool GrantPromoItems( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/ ) - { - return platform.ISteamInventory_GrantPromoItems( ref pResultHandle.Value ); - } - - // bool - public bool LoadItemDefinitions() - { - return platform.ISteamInventory_LoadItemDefinitions(); - } - - // bool - public bool RemoveProperty( SteamInventoryUpdateHandle_t handle /*SteamInventoryUpdateHandle_t*/, SteamItemInstanceID_t nItemID /*SteamItemInstanceID_t*/, string pchPropertyName /*const char **/ ) - { - return platform.ISteamInventory_RemoveProperty( handle.Value, nItemID.Value, pchPropertyName ); - } - - // SteamAPICall_t - public CallResult RequestEligiblePromoItemDefinitionsIDs( CSteamID steamID /*class CSteamID*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamInventory_RequestEligiblePromoItemDefinitionsIDs( steamID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult RequestPrices( Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamInventory_RequestPrices(); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // void - public void SendItemDropHeartbeat() - { - platform.ISteamInventory_SendItemDropHeartbeat(); - } - - // bool - public bool SerializeResult( SteamInventoryResult_t resultHandle /*SteamInventoryResult_t*/, IntPtr pOutBuffer /*void **/, out uint punOutBufferSize /*uint32 **/ ) - { - return platform.ISteamInventory_SerializeResult( resultHandle.Value, (IntPtr) pOutBuffer, out punOutBufferSize ); - } - - // bool - public bool SetProperty( SteamInventoryUpdateHandle_t handle /*SteamInventoryUpdateHandle_t*/, SteamItemInstanceID_t nItemID /*SteamItemInstanceID_t*/, string pchPropertyName /*const char **/, string pchPropertyValue /*const char **/ ) - { - return platform.ISteamInventory_SetProperty( handle.Value, nItemID.Value, pchPropertyName, pchPropertyValue ); - } - - // bool - public bool SetProperty0( SteamInventoryUpdateHandle_t handle /*SteamInventoryUpdateHandle_t*/, SteamItemInstanceID_t nItemID /*SteamItemInstanceID_t*/, string pchPropertyName /*const char **/, bool bValue /*bool*/ ) - { - return platform.ISteamInventory_SetProperty0( handle.Value, nItemID.Value, pchPropertyName, bValue ); - } - - // bool - public bool SetProperty1( SteamInventoryUpdateHandle_t handle /*SteamInventoryUpdateHandle_t*/, SteamItemInstanceID_t nItemID /*SteamItemInstanceID_t*/, string pchPropertyName /*const char **/, long nValue /*int64*/ ) - { - return platform.ISteamInventory_SetProperty0( handle.Value, nItemID.Value, pchPropertyName, nValue ); - } - - // bool - public bool SetProperty2( SteamInventoryUpdateHandle_t handle /*SteamInventoryUpdateHandle_t*/, SteamItemInstanceID_t nItemID /*SteamItemInstanceID_t*/, string pchPropertyName /*const char **/, float flValue /*float*/ ) - { - return platform.ISteamInventory_SetProperty0( handle.Value, nItemID.Value, pchPropertyName, flValue ); - } - - // SteamAPICall_t - public CallResult StartPurchase( SteamItemDef_t[] pArrayItemDefs /*const SteamItemDef_t **/, uint[] punArrayQuantity /*const uint32 **/, uint unArrayLength /*uint32*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamInventory_StartPurchase( pArrayItemDefs.Select( x => x.Value ).ToArray(), punArrayQuantity, unArrayLength ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamInventoryUpdateHandle_t - public SteamInventoryUpdateHandle_t StartUpdateProperties() - { - return platform.ISteamInventory_StartUpdateProperties(); - } - - // bool - public bool SubmitUpdateProperties( SteamInventoryUpdateHandle_t handle /*SteamInventoryUpdateHandle_t*/, ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/ ) - { - return platform.ISteamInventory_SubmitUpdateProperties( handle.Value, ref pResultHandle.Value ); - } - - // bool - public bool TradeItems( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, CSteamID steamIDTradePartner /*class CSteamID*/, SteamItemInstanceID_t[] pArrayGive /*const SteamItemInstanceID_t **/, uint[] pArrayGiveQuantity /*const uint32 **/, uint nArrayGiveLength /*uint32*/, SteamItemInstanceID_t[] pArrayGet /*const SteamItemInstanceID_t **/, uint[] pArrayGetQuantity /*const uint32 **/, uint nArrayGetLength /*uint32*/ ) - { - return platform.ISteamInventory_TradeItems( ref pResultHandle.Value, steamIDTradePartner.Value, pArrayGive.Select( x => x.Value ).ToArray(), pArrayGiveQuantity, nArrayGiveLength, pArrayGet.Select( x => x.Value ).ToArray(), pArrayGetQuantity, nArrayGetLength ); - } - - // bool - public bool TransferItemQuantity( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, SteamItemInstanceID_t itemIdSource /*SteamItemInstanceID_t*/, uint unQuantity /*uint32*/, SteamItemInstanceID_t itemIdDest /*SteamItemInstanceID_t*/ ) - { - return platform.ISteamInventory_TransferItemQuantity( ref pResultHandle.Value, itemIdSource.Value, unQuantity, itemIdDest.Value ); - } - - // bool - public bool TriggerItemDrop( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, SteamItemDef_t dropListDefinition /*SteamItemDef_t*/ ) - { - return platform.ISteamInventory_TriggerItemDrop( ref pResultHandle.Value, dropListDefinition.Value ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamMatchmaking.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamMatchmaking.cs deleted file mode 100644 index fdee019..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamMatchmaking.cs +++ /dev/null @@ -1,311 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamMatchmaking : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamMatchmaking( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // int - public int AddFavoriteGame( AppId_t nAppID /*AppId_t*/, uint nIP /*uint32*/, ushort nConnPort /*uint16*/, ushort nQueryPort /*uint16*/, uint unFlags /*uint32*/, uint rTime32LastPlayedOnServer /*uint32*/ ) - { - return platform.ISteamMatchmaking_AddFavoriteGame( nAppID.Value, nIP, nConnPort, nQueryPort, unFlags, rTime32LastPlayedOnServer ); - } - - // void - public void AddRequestLobbyListCompatibleMembersFilter( CSteamID steamIDLobby /*class CSteamID*/ ) - { - platform.ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter( steamIDLobby.Value ); - } - - // void - public void AddRequestLobbyListDistanceFilter( LobbyDistanceFilter eLobbyDistanceFilter /*ELobbyDistanceFilter*/ ) - { - platform.ISteamMatchmaking_AddRequestLobbyListDistanceFilter( eLobbyDistanceFilter ); - } - - // void - public void AddRequestLobbyListFilterSlotsAvailable( int nSlotsAvailable /*int*/ ) - { - platform.ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable( nSlotsAvailable ); - } - - // void - public void AddRequestLobbyListNearValueFilter( string pchKeyToMatch /*const char **/, int nValueToBeCloseTo /*int*/ ) - { - platform.ISteamMatchmaking_AddRequestLobbyListNearValueFilter( pchKeyToMatch, nValueToBeCloseTo ); - } - - // void - public void AddRequestLobbyListNumericalFilter( string pchKeyToMatch /*const char **/, int nValueToMatch /*int*/, LobbyComparison eComparisonType /*ELobbyComparison*/ ) - { - platform.ISteamMatchmaking_AddRequestLobbyListNumericalFilter( pchKeyToMatch, nValueToMatch, eComparisonType ); - } - - // void - public void AddRequestLobbyListResultCountFilter( int cMaxResults /*int*/ ) - { - platform.ISteamMatchmaking_AddRequestLobbyListResultCountFilter( cMaxResults ); - } - - // void - public void AddRequestLobbyListStringFilter( string pchKeyToMatch /*const char **/, string pchValueToMatch /*const char **/, LobbyComparison eComparisonType /*ELobbyComparison*/ ) - { - platform.ISteamMatchmaking_AddRequestLobbyListStringFilter( pchKeyToMatch, pchValueToMatch, eComparisonType ); - } - - // SteamAPICall_t - public CallResult CreateLobby( LobbyType eLobbyType /*ELobbyType*/, int cMaxMembers /*int*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamMatchmaking_CreateLobby( eLobbyType, cMaxMembers ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool DeleteLobbyData( CSteamID steamIDLobby /*class CSteamID*/, string pchKey /*const char **/ ) - { - return platform.ISteamMatchmaking_DeleteLobbyData( steamIDLobby.Value, pchKey ); - } - - // bool - public bool GetFavoriteGame( int iGame /*int*/, ref AppId_t pnAppID /*AppId_t **/, out uint pnIP /*uint32 **/, out ushort pnConnPort /*uint16 **/, out ushort pnQueryPort /*uint16 **/, out uint punFlags /*uint32 **/, out uint pRTime32LastPlayedOnServer /*uint32 **/ ) - { - return platform.ISteamMatchmaking_GetFavoriteGame( iGame, ref pnAppID.Value, out pnIP, out pnConnPort, out pnQueryPort, out punFlags, out pRTime32LastPlayedOnServer ); - } - - // int - public int GetFavoriteGameCount() - { - return platform.ISteamMatchmaking_GetFavoriteGameCount(); - } - - // ulong - public ulong GetLobbyByIndex( int iLobby /*int*/ ) - { - return platform.ISteamMatchmaking_GetLobbyByIndex( iLobby ); - } - - // int - public int GetLobbyChatEntry( CSteamID steamIDLobby /*class CSteamID*/, int iChatID /*int*/, out CSteamID pSteamIDUser /*class CSteamID **/, IntPtr pvData /*void **/, int cubData /*int*/, out ChatEntryType peChatEntryType /*EChatEntryType **/ ) - { - return platform.ISteamMatchmaking_GetLobbyChatEntry( steamIDLobby.Value, iChatID, out pSteamIDUser.Value, (IntPtr) pvData, cubData, out peChatEntryType ); - } - - // string - // with: Detect_StringReturn - public string GetLobbyData( CSteamID steamIDLobby /*class CSteamID*/, string pchKey /*const char **/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamMatchmaking_GetLobbyData( steamIDLobby.Value, pchKey ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // bool - // with: Detect_StringFetch False - // with: Detect_StringFetch False - public bool GetLobbyDataByIndex( CSteamID steamIDLobby /*class CSteamID*/, int iLobbyData /*int*/, out string pchKey /*char **/, out string pchValue /*char **/ ) - { - bool bSuccess = default( bool ); - pchKey = string.Empty; - System.Text.StringBuilder pchKey_sb = Helpers.TakeStringBuilder(); - int cchKeyBufferSize = 4096; - pchValue = string.Empty; - System.Text.StringBuilder pchValue_sb = Helpers.TakeStringBuilder(); - int cchValueBufferSize = 4096; - bSuccess = platform.ISteamMatchmaking_GetLobbyDataByIndex( steamIDLobby.Value, iLobbyData, pchKey_sb, cchKeyBufferSize, pchValue_sb, cchValueBufferSize ); - if ( !bSuccess ) return bSuccess; - pchValue = pchValue_sb.ToString(); - if ( !bSuccess ) return bSuccess; - pchKey = pchKey_sb.ToString(); - return bSuccess; - } - - // int - public int GetLobbyDataCount( CSteamID steamIDLobby /*class CSteamID*/ ) - { - return platform.ISteamMatchmaking_GetLobbyDataCount( steamIDLobby.Value ); - } - - // bool - public bool GetLobbyGameServer( CSteamID steamIDLobby /*class CSteamID*/, out uint punGameServerIP /*uint32 **/, out ushort punGameServerPort /*uint16 **/, out CSteamID psteamIDGameServer /*class CSteamID **/ ) - { - return platform.ISteamMatchmaking_GetLobbyGameServer( steamIDLobby.Value, out punGameServerIP, out punGameServerPort, out psteamIDGameServer.Value ); - } - - // ulong - public ulong GetLobbyMemberByIndex( CSteamID steamIDLobby /*class CSteamID*/, int iMember /*int*/ ) - { - return platform.ISteamMatchmaking_GetLobbyMemberByIndex( steamIDLobby.Value, iMember ); - } - - // string - // with: Detect_StringReturn - public string GetLobbyMemberData( CSteamID steamIDLobby /*class CSteamID*/, CSteamID steamIDUser /*class CSteamID*/, string pchKey /*const char **/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamMatchmaking_GetLobbyMemberData( steamIDLobby.Value, steamIDUser.Value, pchKey ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // int - public int GetLobbyMemberLimit( CSteamID steamIDLobby /*class CSteamID*/ ) - { - return platform.ISteamMatchmaking_GetLobbyMemberLimit( steamIDLobby.Value ); - } - - // ulong - public ulong GetLobbyOwner( CSteamID steamIDLobby /*class CSteamID*/ ) - { - return platform.ISteamMatchmaking_GetLobbyOwner( steamIDLobby.Value ); - } - - // int - public int GetNumLobbyMembers( CSteamID steamIDLobby /*class CSteamID*/ ) - { - return platform.ISteamMatchmaking_GetNumLobbyMembers( steamIDLobby.Value ); - } - - // bool - public bool InviteUserToLobby( CSteamID steamIDLobby /*class CSteamID*/, CSteamID steamIDInvitee /*class CSteamID*/ ) - { - return platform.ISteamMatchmaking_InviteUserToLobby( steamIDLobby.Value, steamIDInvitee.Value ); - } - - // SteamAPICall_t - public CallResult JoinLobby( CSteamID steamIDLobby /*class CSteamID*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamMatchmaking_JoinLobby( steamIDLobby.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // void - public void LeaveLobby( CSteamID steamIDLobby /*class CSteamID*/ ) - { - platform.ISteamMatchmaking_LeaveLobby( steamIDLobby.Value ); - } - - // bool - public bool RemoveFavoriteGame( AppId_t nAppID /*AppId_t*/, uint nIP /*uint32*/, ushort nConnPort /*uint16*/, ushort nQueryPort /*uint16*/, uint unFlags /*uint32*/ ) - { - return platform.ISteamMatchmaking_RemoveFavoriteGame( nAppID.Value, nIP, nConnPort, nQueryPort, unFlags ); - } - - // bool - public bool RequestLobbyData( CSteamID steamIDLobby /*class CSteamID*/ ) - { - return platform.ISteamMatchmaking_RequestLobbyData( steamIDLobby.Value ); - } - - // SteamAPICall_t - public CallResult RequestLobbyList( Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamMatchmaking_RequestLobbyList(); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool SendLobbyChatMsg( CSteamID steamIDLobby /*class CSteamID*/, IntPtr pvMsgBody /*const void **/, int cubMsgBody /*int*/ ) - { - return platform.ISteamMatchmaking_SendLobbyChatMsg( steamIDLobby.Value, (IntPtr) pvMsgBody, cubMsgBody ); - } - - // bool - public bool SetLinkedLobby( CSteamID steamIDLobby /*class CSteamID*/, CSteamID steamIDLobbyDependent /*class CSteamID*/ ) - { - return platform.ISteamMatchmaking_SetLinkedLobby( steamIDLobby.Value, steamIDLobbyDependent.Value ); - } - - // bool - public bool SetLobbyData( CSteamID steamIDLobby /*class CSteamID*/, string pchKey /*const char **/, string pchValue /*const char **/ ) - { - return platform.ISteamMatchmaking_SetLobbyData( steamIDLobby.Value, pchKey, pchValue ); - } - - // void - public void SetLobbyGameServer( CSteamID steamIDLobby /*class CSteamID*/, uint unGameServerIP /*uint32*/, ushort unGameServerPort /*uint16*/, CSteamID steamIDGameServer /*class CSteamID*/ ) - { - platform.ISteamMatchmaking_SetLobbyGameServer( steamIDLobby.Value, unGameServerIP, unGameServerPort, steamIDGameServer.Value ); - } - - // bool - public bool SetLobbyJoinable( CSteamID steamIDLobby /*class CSteamID*/, bool bLobbyJoinable /*bool*/ ) - { - return platform.ISteamMatchmaking_SetLobbyJoinable( steamIDLobby.Value, bLobbyJoinable ); - } - - // void - public void SetLobbyMemberData( CSteamID steamIDLobby /*class CSteamID*/, string pchKey /*const char **/, string pchValue /*const char **/ ) - { - platform.ISteamMatchmaking_SetLobbyMemberData( steamIDLobby.Value, pchKey, pchValue ); - } - - // bool - public bool SetLobbyMemberLimit( CSteamID steamIDLobby /*class CSteamID*/, int cMaxMembers /*int*/ ) - { - return platform.ISteamMatchmaking_SetLobbyMemberLimit( steamIDLobby.Value, cMaxMembers ); - } - - // bool - public bool SetLobbyOwner( CSteamID steamIDLobby /*class CSteamID*/, CSteamID steamIDNewOwner /*class CSteamID*/ ) - { - return platform.ISteamMatchmaking_SetLobbyOwner( steamIDLobby.Value, steamIDNewOwner.Value ); - } - - // bool - public bool SetLobbyType( CSteamID steamIDLobby /*class CSteamID*/, LobbyType eLobbyType /*ELobbyType*/ ) - { - return platform.ISteamMatchmaking_SetLobbyType( steamIDLobby.Value, eLobbyType ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamMatchmakingServers.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamMatchmakingServers.cs deleted file mode 100644 index 5d2e3c6..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamMatchmakingServers.cs +++ /dev/null @@ -1,156 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamMatchmakingServers : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamMatchmakingServers( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // void - public void CancelQuery( HServerListRequest hRequest /*HServerListRequest*/ ) - { - platform.ISteamMatchmakingServers_CancelQuery( hRequest.Value ); - } - - // void - public void CancelServerQuery( HServerQuery hServerQuery /*HServerQuery*/ ) - { - platform.ISteamMatchmakingServers_CancelServerQuery( hServerQuery.Value ); - } - - // int - public int GetServerCount( HServerListRequest hRequest /*HServerListRequest*/ ) - { - return platform.ISteamMatchmakingServers_GetServerCount( hRequest.Value ); - } - - // gameserveritem_t * - // with: Detect_ReturningStruct - public gameserveritem_t GetServerDetails( HServerListRequest hRequest /*HServerListRequest*/, int iServer /*int*/ ) - { - IntPtr struct_pointer; - struct_pointer = platform.ISteamMatchmakingServers_GetServerDetails( hRequest.Value, iServer ); - if ( struct_pointer == IntPtr.Zero ) return default(gameserveritem_t); - return new gameserveritem_t().Fill( struct_pointer ); - } - - // bool - public bool IsRefreshing( HServerListRequest hRequest /*HServerListRequest*/ ) - { - return platform.ISteamMatchmakingServers_IsRefreshing( hRequest.Value ); - } - - // HServerQuery - public HServerQuery PingServer( uint unIP /*uint32*/, ushort usPort /*uint16*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingPingResponse **/ ) - { - return platform.ISteamMatchmakingServers_PingServer( unIP, usPort, (IntPtr) pRequestServersResponse ); - } - - // HServerQuery - public HServerQuery PlayerDetails( uint unIP /*uint32*/, ushort usPort /*uint16*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingPlayersResponse **/ ) - { - return platform.ISteamMatchmakingServers_PlayerDetails( unIP, usPort, (IntPtr) pRequestServersResponse ); - } - - // void - public void RefreshQuery( HServerListRequest hRequest /*HServerListRequest*/ ) - { - platform.ISteamMatchmakingServers_RefreshQuery( hRequest.Value ); - } - - // void - public void RefreshServer( HServerListRequest hRequest /*HServerListRequest*/, int iServer /*int*/ ) - { - platform.ISteamMatchmakingServers_RefreshServer( hRequest.Value, iServer ); - } - - // void - public void ReleaseRequest( HServerListRequest hServerListRequest /*HServerListRequest*/ ) - { - platform.ISteamMatchmakingServers_ReleaseRequest( hServerListRequest.Value ); - } - - // HServerListRequest - // with: Detect_MatchmakingFilters - public HServerListRequest RequestFavoritesServerList( AppId_t iApp /*AppId_t*/, IntPtr ppchFilters /*struct MatchMakingKeyValuePair_t ***/, uint nFilters /*uint32*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingServerListResponse **/ ) - { - return platform.ISteamMatchmakingServers_RequestFavoritesServerList( iApp.Value, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse ); - } - - // HServerListRequest - // with: Detect_MatchmakingFilters - public HServerListRequest RequestFriendsServerList( AppId_t iApp /*AppId_t*/, IntPtr ppchFilters /*struct MatchMakingKeyValuePair_t ***/, uint nFilters /*uint32*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingServerListResponse **/ ) - { - return platform.ISteamMatchmakingServers_RequestFriendsServerList( iApp.Value, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse ); - } - - // HServerListRequest - // with: Detect_MatchmakingFilters - public HServerListRequest RequestHistoryServerList( AppId_t iApp /*AppId_t*/, IntPtr ppchFilters /*struct MatchMakingKeyValuePair_t ***/, uint nFilters /*uint32*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingServerListResponse **/ ) - { - return platform.ISteamMatchmakingServers_RequestHistoryServerList( iApp.Value, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse ); - } - - // HServerListRequest - // with: Detect_MatchmakingFilters - public HServerListRequest RequestInternetServerList( AppId_t iApp /*AppId_t*/, IntPtr ppchFilters /*struct MatchMakingKeyValuePair_t ***/, uint nFilters /*uint32*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingServerListResponse **/ ) - { - return platform.ISteamMatchmakingServers_RequestInternetServerList( iApp.Value, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse ); - } - - // HServerListRequest - public HServerListRequest RequestLANServerList( AppId_t iApp /*AppId_t*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingServerListResponse **/ ) - { - return platform.ISteamMatchmakingServers_RequestLANServerList( iApp.Value, (IntPtr) pRequestServersResponse ); - } - - // HServerListRequest - // with: Detect_MatchmakingFilters - public HServerListRequest RequestSpectatorServerList( AppId_t iApp /*AppId_t*/, IntPtr ppchFilters /*struct MatchMakingKeyValuePair_t ***/, uint nFilters /*uint32*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingServerListResponse **/ ) - { - return platform.ISteamMatchmakingServers_RequestSpectatorServerList( iApp.Value, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse ); - } - - // HServerQuery - public HServerQuery ServerRules( uint unIP /*uint32*/, ushort usPort /*uint16*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingRulesResponse **/ ) - { - return platform.ISteamMatchmakingServers_ServerRules( unIP, usPort, (IntPtr) pRequestServersResponse ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamMusic.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamMusic.cs deleted file mode 100644 index b620cf4..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamMusic.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamMusic : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamMusic( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // bool - public bool BIsEnabled() - { - return platform.ISteamMusic_BIsEnabled(); - } - - // bool - public bool BIsPlaying() - { - return platform.ISteamMusic_BIsPlaying(); - } - - // AudioPlayback_Status - public AudioPlayback_Status GetPlaybackStatus() - { - return platform.ISteamMusic_GetPlaybackStatus(); - } - - // float - public float GetVolume() - { - return platform.ISteamMusic_GetVolume(); - } - - // void - public void Pause() - { - platform.ISteamMusic_Pause(); - } - - // void - public void Play() - { - platform.ISteamMusic_Play(); - } - - // void - public void PlayNext() - { - platform.ISteamMusic_PlayNext(); - } - - // void - public void PlayPrevious() - { - platform.ISteamMusic_PlayPrevious(); - } - - // void - public void SetVolume( float flVolume /*float*/ ) - { - platform.ISteamMusic_SetVolume( flVolume ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamMusicRemote.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamMusicRemote.cs deleted file mode 100644 index 659f508..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamMusicRemote.cs +++ /dev/null @@ -1,237 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamMusicRemote : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamMusicRemote( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // bool - public bool BActivationSuccess( bool bValue /*bool*/ ) - { - return platform.ISteamMusicRemote_BActivationSuccess( bValue ); - } - - // bool - public bool BIsCurrentMusicRemote() - { - return platform.ISteamMusicRemote_BIsCurrentMusicRemote(); - } - - // bool - public bool CurrentEntryDidChange() - { - return platform.ISteamMusicRemote_CurrentEntryDidChange(); - } - - // bool - public bool CurrentEntryIsAvailable( bool bAvailable /*bool*/ ) - { - return platform.ISteamMusicRemote_CurrentEntryIsAvailable( bAvailable ); - } - - // bool - public bool CurrentEntryWillChange() - { - return platform.ISteamMusicRemote_CurrentEntryWillChange(); - } - - // bool - public bool DeregisterSteamMusicRemote() - { - return platform.ISteamMusicRemote_DeregisterSteamMusicRemote(); - } - - // bool - public bool EnableLooped( bool bValue /*bool*/ ) - { - return platform.ISteamMusicRemote_EnableLooped( bValue ); - } - - // bool - public bool EnablePlaylists( bool bValue /*bool*/ ) - { - return platform.ISteamMusicRemote_EnablePlaylists( bValue ); - } - - // bool - public bool EnablePlayNext( bool bValue /*bool*/ ) - { - return platform.ISteamMusicRemote_EnablePlayNext( bValue ); - } - - // bool - public bool EnablePlayPrevious( bool bValue /*bool*/ ) - { - return platform.ISteamMusicRemote_EnablePlayPrevious( bValue ); - } - - // bool - public bool EnableQueue( bool bValue /*bool*/ ) - { - return platform.ISteamMusicRemote_EnableQueue( bValue ); - } - - // bool - public bool EnableShuffled( bool bValue /*bool*/ ) - { - return platform.ISteamMusicRemote_EnableShuffled( bValue ); - } - - // bool - public bool PlaylistDidChange() - { - return platform.ISteamMusicRemote_PlaylistDidChange(); - } - - // bool - public bool PlaylistWillChange() - { - return platform.ISteamMusicRemote_PlaylistWillChange(); - } - - // bool - public bool QueueDidChange() - { - return platform.ISteamMusicRemote_QueueDidChange(); - } - - // bool - public bool QueueWillChange() - { - return platform.ISteamMusicRemote_QueueWillChange(); - } - - // bool - public bool RegisterSteamMusicRemote( string pchName /*const char **/ ) - { - return platform.ISteamMusicRemote_RegisterSteamMusicRemote( pchName ); - } - - // bool - public bool ResetPlaylistEntries() - { - return platform.ISteamMusicRemote_ResetPlaylistEntries(); - } - - // bool - public bool ResetQueueEntries() - { - return platform.ISteamMusicRemote_ResetQueueEntries(); - } - - // bool - public bool SetCurrentPlaylistEntry( int nID /*int*/ ) - { - return platform.ISteamMusicRemote_SetCurrentPlaylistEntry( nID ); - } - - // bool - public bool SetCurrentQueueEntry( int nID /*int*/ ) - { - return platform.ISteamMusicRemote_SetCurrentQueueEntry( nID ); - } - - // bool - public bool SetDisplayName( string pchDisplayName /*const char **/ ) - { - return platform.ISteamMusicRemote_SetDisplayName( pchDisplayName ); - } - - // bool - public bool SetPlaylistEntry( int nID /*int*/, int nPosition /*int*/, string pchEntryText /*const char **/ ) - { - return platform.ISteamMusicRemote_SetPlaylistEntry( nID, nPosition, pchEntryText ); - } - - // bool - public bool SetPNGIcon_64x64( IntPtr pvBuffer /*void **/, uint cbBufferLength /*uint32*/ ) - { - return platform.ISteamMusicRemote_SetPNGIcon_64x64( (IntPtr) pvBuffer, cbBufferLength ); - } - - // bool - public bool SetQueueEntry( int nID /*int*/, int nPosition /*int*/, string pchEntryText /*const char **/ ) - { - return platform.ISteamMusicRemote_SetQueueEntry( nID, nPosition, pchEntryText ); - } - - // bool - public bool UpdateCurrentEntryCoverArt( IntPtr pvBuffer /*void **/, uint cbBufferLength /*uint32*/ ) - { - return platform.ISteamMusicRemote_UpdateCurrentEntryCoverArt( (IntPtr) pvBuffer, cbBufferLength ); - } - - // bool - public bool UpdateCurrentEntryElapsedSeconds( int nValue /*int*/ ) - { - return platform.ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds( nValue ); - } - - // bool - public bool UpdateCurrentEntryText( string pchText /*const char **/ ) - { - return platform.ISteamMusicRemote_UpdateCurrentEntryText( pchText ); - } - - // bool - public bool UpdateLooped( bool bValue /*bool*/ ) - { - return platform.ISteamMusicRemote_UpdateLooped( bValue ); - } - - // bool - public bool UpdatePlaybackStatus( AudioPlayback_Status nStatus /*AudioPlayback_Status*/ ) - { - return platform.ISteamMusicRemote_UpdatePlaybackStatus( nStatus ); - } - - // bool - public bool UpdateShuffled( bool bValue /*bool*/ ) - { - return platform.ISteamMusicRemote_UpdateShuffled( bValue ); - } - - // bool - public bool UpdateVolume( float flValue /*float*/ ) - { - return platform.ISteamMusicRemote_UpdateVolume( flValue ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamNetworking.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamNetworking.cs deleted file mode 100644 index 9fc274f..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamNetworking.cs +++ /dev/null @@ -1,177 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamNetworking : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamNetworking( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // bool - public bool AcceptP2PSessionWithUser( CSteamID steamIDRemote /*class CSteamID*/ ) - { - return platform.ISteamNetworking_AcceptP2PSessionWithUser( steamIDRemote.Value ); - } - - // bool - public bool AllowP2PPacketRelay( bool bAllow /*bool*/ ) - { - return platform.ISteamNetworking_AllowP2PPacketRelay( bAllow ); - } - - // bool - public bool CloseP2PChannelWithUser( CSteamID steamIDRemote /*class CSteamID*/, int nChannel /*int*/ ) - { - return platform.ISteamNetworking_CloseP2PChannelWithUser( steamIDRemote.Value, nChannel ); - } - - // bool - public bool CloseP2PSessionWithUser( CSteamID steamIDRemote /*class CSteamID*/ ) - { - return platform.ISteamNetworking_CloseP2PSessionWithUser( steamIDRemote.Value ); - } - - // SNetSocket_t - public SNetSocket_t CreateConnectionSocket( uint nIP /*uint32*/, ushort nPort /*uint16*/, int nTimeoutSec /*int*/ ) - { - return platform.ISteamNetworking_CreateConnectionSocket( nIP, nPort, nTimeoutSec ); - } - - // SNetListenSocket_t - public SNetListenSocket_t CreateListenSocket( int nVirtualP2PPort /*int*/, uint nIP /*uint32*/, ushort nPort /*uint16*/, bool bAllowUseOfPacketRelay /*bool*/ ) - { - return platform.ISteamNetworking_CreateListenSocket( nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay ); - } - - // SNetSocket_t - public SNetSocket_t CreateP2PConnectionSocket( CSteamID steamIDTarget /*class CSteamID*/, int nVirtualPort /*int*/, int nTimeoutSec /*int*/, bool bAllowUseOfPacketRelay /*bool*/ ) - { - return platform.ISteamNetworking_CreateP2PConnectionSocket( steamIDTarget.Value, nVirtualPort, nTimeoutSec, bAllowUseOfPacketRelay ); - } - - // bool - public bool DestroyListenSocket( SNetListenSocket_t hSocket /*SNetListenSocket_t*/, bool bNotifyRemoteEnd /*bool*/ ) - { - return platform.ISteamNetworking_DestroyListenSocket( hSocket.Value, bNotifyRemoteEnd ); - } - - // bool - public bool DestroySocket( SNetSocket_t hSocket /*SNetSocket_t*/, bool bNotifyRemoteEnd /*bool*/ ) - { - return platform.ISteamNetworking_DestroySocket( hSocket.Value, bNotifyRemoteEnd ); - } - - // bool - public bool GetListenSocketInfo( SNetListenSocket_t hListenSocket /*SNetListenSocket_t*/, out uint pnIP /*uint32 **/, out ushort pnPort /*uint16 **/ ) - { - return platform.ISteamNetworking_GetListenSocketInfo( hListenSocket.Value, out pnIP, out pnPort ); - } - - // int - public int GetMaxPacketSize( SNetSocket_t hSocket /*SNetSocket_t*/ ) - { - return platform.ISteamNetworking_GetMaxPacketSize( hSocket.Value ); - } - - // bool - public bool GetP2PSessionState( CSteamID steamIDRemote /*class CSteamID*/, ref P2PSessionState_t pConnectionState /*struct P2PSessionState_t **/ ) - { - return platform.ISteamNetworking_GetP2PSessionState( steamIDRemote.Value, ref pConnectionState ); - } - - // SNetSocketConnectionType - public SNetSocketConnectionType GetSocketConnectionType( SNetSocket_t hSocket /*SNetSocket_t*/ ) - { - return platform.ISteamNetworking_GetSocketConnectionType( hSocket.Value ); - } - - // bool - public bool GetSocketInfo( SNetSocket_t hSocket /*SNetSocket_t*/, out CSteamID pSteamIDRemote /*class CSteamID **/, IntPtr peSocketStatus /*int **/, out uint punIPRemote /*uint32 **/, out ushort punPortRemote /*uint16 **/ ) - { - return platform.ISteamNetworking_GetSocketInfo( hSocket.Value, out pSteamIDRemote.Value, (IntPtr) peSocketStatus, out punIPRemote, out punPortRemote ); - } - - // bool - public bool IsDataAvailable( SNetListenSocket_t hListenSocket /*SNetListenSocket_t*/, out uint pcubMsgSize /*uint32 **/, ref SNetSocket_t phSocket /*SNetSocket_t **/ ) - { - return platform.ISteamNetworking_IsDataAvailable( hListenSocket.Value, out pcubMsgSize, ref phSocket.Value ); - } - - // bool - public bool IsDataAvailableOnSocket( SNetSocket_t hSocket /*SNetSocket_t*/, out uint pcubMsgSize /*uint32 **/ ) - { - return platform.ISteamNetworking_IsDataAvailableOnSocket( hSocket.Value, out pcubMsgSize ); - } - - // bool - public bool IsP2PPacketAvailable( out uint pcubMsgSize /*uint32 **/, int nChannel /*int*/ ) - { - return platform.ISteamNetworking_IsP2PPacketAvailable( out pcubMsgSize, nChannel ); - } - - // bool - public bool ReadP2PPacket( IntPtr pubDest /*void **/, uint cubDest /*uint32*/, out uint pcubMsgSize /*uint32 **/, out CSteamID psteamIDRemote /*class CSteamID **/, int nChannel /*int*/ ) - { - return platform.ISteamNetworking_ReadP2PPacket( (IntPtr) pubDest, cubDest, out pcubMsgSize, out psteamIDRemote.Value, nChannel ); - } - - // bool - public bool RetrieveData( SNetListenSocket_t hListenSocket /*SNetListenSocket_t*/, IntPtr pubDest /*void **/, uint cubDest /*uint32*/, out uint pcubMsgSize /*uint32 **/, ref SNetSocket_t phSocket /*SNetSocket_t **/ ) - { - return platform.ISteamNetworking_RetrieveData( hListenSocket.Value, (IntPtr) pubDest, cubDest, out pcubMsgSize, ref phSocket.Value ); - } - - // bool - public bool RetrieveDataFromSocket( SNetSocket_t hSocket /*SNetSocket_t*/, IntPtr pubDest /*void **/, uint cubDest /*uint32*/, out uint pcubMsgSize /*uint32 **/ ) - { - return platform.ISteamNetworking_RetrieveDataFromSocket( hSocket.Value, (IntPtr) pubDest, cubDest, out pcubMsgSize ); - } - - // bool - public bool SendDataOnSocket( SNetSocket_t hSocket /*SNetSocket_t*/, IntPtr pubData /*void **/, uint cubData /*uint32*/, bool bReliable /*bool*/ ) - { - return platform.ISteamNetworking_SendDataOnSocket( hSocket.Value, (IntPtr) pubData, cubData, bReliable ); - } - - // bool - public bool SendP2PPacket( CSteamID steamIDRemote /*class CSteamID*/, IntPtr pubData /*const void **/, uint cubData /*uint32*/, P2PSend eP2PSendType /*EP2PSend*/, int nChannel /*int*/ ) - { - return platform.ISteamNetworking_SendP2PPacket( steamIDRemote.Value, (IntPtr) pubData, cubData, eP2PSendType, nChannel ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamParentalSettings.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamParentalSettings.cs deleted file mode 100644 index 946e337..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamParentalSettings.cs +++ /dev/null @@ -1,81 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamParentalSettings : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamParentalSettings( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // bool - public bool BIsAppBlocked( AppId_t nAppID /*AppId_t*/ ) - { - return platform.ISteamParentalSettings_BIsAppBlocked( nAppID.Value ); - } - - // bool - public bool BIsAppInBlockList( AppId_t nAppID /*AppId_t*/ ) - { - return platform.ISteamParentalSettings_BIsAppInBlockList( nAppID.Value ); - } - - // bool - public bool BIsFeatureBlocked( ParentalFeature eFeature /*EParentalFeature*/ ) - { - return platform.ISteamParentalSettings_BIsFeatureBlocked( eFeature ); - } - - // bool - public bool BIsFeatureInBlockList( ParentalFeature eFeature /*EParentalFeature*/ ) - { - return platform.ISteamParentalSettings_BIsFeatureInBlockList( eFeature ); - } - - // bool - public bool BIsParentalLockEnabled() - { - return platform.ISteamParentalSettings_BIsParentalLockEnabled(); - } - - // bool - public bool BIsParentalLockLocked() - { - return platform.ISteamParentalSettings_BIsParentalLockLocked(); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamParties.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamParties.cs deleted file mode 100644 index 6f4a3ae..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamParties.cs +++ /dev/null @@ -1,151 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamParties : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamParties( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // void - public void CancelReservation( PartyBeaconID_t ulBeacon /*PartyBeaconID_t*/, CSteamID steamIDUser /*class CSteamID*/ ) - { - platform.ISteamParties_CancelReservation( ulBeacon.Value, steamIDUser.Value ); - } - - // SteamAPICall_t - public CallResult ChangeNumOpenSlots( PartyBeaconID_t ulBeacon /*PartyBeaconID_t*/, uint unOpenSlots /*uint32*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamParties_ChangeNumOpenSlots( ulBeacon.Value, unOpenSlots ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult CreateBeacon( uint unOpenSlots /*uint32*/, ref SteamPartyBeaconLocation_t pBeaconLocation /*struct SteamPartyBeaconLocation_t **/, string pchConnectString /*const char **/, string pchMetadata /*const char **/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamParties_CreateBeacon( unOpenSlots, ref pBeaconLocation, pchConnectString, pchMetadata ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool DestroyBeacon( PartyBeaconID_t ulBeacon /*PartyBeaconID_t*/ ) - { - return platform.ISteamParties_DestroyBeacon( ulBeacon.Value ); - } - - // bool - public bool GetAvailableBeaconLocations( ref SteamPartyBeaconLocation_t pLocationList /*struct SteamPartyBeaconLocation_t **/, uint uMaxNumLocations /*uint32*/ ) - { - return platform.ISteamParties_GetAvailableBeaconLocations( ref pLocationList, uMaxNumLocations ); - } - - // PartyBeaconID_t - public PartyBeaconID_t GetBeaconByIndex( uint unIndex /*uint32*/ ) - { - return platform.ISteamParties_GetBeaconByIndex( unIndex ); - } - - // bool - // with: Detect_StringFetch False - public bool GetBeaconDetails( PartyBeaconID_t ulBeaconID /*PartyBeaconID_t*/, out CSteamID pSteamIDBeaconOwner /*class CSteamID **/, ref SteamPartyBeaconLocation_t pLocation /*struct SteamPartyBeaconLocation_t **/, out string pchMetadata /*char **/ ) - { - bool bSuccess = default( bool ); - pchMetadata = string.Empty; - System.Text.StringBuilder pchMetadata_sb = Helpers.TakeStringBuilder(); - int cchMetadata = 4096; - bSuccess = platform.ISteamParties_GetBeaconDetails( ulBeaconID.Value, out pSteamIDBeaconOwner.Value, ref pLocation, pchMetadata_sb, cchMetadata ); - if ( !bSuccess ) return bSuccess; - pchMetadata = pchMetadata_sb.ToString(); - return bSuccess; - } - - // bool - // with: Detect_StringFetch False - public bool GetBeaconLocationData( SteamPartyBeaconLocation_t BeaconLocation /*struct SteamPartyBeaconLocation_t*/, SteamPartyBeaconLocationData eData /*ESteamPartyBeaconLocationData*/, out string pchDataStringOut /*char **/ ) - { - bool bSuccess = default( bool ); - pchDataStringOut = string.Empty; - System.Text.StringBuilder pchDataStringOut_sb = Helpers.TakeStringBuilder(); - int cchDataStringOut = 4096; - bSuccess = platform.ISteamParties_GetBeaconLocationData( BeaconLocation, eData, pchDataStringOut_sb, cchDataStringOut ); - if ( !bSuccess ) return bSuccess; - pchDataStringOut = pchDataStringOut_sb.ToString(); - return bSuccess; - } - - // uint - public uint GetNumActiveBeacons() - { - return platform.ISteamParties_GetNumActiveBeacons(); - } - - // bool - public bool GetNumAvailableBeaconLocations( IntPtr puNumLocations /*uint32 **/ ) - { - return platform.ISteamParties_GetNumAvailableBeaconLocations( (IntPtr) puNumLocations ); - } - - // SteamAPICall_t - public CallResult JoinParty( PartyBeaconID_t ulBeaconID /*PartyBeaconID_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamParties_JoinParty( ulBeaconID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // void - public void OnReservationCompleted( PartyBeaconID_t ulBeacon /*PartyBeaconID_t*/, CSteamID steamIDUser /*class CSteamID*/ ) - { - platform.ISteamParties_OnReservationCompleted( ulBeacon.Value, steamIDUser.Value ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamRemoteStorage.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamRemoteStorage.cs deleted file mode 100644 index 68a3293..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamRemoteStorage.cs +++ /dev/null @@ -1,642 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamRemoteStorage : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamRemoteStorage( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // SteamAPICall_t - public CallResult CommitPublishedFileUpdate( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_CommitPublishedFileUpdate( updateHandle.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // PublishedFileUpdateHandle_t - public PublishedFileUpdateHandle_t CreatePublishedFileUpdateRequest( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/ ) - { - return platform.ISteamRemoteStorage_CreatePublishedFileUpdateRequest( unPublishedFileId.Value ); - } - - // SteamAPICall_t - public CallResult DeletePublishedFile( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_DeletePublishedFile( unPublishedFileId.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult EnumeratePublishedFilesByUserAction( WorkshopFileAction eAction /*EWorkshopFileAction*/, uint unStartIndex /*uint32*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_EnumeratePublishedFilesByUserAction( eAction, unStartIndex ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - // using: Detect_StringArray - public CallResult EnumeratePublishedWorkshopFiles( WorkshopEnumerationType eEnumerationType /*EWorkshopEnumerationType*/, uint unStartIndex /*uint32*/, uint unCount /*uint32*/, uint unDays /*uint32*/, string[] pTags /*struct SteamParamStringArray_t **/, ref SteamParamStringArray_t pUserTags /*struct SteamParamStringArray_t **/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - // Create strings - var nativeStrings = new IntPtr[pTags.Length]; - for ( int i = 0; i < pTags.Length; i++ ) - { - nativeStrings[i] = Marshal.StringToHGlobalAnsi( pTags[i] ); - } - try - { - - // Create string array - var size = Marshal.SizeOf( typeof( IntPtr ) ) * nativeStrings.Length; - var nativeArray = Marshal.AllocHGlobal( size ); - Marshal.Copy( nativeStrings, 0, nativeArray, nativeStrings.Length ); - - // Create SteamParamStringArray_t - var tags = new SteamParamStringArray_t(); - tags.Strings = nativeArray; - tags.NumStrings = pTags.Length; - callback = platform.ISteamRemoteStorage_EnumeratePublishedWorkshopFiles( eEnumerationType, unStartIndex, unCount, unDays, ref tags, ref pUserTags ); - } - finally - { - foreach ( var x in nativeStrings ) - Marshal.FreeHGlobal( x ); - - } - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult EnumerateUserPublishedFiles( uint unStartIndex /*uint32*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_EnumerateUserPublishedFiles( unStartIndex ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - // using: Detect_StringArray - public CallResult EnumerateUserSharedWorkshopFiles( CSteamID steamId /*class CSteamID*/, uint unStartIndex /*uint32*/, string[] pRequiredTags /*struct SteamParamStringArray_t **/, ref SteamParamStringArray_t pExcludedTags /*struct SteamParamStringArray_t **/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - // Create strings - var nativeStrings = new IntPtr[pRequiredTags.Length]; - for ( int i = 0; i < pRequiredTags.Length; i++ ) - { - nativeStrings[i] = Marshal.StringToHGlobalAnsi( pRequiredTags[i] ); - } - try - { - - // Create string array - var size = Marshal.SizeOf( typeof( IntPtr ) ) * nativeStrings.Length; - var nativeArray = Marshal.AllocHGlobal( size ); - Marshal.Copy( nativeStrings, 0, nativeArray, nativeStrings.Length ); - - // Create SteamParamStringArray_t - var tags = new SteamParamStringArray_t(); - tags.Strings = nativeArray; - tags.NumStrings = pRequiredTags.Length; - callback = platform.ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles( steamId.Value, unStartIndex, ref tags, ref pExcludedTags ); - } - finally - { - foreach ( var x in nativeStrings ) - Marshal.FreeHGlobal( x ); - - } - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult EnumerateUserSubscribedFiles( uint unStartIndex /*uint32*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_EnumerateUserSubscribedFiles( unStartIndex ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool FileDelete( string pchFile /*const char **/ ) - { - return platform.ISteamRemoteStorage_FileDelete( pchFile ); - } - - // bool - public bool FileExists( string pchFile /*const char **/ ) - { - return platform.ISteamRemoteStorage_FileExists( pchFile ); - } - - // bool - public bool FileForget( string pchFile /*const char **/ ) - { - return platform.ISteamRemoteStorage_FileForget( pchFile ); - } - - // bool - public bool FilePersisted( string pchFile /*const char **/ ) - { - return platform.ISteamRemoteStorage_FilePersisted( pchFile ); - } - - // int - public int FileRead( string pchFile /*const char **/, IntPtr pvData /*void **/, int cubDataToRead /*int32*/ ) - { - return platform.ISteamRemoteStorage_FileRead( pchFile, (IntPtr) pvData, cubDataToRead ); - } - - // SteamAPICall_t - public CallResult FileReadAsync( string pchFile /*const char **/, uint nOffset /*uint32*/, uint cubToRead /*uint32*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_FileReadAsync( pchFile, nOffset, cubToRead ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool FileReadAsyncComplete( SteamAPICall_t hReadCall /*SteamAPICall_t*/, IntPtr pvBuffer /*void **/, uint cubToRead /*uint32*/ ) - { - return platform.ISteamRemoteStorage_FileReadAsyncComplete( hReadCall.Value, (IntPtr) pvBuffer, cubToRead ); - } - - // SteamAPICall_t - public CallResult FileShare( string pchFile /*const char **/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_FileShare( pchFile ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool FileWrite( string pchFile /*const char **/, IntPtr pvData /*const void **/, int cubData /*int32*/ ) - { - return platform.ISteamRemoteStorage_FileWrite( pchFile, (IntPtr) pvData, cubData ); - } - - // SteamAPICall_t - public CallResult FileWriteAsync( string pchFile /*const char **/, IntPtr pvData /*const void **/, uint cubData /*uint32*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_FileWriteAsync( pchFile, (IntPtr) pvData, cubData ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool FileWriteStreamCancel( UGCFileWriteStreamHandle_t writeHandle /*UGCFileWriteStreamHandle_t*/ ) - { - return platform.ISteamRemoteStorage_FileWriteStreamCancel( writeHandle.Value ); - } - - // bool - public bool FileWriteStreamClose( UGCFileWriteStreamHandle_t writeHandle /*UGCFileWriteStreamHandle_t*/ ) - { - return platform.ISteamRemoteStorage_FileWriteStreamClose( writeHandle.Value ); - } - - // UGCFileWriteStreamHandle_t - public UGCFileWriteStreamHandle_t FileWriteStreamOpen( string pchFile /*const char **/ ) - { - return platform.ISteamRemoteStorage_FileWriteStreamOpen( pchFile ); - } - - // bool - public bool FileWriteStreamWriteChunk( UGCFileWriteStreamHandle_t writeHandle /*UGCFileWriteStreamHandle_t*/, IntPtr pvData /*const void **/, int cubData /*int32*/ ) - { - return platform.ISteamRemoteStorage_FileWriteStreamWriteChunk( writeHandle.Value, (IntPtr) pvData, cubData ); - } - - // int - public int GetCachedUGCCount() - { - return platform.ISteamRemoteStorage_GetCachedUGCCount(); - } - - // UGCHandle_t - public UGCHandle_t GetCachedUGCHandle( int iCachedContent /*int32*/ ) - { - return platform.ISteamRemoteStorage_GetCachedUGCHandle( iCachedContent ); - } - - // int - public int GetFileCount() - { - return platform.ISteamRemoteStorage_GetFileCount(); - } - - // string - // with: Detect_StringReturn - public string GetFileNameAndSize( int iFile /*int*/, out int pnFileSizeInBytes /*int32 **/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamRemoteStorage_GetFileNameAndSize( iFile, out pnFileSizeInBytes ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // int - public int GetFileSize( string pchFile /*const char **/ ) - { - return platform.ISteamRemoteStorage_GetFileSize( pchFile ); - } - - // long - public long GetFileTimestamp( string pchFile /*const char **/ ) - { - return platform.ISteamRemoteStorage_GetFileTimestamp( pchFile ); - } - - // SteamAPICall_t - public CallResult GetPublishedFileDetails( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/, uint unMaxSecondsOld /*uint32*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_GetPublishedFileDetails( unPublishedFileId.Value, unMaxSecondsOld ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult GetPublishedItemVoteDetails( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_GetPublishedItemVoteDetails( unPublishedFileId.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool GetQuota( out ulong pnTotalBytes /*uint64 **/, out ulong puAvailableBytes /*uint64 **/ ) - { - return platform.ISteamRemoteStorage_GetQuota( out pnTotalBytes, out puAvailableBytes ); - } - - // RemoteStoragePlatform - public RemoteStoragePlatform GetSyncPlatforms( string pchFile /*const char **/ ) - { - return platform.ISteamRemoteStorage_GetSyncPlatforms( pchFile ); - } - - // bool - // with: Detect_StringFetch False - public bool GetUGCDetails( UGCHandle_t hContent /*UGCHandle_t*/, ref AppId_t pnAppID /*AppId_t **/, out string ppchName /*char ***/, out CSteamID pSteamIDOwner /*class CSteamID **/ ) - { - bool bSuccess = default( bool ); - ppchName = string.Empty; - System.Text.StringBuilder ppchName_sb = Helpers.TakeStringBuilder(); - int pnFileSizeInBytes = 4096; - bSuccess = platform.ISteamRemoteStorage_GetUGCDetails( hContent.Value, ref pnAppID.Value, ppchName_sb, out pnFileSizeInBytes, out pSteamIDOwner.Value ); - if ( !bSuccess ) return bSuccess; - ppchName = ppchName_sb.ToString(); - return bSuccess; - } - - // bool - public bool GetUGCDownloadProgress( UGCHandle_t hContent /*UGCHandle_t*/, out int pnBytesDownloaded /*int32 **/, out int pnBytesExpected /*int32 **/ ) - { - return platform.ISteamRemoteStorage_GetUGCDownloadProgress( hContent.Value, out pnBytesDownloaded, out pnBytesExpected ); - } - - // SteamAPICall_t - public CallResult GetUserPublishedItemVoteDetails( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_GetUserPublishedItemVoteDetails( unPublishedFileId.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool IsCloudEnabledForAccount() - { - return platform.ISteamRemoteStorage_IsCloudEnabledForAccount(); - } - - // bool - public bool IsCloudEnabledForApp() - { - return platform.ISteamRemoteStorage_IsCloudEnabledForApp(); - } - - // SteamAPICall_t - // using: Detect_StringArray - public CallResult PublishVideo( WorkshopVideoProvider eVideoProvider /*EWorkshopVideoProvider*/, string pchVideoAccount /*const char **/, string pchVideoIdentifier /*const char **/, string pchPreviewFile /*const char **/, AppId_t nConsumerAppId /*AppId_t*/, string pchTitle /*const char **/, string pchDescription /*const char **/, RemoteStoragePublishedFileVisibility eVisibility /*ERemoteStoragePublishedFileVisibility*/, string[] pTags /*struct SteamParamStringArray_t **/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - // Create strings - var nativeStrings = new IntPtr[pTags.Length]; - for ( int i = 0; i < pTags.Length; i++ ) - { - nativeStrings[i] = Marshal.StringToHGlobalAnsi( pTags[i] ); - } - try - { - - // Create string array - var size = Marshal.SizeOf( typeof( IntPtr ) ) * nativeStrings.Length; - var nativeArray = Marshal.AllocHGlobal( size ); - Marshal.Copy( nativeStrings, 0, nativeArray, nativeStrings.Length ); - - // Create SteamParamStringArray_t - var tags = new SteamParamStringArray_t(); - tags.Strings = nativeArray; - tags.NumStrings = pTags.Length; - callback = platform.ISteamRemoteStorage_PublishVideo( eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile, nConsumerAppId.Value, pchTitle, pchDescription, eVisibility, ref tags ); - } - finally - { - foreach ( var x in nativeStrings ) - Marshal.FreeHGlobal( x ); - - } - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - // using: Detect_StringArray - public CallResult PublishWorkshopFile( string pchFile /*const char **/, string pchPreviewFile /*const char **/, AppId_t nConsumerAppId /*AppId_t*/, string pchTitle /*const char **/, string pchDescription /*const char **/, RemoteStoragePublishedFileVisibility eVisibility /*ERemoteStoragePublishedFileVisibility*/, string[] pTags /*struct SteamParamStringArray_t **/, WorkshopFileType eWorkshopFileType /*EWorkshopFileType*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - // Create strings - var nativeStrings = new IntPtr[pTags.Length]; - for ( int i = 0; i < pTags.Length; i++ ) - { - nativeStrings[i] = Marshal.StringToHGlobalAnsi( pTags[i] ); - } - try - { - - // Create string array - var size = Marshal.SizeOf( typeof( IntPtr ) ) * nativeStrings.Length; - var nativeArray = Marshal.AllocHGlobal( size ); - Marshal.Copy( nativeStrings, 0, nativeArray, nativeStrings.Length ); - - // Create SteamParamStringArray_t - var tags = new SteamParamStringArray_t(); - tags.Strings = nativeArray; - tags.NumStrings = pTags.Length; - callback = platform.ISteamRemoteStorage_PublishWorkshopFile( pchFile, pchPreviewFile, nConsumerAppId.Value, pchTitle, pchDescription, eVisibility, ref tags, eWorkshopFileType ); - } - finally - { - foreach ( var x in nativeStrings ) - Marshal.FreeHGlobal( x ); - - } - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // void - public void SetCloudEnabledForApp( bool bEnabled /*bool*/ ) - { - platform.ISteamRemoteStorage_SetCloudEnabledForApp( bEnabled ); - } - - // bool - public bool SetSyncPlatforms( string pchFile /*const char **/, RemoteStoragePlatform eRemoteStoragePlatform /*ERemoteStoragePlatform*/ ) - { - return platform.ISteamRemoteStorage_SetSyncPlatforms( pchFile, eRemoteStoragePlatform ); - } - - // SteamAPICall_t - public CallResult SetUserPublishedFileAction( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/, WorkshopFileAction eAction /*EWorkshopFileAction*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_SetUserPublishedFileAction( unPublishedFileId.Value, eAction ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult SubscribePublishedFile( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_SubscribePublishedFile( unPublishedFileId.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult UGCDownload( UGCHandle_t hContent /*UGCHandle_t*/, uint unPriority /*uint32*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_UGCDownload( hContent.Value, unPriority ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult UGCDownloadToLocation( UGCHandle_t hContent /*UGCHandle_t*/, string pchLocation /*const char **/, uint unPriority /*uint32*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_UGCDownloadToLocation( hContent.Value, pchLocation, unPriority ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // int - public int UGCRead( UGCHandle_t hContent /*UGCHandle_t*/, IntPtr pvData /*void **/, int cubDataToRead /*int32*/, uint cOffset /*uint32*/, UGCReadAction eAction /*EUGCReadAction*/ ) - { - return platform.ISteamRemoteStorage_UGCRead( hContent.Value, (IntPtr) pvData, cubDataToRead, cOffset, eAction ); - } - - // SteamAPICall_t - public CallResult UnsubscribePublishedFile( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_UnsubscribePublishedFile( unPublishedFileId.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool UpdatePublishedFileDescription( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string pchDescription /*const char **/ ) - { - return platform.ISteamRemoteStorage_UpdatePublishedFileDescription( updateHandle.Value, pchDescription ); - } - - // bool - public bool UpdatePublishedFileFile( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string pchFile /*const char **/ ) - { - return platform.ISteamRemoteStorage_UpdatePublishedFileFile( updateHandle.Value, pchFile ); - } - - // bool - public bool UpdatePublishedFilePreviewFile( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string pchPreviewFile /*const char **/ ) - { - return platform.ISteamRemoteStorage_UpdatePublishedFilePreviewFile( updateHandle.Value, pchPreviewFile ); - } - - // bool - public bool UpdatePublishedFileSetChangeDescription( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string pchChangeDescription /*const char **/ ) - { - return platform.ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription( updateHandle.Value, pchChangeDescription ); - } - - // bool - // using: Detect_StringArray - public bool UpdatePublishedFileTags( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string[] pTags /*struct SteamParamStringArray_t **/ ) - { - // Create strings - var nativeStrings = new IntPtr[pTags.Length]; - for ( int i = 0; i < pTags.Length; i++ ) - { - nativeStrings[i] = Marshal.StringToHGlobalAnsi( pTags[i] ); - } - try - { - - // Create string array - var size = Marshal.SizeOf( typeof( IntPtr ) ) * nativeStrings.Length; - var nativeArray = Marshal.AllocHGlobal( size ); - Marshal.Copy( nativeStrings, 0, nativeArray, nativeStrings.Length ); - - // Create SteamParamStringArray_t - var tags = new SteamParamStringArray_t(); - tags.Strings = nativeArray; - tags.NumStrings = pTags.Length; - return platform.ISteamRemoteStorage_UpdatePublishedFileTags( updateHandle.Value, ref tags ); - } - finally - { - foreach ( var x in nativeStrings ) - Marshal.FreeHGlobal( x ); - - } - } - - // bool - public bool UpdatePublishedFileTitle( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string pchTitle /*const char **/ ) - { - return platform.ISteamRemoteStorage_UpdatePublishedFileTitle( updateHandle.Value, pchTitle ); - } - - // bool - public bool UpdatePublishedFileVisibility( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, RemoteStoragePublishedFileVisibility eVisibility /*ERemoteStoragePublishedFileVisibility*/ ) - { - return platform.ISteamRemoteStorage_UpdatePublishedFileVisibility( updateHandle.Value, eVisibility ); - } - - // SteamAPICall_t - public CallResult UpdateUserPublishedItemVote( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/, bool bVoteUp /*bool*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamRemoteStorage_UpdateUserPublishedItemVote( unPublishedFileId.Value, bVoteUp ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamScreenshots.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamScreenshots.cs deleted file mode 100644 index 7bc1399..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamScreenshots.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamScreenshots : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamScreenshots( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // ScreenshotHandle - public ScreenshotHandle AddScreenshotToLibrary( string pchFilename /*const char **/, string pchThumbnailFilename /*const char **/, int nWidth /*int*/, int nHeight /*int*/ ) - { - return platform.ISteamScreenshots_AddScreenshotToLibrary( pchFilename, pchThumbnailFilename, nWidth, nHeight ); - } - - // ScreenshotHandle - public ScreenshotHandle AddVRScreenshotToLibrary( VRScreenshotType eType /*EVRScreenshotType*/, string pchFilename /*const char **/, string pchVRFilename /*const char **/ ) - { - return platform.ISteamScreenshots_AddVRScreenshotToLibrary( eType, pchFilename, pchVRFilename ); - } - - // void - public void HookScreenshots( bool bHook /*bool*/ ) - { - platform.ISteamScreenshots_HookScreenshots( bHook ); - } - - // bool - public bool IsScreenshotsHooked() - { - return platform.ISteamScreenshots_IsScreenshotsHooked(); - } - - // bool - public bool SetLocation( ScreenshotHandle hScreenshot /*ScreenshotHandle*/, string pchLocation /*const char **/ ) - { - return platform.ISteamScreenshots_SetLocation( hScreenshot.Value, pchLocation ); - } - - // bool - public bool TagPublishedFile( ScreenshotHandle hScreenshot /*ScreenshotHandle*/, PublishedFileId_t unPublishedFileID /*PublishedFileId_t*/ ) - { - return platform.ISteamScreenshots_TagPublishedFile( hScreenshot.Value, unPublishedFileID.Value ); - } - - // bool - public bool TagUser( ScreenshotHandle hScreenshot /*ScreenshotHandle*/, CSteamID steamID /*class CSteamID*/ ) - { - return platform.ISteamScreenshots_TagUser( hScreenshot.Value, steamID.Value ); - } - - // void - public void TriggerScreenshot() - { - platform.ISteamScreenshots_TriggerScreenshot(); - } - - // ScreenshotHandle - public ScreenshotHandle WriteScreenshot( IntPtr pubRGB /*void **/, uint cubRGB /*uint32*/, int nWidth /*int*/, int nHeight /*int*/ ) - { - return platform.ISteamScreenshots_WriteScreenshot( (IntPtr) pubRGB, cubRGB, nWidth, nHeight ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamUGC.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamUGC.cs deleted file mode 100644 index b10c078..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamUGC.cs +++ /dev/null @@ -1,702 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamUGC : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamUGC( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // SteamAPICall_t - public CallResult AddAppDependency( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, AppId_t nAppID /*AppId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_AddAppDependency( nPublishedFileID.Value, nAppID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult AddDependency( PublishedFileId_t nParentPublishedFileID /*PublishedFileId_t*/, PublishedFileId_t nChildPublishedFileID /*PublishedFileId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_AddDependency( nParentPublishedFileID.Value, nChildPublishedFileID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool AddExcludedTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string pTagName /*const char **/ ) - { - return platform.ISteamUGC_AddExcludedTag( handle.Value, pTagName ); - } - - // bool - public bool AddItemKeyValueTag( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pchKey /*const char **/, string pchValue /*const char **/ ) - { - return platform.ISteamUGC_AddItemKeyValueTag( handle.Value, pchKey, pchValue ); - } - - // bool - public bool AddItemPreviewFile( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pszPreviewFile /*const char **/, ItemPreviewType type /*EItemPreviewType*/ ) - { - return platform.ISteamUGC_AddItemPreviewFile( handle.Value, pszPreviewFile, type ); - } - - // bool - public bool AddItemPreviewVideo( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pszVideoID /*const char **/ ) - { - return platform.ISteamUGC_AddItemPreviewVideo( handle.Value, pszVideoID ); - } - - // SteamAPICall_t - public CallResult AddItemToFavorites( AppId_t nAppId /*AppId_t*/, PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_AddItemToFavorites( nAppId.Value, nPublishedFileID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool AddRequiredKeyValueTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string pKey /*const char **/, string pValue /*const char **/ ) - { - return platform.ISteamUGC_AddRequiredKeyValueTag( handle.Value, pKey, pValue ); - } - - // bool - public bool AddRequiredTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string pTagName /*const char **/ ) - { - return platform.ISteamUGC_AddRequiredTag( handle.Value, pTagName ); - } - - // bool - public bool BInitWorkshopForGameServer( DepotId_t unWorkshopDepotID /*DepotId_t*/, string pszFolder /*const char **/ ) - { - return platform.ISteamUGC_BInitWorkshopForGameServer( unWorkshopDepotID.Value, pszFolder ); - } - - // SteamAPICall_t - public CallResult CreateItem( AppId_t nConsumerAppId /*AppId_t*/, WorkshopFileType eFileType /*EWorkshopFileType*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_CreateItem( nConsumerAppId.Value, eFileType ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // UGCQueryHandle_t - public UGCQueryHandle_t CreateQueryAllUGCRequest( UGCQuery eQueryType /*EUGCQuery*/, UGCMatchingUGCType eMatchingeMatchingUGCTypeFileType /*EUGCMatchingUGCType*/, AppId_t nCreatorAppID /*AppId_t*/, AppId_t nConsumerAppID /*AppId_t*/, uint unPage /*uint32*/ ) - { - return platform.ISteamUGC_CreateQueryAllUGCRequest( eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID.Value, nConsumerAppID.Value, unPage ); - } - - // UGCQueryHandle_t - public UGCQueryHandle_t CreateQueryAllUGCRequest0( UGCQuery eQueryType /*EUGCQuery*/, UGCMatchingUGCType eMatchingeMatchingUGCTypeFileType /*EUGCMatchingUGCType*/, AppId_t nCreatorAppID /*AppId_t*/, AppId_t nConsumerAppID /*AppId_t*/, string pchCursor /*const char **/ ) - { - return platform.ISteamUGC_CreateQueryAllUGCRequest0( eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID.Value, nConsumerAppID.Value, pchCursor ); - } - - // with: Detect_VectorReturn - // UGCQueryHandle_t - public UGCQueryHandle_t CreateQueryUGCDetailsRequest( PublishedFileId_t[] pvecPublishedFileID /*PublishedFileId_t **/ ) - { - var unNumPublishedFileIDs = (uint) pvecPublishedFileID.Length; - fixed ( PublishedFileId_t* pvecPublishedFileID_ptr = pvecPublishedFileID ) - { - return platform.ISteamUGC_CreateQueryUGCDetailsRequest( (IntPtr) pvecPublishedFileID_ptr, unNumPublishedFileIDs ); - } - } - - // UGCQueryHandle_t - public UGCQueryHandle_t CreateQueryUserUGCRequest( AccountID_t unAccountID /*AccountID_t*/, UserUGCList eListType /*EUserUGCList*/, UGCMatchingUGCType eMatchingUGCType /*EUGCMatchingUGCType*/, UserUGCListSortOrder eSortOrder /*EUserUGCListSortOrder*/, AppId_t nCreatorAppID /*AppId_t*/, AppId_t nConsumerAppID /*AppId_t*/, uint unPage /*uint32*/ ) - { - return platform.ISteamUGC_CreateQueryUserUGCRequest( unAccountID.Value, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID.Value, nConsumerAppID.Value, unPage ); - } - - // SteamAPICall_t - public CallResult DeleteItem( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_DeleteItem( nPublishedFileID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool DownloadItem( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, bool bHighPriority /*bool*/ ) - { - return platform.ISteamUGC_DownloadItem( nPublishedFileID.Value, bHighPriority ); - } - - // SteamAPICall_t - public CallResult GetAppDependencies( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_GetAppDependencies( nPublishedFileID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool GetItemDownloadInfo( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, out ulong punBytesDownloaded /*uint64 **/, out ulong punBytesTotal /*uint64 **/ ) - { - return platform.ISteamUGC_GetItemDownloadInfo( nPublishedFileID.Value, out punBytesDownloaded, out punBytesTotal ); - } - - // bool - // with: Detect_StringFetch False - public bool GetItemInstallInfo( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, out ulong punSizeOnDisk /*uint64 **/, out string pchFolder /*char **/, out uint punTimeStamp /*uint32 **/ ) - { - bool bSuccess = default( bool ); - pchFolder = string.Empty; - System.Text.StringBuilder pchFolder_sb = Helpers.TakeStringBuilder(); - uint cchFolderSize = 4096; - bSuccess = platform.ISteamUGC_GetItemInstallInfo( nPublishedFileID.Value, out punSizeOnDisk, pchFolder_sb, cchFolderSize, out punTimeStamp ); - if ( !bSuccess ) return bSuccess; - pchFolder = pchFolder_sb.ToString(); - return bSuccess; - } - - // uint - public uint GetItemState( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/ ) - { - return platform.ISteamUGC_GetItemState( nPublishedFileID.Value ); - } - - // ItemUpdateStatus - public ItemUpdateStatus GetItemUpdateProgress( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, out ulong punBytesProcessed /*uint64 **/, out ulong punBytesTotal /*uint64 **/ ) - { - return platform.ISteamUGC_GetItemUpdateProgress( handle.Value, out punBytesProcessed, out punBytesTotal ); - } - - // uint - public uint GetNumSubscribedItems() - { - return platform.ISteamUGC_GetNumSubscribedItems(); - } - - // bool - // with: Detect_StringFetch False - // with: Detect_StringFetch False - public bool GetQueryUGCAdditionalPreview( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, uint previewIndex /*uint32*/, out string pchURLOrVideoID /*char **/, out string pchOriginalFileName /*char **/, out ItemPreviewType pPreviewType /*EItemPreviewType **/ ) - { - bool bSuccess = default( bool ); - pchURLOrVideoID = string.Empty; - System.Text.StringBuilder pchURLOrVideoID_sb = Helpers.TakeStringBuilder(); - uint cchURLSize = 4096; - pchOriginalFileName = string.Empty; - System.Text.StringBuilder pchOriginalFileName_sb = Helpers.TakeStringBuilder(); - uint cchOriginalFileNameSize = 4096; - bSuccess = platform.ISteamUGC_GetQueryUGCAdditionalPreview( handle.Value, index, previewIndex, pchURLOrVideoID_sb, cchURLSize, pchOriginalFileName_sb, cchOriginalFileNameSize, out pPreviewType ); - if ( !bSuccess ) return bSuccess; - pchOriginalFileName = pchOriginalFileName_sb.ToString(); - if ( !bSuccess ) return bSuccess; - pchURLOrVideoID = pchURLOrVideoID_sb.ToString(); - return bSuccess; - } - - // bool - public bool GetQueryUGCChildren( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, PublishedFileId_t* pvecPublishedFileID /*PublishedFileId_t **/, uint cMaxEntries /*uint32*/ ) - { - return platform.ISteamUGC_GetQueryUGCChildren( handle.Value, index, (IntPtr) pvecPublishedFileID, cMaxEntries ); - } - - // bool - // with: Detect_StringFetch False - // with: Detect_StringFetch False - public bool GetQueryUGCKeyValueTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, uint keyValueTagIndex /*uint32*/, out string pchKey /*char **/, out string pchValue /*char **/ ) - { - bool bSuccess = default( bool ); - pchKey = string.Empty; - System.Text.StringBuilder pchKey_sb = Helpers.TakeStringBuilder(); - uint cchKeySize = 4096; - pchValue = string.Empty; - System.Text.StringBuilder pchValue_sb = Helpers.TakeStringBuilder(); - uint cchValueSize = 4096; - bSuccess = platform.ISteamUGC_GetQueryUGCKeyValueTag( handle.Value, index, keyValueTagIndex, pchKey_sb, cchKeySize, pchValue_sb, cchValueSize ); - if ( !bSuccess ) return bSuccess; - pchValue = pchValue_sb.ToString(); - if ( !bSuccess ) return bSuccess; - pchKey = pchKey_sb.ToString(); - return bSuccess; - } - - // bool - // with: Detect_StringFetch False - public bool GetQueryUGCMetadata( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, out string pchMetadata /*char **/ ) - { - bool bSuccess = default( bool ); - pchMetadata = string.Empty; - System.Text.StringBuilder pchMetadata_sb = Helpers.TakeStringBuilder(); - uint cchMetadatasize = 4096; - bSuccess = platform.ISteamUGC_GetQueryUGCMetadata( handle.Value, index, pchMetadata_sb, cchMetadatasize ); - if ( !bSuccess ) return bSuccess; - pchMetadata = pchMetadata_sb.ToString(); - return bSuccess; - } - - // uint - public uint GetQueryUGCNumAdditionalPreviews( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/ ) - { - return platform.ISteamUGC_GetQueryUGCNumAdditionalPreviews( handle.Value, index ); - } - - // uint - public uint GetQueryUGCNumKeyValueTags( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/ ) - { - return platform.ISteamUGC_GetQueryUGCNumKeyValueTags( handle.Value, index ); - } - - // bool - // with: Detect_StringFetch False - public bool GetQueryUGCPreviewURL( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, out string pchURL /*char **/ ) - { - bool bSuccess = default( bool ); - pchURL = string.Empty; - System.Text.StringBuilder pchURL_sb = Helpers.TakeStringBuilder(); - uint cchURLSize = 4096; - bSuccess = platform.ISteamUGC_GetQueryUGCPreviewURL( handle.Value, index, pchURL_sb, cchURLSize ); - if ( !bSuccess ) return bSuccess; - pchURL = pchURL_sb.ToString(); - return bSuccess; - } - - // bool - public bool GetQueryUGCResult( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, ref SteamUGCDetails_t pDetails /*struct SteamUGCDetails_t **/ ) - { - return platform.ISteamUGC_GetQueryUGCResult( handle.Value, index, ref pDetails ); - } - - // bool - public bool GetQueryUGCStatistic( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, ItemStatistic eStatType /*EItemStatistic*/, out ulong pStatValue /*uint64 **/ ) - { - return platform.ISteamUGC_GetQueryUGCStatistic( handle.Value, index, eStatType, out pStatValue ); - } - - // uint - public uint GetSubscribedItems( PublishedFileId_t* pvecPublishedFileID /*PublishedFileId_t **/, uint cMaxEntries /*uint32*/ ) - { - return platform.ISteamUGC_GetSubscribedItems( (IntPtr) pvecPublishedFileID, cMaxEntries ); - } - - // SteamAPICall_t - public CallResult GetUserItemVote( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_GetUserItemVote( nPublishedFileID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool ReleaseQueryUGCRequest( UGCQueryHandle_t handle /*UGCQueryHandle_t*/ ) - { - return platform.ISteamUGC_ReleaseQueryUGCRequest( handle.Value ); - } - - // SteamAPICall_t - public CallResult RemoveAppDependency( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, AppId_t nAppID /*AppId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_RemoveAppDependency( nPublishedFileID.Value, nAppID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult RemoveDependency( PublishedFileId_t nParentPublishedFileID /*PublishedFileId_t*/, PublishedFileId_t nChildPublishedFileID /*PublishedFileId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_RemoveDependency( nParentPublishedFileID.Value, nChildPublishedFileID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult RemoveItemFromFavorites( AppId_t nAppId /*AppId_t*/, PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_RemoveItemFromFavorites( nAppId.Value, nPublishedFileID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool RemoveItemKeyValueTags( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pchKey /*const char **/ ) - { - return platform.ISteamUGC_RemoveItemKeyValueTags( handle.Value, pchKey ); - } - - // bool - public bool RemoveItemPreview( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, uint index /*uint32*/ ) - { - return platform.ISteamUGC_RemoveItemPreview( handle.Value, index ); - } - - // SteamAPICall_t - public SteamAPICall_t RequestUGCDetails( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, uint unMaxAgeSeconds /*uint32*/ ) - { - return platform.ISteamUGC_RequestUGCDetails( nPublishedFileID.Value, unMaxAgeSeconds ); - } - - // SteamAPICall_t - public CallResult SendQueryUGCRequest( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_SendQueryUGCRequest( handle.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool SetAllowCachedResponse( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint unMaxAgeSeconds /*uint32*/ ) - { - return platform.ISteamUGC_SetAllowCachedResponse( handle.Value, unMaxAgeSeconds ); - } - - // bool - public bool SetAllowLegacyUpload( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, bool bAllowLegacyUpload /*bool*/ ) - { - return platform.ISteamUGC_SetAllowLegacyUpload( handle.Value, bAllowLegacyUpload ); - } - - // bool - public bool SetCloudFileNameFilter( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string pMatchCloudFileName /*const char **/ ) - { - return platform.ISteamUGC_SetCloudFileNameFilter( handle.Value, pMatchCloudFileName ); - } - - // bool - public bool SetItemContent( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pszContentFolder /*const char **/ ) - { - return platform.ISteamUGC_SetItemContent( handle.Value, pszContentFolder ); - } - - // bool - public bool SetItemDescription( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pchDescription /*const char **/ ) - { - return platform.ISteamUGC_SetItemDescription( handle.Value, pchDescription ); - } - - // bool - public bool SetItemMetadata( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pchMetaData /*const char **/ ) - { - return platform.ISteamUGC_SetItemMetadata( handle.Value, pchMetaData ); - } - - // bool - public bool SetItemPreview( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pszPreviewFile /*const char **/ ) - { - return platform.ISteamUGC_SetItemPreview( handle.Value, pszPreviewFile ); - } - - // bool - // using: Detect_StringArray - public bool SetItemTags( UGCUpdateHandle_t updateHandle /*UGCUpdateHandle_t*/, string[] pTags /*const struct SteamParamStringArray_t **/ ) - { - // Create strings - var nativeStrings = new IntPtr[pTags.Length]; - for ( int i = 0; i < pTags.Length; i++ ) - { - nativeStrings[i] = Marshal.StringToHGlobalAnsi( pTags[i] ); - } - try - { - - // Create string array - var size = Marshal.SizeOf( typeof( IntPtr ) ) * nativeStrings.Length; - var nativeArray = Marshal.AllocHGlobal( size ); - Marshal.Copy( nativeStrings, 0, nativeArray, nativeStrings.Length ); - - // Create SteamParamStringArray_t - var tags = new SteamParamStringArray_t(); - tags.Strings = nativeArray; - tags.NumStrings = pTags.Length; - return platform.ISteamUGC_SetItemTags( updateHandle.Value, ref tags ); - } - finally - { - foreach ( var x in nativeStrings ) - Marshal.FreeHGlobal( x ); - - } - } - - // bool - public bool SetItemTitle( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pchTitle /*const char **/ ) - { - return platform.ISteamUGC_SetItemTitle( handle.Value, pchTitle ); - } - - // bool - public bool SetItemUpdateLanguage( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pchLanguage /*const char **/ ) - { - return platform.ISteamUGC_SetItemUpdateLanguage( handle.Value, pchLanguage ); - } - - // bool - public bool SetItemVisibility( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, RemoteStoragePublishedFileVisibility eVisibility /*ERemoteStoragePublishedFileVisibility*/ ) - { - return platform.ISteamUGC_SetItemVisibility( handle.Value, eVisibility ); - } - - // bool - public bool SetLanguage( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string pchLanguage /*const char **/ ) - { - return platform.ISteamUGC_SetLanguage( handle.Value, pchLanguage ); - } - - // bool - public bool SetMatchAnyTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bMatchAnyTag /*bool*/ ) - { - return platform.ISteamUGC_SetMatchAnyTag( handle.Value, bMatchAnyTag ); - } - - // bool - public bool SetRankedByTrendDays( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint unDays /*uint32*/ ) - { - return platform.ISteamUGC_SetRankedByTrendDays( handle.Value, unDays ); - } - - // bool - public bool SetReturnAdditionalPreviews( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bReturnAdditionalPreviews /*bool*/ ) - { - return platform.ISteamUGC_SetReturnAdditionalPreviews( handle.Value, bReturnAdditionalPreviews ); - } - - // bool - public bool SetReturnChildren( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bReturnChildren /*bool*/ ) - { - return platform.ISteamUGC_SetReturnChildren( handle.Value, bReturnChildren ); - } - - // bool - public bool SetReturnKeyValueTags( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bReturnKeyValueTags /*bool*/ ) - { - return platform.ISteamUGC_SetReturnKeyValueTags( handle.Value, bReturnKeyValueTags ); - } - - // bool - public bool SetReturnLongDescription( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bReturnLongDescription /*bool*/ ) - { - return platform.ISteamUGC_SetReturnLongDescription( handle.Value, bReturnLongDescription ); - } - - // bool - public bool SetReturnMetadata( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bReturnMetadata /*bool*/ ) - { - return platform.ISteamUGC_SetReturnMetadata( handle.Value, bReturnMetadata ); - } - - // bool - public bool SetReturnOnlyIDs( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bReturnOnlyIDs /*bool*/ ) - { - return platform.ISteamUGC_SetReturnOnlyIDs( handle.Value, bReturnOnlyIDs ); - } - - // bool - public bool SetReturnPlaytimeStats( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint unDays /*uint32*/ ) - { - return platform.ISteamUGC_SetReturnPlaytimeStats( handle.Value, unDays ); - } - - // bool - public bool SetReturnTotalOnly( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bReturnTotalOnly /*bool*/ ) - { - return platform.ISteamUGC_SetReturnTotalOnly( handle.Value, bReturnTotalOnly ); - } - - // bool - public bool SetSearchText( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string pSearchText /*const char **/ ) - { - return platform.ISteamUGC_SetSearchText( handle.Value, pSearchText ); - } - - // SteamAPICall_t - public CallResult SetUserItemVote( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, bool bVoteUp /*bool*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_SetUserItemVote( nPublishedFileID.Value, bVoteUp ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // UGCUpdateHandle_t - public UGCUpdateHandle_t StartItemUpdate( AppId_t nConsumerAppId /*AppId_t*/, PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/ ) - { - return platform.ISteamUGC_StartItemUpdate( nConsumerAppId.Value, nPublishedFileID.Value ); - } - - // with: Detect_VectorReturn - // SteamAPICall_t - public CallResult StartPlaytimeTracking( PublishedFileId_t[] pvecPublishedFileID /*PublishedFileId_t **/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - var unNumPublishedFileIDs = (uint) pvecPublishedFileID.Length; - fixed ( PublishedFileId_t* pvecPublishedFileID_ptr = pvecPublishedFileID ) - { - callback = platform.ISteamUGC_StartPlaytimeTracking( (IntPtr) pvecPublishedFileID_ptr, unNumPublishedFileIDs ); - } - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // with: Detect_VectorReturn - // SteamAPICall_t - public CallResult StopPlaytimeTracking( PublishedFileId_t[] pvecPublishedFileID /*PublishedFileId_t **/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - var unNumPublishedFileIDs = (uint) pvecPublishedFileID.Length; - fixed ( PublishedFileId_t* pvecPublishedFileID_ptr = pvecPublishedFileID ) - { - callback = platform.ISteamUGC_StopPlaytimeTracking( (IntPtr) pvecPublishedFileID_ptr, unNumPublishedFileIDs ); - } - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult StopPlaytimeTrackingForAllItems( Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_StopPlaytimeTrackingForAllItems(); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult SubmitItemUpdate( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pchChangeNote /*const char **/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_SubmitItemUpdate( handle.Value, pchChangeNote ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult SubscribeItem( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_SubscribeItem( nPublishedFileID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // void - public void SuspendDownloads( bool bSuspend /*bool*/ ) - { - platform.ISteamUGC_SuspendDownloads( bSuspend ); - } - - // SteamAPICall_t - public CallResult UnsubscribeItem( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUGC_UnsubscribeItem( nPublishedFileID.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool UpdateItemPreviewFile( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, uint index /*uint32*/, string pszPreviewFile /*const char **/ ) - { - return platform.ISteamUGC_UpdateItemPreviewFile( handle.Value, index, pszPreviewFile ); - } - - // bool - public bool UpdateItemPreviewVideo( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, uint index /*uint32*/, string pszVideoID /*const char **/ ) - { - return platform.ISteamUGC_UpdateItemPreviewVideo( handle.Value, index, pszVideoID ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamUser.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamUser.cs deleted file mode 100644 index 899c4b4..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamUser.cs +++ /dev/null @@ -1,249 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamUser : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamUser( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // void - public void AdvertiseGame( CSteamID steamIDGameServer /*class CSteamID*/, uint unIPServer /*uint32*/, ushort usPortServer /*uint16*/ ) - { - platform.ISteamUser_AdvertiseGame( steamIDGameServer.Value, unIPServer, usPortServer ); - } - - // BeginAuthSessionResult - public BeginAuthSessionResult BeginAuthSession( IntPtr pAuthTicket /*const void **/, int cbAuthTicket /*int*/, CSteamID steamID /*class CSteamID*/ ) - { - return platform.ISteamUser_BeginAuthSession( (IntPtr) pAuthTicket, cbAuthTicket, steamID.Value ); - } - - // bool - public bool BIsBehindNAT() - { - return platform.ISteamUser_BIsBehindNAT(); - } - - // bool - public bool BIsPhoneIdentifying() - { - return platform.ISteamUser_BIsPhoneIdentifying(); - } - - // bool - public bool BIsPhoneRequiringVerification() - { - return platform.ISteamUser_BIsPhoneRequiringVerification(); - } - - // bool - public bool BIsPhoneVerified() - { - return platform.ISteamUser_BIsPhoneVerified(); - } - - // bool - public bool BIsTwoFactorEnabled() - { - return platform.ISteamUser_BIsTwoFactorEnabled(); - } - - // bool - public bool BLoggedOn() - { - return platform.ISteamUser_BLoggedOn(); - } - - // void - public void CancelAuthTicket( HAuthTicket hAuthTicket /*HAuthTicket*/ ) - { - platform.ISteamUser_CancelAuthTicket( hAuthTicket.Value ); - } - - // VoiceResult - public VoiceResult DecompressVoice( IntPtr pCompressed /*const void **/, uint cbCompressed /*uint32*/, IntPtr pDestBuffer /*void **/, uint cbDestBufferSize /*uint32*/, out uint nBytesWritten /*uint32 **/, uint nDesiredSampleRate /*uint32*/ ) - { - return platform.ISteamUser_DecompressVoice( (IntPtr) pCompressed, cbCompressed, (IntPtr) pDestBuffer, cbDestBufferSize, out nBytesWritten, nDesiredSampleRate ); - } - - // void - public void EndAuthSession( CSteamID steamID /*class CSteamID*/ ) - { - platform.ISteamUser_EndAuthSession( steamID.Value ); - } - - // HAuthTicket - public HAuthTicket GetAuthSessionTicket( IntPtr pTicket /*void **/, int cbMaxTicket /*int*/, out uint pcbTicket /*uint32 **/ ) - { - return platform.ISteamUser_GetAuthSessionTicket( (IntPtr) pTicket, cbMaxTicket, out pcbTicket ); - } - - // VoiceResult - public VoiceResult GetAvailableVoice( out uint pcbCompressed /*uint32 **/, out uint pcbUncompressed_Deprecated /*uint32 **/, uint nUncompressedVoiceDesiredSampleRate_Deprecated /*uint32*/ ) - { - return platform.ISteamUser_GetAvailableVoice( out pcbCompressed, out pcbUncompressed_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated ); - } - - // bool - public bool GetEncryptedAppTicket( IntPtr pTicket /*void **/, int cbMaxTicket /*int*/, out uint pcbTicket /*uint32 **/ ) - { - return platform.ISteamUser_GetEncryptedAppTicket( (IntPtr) pTicket, cbMaxTicket, out pcbTicket ); - } - - // int - public int GetGameBadgeLevel( int nSeries /*int*/, bool bFoil /*bool*/ ) - { - return platform.ISteamUser_GetGameBadgeLevel( nSeries, bFoil ); - } - - // HSteamUser - public HSteamUser GetHSteamUser() - { - return platform.ISteamUser_GetHSteamUser(); - } - - // SteamAPICall_t - public CallResult GetMarketEligibility( Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUser_GetMarketEligibility(); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // int - public int GetPlayerSteamLevel() - { - return platform.ISteamUser_GetPlayerSteamLevel(); - } - - // ulong - public ulong GetSteamID() - { - return platform.ISteamUser_GetSteamID(); - } - - // bool - // with: Detect_StringFetch True - public string GetUserDataFolder() - { - bool bSuccess = default( bool ); - System.Text.StringBuilder pchBuffer_sb = Helpers.TakeStringBuilder(); - int cubBuffer = 4096; - bSuccess = platform.ISteamUser_GetUserDataFolder( pchBuffer_sb, cubBuffer ); - if ( !bSuccess ) return null; - return pchBuffer_sb.ToString(); - } - - // VoiceResult - public VoiceResult GetVoice( bool bWantCompressed /*bool*/, IntPtr pDestBuffer /*void **/, uint cbDestBufferSize /*uint32*/, out uint nBytesWritten /*uint32 **/, bool bWantUncompressed_Deprecated /*bool*/, IntPtr pUncompressedDestBuffer_Deprecated /*void **/, uint cbUncompressedDestBufferSize_Deprecated /*uint32*/, out uint nUncompressBytesWritten_Deprecated /*uint32 **/, uint nUncompressedVoiceDesiredSampleRate_Deprecated /*uint32*/ ) - { - return platform.ISteamUser_GetVoice( bWantCompressed, (IntPtr) pDestBuffer, cbDestBufferSize, out nBytesWritten, bWantUncompressed_Deprecated, (IntPtr) pUncompressedDestBuffer_Deprecated, cbUncompressedDestBufferSize_Deprecated, out nUncompressBytesWritten_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated ); - } - - // uint - public uint GetVoiceOptimalSampleRate() - { - return platform.ISteamUser_GetVoiceOptimalSampleRate(); - } - - // int - public int InitiateGameConnection( IntPtr pAuthBlob /*void **/, int cbMaxAuthBlob /*int*/, CSteamID steamIDGameServer /*class CSteamID*/, uint unIPServer /*uint32*/, ushort usPortServer /*uint16*/, bool bSecure /*bool*/ ) - { - return platform.ISteamUser_InitiateGameConnection( (IntPtr) pAuthBlob, cbMaxAuthBlob, steamIDGameServer.Value, unIPServer, usPortServer, bSecure ); - } - - // SteamAPICall_t - public CallResult RequestEncryptedAppTicket( IntPtr pDataToInclude /*void **/, int cbDataToInclude /*int*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUser_RequestEncryptedAppTicket( (IntPtr) pDataToInclude, cbDataToInclude ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult RequestStoreAuthURL( string pchRedirectURL /*const char **/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUser_RequestStoreAuthURL( pchRedirectURL ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // void - public void StartVoiceRecording() - { - platform.ISteamUser_StartVoiceRecording(); - } - - // void - public void StopVoiceRecording() - { - platform.ISteamUser_StopVoiceRecording(); - } - - // void - public void TerminateGameConnection( uint unIPServer /*uint32*/, ushort usPortServer /*uint16*/ ) - { - platform.ISteamUser_TerminateGameConnection( unIPServer, usPortServer ); - } - - // void - public void TrackAppUsageEvent( CGameID gameID /*class CGameID*/, int eAppUsageEvent /*int*/, string pchExtraInfo /*const char **/ ) - { - platform.ISteamUser_TrackAppUsageEvent( gameID.Value, eAppUsageEvent, pchExtraInfo ); - } - - // UserHasLicenseForAppResult - public UserHasLicenseForAppResult UserHasLicenseForApp( CSteamID steamID /*class CSteamID*/, AppId_t appID /*AppId_t*/ ) - { - return platform.ISteamUser_UserHasLicenseForApp( steamID.Value, appID.Value ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamUserStats.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamUserStats.cs deleted file mode 100644 index 1d92cf9..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamUserStats.cs +++ /dev/null @@ -1,388 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamUserStats : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamUserStats( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // SteamAPICall_t - public CallResult AttachLeaderboardUGC( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/, UGCHandle_t hUGC /*UGCHandle_t*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUserStats_AttachLeaderboardUGC( hSteamLeaderboard.Value, hUGC.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool ClearAchievement( string pchName /*const char **/ ) - { - return platform.ISteamUserStats_ClearAchievement( pchName ); - } - - // SteamAPICall_t - public CallResult DownloadLeaderboardEntries( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/, LeaderboardDataRequest eLeaderboardDataRequest /*ELeaderboardDataRequest*/, int nRangeStart /*int*/, int nRangeEnd /*int*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUserStats_DownloadLeaderboardEntries( hSteamLeaderboard.Value, eLeaderboardDataRequest, nRangeStart, nRangeEnd ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult DownloadLeaderboardEntriesForUsers( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/, IntPtr prgUsers /*class CSteamID **/, int cUsers /*int*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUserStats_DownloadLeaderboardEntriesForUsers( hSteamLeaderboard.Value, (IntPtr) prgUsers, cUsers ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult FindLeaderboard( string pchLeaderboardName /*const char **/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUserStats_FindLeaderboard( pchLeaderboardName ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult FindOrCreateLeaderboard( string pchLeaderboardName /*const char **/, LeaderboardSortMethod eLeaderboardSortMethod /*ELeaderboardSortMethod*/, LeaderboardDisplayType eLeaderboardDisplayType /*ELeaderboardDisplayType*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUserStats_FindOrCreateLeaderboard( pchLeaderboardName, eLeaderboardSortMethod, eLeaderboardDisplayType ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool GetAchievement( string pchName /*const char **/, ref bool pbAchieved /*bool **/ ) - { - return platform.ISteamUserStats_GetAchievement( pchName, ref pbAchieved ); - } - - // bool - public bool GetAchievementAchievedPercent( string pchName /*const char **/, out float pflPercent /*float **/ ) - { - return platform.ISteamUserStats_GetAchievementAchievedPercent( pchName, out pflPercent ); - } - - // bool - public bool GetAchievementAndUnlockTime( string pchName /*const char **/, ref bool pbAchieved /*bool **/, out uint punUnlockTime /*uint32 **/ ) - { - return platform.ISteamUserStats_GetAchievementAndUnlockTime( pchName, ref pbAchieved, out punUnlockTime ); - } - - // string - // with: Detect_StringReturn - public string GetAchievementDisplayAttribute( string pchName /*const char **/, string pchKey /*const char **/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamUserStats_GetAchievementDisplayAttribute( pchName, pchKey ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // int - public int GetAchievementIcon( string pchName /*const char **/ ) - { - return platform.ISteamUserStats_GetAchievementIcon( pchName ); - } - - // string - // with: Detect_StringReturn - public string GetAchievementName( uint iAchievement /*uint32*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamUserStats_GetAchievementName( iAchievement ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // bool - public bool GetDownloadedLeaderboardEntry( SteamLeaderboardEntries_t hSteamLeaderboardEntries /*SteamLeaderboardEntries_t*/, int index /*int*/, ref LeaderboardEntry_t pLeaderboardEntry /*struct LeaderboardEntry_t **/, IntPtr pDetails /*int32 **/, int cDetailsMax /*int*/ ) - { - return platform.ISteamUserStats_GetDownloadedLeaderboardEntry( hSteamLeaderboardEntries.Value, index, ref pLeaderboardEntry, (IntPtr) pDetails, cDetailsMax ); - } - - // bool - public bool GetGlobalStat( string pchStatName /*const char **/, out long pData /*int64 **/ ) - { - return platform.ISteamUserStats_GetGlobalStat( pchStatName, out pData ); - } - - // bool - public bool GetGlobalStat0( string pchStatName /*const char **/, out double pData /*double **/ ) - { - return platform.ISteamUserStats_GetGlobalStat0( pchStatName, out pData ); - } - - // int - public int GetGlobalStatHistory( string pchStatName /*const char **/, out long pData /*int64 **/, uint cubData /*uint32*/ ) - { - return platform.ISteamUserStats_GetGlobalStatHistory( pchStatName, out pData, cubData ); - } - - // int - public int GetGlobalStatHistory0( string pchStatName /*const char **/, out double pData /*double **/, uint cubData /*uint32*/ ) - { - return platform.ISteamUserStats_GetGlobalStatHistory0( pchStatName, out pData, cubData ); - } - - // LeaderboardDisplayType - public LeaderboardDisplayType GetLeaderboardDisplayType( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/ ) - { - return platform.ISteamUserStats_GetLeaderboardDisplayType( hSteamLeaderboard.Value ); - } - - // int - public int GetLeaderboardEntryCount( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/ ) - { - return platform.ISteamUserStats_GetLeaderboardEntryCount( hSteamLeaderboard.Value ); - } - - // string - // with: Detect_StringReturn - public string GetLeaderboardName( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/ ) - { - IntPtr string_pointer; - string_pointer = platform.ISteamUserStats_GetLeaderboardName( hSteamLeaderboard.Value ); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // LeaderboardSortMethod - public LeaderboardSortMethod GetLeaderboardSortMethod( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/ ) - { - return platform.ISteamUserStats_GetLeaderboardSortMethod( hSteamLeaderboard.Value ); - } - - // int - // with: Detect_StringFetch False - public int GetMostAchievedAchievementInfo( out string pchName /*char **/, out float pflPercent /*float **/, ref bool pbAchieved /*bool **/ ) - { - int bSuccess = default( int ); - pchName = string.Empty; - System.Text.StringBuilder pchName_sb = Helpers.TakeStringBuilder(); - uint unNameBufLen = 4096; - bSuccess = platform.ISteamUserStats_GetMostAchievedAchievementInfo( pchName_sb, unNameBufLen, out pflPercent, ref pbAchieved ); - if ( bSuccess <= 0 ) return bSuccess; - pchName = pchName_sb.ToString(); - return bSuccess; - } - - // int - // with: Detect_StringFetch False - public int GetNextMostAchievedAchievementInfo( int iIteratorPrevious /*int*/, out string pchName /*char **/, out float pflPercent /*float **/, ref bool pbAchieved /*bool **/ ) - { - int bSuccess = default( int ); - pchName = string.Empty; - System.Text.StringBuilder pchName_sb = Helpers.TakeStringBuilder(); - uint unNameBufLen = 4096; - bSuccess = platform.ISteamUserStats_GetNextMostAchievedAchievementInfo( iIteratorPrevious, pchName_sb, unNameBufLen, out pflPercent, ref pbAchieved ); - if ( bSuccess <= 0 ) return bSuccess; - pchName = pchName_sb.ToString(); - return bSuccess; - } - - // uint - public uint GetNumAchievements() - { - return platform.ISteamUserStats_GetNumAchievements(); - } - - // SteamAPICall_t - public CallResult GetNumberOfCurrentPlayers( Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUserStats_GetNumberOfCurrentPlayers(); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool GetStat( string pchName /*const char **/, out int pData /*int32 **/ ) - { - return platform.ISteamUserStats_GetStat( pchName, out pData ); - } - - // bool - public bool GetStat0( string pchName /*const char **/, out float pData /*float **/ ) - { - return platform.ISteamUserStats_GetStat0( pchName, out pData ); - } - - // bool - public bool GetUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, ref bool pbAchieved /*bool **/ ) - { - return platform.ISteamUserStats_GetUserAchievement( steamIDUser.Value, pchName, ref pbAchieved ); - } - - // bool - public bool GetUserAchievementAndUnlockTime( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, ref bool pbAchieved /*bool **/, out uint punUnlockTime /*uint32 **/ ) - { - return platform.ISteamUserStats_GetUserAchievementAndUnlockTime( steamIDUser.Value, pchName, ref pbAchieved, out punUnlockTime ); - } - - // bool - public bool GetUserStat( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, out int pData /*int32 **/ ) - { - return platform.ISteamUserStats_GetUserStat( steamIDUser.Value, pchName, out pData ); - } - - // bool - public bool GetUserStat0( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, out float pData /*float **/ ) - { - return platform.ISteamUserStats_GetUserStat0( steamIDUser.Value, pchName, out pData ); - } - - // bool - public bool IndicateAchievementProgress( string pchName /*const char **/, uint nCurProgress /*uint32*/, uint nMaxProgress /*uint32*/ ) - { - return platform.ISteamUserStats_IndicateAchievementProgress( pchName, nCurProgress, nMaxProgress ); - } - - // bool - public bool RequestCurrentStats() - { - return platform.ISteamUserStats_RequestCurrentStats(); - } - - // SteamAPICall_t - public CallResult RequestGlobalAchievementPercentages( Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUserStats_RequestGlobalAchievementPercentages(); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult RequestGlobalStats( int nHistoryDays /*int*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUserStats_RequestGlobalStats( nHistoryDays ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICall_t - public CallResult RequestUserStats( CSteamID steamIDUser /*class CSteamID*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUserStats_RequestUserStats( steamIDUser.Value ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // bool - public bool ResetAllStats( bool bAchievementsToo /*bool*/ ) - { - return platform.ISteamUserStats_ResetAllStats( bAchievementsToo ); - } - - // bool - public bool SetAchievement( string pchName /*const char **/ ) - { - return platform.ISteamUserStats_SetAchievement( pchName ); - } - - // bool - public bool SetStat( string pchName /*const char **/, int nData /*int32*/ ) - { - return platform.ISteamUserStats_SetStat( pchName, nData ); - } - - // bool - public bool SetStat0( string pchName /*const char **/, float fData /*float*/ ) - { - return platform.ISteamUserStats_SetStat0( pchName, fData ); - } - - // bool - public bool StoreStats() - { - return platform.ISteamUserStats_StoreStats(); - } - - // bool - public bool UpdateAvgRateStat( string pchName /*const char **/, float flCountThisSession /*float*/, double dSessionLength /*double*/ ) - { - return platform.ISteamUserStats_UpdateAvgRateStat( pchName, flCountThisSession, dSessionLength ); - } - - // SteamAPICall_t - public CallResult UploadLeaderboardScore( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/, LeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod /*ELeaderboardUploadScoreMethod*/, int nScore /*int32*/, int[] pScoreDetails /*const int32 **/, int cScoreDetailsCount /*int*/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUserStats_UploadLeaderboardScore( hSteamLeaderboard.Value, eLeaderboardUploadScoreMethod, nScore, pScoreDetails, cScoreDetailsCount ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamUtils.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamUtils.cs deleted file mode 100644 index 2d7e273..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamUtils.cs +++ /dev/null @@ -1,237 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamUtils : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamUtils( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // bool - public bool BOverlayNeedsPresent() - { - return platform.ISteamUtils_BOverlayNeedsPresent(); - } - - // SteamAPICall_t - public CallResult CheckFileSignature( string szFileName /*const char **/, Action CallbackFunction = null /*Action*/ ) - { - SteamAPICall_t callback = 0; - callback = platform.ISteamUtils_CheckFileSignature( szFileName ); - - if ( CallbackFunction == null ) return null; - if ( callback == 0 ) return null; - - return new CallResult( steamworks, callback, CallbackFunction ); - } - - // SteamAPICallFailure - public SteamAPICallFailure GetAPICallFailureReason( SteamAPICall_t hSteamAPICall /*SteamAPICall_t*/ ) - { - return platform.ISteamUtils_GetAPICallFailureReason( hSteamAPICall.Value ); - } - - // bool - public bool GetAPICallResult( SteamAPICall_t hSteamAPICall /*SteamAPICall_t*/, IntPtr pCallback /*void **/, int cubCallback /*int*/, int iCallbackExpected /*int*/, ref bool pbFailed /*bool **/ ) - { - return platform.ISteamUtils_GetAPICallResult( hSteamAPICall.Value, (IntPtr) pCallback, cubCallback, iCallbackExpected, ref pbFailed ); - } - - // uint - public uint GetAppID() - { - return platform.ISteamUtils_GetAppID(); - } - - // Universe - public Universe GetConnectedUniverse() - { - return platform.ISteamUtils_GetConnectedUniverse(); - } - - // bool - public bool GetCSERIPPort( out uint unIP /*uint32 **/, out ushort usPort /*uint16 **/ ) - { - return platform.ISteamUtils_GetCSERIPPort( out unIP, out usPort ); - } - - // byte - public byte GetCurrentBatteryPower() - { - return platform.ISteamUtils_GetCurrentBatteryPower(); - } - - // bool - // with: Detect_StringFetch True - public string GetEnteredGamepadTextInput() - { - bool bSuccess = default( bool ); - System.Text.StringBuilder pchText_sb = Helpers.TakeStringBuilder(); - uint cchText = 4096; - bSuccess = platform.ISteamUtils_GetEnteredGamepadTextInput( pchText_sb, cchText ); - if ( !bSuccess ) return null; - return pchText_sb.ToString(); - } - - // uint - public uint GetEnteredGamepadTextLength() - { - return platform.ISteamUtils_GetEnteredGamepadTextLength(); - } - - // bool - public bool GetImageRGBA( int iImage /*int*/, IntPtr pubDest /*uint8 **/, int nDestBufferSize /*int*/ ) - { - return platform.ISteamUtils_GetImageRGBA( iImage, (IntPtr) pubDest, nDestBufferSize ); - } - - // bool - public bool GetImageSize( int iImage /*int*/, out uint pnWidth /*uint32 **/, out uint pnHeight /*uint32 **/ ) - { - return platform.ISteamUtils_GetImageSize( iImage, out pnWidth, out pnHeight ); - } - - // uint - public uint GetIPCCallCount() - { - return platform.ISteamUtils_GetIPCCallCount(); - } - - // string - // with: Detect_StringReturn - public string GetIPCountry() - { - IntPtr string_pointer; - string_pointer = platform.ISteamUtils_GetIPCountry(); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // uint - public uint GetSecondsSinceAppActive() - { - return platform.ISteamUtils_GetSecondsSinceAppActive(); - } - - // uint - public uint GetSecondsSinceComputerActive() - { - return platform.ISteamUtils_GetSecondsSinceComputerActive(); - } - - // uint - public uint GetServerRealTime() - { - return platform.ISteamUtils_GetServerRealTime(); - } - - // string - // with: Detect_StringReturn - public string GetSteamUILanguage() - { - IntPtr string_pointer; - string_pointer = platform.ISteamUtils_GetSteamUILanguage(); - return Marshal.PtrToStringAnsi( string_pointer ); - } - - // bool - public bool IsAPICallCompleted( SteamAPICall_t hSteamAPICall /*SteamAPICall_t*/, ref bool pbFailed /*bool **/ ) - { - return platform.ISteamUtils_IsAPICallCompleted( hSteamAPICall.Value, ref pbFailed ); - } - - // bool - public bool IsOverlayEnabled() - { - return platform.ISteamUtils_IsOverlayEnabled(); - } - - // bool - public bool IsSteamInBigPictureMode() - { - return platform.ISteamUtils_IsSteamInBigPictureMode(); - } - - // bool - public bool IsSteamRunningInVR() - { - return platform.ISteamUtils_IsSteamRunningInVR(); - } - - // bool - public bool IsVRHeadsetStreamingEnabled() - { - return platform.ISteamUtils_IsVRHeadsetStreamingEnabled(); - } - - // void - public void SetOverlayNotificationInset( int nHorizontalInset /*int*/, int nVerticalInset /*int*/ ) - { - platform.ISteamUtils_SetOverlayNotificationInset( nHorizontalInset, nVerticalInset ); - } - - // void - public void SetOverlayNotificationPosition( NotificationPosition eNotificationPosition /*ENotificationPosition*/ ) - { - platform.ISteamUtils_SetOverlayNotificationPosition( eNotificationPosition ); - } - - // void - public void SetVRHeadsetStreamingEnabled( bool bEnabled /*bool*/ ) - { - platform.ISteamUtils_SetVRHeadsetStreamingEnabled( bEnabled ); - } - - // void - public void SetWarningMessageHook( IntPtr pFunction /*SteamAPIWarningMessageHook_t*/ ) - { - platform.ISteamUtils_SetWarningMessageHook( (IntPtr) pFunction ); - } - - // bool - public bool ShowGamepadTextInput( GamepadTextInputMode eInputMode /*EGamepadTextInputMode*/, GamepadTextInputLineMode eLineInputMode /*EGamepadTextInputLineMode*/, string pchDescription /*const char **/, uint unCharMax /*uint32*/, string pchExistingText /*const char **/ ) - { - return platform.ISteamUtils_ShowGamepadTextInput( eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText ); - } - - // void - public void StartVRDashboard() - { - platform.ISteamUtils_StartVRDashboard(); - } - - } -} diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamVideo.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamVideo.cs deleted file mode 100644 index 93048f2..0000000 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamVideo.cs +++ /dev/null @@ -1,75 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Linq; - -namespace SteamNative -{ - internal unsafe class SteamVideo : IDisposable - { - // - // Holds a platform specific implentation - // - internal Platform.Interface platform; - internal Facepunch.Steamworks.BaseSteamworks steamworks; - - // - // Constructor decides which implementation to use based on current platform - // - internal SteamVideo( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer ) - { - this.steamworks = steamworks; - - if ( Platform.IsWindows ) platform = new Platform.Windows( pointer ); - else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer ); - else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer ); - } - - // - // Class is invalid if we don't have a valid implementation - // - public bool IsValid => platform != null && platform.IsValid; - - // - // When shutting down clear all the internals to avoid accidental use - // - public virtual void Dispose() - { - if ( platform != null ) - { - platform.Dispose(); - platform = null; - } - } - - // void - public void GetOPFSettings( AppId_t unVideoAppID /*AppId_t*/ ) - { - platform.ISteamVideo_GetOPFSettings( unVideoAppID.Value ); - } - - // bool - // with: Detect_StringFetch True - public string GetOPFStringForApp( AppId_t unVideoAppID /*AppId_t*/ ) - { - bool bSuccess = default( bool ); - System.Text.StringBuilder pchBuffer_sb = Helpers.TakeStringBuilder(); - int pnBufferSize = 4096; - bSuccess = platform.ISteamVideo_GetOPFStringForApp( unVideoAppID.Value, pchBuffer_sb, out pnBufferSize ); - if ( !bSuccess ) return null; - return pchBuffer_sb.ToString(); - } - - // void - public void GetVideoURL( AppId_t unVideoAppID /*AppId_t*/ ) - { - platform.ISteamVideo_GetVideoURL( unVideoAppID.Value ); - } - - // bool - public bool IsBroadcasting( IntPtr pnNumViewers /*int **/ ) - { - return platform.ISteamVideo_IsBroadcasting( (IntPtr) pnNumViewers ); - } - - } -} diff --git a/Facepunch.Steamworks/Redux/Structs/AppId.cs b/Facepunch.Steamworks/Structs/AppId.cs similarity index 100% rename from Facepunch.Steamworks/Redux/Structs/AppId.cs rename to Facepunch.Steamworks/Structs/AppId.cs diff --git a/Facepunch.Steamworks/Redux/Structs/DepotId.cs b/Facepunch.Steamworks/Structs/DepotId.cs similarity index 100% rename from Facepunch.Steamworks/Redux/Structs/DepotId.cs rename to Facepunch.Steamworks/Structs/DepotId.cs diff --git a/Facepunch.Steamworks/Redux/Structs/DlcInformation.cs b/Facepunch.Steamworks/Structs/DlcInformation.cs similarity index 100% rename from Facepunch.Steamworks/Redux/Structs/DlcInformation.cs rename to Facepunch.Steamworks/Structs/DlcInformation.cs diff --git a/Facepunch.Steamworks/Redux/Structs/DownloadProgress.cs b/Facepunch.Steamworks/Structs/DownloadProgress.cs similarity index 100% rename from Facepunch.Steamworks/Redux/Structs/DownloadProgress.cs rename to Facepunch.Steamworks/Structs/DownloadProgress.cs diff --git a/Facepunch.Steamworks/Redux/Structs/FileDetails.cs b/Facepunch.Steamworks/Structs/FileDetails.cs similarity index 100% rename from Facepunch.Steamworks/Redux/Structs/FileDetails.cs rename to Facepunch.Steamworks/Structs/FileDetails.cs diff --git a/Facepunch.Steamworks/Redux/Structs/Friend.cs b/Facepunch.Steamworks/Structs/Friend.cs similarity index 96% rename from Facepunch.Steamworks/Redux/Structs/Friend.cs rename to Facepunch.Steamworks/Structs/Friend.cs index be32c87..9f6a79a 100644 --- a/Facepunch.Steamworks/Redux/Structs/Friend.cs +++ b/Facepunch.Steamworks/Structs/Friend.cs @@ -1,5 +1,4 @@ -using SteamNative; -using System; +using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; @@ -9,9 +8,9 @@ namespace Steamworks { public struct Friend { - public CSteamID Id; + public SteamId Id; - public Friend( CSteamID steamid ) + public Friend( SteamId steamid ) { Id = steamid; } @@ -76,7 +75,7 @@ namespace Steamworks } } - public bool IsIn( CSteamID group_or_room ) + public bool IsIn( SteamId group_or_room ) { return Friends.Internal.IsUserInSource( Id, group_or_room ); } diff --git a/Facepunch.Steamworks/Structs/GameId.cs b/Facepunch.Steamworks/Structs/GameId.cs new file mode 100644 index 0000000..05a3ae0 --- /dev/null +++ b/Facepunch.Steamworks/Structs/GameId.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Runtime.InteropServices; +using System.Text; + + +namespace Steamworks +{ + public struct GameId + { + // TODO - Be able to access these vars + + /* + + enum EGameIDType + { + k_EGameIDTypeApp = 0, + k_EGameIDTypeGameMod = 1, + k_EGameIDTypeShortcut = 2, + k_EGameIDTypeP2P = 3, + }; + + # ifdef VALVE_BIG_ENDIAN + unsigned int m_nModID : 32; + unsigned int m_nType : 8; + unsigned int m_nAppID : 24; + #else + unsigned int m_nAppID : 24; + unsigned int m_nType : 8; + unsigned int m_nModID : 32; + #endif + */ + public ulong Value; + + public static implicit operator GameId( ulong value ) + { + return new GameId { Value = value }; + } + + public static implicit operator ulong( GameId value ) + { + return value.Value; + } + } +} \ No newline at end of file diff --git a/Facepunch.Steamworks/Redux/Structs/Image.cs b/Facepunch.Steamworks/Structs/Image.cs similarity index 90% rename from Facepunch.Steamworks/Redux/Structs/Image.cs rename to Facepunch.Steamworks/Structs/Image.cs index 90cb913..329f266 100644 --- a/Facepunch.Steamworks/Redux/Structs/Image.cs +++ b/Facepunch.Steamworks/Structs/Image.cs @@ -25,4 +25,9 @@ namespace Steamworks return c; } } + + public struct Color + { + public byte r, g, b, a; + } } \ No newline at end of file diff --git a/Facepunch.Steamworks/Redux/Structs/OutgoingPacket.cs b/Facepunch.Steamworks/Structs/OutgoingPacket.cs similarity index 100% rename from Facepunch.Steamworks/Redux/Structs/OutgoingPacket.cs rename to Facepunch.Steamworks/Structs/OutgoingPacket.cs diff --git a/Facepunch.Steamworks/Redux/Structs/Server.cs b/Facepunch.Steamworks/Structs/Server.cs similarity index 97% rename from Facepunch.Steamworks/Redux/Structs/Server.cs rename to Facepunch.Steamworks/Structs/Server.cs index 0e8d4c5..e2a5d53 100644 --- a/Facepunch.Steamworks/Redux/Structs/Server.cs +++ b/Facepunch.Steamworks/Structs/Server.cs @@ -29,7 +29,7 @@ namespace Steamworks public int ConnectionPort { get; set; } public int QueryPort { get; set; } - internal static ServerInfo From( SteamNative.gameserveritem_t item ) + internal static ServerInfo From( gameserveritem_t item ) { return new ServerInfo() { diff --git a/Facepunch.Steamworks/Redux/Structs/ServerInit.cs b/Facepunch.Steamworks/Structs/ServerInit.cs similarity index 100% rename from Facepunch.Steamworks/Redux/Structs/ServerInit.cs rename to Facepunch.Steamworks/Structs/ServerInit.cs diff --git a/Facepunch.Steamworks/Redux/Structs/SteamId.cs b/Facepunch.Steamworks/Structs/SteamId.cs similarity index 100% rename from Facepunch.Steamworks/Redux/Structs/SteamId.cs rename to Facepunch.Steamworks/Structs/SteamId.cs diff --git a/Facepunch.Steamworks/Redux/User.cs b/Facepunch.Steamworks/User.cs similarity index 97% rename from Facepunch.Steamworks/Redux/User.cs rename to Facepunch.Steamworks/User.cs index 20bc79f..23bb5c0 100644 --- a/Facepunch.Steamworks/Redux/User.cs +++ b/Facepunch.Steamworks/User.cs @@ -4,7 +4,6 @@ using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks { @@ -85,7 +84,7 @@ namespace Steamworks /// The first parameter is the steamid of this user /// The second is the Steam ID that owns the game, this will be different from the first if the game is being borrowed via Steam Family Sharing /// - public static event Action OnValidateAuthTicketResponse; + public static event Action OnValidateAuthTicketResponse; /// /// Called when a user has responded to a microtransaction authorization request. @@ -118,7 +117,7 @@ namespace Steamworks /// A Steam ID is a unique identifier for a Steam accounts, Steam groups, Lobbies and Chat /// rooms, and used to differentiate users in all parts of the Steamworks API. /// - public static CSteamID SteamId => Internal.GetSteamID(); + public static SteamId SteamId => Internal.GetSteamID(); static bool _recordingVoice; @@ -265,7 +264,7 @@ namespace Steamworks } } - public static unsafe BeginAuthSessionResult BeginAuthSession( byte[] ticketData, CSteamID steamid ) + public static unsafe BeginAuthSessionResult BeginAuthSession( byte[] ticketData, SteamId steamid ) { fixed ( byte* ptr = ticketData ) { @@ -273,7 +272,7 @@ namespace Steamworks } } - public static void EndAuthSession( CSteamID steamid ) => Internal.EndAuthSession( steamid ); + public static void EndAuthSession( SteamId steamid ) => Internal.EndAuthSession( steamid ); // UserHasLicenseForApp - SERVER VERSION ( DLC CHECKING ) diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Helpers.cs b/Facepunch.Steamworks/Utility/Helpers.cs similarity index 93% rename from Facepunch.Steamworks/SteamNative/SteamNative.Helpers.cs rename to Facepunch.Steamworks/Utility/Helpers.cs index a1b9344..d37a230 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Helpers.cs +++ b/Facepunch.Steamworks/Utility/Helpers.cs @@ -3,7 +3,7 @@ using System.Runtime.InteropServices; using System.Text; using System.Collections.Generic; -namespace SteamNative +namespace Steamworks { internal static class Helpers { @@ -69,4 +69,9 @@ namespace SteamNative return BufferPool[BufferPoolIndex]; } } + + internal class MonoPInvokeCallbackAttribute : Attribute + { + public MonoPInvokeCallbackAttribute() { } + } } diff --git a/Facepunch.Steamworks/Utility.cs b/Facepunch.Steamworks/Utility/Utility.cs similarity index 99% rename from Facepunch.Steamworks/Utility.cs rename to Facepunch.Steamworks/Utility/Utility.cs index 7ddd9b3..dea6bed 100644 --- a/Facepunch.Steamworks/Utility.cs +++ b/Facepunch.Steamworks/Utility/Utility.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Net; using System.Text; -namespace Facepunch.Steamworks +namespace Steamworks { public static partial class Utility { diff --git a/Facepunch.Steamworks/Redux/Utils.cs b/Facepunch.Steamworks/Utils.cs similarity index 98% rename from Facepunch.Steamworks/Redux/Utils.cs rename to Facepunch.Steamworks/Utils.cs index b6e60be..051bdb3 100644 --- a/Facepunch.Steamworks/Redux/Utils.cs +++ b/Facepunch.Steamworks/Utils.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks { @@ -69,7 +68,7 @@ namespace Steamworks /// /// Steam server time. Number of seconds since January 1, 1970, GMT (i.e unix time) /// - public static DateTime SteamServerTime => Facepunch.Steamworks.Utility.Epoch.ToDateTime( Internal.GetServerRealTime() ); + public static DateTime SteamServerTime => Utility.Epoch.ToDateTime( Internal.GetServerRealTime() ); /// /// returns the 2 digit ISO 3166-1-alpha-2 format country code this client is running in (as looked up via an IP-to-location database) diff --git a/Facepunch.Steamworks/Redux/Video.cs b/Facepunch.Steamworks/Video.cs similarity index 98% rename from Facepunch.Steamworks/Redux/Video.cs rename to Facepunch.Steamworks/Video.cs index ce324da..55331ce 100644 --- a/Facepunch.Steamworks/Redux/Video.cs +++ b/Facepunch.Steamworks/Video.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; -using SteamNative; namespace Steamworks { diff --git a/Generator/Argument.cs b/Generator/Argument.cs index 8a42e02..316c933 100644 --- a/Generator/Argument.cs +++ b/Generator/Argument.cs @@ -15,7 +15,13 @@ namespace Generator public Argument( string Name, string ManagedType, Dictionary typeDefs ) { - this.Name = Name; + var cleantype = Cleanup.ConvertType( ManagedType ); + if ( cleantype != ManagedType ) + { + ManagedType = cleantype; + } + + this.Name = Name; this.NativeType = ManagedType; Build( typeDefs ); @@ -126,6 +132,12 @@ namespace Generator private static string ToManagedType( string type ) { + var cleantype = Cleanup.ConvertType( type ); + if ( cleantype != type ) + { + return cleantype; + } + type = type.Replace( "ISteamHTMLSurface::", "" ); type = type.Replace( "class ", "" ); type = type.Replace( "struct ", "" ); @@ -207,7 +219,10 @@ namespace Generator internal string InteropParameter( bool NoPacking, bool LargePack, bool includeMarshalling ) { - var ps = NoPacking ? "" : (LargePack ? ".Pack8" : ".Pack4"); + var cleantype = Cleanup.ConvertType( NativeType ); + if ( cleantype != NativeType ) return cleantype; + + var ps = NoPacking ? "" : (LargePack ? ".Pack8" : ".Pack4"); var marshalling = ""; if ( !NativeType.Contains( "_t" ) ) ps = string.Empty; @@ -250,9 +265,10 @@ namespace Generator if ( ShouldBePassedAsOut ) return $"{marshalling} out {ManagedType.Trim( '*', ' ' )} /*{NativeType}*/ {Name}".Trim(); + cleantype = Cleanup.ConvertType( ManagedType ); + if ( cleantype != ManagedType ) return cleantype; - - if ( TypeDef != null ) + if ( TypeDef != null ) { if ( NativeType.EndsWith( "*" ) ) { @@ -270,7 +286,7 @@ namespace Generator return $"IntPtr /*{NativeType}*/ {Name} ".Trim(); } - return $"{marshalling} {ManagedType} /*{NativeType}*/ {Name} ".Trim(); + return $"{marshalling} {ManagedType} /*{NativeType}*/ {Name} ".Trim(); } internal string Return() diff --git a/Generator/Cleanup.cs b/Generator/Cleanup.cs new file mode 100644 index 0000000..bb9ce8b --- /dev/null +++ b/Generator/Cleanup.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Newtonsoft.Json; + + +public static class Cleanup +{ + public static string ConvertType( string type ) + { + type = type.Replace( "CSteamID", "SteamId" ); + type = type.Replace( "CGameID", "GameId" ); + + + return type; + } + + public static bool ShouldCreate( string type ) + { + if ( type == "SteamId" ) return false; + + + return true; + } +} diff --git a/Generator/CodeParser/CodeParser.Class.cs b/Generator/CodeParser/CodeParser.Class.cs index e2f0964..afc2192 100644 --- a/Generator/CodeParser/CodeParser.Class.cs +++ b/Generator/CodeParser/CodeParser.Class.cs @@ -37,6 +37,8 @@ namespace Generator var t = m.Groups[1].Value.Trim(); var n = m.Groups[2].Value.Trim(); + t = Cleanup.ConvertType( t ); + f.Arguments.Add( n, t ); } diff --git a/Generator/CodeWriter/Class.cs b/Generator/CodeWriter/Class.cs deleted file mode 100644 index 3c35483..0000000 --- a/Generator/CodeWriter/Class.cs +++ /dev/null @@ -1,491 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Generator -{ - public partial class CodeWriter - { - string LastMethodName; - int MethodNameCount; - List BeforeLines; - List AfterLines; - string ReturnType; - string ReturnVar; - SteamApiDefinition.MethodDef MethodDef; - string ClassName; - - // - // Output a class into a file - // - void GenerateClasses( string FileName ) - { - foreach ( var g in def.methods.GroupBy( x => x.ClassName ) ) - { - if ( ShouldIgnoreClass( g.Key ) ) continue; - - sb = new StringBuilder(); - Header(); - Class( g.Key, g.OrderBy( x => x.Name ).ToArray() ); - Footer(); - System.IO.File.WriteAllText( $"{FileName}{InterfaceNameToClass(g.Key)}.cs", sb.ToString() ); - } - } - - private void Class( string classname, SteamApiDefinition.MethodDef[] methodDef ) - { - StartBlock( $"internal unsafe class {InterfaceNameToClass(classname)} : IDisposable" ); - { - WriteLine( "//" ); - WriteLine( "// Holds a platform specific implentation" ); - WriteLine( "//" ); - WriteLine( "internal Platform.Interface platform;" ); - - if ( classname != "SteamApi" ) - WriteLine( "internal Facepunch.Steamworks.BaseSteamworks steamworks;" ); - - WriteLine(); - - WriteLine( "//" ); - WriteLine( "// Constructor decides which implementation to use based on current platform" ); - WriteLine( "//" ); - - if ( classname == "SteamApi" ) - { - - StartBlock( $"internal {InterfaceNameToClass( classname )}()" ); - { - WriteLine( "" ); - WriteLine( "if ( Platform.IsWindows ) platform = new Platform.Windows( ((IntPtr)1) );" ); - WriteLine( "else if ( Platform.IsLinux ) platform = new Platform.Linux( ((IntPtr)1) );" ); - WriteLine( "else if ( Platform.IsOsx ) platform = new Platform.Mac( ((IntPtr)1) );" ); - } - EndBlock(); - } - else - { - StartBlock( $"internal {InterfaceNameToClass( classname )}( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointer )" ); - { - WriteLine( "this.steamworks = steamworks;" ); - WriteLine( "" ); - WriteLine( "if ( Platform.IsWindows ) platform = new Platform.Windows( pointer );" ); - WriteLine( "else if ( Platform.IsLinux ) platform = new Platform.Linux( pointer );" ); - WriteLine( "else if ( Platform.IsOsx ) platform = new Platform.Mac( pointer );" ); - } - EndBlock(); - } - - WriteLine(); - - WriteLine( "//" ); - WriteLine( "// Class is invalid if we don't have a valid implementation" ); - WriteLine( "//" ); - WriteLine( "public bool IsValid => platform != null && platform.IsValid;" ); - WriteLine(); - - WriteLine( "//" ); - WriteLine( "// When shutting down clear all the internals to avoid accidental use" ); - WriteLine( "//" ); - StartBlock( $"public virtual void Dispose()" ); - { - StartBlock( " if ( platform != null )" ); - { - WriteLine( "platform.Dispose();" ); - WriteLine( "platform = null;" ); - } - EndBlock(); - } - EndBlock(); - WriteLine(); - - // - // Methods - // - foreach ( var m in methodDef ) - { - ClassMethod( classname, m ); - } - } - EndBlock(); - } - - - - private void ClassMethod( string classname, SteamApiDefinition.MethodDef m ) - { - var argList = BuildArguments( m.Params ); - var callargs = BuildArguments( m.Params ); - - BeforeLines = new List(); - AfterLines = new List(); - ReturnType = ToManagedType( m.ReturnType ); - ReturnVar = ""; - MethodDef = m; - ClassName = classname; - - var statc = classname == null ? " static" : ""; - - Detect_VectorReturn( argList, callargs ); - Detect_InterfaceReturn( argList, callargs ); - Detect_StringFetch( argList, callargs ); - Detect_StringReturn( argList, callargs ); - Detect_MatchmakingFilters( argList, callargs ); - Detect_ReturningStruct(); - Detect_IntPtrArgs( argList, callargs ); - Detect_MultiSizeArrayReturn( argList, callargs ); - Detect_StringArray( argList, callargs ); - Detect_CallResult( argList, callargs ); - - var methodName = m.Name; - - if (LastMethodName == methodName) - { - methodName += MethodNameCount.ToString(); - MethodNameCount++; - } - else - { - MethodNameCount = 0; - } - - var argString = string.Join( ", ", argList.Select( x => x.ManagedParameter() ) ); - if ( argString != "" ) argString = " " + argString + " "; - StartBlock( $"public{statc} {ReturnType} {methodName}({argString})" ); - - CallPlatformClass( classname, m, callargs.Select( x => x.InteropVariable( true ) ).ToList(), ReturnVar ); - - WriteLines( BeforeLines ); - - WriteLines( AfterLines ); - - EndBlock(); - WriteLine(); - - LastMethodName = m.Name; - } - - private void Detect_CallResult( List argList, List callargs ) - { - if ( ReturnType != "SteamAPICall_t" ) return; - if ( string.IsNullOrEmpty( MethodDef.CallResult ) ) return; - - argList.Insert( argList.Count, new Argument( "CallbackFunction = null", $"Action<{MethodDef.CallResult}, bool>", null ) ); - BeforeLines.Insert( 0, "SteamAPICall_t callback = 0;" ); - - ReturnVar = "callback"; - ReturnType = $"CallResult<{MethodDef.CallResult}>"; - - AfterLines.Add( "" ); - AfterLines.Add( "if ( CallbackFunction == null ) return null;" ); - AfterLines.Add("if ( callback == 0 ) return null;"); - AfterLines.Add( "" ); - - AfterLines.Add( $"return new CallResult<{MethodDef.CallResult}>( steamworks, callback, CallbackFunction );" ); - } - - private void Detect_StringArray( List argList, List callargs ) - { - var arg = argList.FirstOrDefault( x => x.NativeType.Contains( "SteamParamStringArray_t") ); - if ( arg == null ) return; - - arg.ManagedType = "string[]"; - - WriteLine( "// using: Detect_StringArray" ); - - BeforeLines.Add( "// Create strings" ); - BeforeLines.Add( $"var nativeStrings = new IntPtr[{arg.Name}.Length];" ); - BeforeLines.Add( $"for ( int i = 0; i < {arg.Name}.Length; i++ )" ); - BeforeLines.Add( $"{{" ); - BeforeLines.Add( $"nativeStrings[i] = Marshal.StringToHGlobalAnsi( {arg.Name}[i] );" ); - BeforeLines.Add( $"}}" ); - - BeforeLines.Add( "try" ); - BeforeLines.Add( "{" ); - - BeforeLines.Add( "" ); - BeforeLines.Add( "// Create string array" ); - BeforeLines.Add( $"var size = Marshal.SizeOf( typeof( IntPtr ) ) * nativeStrings.Length;" ); - BeforeLines.Add( $"var nativeArray = Marshal.AllocHGlobal( size );" ); - BeforeLines.Add( $"Marshal.Copy( nativeStrings, 0, nativeArray, nativeStrings.Length );" ); - - BeforeLines.Add( "" ); - BeforeLines.Add( "// Create SteamParamStringArray_t" ); - BeforeLines.Add( $"var tags = new SteamParamStringArray_t();" ); - BeforeLines.Add( $"tags.Strings = nativeArray;" ); - BeforeLines.Add( $"tags.NumStrings = {arg.Name}.Length;" ); - - AfterLines.Add( "}" ); - AfterLines.Add( "finally" ); - AfterLines.Add( "{" ); - AfterLines.Add( $"foreach ( var x in nativeStrings )" ); - AfterLines.Add( $" Marshal.FreeHGlobal( x );" ); - AfterLines.Add( $"" ); - AfterLines.Add( "}" ); - - foreach ( var a in callargs ) - if ( a.Name == arg.Name ) a.Name = "ref tags"; - } - - private void Detect_MultiSizeArrayReturn( List argList, List callargs ) - { - if ( ReturnType != "bool" ) return; - - var argPtr = argList.FirstOrDefault( x => x.Name == "pItemDefIDs" ); - var argNum = argList.FirstOrDefault( x => x.Name == "punItemDefIDsArraySize" ); - - if ( argPtr == null ) - { - argPtr = argList.FirstOrDefault( x => x.Name == "pOutItemsArray" ); - argNum = argList.FirstOrDefault( x => x.Name == "punOutItemsArraySize" ); - } - - if ( argPtr == null || argNum == null ) - return; - - WriteLine( "// using: Detect_MultiSizeArrayReturn" ); - - var typeName = argPtr.ManagedType.Trim( '*', ' ' ); - - BeforeLines.Add( $"{argNum.ManagedType.Trim( '*', ' ' )} {argNum.Name} = 0;" ); - BeforeLines.Add( $"" ); - BeforeLines.Add( $"bool success = false;" ); - - ReturnType = argPtr.ManagedType.Trim( '*', ' ' ) + "[]"; - ReturnVar = "success"; - - CallPlatformClass( ClassName, MethodDef, callargs.Select( x => x.Name.Replace( "(IntPtr) ", "" ) == argPtr.Name ? "IntPtr.Zero" : x.InteropVariable( true ) ).ToArray().ToList(), ReturnVar ); - BeforeLines.Add( $"if ( !success || {argNum.Name} == 0) return null;" ); - BeforeLines.Add( "" ); - - BeforeLines.Add( $"var {argPtr.Name} = new {typeName}[{argNum.Name}];" ); - BeforeLines.Add( $"fixed ( void* {argPtr.Name}_ptr = {argPtr.Name} )" ); - BeforeLines.Add( $"{{" ); - - foreach ( var arg in callargs.Where( x => x.Name.Replace( "(IntPtr) ", "" ) == argPtr.Name ) ) - { - arg.Name += "_ptr"; - } - - AfterLines.Add( $"if ( !success ) return null;" ); - AfterLines.Add( $"return {argPtr.Name};" ); - AfterLines.Add( $"}}" ); - - argList.Remove( argPtr ); - argList.Remove( argNum ); - - } - - private void Detect_IntPtrArgs( List argList, List callargs ) - { - foreach ( var a in callargs ) - { - if ( !a.InteropParameter( false, false, false ).StartsWith( "IntPtr" ) ) - { - continue; - } - - a.Name = "(IntPtr) " + a.Name; - } - } - - private void Detect_ReturningStruct() - { - if ( !MethodDef.ReturnType.EndsWith( "*" ) ) return; - if ( !MethodDef.ReturnType.Contains( "_t" ) ) return; - - WriteLine( "// with: Detect_ReturningStruct" ); - - ReturnType = ReturnType.Trim( '*', ' ' ); - ReturnVar = "struct_pointer"; - - BeforeLines.Add( "IntPtr struct_pointer;" ); - - AfterLines.Add( $"if ( struct_pointer == IntPtr.Zero ) return default({ReturnType});" ); - AfterLines.Add( $"return new {ReturnType}().Fill( struct_pointer );" ); - - } - - private void Detect_MatchmakingFilters( List argList, List callargs ) - { - if ( !argList.Any( x => x.Name == "ppchFilters" ) ) return; - if ( !argList.Any( x => x.Name == "nFilters" ) ) return; - - var filters = argList.Single( x => x.Name == "ppchFilters" ); - filters.ManagedType = "IntPtr"; - - WriteLine( "// with: Detect_MatchmakingFilters" ); - - } - - private void Detect_StringReturn( List argList, List callargs ) - { - if ( ReturnType != "string" ) return; - if ( MethodDef.ReturnType != "const char *" ) return; - WriteLine( "// with: Detect_StringReturn" ); - - BeforeLines.Add( "IntPtr string_pointer;" ); - ReturnVar = "string_pointer"; - - AfterLines.Add( "return Marshal.PtrToStringAnsi( string_pointer );" ); - } - - private void Detect_StringFetch( List argList, List callargs ) - { - bool ReturnString = argList.Count < 4 && (ReturnType == "bool" || ReturnType == "void" || ReturnType == "int"|| ReturnType == "uint"); - bool IsFirst = true; - - //System.Text.StringBuilder pStrBuffer1 = new System.Text.StringBuilder(2048); - //bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCMetadata(m_pSteamUGC,handle,index,pStrBuffer1,2048); - //pchMetadata = pStrBuffer1.ToString(); - - for ( int i=0; i< argList.Count; i++ ) - { - if ( argList[i].ManagedType != "char*" ) continue; - if ( i == argList.Count ) continue; - - var chr = argList[i]; - var num = argList[i+1]; - - var intReturn = ReturnType.Contains( "int" ); - var enumReturn = ReturnType.EndsWith( "_t" ); - - if ( num.ManagedType.Trim( '*' ) != "int" && num.ManagedType.Trim( '*' ) != "uint" ) continue; - - argList.Remove( num ); - - if ( ReturnString ) - argList.Remove( chr ); - - chr.ManagedType = "out string"; - - WriteLine( "// with: Detect_StringFetch " + ReturnString ); - - if ( IsFirst ) - BeforeLines.Add( $"{ReturnType} bSuccess = default( {ReturnType} );" ); - - if ( !ReturnString ) - BeforeLines.Add( $"{chr.Name} = string.Empty;" ); - - BeforeLines.Add( $"System.Text.StringBuilder {chr.Name}_sb = Helpers.TakeStringBuilder();" ); - - if ( ReturnString ) ReturnType = "string"; - ReturnVar = "bSuccess"; - - BeforeLines.Add( $"{num.ManagedType.Trim( '*' )} {num.Name} = 4096;" ); - - callargs.Where( x => x.Name == chr.Name ).All( x => { x.Name = x.Name + "_sb"; return true; } ); - // callargs.Where( x => x.Name == num.Name ).All( x => { x.Name = "4096"; return true; } ); - - - - if ( ReturnString ) AfterLines.Insert( 0, $"return {chr.Name}_sb.ToString();" ); - else AfterLines.Insert( 0, $"{chr.Name} = {chr.Name}_sb.ToString();" ); - - if ( enumReturn ) - { - // Fuck all - } - else if ( intReturn ) - { - if ( ReturnString ) AfterLines.Insert( 0, "if ( bSuccess <= 0 ) return null;" ); - else AfterLines.Insert( 0, "if ( bSuccess <= 0 ) return bSuccess;" ); - } - else - { - if ( ReturnString ) AfterLines.Insert( 0, "if ( !bSuccess ) return null;" ); - else AfterLines.Insert( 0, "if ( !bSuccess ) return bSuccess;" ); - } - - IsFirst = false; - } - - if ( !IsFirst ) - { - if ( !ReturnString ) AfterLines.Add( "return bSuccess;" ); - } - - /* - - - argList.Clear(); - ReturnType = "string"; - ReturnVar = "bSuccess"; - - - - - */ - } - - private void Detect_InterfaceReturn( List argList, List callargs ) - { - WriteLine( "// " + ReturnType ); - if ( !ReturnType.StartsWith( "ISteam" ) ) - return; - - BeforeLines.Add( "IntPtr interface_pointer;" ); - - ReturnVar = "interface_pointer"; - ReturnType = ReturnType.Substring( 1 ).Trim( '*', ' ' ); - - AfterLines.Add( $"if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $\"Error getting interface {{pchVersion}}\");" ); - AfterLines.Add( $"return new {ReturnType}( steamworks, interface_pointer );" ); - } - - private void Detect_VectorReturn( List argList, List callArgs ) - { - var vec = argList.FirstOrDefault( x => x.Name.StartsWith( "pvec" ) ); - var max = argList.FirstOrDefault( x => x.Name.StartsWith( "unMax" ) ); - if ( max == null ) max = argList.FirstOrDefault( x => x.Name.StartsWith( "unNum" ) ); - - if ( vec == null || max == null ) - return; - - WriteLine( "// with: Detect_VectorReturn" ); - - //argList.Remove( vec ); - argList.Remove( max ); - - vec.ManagedType = vec.ManagedType.Replace( "*", "[]" ); - - BeforeLines.Add( $"var {max.Name} = ({max.ManagedType}) {vec.Name}.Length;" ); - BeforeLines.Add( $"fixed ( {vec.ManagedType.Trim( '[', ']' ) }* {vec.Name}_ptr = {vec.Name} )" ); - BeforeLines.Add( $"{{" ); - - AfterLines.Add( $"}}" ); - - foreach ( var arg in callArgs.Where( x => x.Name == vec.Name ) ) - { - arg.Name += "_ptr"; - } - - } - - private void CallPlatformClass( string classname, SteamApiDefinition.MethodDef m, List argList, string returnVar ) - { - if ( classname == null ) - { - classname = "SteamApi"; - } - - var methodName = m.Name; - - if ( LastMethodName == methodName ) - methodName += "0"; - - var args = string.Join( ", ", argList ); - if ( args != "" ) args = $" {args} "; - - var r = ""; - if ( ReturnType != "void" ) - r = "return "; - - if ( returnVar != "" ) - r = returnVar + " = "; - - BeforeLines.Add( $"{r}platform.{classname}_{methodName}({args});" ); - } - } -} diff --git a/Generator/CodeWriter/ClassVTable.cs b/Generator/CodeWriter/ClassVTable.cs index 93065bf..be752f3 100644 --- a/Generator/CodeWriter/ClassVTable.cs +++ b/Generator/CodeWriter/ClassVTable.cs @@ -18,7 +18,6 @@ namespace Generator WriteLine( $"using System.Runtime.InteropServices;" ); WriteLine( $"using System.Text;" ); WriteLine( $"using System.Threading.Tasks;" ); - WriteLine( $"using SteamNative;" ); WriteLine(); WriteLine(); diff --git a/Generator/CodeWriter/CodeWriter.cs b/Generator/CodeWriter/CodeWriter.cs index 50a4b55..adf658d 100644 --- a/Generator/CodeWriter/CodeWriter.cs +++ b/Generator/CodeWriter/CodeWriter.cs @@ -28,7 +28,7 @@ namespace Generator Header(); Enums(); Footer(); - System.IO.File.WriteAllText( $"{folder}SteamNative.Enums.cs", sb.ToString() ); + System.IO.File.WriteAllText( $"{folder}SteamEnums.cs", sb.ToString() ); } { @@ -36,7 +36,7 @@ namespace Generator Header(); Types(); Footer(); - System.IO.File.WriteAllText( $"{folder}SteamNative.Types.cs", sb.ToString() ); + System.IO.File.WriteAllText( $"{folder}SteamTypes.cs", sb.ToString() ); } { @@ -44,7 +44,7 @@ namespace Generator Header(); Structs(); Footer(); - System.IO.File.WriteAllText( $"{folder}SteamNative.Structs.cs", sb.ToString() ); + System.IO.File.WriteAllText( $"{folder}SteamStructs.cs", sb.ToString() ); } { @@ -52,43 +52,7 @@ namespace Generator Header(); Constants(); Footer(); - System.IO.File.WriteAllText( $"{folder}SteamNative.Constants.cs", sb.ToString() ); - } - - { - sb = new StringBuilder(); - Header(); - PlatformInterface(); - Footer(); - System.IO.File.WriteAllText( $"{folder}SteamNative.Platform.Interface.cs", sb.ToString() ); - } - - { - sb = new StringBuilder(); - Header(); - PlatformClass( "Windows", "steam_api64.dll", true ); - Footer(); - System.IO.File.WriteAllText( $"{folder}SteamNative.Platform.Win64.cs", sb.ToString() ); - } - - { - sb = new StringBuilder(); - Header(); - PlatformClass( "Linux", "libsteam_api.so", false ); - Footer(); - System.IO.File.WriteAllText( $"{folder}SteamNative.Platform.Linux64.cs", sb.ToString() ); - } - - { - sb = new StringBuilder(); - Header(); - PlatformClass( "Mac", "libsteam_api.dylib", false ); - Footer(); - System.IO.File.WriteAllText( $"{folder}SteamNative.Platform.Mac.cs", sb.ToString() ); - } - - { - GenerateClasses( $"{folder}SteamNative." ); + System.IO.File.WriteAllText( $"{folder}SteamConstants.cs", sb.ToString() ); } { @@ -106,9 +70,6 @@ namespace Generator void WorkoutTypes() { - def.typedefs.Add( new SteamApiDefinition.TypeDef() { Name = "CGameID", Type = "ulong" } ); - def.typedefs.Add( new SteamApiDefinition.TypeDef() { Name = "CSteamID", Type = "ulong" } ); - foreach ( var c in def.typedefs ) { if ( c.Name.StartsWith( "uint" ) || c.Name.StartsWith( "int" ) || c.Name.StartsWith( "lint" ) || c.Name.StartsWith( "luint" ) || c.Name.StartsWith( "ulint" ) ) @@ -145,7 +106,7 @@ namespace Generator return args; } - private void Header( string NamespaceName = "SteamNative" ) + private void Header( string NamespaceName = "Steamworks" ) { WriteLine( "using System;" ); WriteLine( "using System.Runtime.InteropServices;" ); diff --git a/Generator/CodeWriter/Interface.cs b/Generator/CodeWriter/Interface.cs deleted file mode 100644 index d100639..0000000 --- a/Generator/CodeWriter/Interface.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Generator -{ - public partial class CodeWriter - { - // - // Writes the RustNative.Platform.Interface - // - void PlatformInterface() - { - StartBlock( $"internal static partial class Platform" ); - { - StartBlock( $"internal interface Interface : IDisposable" ); - { - WriteLine( "// Implementation should return true if _ptr is non null" ); - WriteLine( "bool IsValid { get; } " ); - WriteLine(); - - - foreach ( var m in def.methods.OrderBy( x => x.ClassName ) ) - { - if ( ShouldIgnoreClass( m.ClassName ) ) continue; - - PlatformInterfaceMethod( m ); - } - - } - EndBlock(); - } - EndBlock(); - } - - - private void PlatformInterfaceMethod( SteamApiDefinition.MethodDef m ) - { - var arguments = BuildArguments( m.Params ); - var ret = new Argument( "return", m.ReturnType, TypeDefs ); - - var methodName = m.Name; - - if ( LastMethodName == methodName ) - methodName = methodName + "0"; - - var flatName = $"SteamAPI_{m.ClassName}_{methodName}"; - - if ( m.ClassName == "SteamApi" ) - flatName = methodName; - - var argstring = string.Join( ", ", arguments.Select( x => x.InteropParameter( true, true, true ) ) ); - if ( argstring != "" ) argstring = $" {argstring} "; - - WriteLine( $"{ret.Return()} {m.ClassName}_{methodName}({argstring});" ); - LastMethodName = m.Name; - } - } -} diff --git a/Generator/CodeWriter/PlatformClass.cs b/Generator/CodeWriter/PlatformClass.cs deleted file mode 100644 index dac9acb..0000000 --- a/Generator/CodeWriter/PlatformClass.cs +++ /dev/null @@ -1,208 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Generator -{ - public partial class CodeWriter - { - bool LargePack; - - private void PlatformClass( string type, string libraryName, bool LargePack ) - { - this.LargePack = LargePack; - - StartBlock( $"internal static partial class Platform" ); - { - StartBlock( $"internal class {type} : Interface" ); - { - WriteLine( "internal IntPtr _ptr;" ); - WriteLine( "public bool IsValid { get{ return _ptr != IntPtr.Zero; } }" ); - WriteLine(); - - WriteLine( "//" ); - WriteLine( "// Constructor sets pointer to native class" ); - WriteLine( "//" ); - StartBlock( $"internal {type}( IntPtr pointer )" ); - { - WriteLine( "_ptr = pointer;" ); - } - EndBlock(); - - WriteLine( "//" ); - WriteLine( "// When shutting down clear all the internals to avoid accidental use" ); - WriteLine( "//" ); - StartBlock( $"public virtual void Dispose()" ); - { - WriteLine( "_ptr = IntPtr.Zero;" ); - } - EndBlock(); - WriteLine(); - - foreach ( var c in def.methods.GroupBy( x => x.ClassName ) ) - { - PlatformClass( c.Key, c.ToArray() ); - } - - StartBlock( $"internal static unsafe class Native" ); - { - foreach ( var c in def.methods.GroupBy( x => x.ClassName ) ) - { - InteropClass( libraryName, c.Key, c.ToArray() ); - } - } - EndBlock(); - } - EndBlock(); - } - EndBlock(); - } - - private void PlatformClass( string className, SteamApiDefinition.MethodDef[] methodDef ) - { - if ( ShouldIgnoreClass( className ) ) return; - - LastMethodName = ""; - foreach ( var m in methodDef ) - { - PlatformClassMethod( className, m ); - } - - WriteLine(); - } - - private void PlatformClassMethod( string classname, SteamApiDefinition.MethodDef methodDef ) - { - var arguments = BuildArguments( methodDef.Params ); - - var ret = new Argument( "return", methodDef.ReturnType, TypeDefs ); - - var methodName = methodDef.Name; - - if ( LastMethodName == methodName ) - methodName = methodName + "0"; - - var flatName = $"SteamAPI_{classname}_{methodName}"; - - if ( classname == "SteamApi" ) - flatName = methodName; - - var argstring = string.Join( ", ", arguments.Select( x => x.InteropParameter( true, true, true ) ) ); - if ( argstring != "" ) argstring = $" {argstring} "; - - StartBlock( $"public virtual {ret.Return()} {classname}_{methodName}({argstring})" ); - { - - // var vars = string.Join( " + \",\" + ", arguments.Where( x => !x.InteropParameter( true, true ).StartsWith( "out " ) ).Select( x => x.Name ) ); - // if ( vars != "" ) vars = "\" + " + vars + " + \""; - // WriteLine( $"Console.WriteLine( \"{classname}_{methodName}( {vars} )\" );" ); - - if ( methodDef.NeedsSelfPointer ) - { - WriteLine( $"if ( _ptr == IntPtr.Zero ) throw new System.Exception( \"{classname} _ptr is null!\" );" ); - WriteLine(); - } - - var retcode = ""; - if ( ret.NativeType != "void" ) - retcode = "return "; - - AfterLines = new List(); - - foreach ( var a in arguments ) - { - if ( a.InteropParameter( false, LargePack, false ).Contains( ".Pack4" ) ) - { - WriteLine( $"var {a.Name}_ps = new {a.ManagedType.Trim( '*' )}.Pack4();" ); - AfterLines.Add( $"{a.Name} = {a.Name}_ps;" ); - a.Name = "ref " + a.Name + "_ps"; - - if ( retcode != "" ) - retcode = "var ret = "; - } - else if ( a.InteropParameter( false, LargePack, false ).Contains( ".Pack8" ) ) - { - WriteLine( $"var {a.Name}_ps = new {a.ManagedType.Trim( '*' )}.Pack8();" ); - AfterLines.Add( $"{a.Name} = {a.Name}_ps;" ); - a.Name = "ref " + a.Name + "_ps"; - - if ( retcode != "" ) - retcode = "var ret = "; - } - } - - argstring = string.Join( ", ", arguments.Select( x => x.InteropVariable( false ) ) ); - - if ( methodDef.NeedsSelfPointer ) - argstring = "_ptr" + ( argstring.Length > 0 ? ", " : "" ) + argstring; - - WriteLine( $"{retcode}Native.{flatName}({argstring});" ); - - WriteLines( AfterLines ); - - if ( retcode.StartsWith( "var" ) ) - { - WriteLine( "return ret;" ); - } - - } - EndBlock(); - - LastMethodName = methodDef.Name; - } - - - - private void InteropClass( string libraryName, string className, SteamApiDefinition.MethodDef[] methodDef ) - { - if ( ShouldIgnoreClass( className ) ) return; - - WriteLine( $"//" ); - WriteLine( $"// {className} " ); - WriteLine( $"//" ); - - LastMethodName = ""; - foreach ( var m in methodDef ) - { - InteropClassMethod( libraryName, className, m ); - } - - WriteLine(); - } - - private void InteropClassMethod( string library, string classname, SteamApiDefinition.MethodDef methodDef ) - { - var arguments = BuildArguments( methodDef.Params ); - var ret = new Argument( "return", methodDef.ReturnType, TypeDefs ); - - var methodName = methodDef.Name; - - if ( LastMethodName == methodName ) - methodName = methodName + "0"; - - var flatName = $"SteamAPI_{classname}_{methodName}"; - - if ( classname == "SteamApi" ) - flatName = methodName; - - var argstring = string.Join( ", ", arguments.Select( x => x.InteropParameter( false, LargePack, true ) ) ); - - if ( methodDef.NeedsSelfPointer ) - { - argstring = "IntPtr " + classname + ( argstring.Length > 0 ? ", " : "" ) + argstring; - } - - if ( argstring != "" ) argstring = $" {argstring} "; - - if ( ret.Return().StartsWith( "bool " ) ) WriteLine( "[return: MarshalAs(UnmanagedType.U1)]" ); - WriteLine( $"[DllImport( \"{library}\" )]" ); - - WriteLine( $"internal static extern {ret.Return()} {flatName}({argstring});" ); - LastMethodName = methodDef.Name; - } - - - } -} diff --git a/Generator/CodeWriter/Struct.cs b/Generator/CodeWriter/Struct.cs index 6f50add..551f816 100644 --- a/Generator/CodeWriter/Struct.cs +++ b/Generator/CodeWriter/Struct.cs @@ -42,15 +42,21 @@ namespace Generator foreach ( var c in def.structs ) { - if ( SkipStructs.Contains( c.Name ) ) + var name = Cleanup.ConvertType( c.Name ); + + if ( SkipStructs.Contains( c.Name ) ) continue; - if ( c.Name.Contains( "::" ) ) + if ( !Cleanup.ShouldCreate( name ) ) + continue; + + if ( name.Contains( "::" ) ) continue; - int defaultPack = 8; - if ( c.Fields.Any( x => x.Type.Contains( "class CSteamID" ) ) && !ForceLargePackStructs.Contains( c.Name ) ) + int defaultPack = 8; + + if ( c.Fields.Any( x => x.Type.Contains( "SteamId" ) ) && !ForceLargePackStructs.Contains( c.Name ) ) defaultPack = 4; var isCallback = !string.IsNullOrEmpty( c.CallbackId ); @@ -58,7 +64,7 @@ namespace Generator // // Main struct // - StartBlock( $"public struct {c.Name}{(isCallback?" : Steamworks.ISteamCallback":"")}" ); + StartBlock( $"public struct {name}{(isCallback?" : Steamworks.ISteamCallback":"")}" ); { // // The fields @@ -71,8 +77,8 @@ namespace Generator WriteLine( "#region ISteamCallback" ); { WriteLine( $"public int GetCallbackId() => {c.CallbackId};" ); - WriteLine( $"public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) );" ); - WriteLine( $"public Steamworks.ISteamCallback Fill( IntPtr p ) => Platform.PackSmall ? (({c.Name})(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : (({c.Name})(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) ));" ); + WriteLine( $"public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) );" ); + WriteLine( $"public Steamworks.ISteamCallback Fill( IntPtr p ) => Config.PackSmall ? (({name})(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : (({name})(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) ));" ); } WriteLine( "#endregion" ); } @@ -80,8 +86,8 @@ namespace Generator { WriteLine( "#region Marshalling" ); { - WriteLine( $"public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Platform.PackSmall ? typeof(Pack4) : typeof(Pack8) );" ); - WriteLine( $"public {c.Name} Fill( IntPtr p ) => Platform.PackSmall ? (({c.Name})(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : (({c.Name})(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) ));" ); + WriteLine( $"public int GetStructSize() => System.Runtime.InteropServices.Marshal.SizeOf( Config.PackSmall ? typeof(Pack4) : typeof(Pack8) );" ); + WriteLine( $"public {name} Fill( IntPtr p ) => Config.PackSmall ? (({name})(Pack4) Marshal.PtrToStructure( p, typeof(Pack4) )) : (({name})(Pack8) Marshal.PtrToStructure( p, typeof(Pack8) ));" ); } WriteLine( "#endregion" ); } @@ -101,9 +107,9 @@ namespace Generator // Implicit convert from PackSmall to regular // WriteLine(); - Write( $"public static implicit operator {c.Name} ( {c.Name}.Pack4 d ) => " ); + Write( $"public static implicit operator {name} ( {name}.Pack4 d ) => " ); { - Write( $"new {c.Name}{{ " ); + Write( $"new {name}{{ " ); { foreach ( var f in c.Fields ) { @@ -129,9 +135,9 @@ namespace Generator // Implicit convert from PackSmall to regular // WriteLine(); - Write( $"public static implicit operator {c.Name} ( {c.Name}.Pack8 d ) => " ); + Write( $"public static implicit operator {name} ( {name}.Pack8 d ) => " ); { - Write( $"new {c.Name}{{ " ); + Write( $"new {name}{{ " ); { foreach ( var f in c.Fields ) { @@ -156,17 +162,6 @@ namespace Generator EndBlock(); WriteLine(); } - - StartBlock( $"internal static class Callbacks" ); - StartBlock( $"internal static void RegisterCallbacks( Facepunch.Steamworks.BaseSteamworks steamworks )" ); - { - foreach ( var c in callbackList ) - { - WriteLine( $"new CallbackHandle<{c.Name}>( steamworks );" ); - } - } - EndBlock(); - EndBlock(); } private void StructFields( SteamApiDefinition.StructDef.StructFields[] fields ) @@ -175,7 +170,9 @@ namespace Generator { var t = ToManagedType( m.Type ); - if ( TypeDefs.ContainsKey( t ) ) + t = Cleanup.ConvertType( t ); + + if ( TypeDefs.ContainsKey( t ) ) { t = TypeDefs[t].ManagedType; } @@ -199,9 +196,9 @@ namespace Generator WriteLine( $"[MarshalAs(UnmanagedType.ByValArray, SizeConst = {num})] // {m.Name}" ); } - if ( t.StartsWith( "CSteamID " ) && t.Contains( "[" ) ) + if ( t.StartsWith( "SteamId" ) && t.Contains( "[" ) ) { - var num = t.Replace( "CSteamID", "" ).Trim( '[', ']', ' ' ); + var num = t.Replace( "SteamId", "" ).Trim( '[', ']', ' ' ); t = $"ulong[]"; WriteLine( $"[MarshalAs(UnmanagedType.ByValArray, SizeConst = {num}, ArraySubType = UnmanagedType.U8)]" ); } diff --git a/Generator/CodeWriter/Types.cs b/Generator/CodeWriter/Types.cs index 8bce905..cc596fa 100644 --- a/Generator/CodeWriter/Types.cs +++ b/Generator/CodeWriter/Types.cs @@ -37,7 +37,7 @@ namespace Generator { foreach ( var o in def.typedefs.Where( x => !x.Name.Contains( "::" ) ) ) { - if ( SkipTypes.Contains( o.Name ) ) + if ( SkipTypes.Contains( o.Name ) ) continue; if ( SkipTypesStartingWith.Any( x => o.Name.StartsWith( x ) ) ) diff --git a/Generator/CodeWriter/Types/BaseType.cs b/Generator/CodeWriter/Types/BaseType.cs index fb042d8..b0e282b 100644 --- a/Generator/CodeWriter/Types/BaseType.cs +++ b/Generator/CodeWriter/Types/BaseType.cs @@ -13,6 +13,8 @@ internal class BaseType public static BaseType Parse( string type, string varname = null ) { + type = Cleanup.ConvertType( type ); + if ( type == "SteamAPIWarningMessageHook_t" ) return new PointerType { NativeType = type, VarName = varname }; if ( type == "SteamAPICall_t" ) return new SteamApiCallType { NativeType = type, VarName = varname }; @@ -30,11 +32,11 @@ internal class BaseType if ( basicType == "uint32" ) return new UIntType { NativeType = type, VarName = varname }; if ( basicType == "uint8" ) return new UInt8Type { NativeType = type, VarName = varname }; if ( basicType == "uint16" ) return new UInt16Type { NativeType = type, VarName = varname }; - if ( basicType == "CSteamID" ) return new CSteamIdType { NativeType = type, VarName = varname }; + if ( basicType == "SteamId" ) return new CSteamIdType { NativeType = type, VarName = varname }; if ( basicType == "uint64" ) return new ULongType { NativeType = type, VarName = varname }; if ( basicType == "bool" ) return new BoolType { NativeType = type, VarName = varname }; - if ( basicType.EndsWith( "_t" ) || basicType == "CSteamID" ) return new StructType { NativeType = type, VarName = varname, StructName = basicType }; + if ( basicType.EndsWith( "_t" ) ) return new StructType { NativeType = type, VarName = varname, StructName = basicType }; if ( basicType.StartsWith( "E" ) && char.IsUpper( basicType[1] ) ) return new EnumType { NativeType = type.Substring( 1 ), VarName = varname }; return new BaseType { NativeType = type, VarName = varname }; diff --git a/Generator/CodeWriter/Utility.cs b/Generator/CodeWriter/Utility.cs index e6e5623..4c4528b 100644 --- a/Generator/CodeWriter/Utility.cs +++ b/Generator/CodeWriter/Utility.cs @@ -72,7 +72,11 @@ namespace Generator type = type.Replace( "union ", "" ); type = type.Replace( "enum ", "" ); - switch ( type ) + var cleantype = Cleanup.ConvertType( type ); + if ( cleantype != type ) + return cleantype; + + switch ( type ) { case "uint64": return "ulong"; case "uint32": return "uint"; diff --git a/Generator/Generator.csproj b/Generator/Generator.csproj index 4c3c525..4bf42a4 100644 --- a/Generator/Generator.csproj +++ b/Generator/Generator.csproj @@ -52,7 +52,6 @@ - @@ -61,14 +60,13 @@ - + - diff --git a/Generator/Program.cs b/Generator/Program.cs index a12ee58..416b622 100644 --- a/Generator/Program.cs +++ b/Generator/Program.cs @@ -23,7 +23,7 @@ namespace Generator var generator = new CodeWriter( parser, def ); - generator.ToFolder( "../Facepunch.Steamworks/SteamNative/" ); + generator.ToFolder( "../Facepunch.Steamworks/Generated/" ); } private static void AddMissing( SteamApiDefinition output )