-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
132 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include "Scene/Skeleton.h" | ||
#include "SkeletonImpl.h" | ||
|
||
namespace cd | ||
{ | ||
|
||
PIMPL_SCENE_CLASS(Skeleton); | ||
PIMPL_SIMPLE_TYPE_APIS(Skeleton, ID); | ||
PIMPL_SIMPLE_TYPE_APIS(Skeleton, RootBoneID); | ||
PIMPL_STRING_TYPE_APIS(Skeleton, Name); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "SkeletonImpl.h" | ||
|
||
namespace cd | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#pragma once | ||
|
||
#include "Base/Template.h" | ||
#include "IO/InputArchive.hpp" | ||
#include "IO/OutputArchive.hpp" | ||
#include "Scene/Types.h" | ||
|
||
namespace cd | ||
{ | ||
|
||
class SkeletonImpl final | ||
{ | ||
public: | ||
DECLARE_SCENE_IMPL_CLASS(Skeleton); | ||
|
||
IMPLEMENT_SIMPLE_TYPE_APIS(Skeleton, ID); | ||
IMPLEMENT_SIMPLE_TYPE_APIS(Skeleton, RootBoneID); | ||
IMPLEMENT_STRING_TYPE_APIS(Skeleton, Name); | ||
|
||
template<bool SwapBytesOrder> | ||
SkeletonImpl& operator<<(TInputArchive<SwapBytesOrder>& inputArchive) | ||
{ | ||
inputArchive >> GetID().Data() >> GetRootBoneID().Data() >> GetName(); | ||
return *this; | ||
} | ||
|
||
template<bool SwapBytesOrder> | ||
const SkeletonImpl& operator>>(TOutputArchive<SwapBytesOrder>& outputArchive) const | ||
{ | ||
outputArchive << GetID().Data() << GetRootBoneID().Data() << GetName(); | ||
return *this; | ||
} | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,8 @@ enum class ObjectType | |
Animation, | ||
Track, | ||
Morph, | ||
ParticleEmitter | ||
ParticleEmitter, | ||
Skeleton | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
|
||
#include "Base/Export.h" | ||
#include "IO/InputArchive.hpp" | ||
#include "IO/OutputArchive.hpp" | ||
#include "Scene/Types.h" | ||
|
||
namespace cd | ||
{ | ||
|
||
class SkeletonImpl; | ||
|
||
class CORE_API Skeleton final | ||
{ | ||
public: | ||
DECLARE_SCENE_CLASS(Skeleton); | ||
EXPORT_SIMPLE_TYPE_APIS(Skeleton, ID); | ||
EXPORT_SIMPLE_TYPE_APIS(Skeleton, RootBoneID); | ||
EXPORT_STRING_TYPE_APIS(Skeleton, Name); | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters