mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-15 14:05:06 -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: "???"
22 lines
355 B
C++
22 lines
355 B
C++
#include "MtxFactory.h"
|
|
|
|
namespace Ship
|
|
{
|
|
Matrix* MtxFactory::ReadMtx(BinaryReader* reader) {
|
|
Matrix* mtx = new Matrix();
|
|
uint32_t version = reader->ReadUInt32();
|
|
switch (version)
|
|
{
|
|
case 0:
|
|
{
|
|
MatrixV0 Mtx = MatrixV0();
|
|
Mtx.ParseFileBinary(reader, mtx);
|
|
}
|
|
break;
|
|
default:
|
|
//VERSION NOT SUPPORTED
|
|
break;
|
|
}
|
|
return mtx;
|
|
}
|
|
} |