| 548 | } |
| 549 | |
| 550 | void ArcadeTemplate::SensorUpdate(int ig, int index, ArcadeSensorInfo& sInfo) |
| 551 | { |
| 552 | if (ig < 0) |
| 553 | { |
| 554 | if (index < 0) |
| 555 | { |
| 556 | sensors.Add(sInfo); |
| 557 | } |
| 558 | else |
| 559 | { |
| 560 | sensors[index] = sInfo; |
| 561 | } |
| 562 | } |
| 563 | else |
| 564 | { |
| 565 | ArcadeGroupInfo& gInfo = groups[ig]; |
| 566 | if (index < 0) |
| 567 | { |
| 568 | index = gInfo.sensors.Add(sInfo); |
| 569 | } |
| 570 | else |
| 571 | { |
| 572 | gInfo.sensors[index] = sInfo; |
| 573 | } |
| 574 | } |
| 575 | } |
| 576 | |
| 577 | void ArcadeTemplate::SensorDelete(int ig, int index) |
| 578 | { |