/// <summary>
 ///  Sets our objects steamid refrence to work with. <see cref="WorkingID"/>
 /// </summary>
 /// <param name="ID">An id to work with.</param>
 public SteamID_Engine(string ID)
 {
     WorkingID = ID;
     if (Regex.IsMatch(WorkingID, SteamIDRegex.Steam2Regex))
     {
         AuthType = AuthIdType.AuthId_Steam2;
         Steam2   = WorkingID;
         Steam32  = SteamIDConvert.Steam2ToSteam32(WorkingID);
         Steam64  = SteamIDConvert.Steam2ToSteam64(WorkingID);
     }
     else if (Regex.IsMatch(WorkingID, SteamIDRegex.Steam32Regex))
     {
         AuthType = AuthIdType.AuthId_Steam3;
         Steam2   = SteamIDConvert.Steam32ToSteam2(WorkingID);
         Steam32  = WorkingID;
         Steam64  = SteamIDConvert.Steam32ToSteam64(WorkingID);
     }
     else if (Regex.IsMatch(WorkingID, SteamIDRegex.Steam64Regex))
     {
         AuthType = AuthIdType.AuthId_SteamID64;
         Steam2   = SteamIDConvert.Steam64ToSteam2(Int64.Parse(WorkingID));
         Steam32  = SteamIDConvert.Steam64ToSteam32(Int64.Parse(WorkingID));
         Steam64  = Int64.Parse(WorkingID);
     }
     else
     {
         AuthType = AuthIdType.AuthId_Engine;
     }
 }
Exemple #2
0
 public static string RetrieveID(string input)
 {
     if (input.StartsWith("STEAM"))
     {
         return(SteamIDConvert.Steam2ToSteam64(input).ToString());
     }
     else if (input.StartsWith("7656119"))
     {
         return(input);
     }
     return(null);
 }