v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
29
source/game/StarVehicleDatabase.hpp
Normal file
29
source/game/StarVehicleDatabase.hpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#ifndef STAR_VEHICLE_DATABASE_HPP
|
||||
#define STAR_VEHICLE_DATABASE_HPP
|
||||
|
||||
#include "StarJson.hpp"
|
||||
#include "StarVehicle.hpp"
|
||||
|
||||
namespace Star {
|
||||
|
||||
STAR_EXCEPTION(VehicleDatabaseException, StarException);
|
||||
|
||||
class VehicleDatabase {
|
||||
public:
|
||||
VehicleDatabase();
|
||||
|
||||
VehiclePtr create(String const& vehicleName, Json const& extraConfig = Json()) const;
|
||||
|
||||
ByteArray netStore(VehiclePtr const& vehicle) const;
|
||||
VehiclePtr netLoad(ByteArray const& netStore) const;
|
||||
|
||||
Json diskStore(VehiclePtr const& vehicle) const;
|
||||
VehiclePtr diskLoad(Json const& diskStore) const;
|
||||
|
||||
private:
|
||||
StringMap<pair<String, Json>> m_vehicles;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue