Skip to content

Commit

Permalink
Merge branch 'master' into texture-panning
Browse files Browse the repository at this point in the history
  • Loading branch information
Interrupt committed Oct 13, 2020
2 parents 9392291 + a704392 commit 00f2e01
Show file tree
Hide file tree
Showing 305 changed files with 29,249 additions and 3,957 deletions.
17 changes: 5 additions & 12 deletions .idea/runConfigurations/Editor.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 5 additions & 12 deletions .idea/runConfigurations/Game.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 59 additions & 0 deletions .media/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 0 additions & 19 deletions DelvEdit/.classpath

This file was deleted.

1 change: 0 additions & 1 deletion DelvEdit/.gitignore

This file was deleted.

24 changes: 0 additions & 24 deletions DelvEdit/.project

This file was deleted.

42 changes: 17 additions & 25 deletions DelvEdit/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apply plugin: "java"

sourceCompatibility = 1.6
sourceCompatibility = 1.8
sourceSets.main.java.srcDirs = [ "src/" ]

project.ext.mainClassName = "com.interrupt.dungeoneer.EditorStarter"
project.ext.assetsDir = new File("../Dungeoneer/assets");
project.ext.assetsDir = new File("../Dungeoneer/assets")

task run(dependsOn: classes, type: JavaExec) {
main = project.mainClassName
Expand All @@ -14,33 +14,25 @@ task run(dependsOn: classes, type: JavaExec) {
ignoreExitValue = true
}

task debug(dependsOn: classes, type: JavaExec) {
main = project.mainClassName
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
workingDir = project.assetsDir
ignoreExitValue = true
debug = true
}

task dist(type: Jar) {
from files(sourceSets.main.output.classesDir)
from files(sourceSets.main.output.resourcesDir)
from {configurations.compile.collect {zipTree(it)}}
from files(project.assetsDir);

manifest {
attributes 'Main-Class': project.mainClassName
}
}

dist.dependsOn classes

eclipse {
project {
name = appName + "-editor"
linkedResource name: 'assets', type: '2', location: 'PARENT-1-PROJECT_LOC/Dungeoneer/assets'
dependsOn configurations.runtimeClasspath
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
from files(project.assetsDir)
with jar
}

task afterEclipseImport(description: "Post processing after project generation", group: "IDE") {
doLast {
def classpath = new XmlParser().parse(file(".classpath"))
new Node(classpath, "classpathentry", [ kind: 'src', path: 'assets' ]);
def writer = new FileWriter(file(".classpath"))
def printer = new XmlNodePrinter(new PrintWriter(writer))
printer.setPreserveWhitespace(true)
printer.print(classpath)
}
}
dist.dependsOn classes
2 changes: 1 addition & 1 deletion DelvEdit/src/com/interrupt/dungeoneer/EditorStarter.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class EditorStarter {
public static void main(String[] args) {
System.setProperty("com.apple.mrj.application.apple.menu.about.name", "DelvEdit");
new Editor();
Editor.init();

// Start the null steam API
SteamApi.api = new NullSteamApi();
Expand Down
Loading

0 comments on commit 00f2e01

Please sign in to comment.