Skip to content

Instantly share code, notes, and snippets.

@dmchurch
Last active December 15, 2021 18:58
Show Gist options
  • Save dmchurch/fa874993108a5d8cc565090d9d336906 to your computer and use it in GitHub Desktop.
Save dmchurch/fa874993108a5d8cc565090d9d336906 to your computer and use it in GitHub Desktop.
DrillDownModLoader VSCode setup
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Launch Drill Down",
"request": "launch",
"mainClass": "de.dakror.quarry.desktop.DesktopLauncher",
"args": "debug"
},
{
"type": "java",
"name": "Launch Bootstrapped",
"request": "launch",
"projectName": "ModLoader",
"mainClass": "de.dakror.modding.Bootstrapper",
"args": "debug"
}
]
}
include('ModLoader')
include('TestMod')
plugins {
id 'java'
}
dependencies {
implementation files('../TheQuarry-full.jar')
implementation project(':ModLoader')
}
package org.shyou.testmod;
import de.dakror.modding.Patcher.AugmentationClass;
import de.dakror.quarry.desktop.DesktopLauncher;
@AugmentationClass
public class MyLauncher extends DesktopLauncher {
public static void main(String[] arg) {
System.out.println("in MyLauncher.main()");
new MyLauncher(arg);
DesktopLauncher.main(arg);
}
public MyLauncher(String[] arg) {
super(arg);
}
}
package org.shyou.testmod;
import de.dakror.common.libgdx.PlatformInterface;
import de.dakror.modding.Patcher.AugmentationClass;
import de.dakror.quarry.Quarry;
@AugmentationClass
public class MyQuarry extends Quarry {
public MyQuarry(PlatformInterface pi, boolean fullVersion, int versionNumber, String version, boolean desktop, boolean newAndroid, WindowMode mode) {
super(pi, fullVersion, versionNumber, version, desktop, newAndroid, mode);
System.out.println("MyQuarry()");
}
@Override
public void create() {
System.out.println("MyQuarry: in create()");
System.out.println("Current Q: "+Q);
super.create();
System.out.println("MyQuarry: exit create()");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment