com.codedisaster.steamworks.SteamGameServerStatsCallbackAdapter 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;
@SuppressWarnings("unused")
class SteamGameServerStatsCallbackAdapter extends SteamCallbackAdapter {
SteamGameServerStatsCallbackAdapter(SteamGameServerStatsCallback callback) {
super(callback);
}
void onStatsReceived(int result, long steamIDUser) {
callback.onStatsReceived(SteamResult.byValue(result), new SteamID(steamIDUser));
}
void onStatsStored(int result, long steamIDUser) {
callback.onStatsStored(SteamResult.byValue(result), new SteamID(steamIDUser));
}
void onStatsUnloaded(long steamIDUser) {
callback.onStatsUnloaded(new SteamID(steamIDUser));
}
}