0.1.0-0-pre.1
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// file: Android/common/src/main/java/com/sasedev/games/common/NativeBridge.java
|
||||
// version: 1
|
||||
|
||||
package com.sasedev.games.common;
|
||||
|
||||
/** Stable Java side of the future Java/JNI platform bridge. */
|
||||
public final class NativeBridge {
|
||||
private NativeBridge() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the bridge contract version.
|
||||
*
|
||||
* @return bridge contract version
|
||||
*/
|
||||
public static int contractVersion() {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// file: Android/common/src/main/java/com/sasedev/games/common/SaseGameActivity.java
|
||||
// version: 1
|
||||
|
||||
package com.sasedev.games.common;
|
||||
|
||||
/**
|
||||
* Common Android activity boundary for games.sasedev applications.
|
||||
*
|
||||
* <p>The executable Android delta will make this class extend SDLActivity once the SDL3 AAR is introduced.</p>
|
||||
*/
|
||||
public abstract class SaseGameActivity {
|
||||
/**
|
||||
* Returns the stable identifier of the game hosted by the activity.
|
||||
*
|
||||
* @return game identifier
|
||||
*/
|
||||
public abstract String gameId();
|
||||
}
|
||||
Reference in New Issue
Block a user