mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-24 14:51:46 -05:00

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: "???"
26 lines
493 B
C++
26 lines
493 B
C++
#include "TextFactory.h"
|
|
|
|
namespace Ship
|
|
{
|
|
Text* TextFactory::ReadText(BinaryReader* reader)
|
|
{
|
|
Text* txt = new Text();
|
|
|
|
Version version = (Version)reader->ReadUInt32();
|
|
|
|
switch (version)
|
|
{
|
|
case Version::Deckard:
|
|
{
|
|
TextV0 txtFac = TextV0();
|
|
txtFac.ParseFileBinary(reader, txt);
|
|
}
|
|
break;
|
|
default:
|
|
// VERSION NOT SUPPORTED
|
|
break;
|
|
}
|
|
|
|
return txt;
|
|
}
|
|
} |