Ignore:
Timestamp:
Nov 22, 2014, 10:54:05 PM (10 years ago)
Author:
alloc
Message:

fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/7dtd-server-fixes/src/CommonMappingFunctions.cs

    r144 r203  
    22using System.Collections.Generic;
    33using System.Text.RegularExpressions;
    4 using ManagedSteam.SteamTypes;
     4using Steamworks;
    55
    66namespace AllocsFixes
     
    4242                public static string GetSteamID (ClientInfo _ci)
    4343                {
    44                         return SingletonMonoBehaviour<Authenticator>.Instance.GetPlayerId (GetPlayerName (_ci));
     44                        return Steam.Authentication.Server.GetPlayerId (GetPlayerName (_ci));
    4545                }
    4646
    4747                public static string GetSteamID (string _playerName)
    4848                {
    49                         return SingletonMonoBehaviour<Authenticator>.Instance.GetPlayerId (_playerName);
     49                        return Steam.Authentication.Server.GetPlayerId (_playerName);
    5050                }
    5151
     
    158158                {
    159159                        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;
    163163                                        if (curId.Equals (_steamId)) {
    164164                                                return GetClientInfoFromPlayerName (kvp.Key, false);
Note: See TracChangeset for help on using the changeset viewer.