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

Fixes issue on workshop items being > 1 000 000 #621

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
namespace Steamworks {
[System.Serializable]
public struct SteamItemDef_t : System.IEquatable<SteamItemDef_t>, System.IComparable<SteamItemDef_t> {
public int m_SteamItemDef;
public uint m_SteamItemDef;

public SteamItemDef_t(int value) {
public SteamItemDef_t(uint value) {
m_SteamItemDef = value;
}

Expand All @@ -43,19 +43,19 @@ public override int GetHashCode() {
return !(x == y);
}

public static explicit operator SteamItemDef_t(int value) {
public static explicit operator SteamItemDef_t(uint value) {
return new SteamItemDef_t(value);
}

public static explicit operator int(SteamItemDef_t that) {
public static explicit operator uint(SteamItemDef_t that) {
return that.m_SteamItemDef;
}

public bool Equals(SteamItemDef_t other) {
return m_SteamItemDef == other.m_SteamItemDef;
}

public int CompareTo(SteamItemDef_t other) {
public uint CompareTo(SteamItemDef_t other) {
return m_SteamItemDef.CompareTo(other.m_SteamItemDef);
}
}
Expand Down