public void Rotate() { if (!this.canRotate) { return; } switch (Mount) { case eMount.TOP: Mount = eMount.NORTH; break; case eMount.NORTH: Mount = eMount.SOUTH; break; case eMount.SOUTH: Mount = eMount.EAST; break; case eMount.EAST: Mount = eMount.WEST; break; case eMount.WEST: if (Type == eBlock.BUTTON || Type == eBlock.DOORB || Type == eBlock.REPEATER) { Mount = eMount.NORTH; } else { Mount = eMount.TOP; } break; } }
public Blocks(eBlock Type) : this() { this.Type = Type; if (canStand) { Mount = eMount.TOP; } else { Mount = eMount.NORTH; } }
public Blocks(eBlock Type) : this() { this.Type = Type; if (canStand) Mount = eMount.TOP; else Mount = eMount.NORTH; }
public void Rotate() { if (!this.canRotate) return; switch (Mount) { case eMount.TOP: Mount = eMount.NORTH; break; case eMount.NORTH: Mount = eMount.SOUTH; break; case eMount.SOUTH: Mount = eMount.EAST; break; case eMount.EAST: Mount = eMount.WEST; break; case eMount.WEST: if (Type == eBlock.BUTTON || Type == eBlock.DOORB || Type == eBlock.REPEATER) Mount = eMount.NORTH; else Mount = eMount.TOP; break; } }