Commit 186392e
Refactor grid or map methods (space-wizards#5124)
* Rename TryGetMapOrGridCoordinates to make it clearer it gets grid first
* Add terminating or deleted checks to TryGetGridOrMapCoordinates
* Add comment to check if TerminatingOrDeleted check is necessary
* Reorganize AttachToGridOrMap to match TryGetGridOrMapCoordinates
* Move validation to method
* Replace internals with TryGetGridOrMapCoordinates
* Explicitly set coordinates type
* Format
* Change name back for now
* Don't duplicate `TerminatingOrDeleted()` check
* Don't call `GetInvWorldMatrix` for the map
* Don't check `TerminatingOrDeleted(uid)` in `TryGetMapOrGridCoordinates()`
* Fix parenting to terminating grid
* Fix matrix error
---------
Co-authored-by: ElectroJr <leonsfriedrich@gmail.com>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>1 parent ebe4538 commit 186392e
2 files changed
Lines changed: 37 additions & 26 deletions
File tree
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
Lines changed: 36 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1413 | 1413 | | |
1414 | 1414 | | |
1415 | 1415 | | |
| 1416 | + | |
| 1417 | + | |
1416 | 1418 | | |
1417 | 1419 | | |
1418 | 1420 | | |
1419 | | - | |
| 1421 | + | |
1420 | 1422 | | |
1421 | 1423 | | |
1422 | | - | |
| 1424 | + | |
1423 | 1425 | | |
1424 | 1426 | | |
1425 | | - | |
1426 | | - | |
1427 | | - | |
1428 | | - | |
1429 | | - | |
1430 | | - | |
1431 | | - | |
1432 | | - | |
1433 | | - | |
1434 | | - | |
1435 | | - | |
1436 | | - | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
1437 | 1431 | | |
1438 | 1432 | | |
1439 | 1433 | | |
| |||
1442 | 1436 | | |
1443 | 1437 | | |
1444 | 1438 | | |
1445 | | - | |
| 1439 | + | |
1446 | 1440 | | |
1447 | 1441 | | |
1448 | | - | |
1449 | | - | |
| 1442 | + | |
1450 | 1443 | | |
1451 | 1444 | | |
1452 | | - | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
1453 | 1459 | | |
1454 | 1460 | | |
1455 | 1461 | | |
1456 | | - | |
| 1462 | + | |
1457 | 1463 | | |
1458 | 1464 | | |
1459 | 1465 | | |
1460 | 1466 | | |
1461 | 1467 | | |
1462 | | - | |
| 1468 | + | |
1463 | 1469 | | |
1464 | 1470 | | |
1465 | | - | |
1466 | 1471 | | |
1467 | | - | |
1468 | | - | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
1469 | 1482 | | |
1470 | | - | |
1471 | 1483 | | |
1472 | 1484 | | |
1473 | 1485 | | |
| |||
0 commit comments