re-impl halt
This commit is contained in:
parent
4010ea6d9e
commit
57b415e025
|
@ -1,18 +0,0 @@
|
|||
package at.petrak.hexcasting.common.casting.operators.eval
|
||||
|
||||
import at.petrak.hexcasting.api.casting.castables.Action
|
||||
import at.petrak.hexcasting.api.casting.OperationResult
|
||||
import at.petrak.hexcasting.api.casting.eval.CastingContext
|
||||
import at.petrak.hexcasting.api.casting.eval.vm.SpellContinuation
|
||||
import at.petrak.hexcasting.api.casting.iota.Iota
|
||||
|
||||
object OpEvalDelay : Action {
|
||||
override fun operate(
|
||||
continuation: SpellContinuation,
|
||||
stack: MutableList<Iota>,
|
||||
ravenmind: Iota?,
|
||||
ctx: CastingContext
|
||||
): OperationResult {
|
||||
return OperationResult(continuation, stack, ravenmind, listOf())
|
||||
}
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
package at.petrak.hexcasting.common.lib.hex;
|
||||
|
||||
import at.petrak.hexcasting.api.casting.castables.Action;
|
||||
import at.petrak.hexcasting.api.casting.ActionRegistryEntry;
|
||||
import at.petrak.hexcasting.api.casting.castables.Action;
|
||||
import at.petrak.hexcasting.api.casting.iota.BooleanIota;
|
||||
import at.petrak.hexcasting.api.casting.iota.DoubleIota;
|
||||
import at.petrak.hexcasting.api.casting.iota.NullIota;
|
||||
|
@ -18,6 +18,7 @@ import at.petrak.hexcasting.common.casting.operators.circles.OpImpetusDir;
|
|||
import at.petrak.hexcasting.common.casting.operators.circles.OpImpetusPos;
|
||||
import at.petrak.hexcasting.common.casting.operators.eval.OpEval;
|
||||
import at.petrak.hexcasting.common.casting.operators.eval.OpForEach;
|
||||
import at.petrak.hexcasting.common.casting.operators.eval.OpHalt;
|
||||
import at.petrak.hexcasting.common.casting.operators.lists.*;
|
||||
import at.petrak.hexcasting.common.casting.operators.local.OpPeekLocal;
|
||||
import at.petrak.hexcasting.common.casting.operators.local.OpPushLocal;
|
||||
|
@ -373,6 +374,8 @@ public class HexActions {
|
|||
// eval being a space filling curve feels apt doesn't it
|
||||
public static final ActionRegistryEntry EVAL = make("eval",
|
||||
new ActionRegistryEntry(HexPattern.fromAngles("deaqq", HexDir.SOUTH_EAST), OpEval.INSTANCE));
|
||||
public static final ActionRegistryEntry HALT = make("halt",
|
||||
new ActionRegistryEntry(HexPattern.fromAngles("aqdee", HexDir.SOUTH_WEST), OpHalt.INSTANCE));
|
||||
// TODO: install Iris' gambit
|
||||
|
||||
public static final ActionRegistryEntry READ = make("read",
|
||||
|
|
|
@ -29,6 +29,16 @@
|
|||
{
|
||||
"type": "patchouli:text",
|
||||
"text": "hexcasting.page.meta.for_each.2"
|
||||
},
|
||||
{
|
||||
"type": "hexcasting:pattern",
|
||||
"op_id": "hexcasting:halt",
|
||||
"anchor": "hexcasting:halt",
|
||||
"text": "hexcasting.page.meta.halt.1"
|
||||
},
|
||||
{
|
||||
"type": "patchouli:text",
|
||||
"text": "hexcasting.page.meta.halt.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue