Skip to content

Commit d3a8e06

Browse files
committed
Create Core subproject and move DebugStepType into it
1 parent 45fbd2d commit d3a8e06

File tree

16 files changed

+37
-17
lines changed

16 files changed

+37
-17
lines changed

Common/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import hexdebug.libs
2-
31
plugins {
42
id("hexdebug.conventions.architectury")
53
}
@@ -33,4 +31,6 @@ dependencies {
3331
modImplementation(libs.ioticblocks.common)
3432

3533
modCompileOnly(libs.emi.xplat)
34+
35+
api(project(":Core"))
3636
}

Common/src/main/java/gay/object/hexdebug/mixin/MixinOpEval.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import at.petrak.hexcasting.api.casting.iota.Iota;
99
import at.petrak.hexcasting.common.casting.actions.eval.OpEval;
1010
import gay.object.hexdebug.casting.eval.IDebugCastEnv;
11-
import gay.object.hexdebug.debugger.DebugStepType;
11+
import gay.object.hexdebug.core.api.debugging.DebugStepType;
1212
import org.spongepowered.asm.mixin.Mixin;
1313
import org.spongepowered.asm.mixin.injection.At;
1414
import org.spongepowered.asm.mixin.injection.Inject;

Common/src/main/kotlin/gay/object/hexdebug/casting/eval/DebuggerCastEnv.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package gay.`object`.hexdebug.casting.eval
33
import at.petrak.hexcasting.api.casting.castables.Action
44
import at.petrak.hexcasting.api.casting.eval.env.PackagedItemCastEnv
55
import at.petrak.hexcasting.api.casting.eval.sideeffects.OperatorSideEffect
6-
import gay.`object`.hexdebug.debugger.DebugStepType
6+
import gay.`object`.hexdebug.core.api.debugging.DebugStepType
77
import gay.`object`.hexdebug.utils.findMediaHolderInHand
88
import gay.`object`.hexdebug.utils.otherHand
99
import net.minecraft.network.chat.Component

Common/src/main/kotlin/gay/object/hexdebug/casting/eval/EvaluatorCastEnv.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package gay.`object`.hexdebug.casting.eval
33
import at.petrak.hexcasting.api.casting.castables.Action
44
import at.petrak.hexcasting.api.casting.eval.env.StaffCastEnv
55
import at.petrak.hexcasting.api.casting.eval.sideeffects.OperatorSideEffect
6-
import gay.`object`.hexdebug.debugger.DebugStepType
6+
import gay.`object`.hexdebug.core.api.debugging.DebugStepType
77
import net.minecraft.network.chat.Component
88
import net.minecraft.server.level.ServerPlayer
99
import net.minecraft.world.InteractionHand

Common/src/main/kotlin/gay/object/hexdebug/casting/eval/IDebugCastEnv.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import at.petrak.hexcasting.api.casting.eval.CastingEnvironment
55
import at.petrak.hexcasting.api.casting.eval.sideeffects.OperatorSideEffect
66
import at.petrak.hexcasting.api.casting.eval.vm.CastingVM
77
import gay.`object`.hexdebug.adapter.DebugAdapterManager
8-
import gay.`object`.hexdebug.debugger.DebugStepType
8+
import gay.`object`.hexdebug.core.api.debugging.DebugStepType
99
import net.minecraft.network.chat.Component
1010
import net.minecraft.server.level.ServerPlayer
1111
import org.eclipse.lsp4j.debug.OutputEventArgumentsCategory

Common/src/main/kotlin/gay/object/hexdebug/debugger/DebugStepResult.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package gay.`object`.hexdebug.debugger
22

33
import at.petrak.hexcasting.api.casting.eval.ExecutionClientView
4+
import gay.`object`.hexdebug.core.api.debugging.DebugStepType
45
import org.eclipse.lsp4j.debug.Source
56
import org.eclipse.lsp4j.debug.LoadedSourceEventArgumentsReason as LoadedSourceReason
67

Common/src/main/kotlin/gay/object/hexdebug/debugger/Enums.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ enum class StopReason(val value: String, val stopImmediately: Boolean) {
88
TERMINATED("terminated", true),
99
}
1010

11-
enum class DebugStepType {
12-
IN,
13-
OUT,
14-
JUMP,
15-
ESCAPE,
16-
}
17-
1811
enum class SourceBreakpointMode(val label: String, val description: String) {
1912
EVALUATED("Evaluated", "Stop if this iota would be evaluated. (default)"),
2013
ESCAPED("Escaped", "Stop if this iota would be escaped."),

Common/src/main/kotlin/gay/object/hexdebug/debugger/HexDebugger.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import gay.`object`.hexdebug.casting.eval.FrameBreakpoint
1717
import gay.`object`.hexdebug.casting.eval.IDebugCastEnv
1818
import gay.`object`.hexdebug.casting.eval.debugCastEnv
1919
import gay.`object`.hexdebug.casting.iotas.CognitohazardIota
20+
import gay.`object`.hexdebug.core.api.debugging.DebugStepType
2021
import gay.`object`.hexdebug.debugger.allocators.VariablesAllocator
2122
import gay.`object`.hexdebug.utils.ceilToPow
2223
import gay.`object`.hexdebug.utils.displayWithPatternName

Core/build.gradle.kts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// minimal set of classes required to implement debug support in another mod
2+
// this is intended to be included via JiJ to allow HexDebug to be an optional dependency
3+
4+
plugins {
5+
id("hexdebug.conventions.architectury")
6+
}
7+
8+
architectury {
9+
common("fabric", "forge")
10+
}
11+
12+
dependencies {
13+
modApi(libs.hexcasting.common)
14+
}

Core/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
platform=core

0 commit comments

Comments
 (0)