Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added getting the CellID in the constructor method. #722

Merged
merged 3 commits into from
Oct 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions SteamKit2/SteamKit2/Steam/Handlers/SteamUser/SteamUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public sealed class LogOnDetails
/// Gets or sets the CellID.
/// </summary>
/// <value>The CellID.</value>
public uint CellID { get; set; }
public uint? CellID { get; set; }

/// <summary>
/// Gets or sets the LoginID. This number is used for identifying logon session.
Expand Down Expand Up @@ -133,7 +133,7 @@ public sealed class AnonymousLogOnDetails
/// Gets or sets the CellID.
/// </summary>
/// <value>The CellID.</value>
public uint CellID { get; set; }
public uint? CellID { get; set; }

/// <summary>
/// Gets or sets the client operating system type.
Expand Down Expand Up @@ -333,7 +333,7 @@ public void LogOn( LogOnDetails details )
logon.Body.protocol_version = MsgClientLogon.CurrentProtocol;
logon.Body.client_os_type = ( uint )details.ClientOSType;
logon.Body.client_language = details.ClientLanguage;
logon.Body.cell_id = details.CellID;
logon.Body.cell_id = details.CellID ?? Client.Configuration.CellID;

logon.Body.steam2_ticket_request = details.RequestSteam2Ticket;

Expand Down Expand Up @@ -393,7 +393,7 @@ public void LogOnAnonymous( AnonymousLogOnDetails details )
logon.Body.protocol_version = MsgClientLogon.CurrentProtocol;
logon.Body.client_os_type = ( uint )details.ClientOSType;
logon.Body.client_language = details.ClientLanguage;
logon.Body.cell_id = details.CellID;
logon.Body.cell_id = details.CellID ?? Client.Configuration.CellID;

logon.Body.machine_id = HardwareUtils.GetMachineID();

Expand Down