|
|
@ -244,21 +244,23 @@ public final function SteamID GetSteamID() |
|
|
|
return initializedData; |
|
|
|
return initializedData; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
public function bool IsEqual(Object other) |
|
|
|
* Checks if two `UserID`s are the same. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param otherID `UserID` to compare caller object to. |
|
|
|
|
|
|
|
* @return `true` if caller `UserID` is identical to `otherID` and |
|
|
|
|
|
|
|
* `false` otherwise. If at least one of the `UserID`s being compared is |
|
|
|
|
|
|
|
* uninitialized, the result will be `false`. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public final function bool IsEqualTo(UserID otherID) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
local UserID otherID; |
|
|
|
|
|
|
|
|
|
|
|
if (!IsInitialized()) return false; |
|
|
|
if (!IsInitialized()) return false; |
|
|
|
|
|
|
|
otherID = UserID(other); |
|
|
|
|
|
|
|
if (otherID == none) return false; |
|
|
|
if (!otherID.IsInitialized()) return false; |
|
|
|
if (!otherID.IsInitialized()) return false; |
|
|
|
|
|
|
|
|
|
|
|
return (initializedData.steamID32 == otherID.initializedData.steamID32); |
|
|
|
return (initializedData.steamID32 == otherID.initializedData.steamID32); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected function int CalculateHashCode() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return initializedData.steamID32; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Checks if caller `UserID`s is the same as what's described by |
|
|
|
* Checks if caller `UserID`s is the same as what's described by |
|
|
|
* given `SteamID`. |
|
|
|
* given `SteamID`. |
|
|
|