better wire branching control

This commit is contained in:
minjaesong
2025-02-09 21:56:46 +09:00
parent 34d8f1504f
commit 22786f9a28
6 changed files with 23 additions and 18 deletions

View File

@@ -197,7 +197,7 @@ class WireCodex {
prop.inputCount = record.intVal("inputcount")
prop.inputType = record.get("inputtype") ?: prop.accepts
prop.outputType = record.get("outputtype") ?: prop.accepts
prop.canBranch = record.boolVal("branching")
prop.branching = record.intVal("branching")
prop.tags = record.get("tags").split(',').map { it.trim().toUpperCase() }.toHashSet()
wireProps[prop.id] = prop

View File

@@ -19,7 +19,7 @@ class WireProp : TaggedProp {
var inputType: String = ""
var outputType: String = ""
var canBranch: Boolean = true
var branching: Int = 0 // 0: can't; 1: tee-only, 2: cross-only, 3: tee and cross
/**
* Mainly intended to be used by third-party modules