- Timestamp:
- Nov 22, 2014, 10:54:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/CommonMappingFunctions.cs
r144 r203 2 2 using System.Collections.Generic; 3 3 using System.Text.RegularExpressions; 4 using ManagedSteam.SteamTypes;4 using Steamworks; 5 5 6 6 namespace AllocsFixes … … 42 42 public static string GetSteamID (ClientInfo _ci) 43 43 { 44 return S ingletonMonoBehaviour<Authenticator>.Instance.GetPlayerId (GetPlayerName (_ci));44 return Steam.Authentication.Server.GetPlayerId (GetPlayerName (_ci)); 45 45 } 46 46 47 47 public static string GetSteamID (string _playerName) 48 48 { 49 return S ingletonMonoBehaviour<Authenticator>.Instance.GetPlayerId (_playerName);49 return Steam.Authentication.Server.GetPlayerId (_playerName); 50 50 } 51 51 … … 158 158 { 159 159 try { 160 Dictionary<string, object> uToID = Authenticator.Instance.usersToIDs;161 foreach (KeyValuePair<string, object> kvp in uToID) {162 string curId = string.Empty + ((SteamID)kvp.Value).AsUInt64;160 Dictionary<string, CSteamID> uToID = Steam.Authentication.Server.usersToIDs; 161 foreach (KeyValuePair<string, CSteamID> kvp in uToID) { 162 string curId = string.Empty + kvp.Value.m_SteamID; 163 163 if (curId.Equals (_steamId)) { 164 164 return GetClientInfoFromPlayerName (kvp.Key, false);
Note:
See TracChangeset
for help on using the changeset viewer.