Pipe prototypes (#2124)

* Pipe prototypes

* PipeDirection setter

* IRotatableNode

* NodeContainer passes rotation events to its nodes

* Removes duplicate pipe prototypes that are rotations of each other

* PipeDirectionHelpers

* PipeNode rotation

* icon removal

* Pipe icons

* Icon fix

* Fixes pipe sprites and icons

Co-authored-by: py01 <pyronetics01@gmail.com>
This commit is contained in:
py01
2020-10-08 09:53:56 -06:00
committed by GitHub
parent 621a39016f
commit 970f3bc82f
47 changed files with 278 additions and 296 deletions

View File

@@ -8,189 +8,67 @@
"copyright":"Taken from https://github.com/tgstation/tgstation at commit 57cd1d59ca019dd0e7811ac451f295f818e573da",
"states":[
{
"name":"pipeEast2",
"directions":1,
"delays":[ [ 1.0 ] ]
"name":"pipeTJunction2",
"directions":4,
"delays":[
[
1.0
],
[
1.0
],
[
1.0
],
[
1.0
]
]
},
{
"name":"pipeNorth2",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeSouth2",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeWest2",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeFourway1",
"directions":1,
"delays":[ [ 1.0 ] ]
"name":"pipeBend2",
"directions":4,
"delays":[
[
1.0
],
[
1.0
],
[
1.0
],
[
1.0
]
]
},
{
"name":"pipeFourway2",
"directions":1,
"delays":[ [ 1.0 ] ]
"delays":[
[
1.0
]
]
},
{
"name":"pipeFourway3",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeLateral1",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeLateral2",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeLateral3",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeLongitudinal1",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeLongitudinal2",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeLongitudinal3",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeNEBend1",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeNEBend2",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeNEBend3",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeNWBend1",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeNWBend2",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeNWBend3",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeSEBend1",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeSEBend2",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeSEBend3",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeSWBend1",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeSWBend2",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeSWBend3",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeTEast1",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeTEast2",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeTEast3",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeTNorth1",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeTNorth2",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeTNorth3",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeTSouth1",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeTSouth2",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeTSouth3",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeTWest1",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeTWest2",
"directions":1,
"delays":[ [ 1.0 ] ]
},
{
"name":"pipeTWest3",
"directions":1,
"delays":[ [ 1.0 ] ]
"name":"pipeStraight2",
"directions":4,
"delays":[
[
1.0
],
[
1.0
],
[
1.0
],
[
1.0
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 854 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 433 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 474 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 426 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 236 B