com.codedisaster.steamworks.SteamUtilsCallbackAdapter 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 SteamUtilsCallbackAdapter extends SteamCallbackAdapter {
private SteamAPIWarningMessageHook messageHook;
SteamUtilsCallbackAdapter(SteamUtilsCallback callback) {
super(callback);
}
void setWarningMessageHook(SteamAPIWarningMessageHook messageHook) {
this.messageHook = messageHook;
}
void onWarningMessage(int severity, String message) {
if (messageHook != null) {
messageHook.onWarningMessage(severity, message);
}
}
void onSteamShutdown() {
callback.onSteamShutdown();
}
}