SlimeVoid / DynamicTransport

7 stars 7 forks source link

Create Transport Line Backbone #41

Open Tarig0 opened 9 years ago

Tarig0 commented 9 years ago

Will be creating the following.

  1. Pylon block
  2. Pylon ItemStack (store last pylon pos)
  3. Pylon Render (Something Fancy) (optional)
  4. Render for Tethers (ropes at first)
  5. Pylon TileEntity
Tarig0 commented 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
}
Tarig0 commented 9 years ago

new stack will be bound to a pylon by right clicking that stack on a pylon that does not have a child

Tarig0 commented 9 years ago

Tether rendering will be handled by parent pylon

Tarig0 commented 9 years ago

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

Tarig0 commented 8 years ago

Shift right click with stack will create a sibling of the current prevpos