* Adds a packet to the metadata. * @param cp Packet to be added. * @param action MoveToAction of the packet. */
| 373 | * @param action MoveToAction of the packet. |
| 374 | */ |
| 375 | void VehicleCargoList::AddToMeta(const CargoPacket *cp, MoveToAction action) |
| 376 | { |
| 377 | this->AssertCountConsistency(); |
| 378 | this->AddToCache(cp); |
| 379 | this->action_counts[action] += cp->count; |
| 380 | this->AssertCountConsistency(); |
| 381 | } |
| 382 | |
| 383 | /** |
| 384 | * Ages the all cargo in this list. |
no test coverage detected