Commit Graph

959 Commits

Author SHA1 Message Date
Garry Newman
18fbabaf2c Added Friend.RequestUserStats() 2020-02-24 12:00:13 +00:00
Garry Newman
86a8f80584 Fixed SocketInterface duplicate connections, callbacks 2020-02-24 11:33:52 +00:00
Garry Newman
44196682c8 Added SteamNetworkUtils.OnDebugOutput, DebugLevel 2020-02-24 11:33:29 +00:00
Garry Newman
41c1d0da08 Ignore enums with "Force32Bit" in their names 2020-02-24 10:33:11 +00:00
Garry Newman
3c8a2f6cd1 NetMsg uses the flat function to release 2020-02-24 10:14:59 +00:00
Garry Newman
afd314627d Added StructFunctions 2020-02-24 10:14:31 +00:00
Garry Newman
e7a6a00675 Networking Cleanup 2020-02-24 08:58:09 +00:00
Garry Newman
4871c634fb Added IsSteamChinaLauncher 2020-02-23 19:14:27 +00:00
Garry Newman
fc74049123 Added Duration Control 2020-02-23 19:09:31 +00:00
Garry Newman
f495d18ece Added SteamRemotePlay 2020-02-23 18:58:50 +00:00
Garry Newman
8b2599be98 Try to define whether interfaces are shared/client/server only a bit better 2020-02-23 18:34:56 +00:00
Garry Newman
428c2425a0 CallResult takes an IsServer parameter 2020-02-23 11:44:14 +00:00
Garry Newman
bc9801c36a Prefer use client interface if both exist (this might need a big change at some point) 2020-02-23 11:25:56 +00:00
Garry Newman
8f36f0c939 Comment Fix 2020-02-23 09:14:16 +00:00
Garry Newman
ffa48fb03c Fixed server interfaces 2020-02-23 08:57:25 +00:00
Garry Newman
e3ac585144 No need for posix32/64 now - combined to just posix 2020-02-22 21:45:26 +00:00
Garry Newman
4b10d72d12 Callback fix 2020-02-22 21:13:47 +00:00
Garry Newman
abb749078b Removed debug Console.WriteLine 2020-02-22 21:11:14 +00:00
Garry Newman
c8cb180b78 Added SteamUserStats.RequestGlobalStats 2020-02-22 21:03:29 +00:00
Garry Newman
d58dfdf4d2
Merge pull request #326 from kamyker/kamyker-patch-2
Fix for InvetoryDef Properties
2020-02-22 20:54:30 +00:00
Garry Newman
1d3585fa6a
Merge branch 'master' into master 2020-02-22 20:49:47 +00:00
Garry Newman
b6c24ce04c
Merge pull request #373 from matt-bcs/master
Added EntryCount to Leaderboard
2020-02-22 20:48:13 +00:00
Garry Newman
d8e5a48f65 Updated Implementation to use flat api 2020-02-22 20:23:19 +00:00
Garry Newman
92b45c7596 Latest Generated 2020-02-22 20:18:07 +00:00
Matt Davis
6c84df0ef8 fixed indent for EntryCount 2020-02-16 12:15:27 -05:00
Matt Davis
2872bb92f7 added EntryCount to Leaderboard 2020-02-15 21:23:03 -05:00
Michal Kracik
841d665046 Updated OnGameOverlayActivated.
Updated to OnGameOverlayActivated?.Invoke( x.Active != 0 ) )
2020-02-10 14:49:55 -05:00
Michal Kracik
f60b54df33 Added bool parameter Active to event OnGameOverlayActivated to pass it from GameOverlayActivated_t. 2020-02-09 09:25:43 -05:00
Garry Newman
cfa77bc9e2
Merge pull request #366 from trdwll/connectionid
Make Id public only a getter
2020-02-05 10:17:33 +00:00
Russ Treadwell
427524abc9
Make Id public only a getter 2020-02-04 18:03:06 -05:00
Russ Treadwell
06d0059d87
Make Lobby ctor public 2020-02-04 13:47:57 -05:00
Garry Newman
f3443935b2
Merge pull request #356 from trdwll/ISteamFriends-add-methods
Expose IsFollowing, GetFollowerCount, and EnumerateFollowingList
2020-01-23 08:21:27 +00:00
Russ Treadwell
e4e3b0dbce
Fix EnumerateFollowingList and rename to GetFollowingList 2020-01-22 22:52:03 -05:00
Russ Treadwell
1a263c09cf
Expose IsFollowing, GetFollowerCount, and EnumerateFollowingList in SteamFriends 2020-01-21 17:35:04 -05:00
Garry Newman
6fbc1e80f3
Merge pull request #354 from trdwll/typo-fix
typo on AvailableLanguages
2020-01-21 22:30:39 +00:00
Garry Newman
7c82a9fc60
Merge pull request #355 from trdwll/shutdown-fix
shutdown server stats
2020-01-21 22:30:25 +00:00
Garry Newman
8dc011964f
Merge pull request #353 from kamyker/ugc-dl-validation
Fixed ugc validation/redownload
2020-01-21 22:30:09 +00:00
Russ Treadwell
1fd8ea89a9
shutdown server stats 2020-01-21 14:41:38 -05:00
Russ Treadwell
773605c841
typo on AvailableLanguages 2020-01-21 14:29:54 -05:00
kamyker
d42996142f Fixed ugc validation/redownload 2020-01-20 19:57:36 +01:00
kurozael
d919a1e635 Added a method to retrieve the glyph location for a provided controller and action 2020-01-18 22:38:34 +00:00
Alex Mein
19e64429c4 Merge remote-tracking branch 'upstream/master' 2019-12-16 09:49:24 +00:00
Rohan Singh
710c6a0ce7 Limit SourceServerQuery to one concurrent request per endpoint 2019-12-07 08:41:06 -05:00
Garry Newman
2e6db5fe37 fixed SourceServerQuery shared buffer errors 2019-12-06 14:27:38 +00:00
Garry Newman
127de84c8c
Merge pull request #335 from kamyker/subdl-fix
Fixed sometimes false returned from SubscribeDownloadAsync
2019-12-06 08:47:30 +00:00
kamyker
e9d130572a Fixed sometimes false returned from SubscribeDownloadAsync 2019-12-06 01:43:27 +01:00
Alex Mein
2fc5206b38 Exposed ConnectionInfo.EndReason 2019-12-05 16:49:52 +00:00
Garry Newman
04ad04f95d Added SteamServer.UserHasLicenseForApp 2019-12-04 11:15:58 +00:00
kamyker
61f3809b4e SubscribeDownloadAsync has flag state fix 2019-12-03 01:13:27 +01:00
kamyker
c5f1033aeb Added SubscribeDownloadAsync for workshop item 2019-12-03 01:07:39 +01:00
Kamil Szurant
6587db5a9d
Fix for InvetoryDef Properties
Otherwise we get error in `_properties[name] = vl;` as name is null. GetProperty(null) is called to get list of keys as string. I guess separate method would be cleaner but I'm keeping this example to minimum (or im too lazy).
2019-11-19 20:50:41 +01:00
Garry Newman
f1fdf29124
Merge pull request #319 from LukasKastern/master
Added SteamFriends.GetFriendsWithFlag
2019-11-11 08:56:06 +00:00
Garry Newman
8ceecd7350
Merge pull request #321 from alexcodejammer/master
Added missing workshop features
2019-11-11 08:55:36 +00:00
james7132
84063b674c Fix indentation 2019-11-10 17:03:21 -08:00
james7132
3e95d41692 Add unsafe overloads for SteamNetworking 2019-11-10 16:57:39 -08:00
Alex Mein
2f63117c32 Exposed the full result of the Vote method 2019-10-28 15:40:30 +00:00
Alex Mein
8b231bf4d6 Made SteamUGCDetails_t.Result available via a public method in UgcItem 2019-10-23 11:07:56 +01:00
Alex Mein
f549a69bc0 Added proper implementation of the various 'setreturn...' methods which previously did nothing 2019-10-18 10:07:18 +01:00
Alex Mein
4997a74d15 Added public methods for playtime tracking 2019-10-16 16:02:01 +01:00
Alex Mein
e3ce99bc12 Added missing newline 2019-10-16 14:47:23 +01:00
Alex Mein
455a9f8956 Added missing public methods for various functions in ISteamUGC. Fixed UGC Submit process reporting invalid progress value. 2019-10-16 14:41:57 +01:00
Lukas Kastern
83aa37ce4f Added SteamFriends.GetFriendsWithFlag
Added SteamFriends.GetFriendsWithFlag.
Reworked SteamFriends.GetFriends and SteamFriends.GetBlocked to work upon it.
I also had to expose the FriendFlags.
2019-10-11 16:44:27 +02:00
laurirasanen
796976cd47 Add SteamFriends.GetFromSource 2019-09-19 16:25:43 +03:00
Andrii Vitiv
9ad3a57ad9
Fix SteamFriends.GetRichPresence(key, value)
Adds key/value to the dictionary only if the rich presence was set successfully. Also fixes #307
2019-09-15 00:48:49 +03:00
Garry Newman
5666bb432e Update package version 2019-08-29 15:58:56 +01:00
Garry Newman
3c2eeb7f2f Throw exceptions if trying to use client interfaces with no client 2019-08-17 11:52:56 +01:00
Garry Newman
a7666d7d51 Can disable automatic RunCallback calling by setting asyncCallbacks to false in Init 2019-08-17 11:40:52 +01:00
Garry Newman
71b977ef7e Don't catch and send exceptions to OnCallbackException in RunCallbacks (but do in RunCallbacksAsync) 2019-08-17 11:40:26 +01:00
aylaylay
a02d1e87a7 Revert "Revert "Fixed server not being listed on master server""
This reverts commit ac8983ee94.
2019-08-17 08:08:10 +01:00
aylaylay
ac8983ee94 Revert "Fixed server not being listed on master server"
This reverts commit c69b817d62.
2019-08-17 08:07:25 +01:00
Garry Newman
5c36a5c338 Removed usages of StringBuffer
Il2CPP fucks over StringBuffer by changing its Capacity
We can properly UTF8 convert these strings now
2019-08-14 14:39:04 +01:00
Garry Newman
58eae03ae4 Added UGCItem download stats 2019-08-14 12:01:39 +01:00
Garry Newman
4f6e8bf8d1 Trying PreserveAttribute instead 2019-08-08 11:00:34 +01:00
Garry Newman
1a02a9c363 Prevent Utf8StringToNative.GetInstance getting optimized out 2019-08-07 19:43:44 +01:00
Lukas Kastern
717ec3942f
Add files via upload 2019-07-03 20:59:03 +02:00
Garry Newman
c6c73a36e9 Handle steam shutdown nicer 2019-07-02 14:12:55 +01:00
Garry Newman
38b1ed5f88 Il2Cpp didn't like CustomMarshaler on returns, so string returns are Utf8StringPointer instead, which implicit converts to string 2019-07-02 13:52:04 +01:00
Garry Newman
2fb1426479 win64 doesn't care about calling convention - but apprently il2cpp does, so we use CallingConvention.Cdecl on everthing 2019-07-02 13:37:34 +01:00
Garry Newman
7a4f0c029a Fix MatchMakingKeyValuePair issues 2019-07-02 12:08:02 +01:00
Garry Newman
968e658913
Merge pull request #281 from thesupersoup/master
Lobby game server methods, OnLobbyCreated and OnLobbyGameCreated, Achievement progress
2019-07-01 10:08:54 +01:00
thesupersoup
d2e4417ef2 Added OnLobbyCreated
Added OnLobbyCreated action and handler for associated LobbyCreated_t event
2019-06-30 03:23:08 -07:00
Alexander Filippov
fc42dca5bf Fix LocalTimestamp 2019-06-29 14:17:49 +02:00
thesupersoup
17434b2910 Updated summary for SetGameServer, IndicateAchProg exception 2019-06-26 20:36:17 -07:00
thesupersoup
7c1a218553 Lobby game server methods, OnLobbyGameCreated event, Achievement progress notification
Added SetGameServer and GetGameServer for lobby, added OnLobbyGameCreated event in SteamMatchmaking, added SteamId.IsValid check against default ulong value, added SteamUserStats.IndicateAchievementProgress for progress notification.
2019-06-26 20:31:54 -07:00
Garry Newman
6f5bde4f79
Merge pull request #278 from thesupersoup/master
LobbyQuery Numerical and NearVal Filters, SteamClient and Friend OwnsLobby
2019-06-26 10:04:25 +01:00
Garry Newman
b60fa061ed Only copy dlls to debug locations if we're compiling on my PC 2019-06-25 13:26:18 +01:00
Garry Newman
caea5ccb9b Fixed pointer size in ConnectionInterface 2019-06-25 13:01:41 +01:00
Garry Newman
39bc7b5c1b StructPlatformPackSize is 8 on win32 2019-06-25 12:58:25 +01:00
Garry Newman
11cc473a6e PLATFORM_32/64 defines 2019-06-25 12:47:31 +01:00
Garry Newman
7f4e0567a6 Swap overloaded function address on both win32 and win64 2019-06-25 12:47:22 +01:00
Garry Newman
7fbc333547 Handle struct returns differently on 32bit windows too 2019-06-25 12:42:17 +01:00
Garry Newman
a24ae4bac5 Translate memory offsets for 32bit 2019-06-25 12:40:23 +01:00
Garry Newman
a53a0f537c Allow 32bit processes 2019-06-25 12:36:57 +01:00
Garry Newman
69e2e9bd39 POSIX32 2019-06-25 12:21:29 +01:00
Garry Newman
016b86ce8e Config no longer needed 2019-06-25 12:14:15 +01:00
Garry Newman
4cef345d95 Callback vtable uses #ifdef 2019-06-25 12:13:30 +01:00
Garry Newman
f53e1aaba0 Global function cleanup 2019-06-25 12:13:04 +01:00
Garry Newman
d5abb32aeb Neater generated vtable code 2019-06-25 12:04:43 +01:00
Garry Newman
810cb3623f Code formatting 2019-06-25 12:01:00 +01:00
Garry Newman
1df586305d No need to use Config.Os for vtable address swapping 2019-06-25 12:00:04 +01:00
Garry Newman
690db722eb No need for _Windows function alternatives 2019-06-25 11:39:17 +01:00
Garry Newman
6dbed6a91d StructPlatformPackSize instead of runtime Pack8 shit 2019-06-25 11:20:39 +01:00
thesupersoup
f42fa5942f Update NumericalFilter.cs
Removed unnecessary using statements
2019-06-25 03:09:40 -07:00
thesupersoup
12c26384e7 Update LobbyQuery.cs 2019-06-25 03:04:35 -07:00
Garry Newman
02e9063db8 New projects in solution 2019-06-25 11:01:49 +01:00
thesupersoup
9442689b02 NumericalFilter struct and suggested changes
Added NumericalFilter struct, changed the dictionary for numerical filters into a list of the struct, removed IsOwner from Friend and SteamClient and added IsOwnedBy( SteamId ) to Lobby
2019-06-25 03:01:13 -07:00
Garry Newman
040291ed22 Platform specific dlls 2019-06-25 10:03:38 +01:00
thesupersoup
db41c0f407 Update LobbyQuery.cs 2019-06-24 21:47:19 -07:00
thesupersoup
4b8e1e33af LobbyQuery Numerical Filters, NearValFilter, SteamClient and Friend OwnsLobby methods
Added LobbyQuery numerical filters for WithLower, WithHigher, WithEqual, and WithNotEqual; added OrderByNear for near value filters. Added OwnsLobby method to SteamClient and Friend to test for ownership.
2019-06-24 20:13:48 -07:00
Garry Newman
0300b46ed3 Sting Filter fixes 2019-06-24 15:09:29 +01:00
Garry Newman
57f3b334b5
Merge pull request #277 from thesupersoup/master
LobbyQuery FilterStringKeyValue method
2019-06-24 13:35:59 +01:00
thesupersoup
efd2fa2291 Changed exception check in FilterStringKeyValue
To check for invalid argument conditions
2019-06-24 01:45:10 -07:00
thesupersoup
fdc5b49587 Exceptions and expression body definition
Added exception throwing for FilterStringKeyValue, changed MaxLobbyKeyLength to internal and expression body definition
2019-06-24 01:35:33 -07:00
thesupersoup
645e7bd91e Removed second FilterStringKeyValue method and improved first
Second method was non-functional due to access modifier inconsistency, added IsNullOrEmpty and MaxLobbyKeyLength check to first method, added MaxLobbyKeyLength (and backing field) to SteamMAtchmaking, taken from https://partner.steamgames.com/doc/api/ISteamMatchmaking#constants
2019-06-23 22:12:21 -07:00
Mitch
6a0a46f495 Method summary for FilterStringKeyValue( MatchMakingKeyValuePair_t kv )
Added summary to method
2019-06-23 18:32:27 -07:00
Mitch
caf52e4c4b Update LobbyQuery.cs 2019-06-23 14:54:12 -07:00
Mitch
78761d9fd7 LobbyQuery FilterStringKeyValue diff param
Added MatchMakingKeyValuePair_t veriant of FilterStringKeyValue
2019-06-23 14:52:36 -07:00
thesupersoup
56efc9f48b LobbyQuery String Filter
Added LobbyList FilterStringKeyValue method, fixed spacing on SteamMatchmaking.LobbyEnter_t.Install() parameter
2019-06-23 14:19:16 -07:00
Jannik Nickel
97b85172e2 Update UgcItem.cs 2019-06-23 20:22:37 +02:00
Jannik Nickel
c4eff7f61a Added missing methods to UgcItem and UgcQuery
Added Steamworks.Ugc.Query.WhereSearchText
Added Steamworks.Ugc.Item.VotesUp
Added Steamworks.Ugc.Item.VotesDown
Added Steamworks.Ugc.Item.Subscribe
Added Steamworks.Ugc.Item.Unsubscribe
2019-06-23 20:22:28 +02:00
Garry Newman
fd50e3ba71 Added SteamClient.RestartAppIfNecessary 2019-06-21 11:59:11 +01:00
Garry Newman
15dc2782cc Nicer return string marshalling 2019-06-20 13:26:11 +01:00
Garry Newman
a0478a6040 Store struct strings as byte and encode as utf8 on demand 2019-06-20 13:10:28 +01:00
Garry Newman
615645a30e Utf8String marshaller 2019-06-20 12:19:21 +01:00
Garry Newman
552d5251f8 Merge branch 'master' of https://github.com/Facepunch/Facepunch.Steamworks 2019-06-20 11:39:17 +01:00
Garry Newman
bddac0ccc9 Cleanup, crash fixes 2019-06-20 11:39:13 +01:00
Garry Newman
fa48a1ce33 Controller progress 2019-06-20 10:41:57 +01:00
thesupersoup
ade772d195 Pull req - OnLobbyEntered Action and JoinLobbyAsync
Added an OnLobbyEntered action with associated LobbyEnter_t event install, and added a JoinLobbyAsync method which returns the joined lobby if successful
2019-06-19 21:17:53 -07:00
thesupersoup
cb06574820 Pull req - OnLobbyEntered Action and JoinLobbyAsync
Added an OnLobbyEntered action with associated LobbyEnter_t event install, and added a JoinLobbyAsync method which returns the joined lobby if successful
2019-06-19 21:14:35 -07:00
Garry Newman
1c5cdd2d39 Controller tests 2019-06-19 16:18:12 +01:00
Garry Newman
ae1f648fa6 SteamInput, Controller boilerplate 2019-06-19 13:08:49 +01:00
Garry Newman
1ac22e1407 ISteamInput.GetConnectedControllers is an array 2019-06-19 13:05:09 +01:00
Garry Newman
77f3e09e98 Convert steam struct bools to bytes (to make them marshallable) 2019-06-19 13:04:18 +01:00
Garry Newman
985aefc2de SteamInput Base 2019-06-19 11:35:35 +01:00
Garry Newman
41a0b31644 ISteamInput generation 2019-06-19 11:33:16 +01:00
Garry Newman
ef071d3d71 OnP2PConnectionFailed passes error enum 2019-06-19 11:25:16 +01:00
Garry Newman
7c50db6997 Merge branch 'master' of https://github.com/Facepunch/Facepunch.Steamworks 2019-06-03 11:10:00 +01:00
Garry Newman
5b32943aa8 Increase max string length 2019-06-03 11:09:57 +01:00
laurirasanen
52381d4af8 Install SteamNetworkingSockets events when initializing SteamServer 2019-06-02 13:44:04 +03:00
Garry Newman
33703be387 nuget version 2019-05-30 15:11:13 +01:00
Garry Newman
adf39138a4 Add IntPtr version of HandleIncomingPacket 2019-05-30 08:15:01 +01:00
Garry Newman
253c206f71 Added OnSteamServerConnectFailure 2019-05-27 15:24:43 +01:00
Garry Newman
33830e274e Added SteamServer.ClearKeys() 2019-05-27 15:24:28 +01:00
Garry Newman
c93fe0ca11 Added SteamServer.LogOff() 2019-05-27 15:24:19 +01:00
Garry Newman
c69b817d62 Fixed server not being listed on master server 2019-05-27 15:23:56 +01:00
Garry Newman
2ad31e1375 Append Async to some async method names 2019-05-27 10:54:30 +01:00
Garry Newman
c60612b8b0 Some currency fix ups 2019-05-26 21:33:18 +01:00
Garry Newman
e4c9e9d034 Added SteamInventory.StartPurchaseAsync 2019-05-25 14:34:59 +01:00
Garry Newman
cad7edcec0 Added SteamMatchmaking.GetHistoryServers() 2019-05-24 15:19:04 +01:00
Garry Newman
5c973b0092 Fixed history servers being returned in favourites 2019-05-24 15:18:55 +01:00