Open Tarig0 opened 9 years ago
Usage will be.
Craft Stack of Pylons
Place Pylon
if (stack.prevpos != null) {
PylonEntity parentTile = GetTileEntity(stack.prevpos, PylonEntity)
if (parentTile != null && parentTile.ValidChildPos(CurPos)) {
parentTile.setChild(curPos)
CurrentTile.setParent(stack.prevPos)
}
}
if (stack.qty > 0) {
stack.precpos = CurPos
}
new stack will be bound to a pylon by right clicking that stack on a pylon that does not have a child
Tether rendering will be handled by parent pylon
Added rule can not force a binding between a pylon with children to a new parent,
possible to allow for cascade unbind, or cascade re-bind, but won't be implemented at first
Shift right click with stack will create a sibling of the current prevpos
Will be creating the following.