Shipwright/libultraship/libultraship/Factories/PathFactory.cpp
M4xw d24c8453db git subrepo clone https://github.com/HarbourMasters/libultraship.git
subrepo:
  subdir:   "libultraship"
  merged:   "a484cda98"
upstream:
  origin:   "https://github.com/HarbourMasters/libultraship.git"
  branch:   "main"
  commit:   "a484cda98"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
2022-03-22 02:52:44 +01:00

25 lines
481 B
C++

#include "PathFactory.h"
namespace Ship
{
Path* PathFactory::ReadPath(BinaryReader* reader)
{
Path* path = new Path();
Version version = (Version)reader->ReadUInt32();
switch (version)
{
case Version::Deckard:
{
PathV0 Path;
Path.ParseFileBinary(reader, path);
}
break;
default:
// VERSION NOT SUPPORTED
break;
}
return path;
}
};