mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-08-13 17:03:47 -04:00
d24c8453db
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: "???"
25 lines
481 B
C++
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;
|
|
}
|
|
}; |