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

Give us a Steamworks Friend constructor that takes in a ulong #6644

Open
matekdev opened this issue Oct 19, 2024 · 0 comments
Open

Give us a Steamworks Friend constructor that takes in a ulong #6644

matekdev opened this issue Oct 19, 2024 · 0 comments
Labels
api design Opinions of nerds

Comments

@matekdev
Copy link

What it is?

In both Connection, and LobbyInformation SteamId has type ulong (I imagine in other places as well). The steamworks Friend constructor only has an option for long but then immediately casts it into a ulong.

internal Friend(Steamworks.Friend value)
{
    Internal = value;
}

internal Friend(SteamId value)
{
    Internal = new Steamworks.Friend(value);
}

public Friend(long steamid)
{
    Internal = new Steamworks.Friend((ulong)steamid);
}

What should it be?

Give us a constructor for Steamworks Friend that takes in a ulong.

@matekdev matekdev added the api design Opinions of nerds label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api design Opinions of nerds
Projects
Status: To triage
Development

No branches or pull requests

1 participant