All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codedisaster.steamworks.SteamUtilsCallbackAdapter Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
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();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy