-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
310fc60
commit b6ce014
Showing
30 changed files
with
1,295 additions
and
31 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import os | ||
import shutil | ||
import subprocess | ||
|
||
runDirectory = "run/client/" | ||
configDirectory = runDirectory + "config/phosphophyllite/" | ||
|
||
runMode = os.environ.get("QUARTZ_TEST_RUN_MODE") | ||
if runMode is None: | ||
runMode = "Automatic" | ||
pass | ||
|
||
mainConfigName = "quartz-client.json5" | ||
mainConfig = f""" | ||
{{ | ||
debug: false, | ||
mode: "{runMode}", | ||
}} | ||
""" | ||
|
||
testConfigName = "quartz-testing-client.json5" | ||
testConfig = """ | ||
{ | ||
Enabled: true, | ||
AutoRun: true, | ||
} | ||
""" | ||
|
||
if __name__ == '__main__': | ||
print(mainConfig) | ||
print(testConfig) | ||
shutil.rmtree(runDirectory) | ||
os.makedirs(configDirectory) | ||
|
||
mainConfigFile = open(configDirectory + mainConfigName, "w") | ||
mainConfigFile.write(mainConfig) | ||
mainConfigFile.close() | ||
|
||
testConfigFile = open(configDirectory + testConfigName, "w") | ||
testConfigFile.write(testConfig) | ||
testConfigFile.close() | ||
|
||
subprocess.call(["./gradlew", ":runClient"]) | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/main/java/net/roguelogix/quartz/internal/QuartzInternalEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package net.roguelogix.quartz.internal; | ||
|
||
import net.minecraft.client.renderer.RenderType; | ||
import net.neoforged.bus.api.Event; | ||
import net.roguelogix.phosphophyllite.util.NonnullDefault; | ||
import net.roguelogix.phosphophyllite.util.Pair; | ||
import net.roguelogix.quartz.internal.util.PointerWrapper; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@NonnullDefault | ||
public class QuartzInternalEvent extends Event { | ||
public static class CreateTests extends QuartzInternalEvent { | ||
} | ||
|
||
public static class TestingStatus extends QuartzInternalEvent { | ||
public final boolean running; | ||
|
||
public TestingStatus(boolean running) { | ||
this.running = running; | ||
} | ||
} | ||
|
||
public static class FeedbackCollected extends QuartzInternalEvent { | ||
|
||
public final List<RenderType> renderTypes; | ||
// note: readOnly pointers | ||
public final Map<RenderType, Pair<PointerWrapper, Integer>> feedbackBuffers; | ||
|
||
public FeedbackCollected(List<RenderType> renderTypes, Map<RenderType, Pair<PointerWrapper, Integer>> feedbackBuffers) { | ||
this.renderTypes = renderTypes; | ||
this.feedbackBuffers = feedbackBuffers; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.