Example #1
0
 internal SteamID(SteamUniverse universe, SteamAccountType accountType, SteamInstance instance, uint accountID)
 {
     Universe  = universe;
     Type      = accountType;
     Instance  = instance;
     AccountID = accountID;
 }
Example #2
0
        /// <summary>
        /// Constructs a Steam Id from three of the four components. Instance is defaulted to a value based on the Account Type.
        /// </summary>
        /// <param name="universe">Which Steam system this Steam Id belongs to (such as Public)</param>
        /// <param name="accountType">The type of account for this Steam Id (such as Individual)</param>
        /// <param name="accountId">The 32-bit account identifier for the Steam account</param>
        public SteamId(SteamUniverse universe, SteamAccountType accountType, uint accountId)
        {
            Universe    = universe;
            AccountType = accountType;
            AccountId   = accountId;

            ResolvedFrom = SteamIdResolvedFrom.IndividualComponents;
        }
Example #3
0
        /// <summary>
        /// Constructs a Steam Id from three of the four components. Instance is defaulted to a value based on the Account Type.
        /// </summary>
        /// <param name="universe">Which Steam system this Steam Id belongs to (such as Public)</param>
        /// <param name="accountType">The type of account for this Steam Id (such as Individual)</param>
        /// <param name="accountId">The 32-bit account identifier for the Steam account</param>
        public SteamId(SteamUniverse universe, SteamAccountType accountType, uint accountId)
        {
            Universe = universe;
            AccountType = accountType;
            AccountId = accountId;

            ResolvedFrom = SteamIdResolvedFrom.IndividualComponents;
        }
 /// <summary>
 /// Returns the public key for the target Steam Universe.
 /// </summary>
 /// <param name="target">The public key.</param>
 /// <returns>Public key for the given universe.</returns>
 public static byte[] GetPublicKey( SteamUniverse target )
 {
     if( publicKeys.ContainsKey( target ) )
         return publicKeys[target];
     return null;
 }