Class RustPlusConnection
- Namespace
- RustPlusApi
- Assembly
- RustPlusApi.dll
Connection identity for a RustPlus client: the server endpoint and the player credentials a request is issued as. Grouping these into one value keeps the RustPlus constructor readable at the call site.
public sealed record RustPlusConnection : IEquatable<RustPlusConnection>
- Inheritance
-
RustPlusConnection
- Implements
- Inherited Members
Constructors
RustPlusConnection(string, int, ulong, int, bool)
Connection identity for a RustPlus client: the server endpoint and the player credentials a request is issued as. Grouping these into one value keeps the RustPlus constructor readable at the call site.
public RustPlusConnection(string Server, int Port, ulong PlayerId, int PlayerToken, bool UseFacepunchProxy = false)
Parameters
ServerstringThe IP address of the Rust+ server.
PortintThe port dedicated for the Rust+ companion app (not the one used to connect in-game).
PlayerIdulongYour Steam ID.
PlayerTokenintYour player token acquired with FCM.
UseFacepunchProxyboolSpecifies whether to use the Facepunch proxy.
Properties
PlayerId
Your Steam ID.
public ulong PlayerId { get; init; }
Property Value
PlayerToken
Your player token acquired with FCM.
public int PlayerToken { get; init; }
Property Value
Port
The port dedicated for the Rust+ companion app (not the one used to connect in-game).
public int Port { get; init; }
Property Value
Server
The IP address of the Rust+ server.
public string Server { get; init; }
Property Value
UseFacepunchProxy
Specifies whether to use the Facepunch proxy.
public bool UseFacepunchProxy { get; init; }