com.codedisaster.steamworks.SteamUniverse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of steamworks4j Show documentation
Show all versions of steamworks4j Show documentation
Java wrapper to access the Steamworks API.
package com.codedisaster.steamworks;
public enum SteamUniverse {
Invalid(0),
Public(1),
Beta(2),
Internal(3),
Dev(4);
private final int value;
private static final SteamUniverse[] values = values();
SteamUniverse(int value) {
this.value = value;
}
static SteamUniverse byValue(int value) {
for (SteamUniverse type : values) {
if (type.value == value) {
return type;
}
}
return Invalid;
}
}