mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-21 01:34:59 +01:00
docs: the odometer store is keyed by the vehicle's name in the scenario
This commit is contained in:
@@ -47,7 +47,11 @@ struct reading {
|
|||||||
bool moved() const;
|
bool moved() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
// the saved odometer states of the vehicles, km by vehicle name
|
// the saved odometer states of the vehicles, km by vehicle name. the name is the one the scenario gives the vehicle
|
||||||
|
// (the name of its node, TDynamicObject::name(), e.g. EU07-424), the only identity a vehicle has between the sessions:
|
||||||
|
// the vehicles of the same name in any scenarios share one state, whatever their type, and a vehicle the scenario
|
||||||
|
// names otherwise starts over, from the legacy or a made up state. the sceneries name the real vehicles by their
|
||||||
|
// numbers, so it's the same vehicle as a rule
|
||||||
class store {
|
class store {
|
||||||
public:
|
public:
|
||||||
// reads the states written by write(). lines "<km> <vehicle name>", "~<km> <vehicle name>" for a state counted
|
// reads the states written by write(). lines "<km> <vehicle name>", "~<km> <vehicle name>" for a state counted
|
||||||
|
|||||||
Reference in New Issue
Block a user