Fix up compilation to try and test

This commit is contained in:
Aly 2020-07-01 23:43:03 -07:00
parent c579f0934d
commit 5af34740f4
2 changed files with 2 additions and 19 deletions

View file

@ -6,6 +6,7 @@ import tf.bug.fancadegraph.PinDefinition
import tf.bug.fancadegraph.Block
import tf.bug.fancadescodec.Position
import scalax.collection.Graph
import tf.bug.fancadegraph.Argument
sealed trait Fancade {
val pins: Vector[PinDefinition]
@ -15,7 +16,7 @@ sealed trait Fancade {
object Fancade {
final case class Capture[T](newBlock: BlockDefinition[T], args: T, pins: Vector[PinDefinition]) extends Fancade {
final case class Capture[T](newBlock: BlockDefinition[T], args: T, pins: Vector[PinDefinition])(implicit arg: Argument[T]) extends Fancade {
override def render: Level = {
Level(
Set(

View file

@ -71,24 +71,6 @@ trait Fanscript[F[_]] {
object Fanscript {
implicit object FanscriptFancade extends Fanscript[FancadeW] {
override def lift(value: Float): FancadeW[Float] =
Fancade.Capture(
BlockDefinition.NumberValue,
value,
BlockDefinition.NumberValue.output
)
override def win(stop: Boolean): FancadeW[Unit] =
Fancade.Capture(
BlockDefinition.Win,
stop,
BlockDefinition.Win.after
)
}
case class ScreenSize(width: Float, height: Float)
case class Position(position: Vector3, rotation: Rotation)
case class Raycast(hit: Boolean, position: Vector3, obj: Obj)