mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-15 05:55:07 -05:00
27 lines
581 B
C++
27 lines
581 B
C++
|
#include "PlayerAnimationFactory.h"
|
||
|
|
||
|
namespace Ship
|
||
|
{
|
||
|
PlayerAnimation* PlayerAnimationFactory::ReadPlayerAnimation(BinaryReader* reader)
|
||
|
{
|
||
|
PlayerAnimation* anim = new PlayerAnimation();
|
||
|
|
||
|
Version version = (Version)reader->ReadUInt32();
|
||
|
|
||
|
switch (version)
|
||
|
{
|
||
|
case Version::Deckard:
|
||
|
{
|
||
|
PlayerAnimationV0 Anim = PlayerAnimationV0();
|
||
|
Anim.ParseFileBinary(reader, anim);
|
||
|
}
|
||
|
break;
|
||
|
default:
|
||
|
// VERSION NOT SUPPORTED
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
return anim;
|
||
|
|
||
|
}
|
||
|
}
|