mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-22 16:18:50 -05: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: "???"
26 lines
505 B
C++
26 lines
505 B
C++
#include "SceneFactory.h"
|
|
|
|
namespace Ship
|
|
{
|
|
Scene* SceneFactory::ReadScene(BinaryReader* reader)
|
|
{
|
|
Scene* scene = new Scene();
|
|
|
|
Version version = (Version)reader->ReadUInt32();
|
|
|
|
switch (version)
|
|
{
|
|
case Version::Deckard:
|
|
{
|
|
SceneV0 Scene = SceneV0();
|
|
Scene.ParseFileBinary(reader, scene);
|
|
}
|
|
break;
|
|
default:
|
|
// VERSION NOT SUPPORTED
|
|
break;
|
|
}
|
|
|
|
return scene;
|
|
}
|
|
} |