Esempio n. 1
0
SpineSkeletonModel* SkeletonModelFactory::CreateSpineFromJson(const FileIdRef& name, bool isPreCalculated /*= false*/, ResourceShareType shareType /*= ResourceShareType::Share*/)
{
	FileId skeletonfileId = name;
	FileId atlasFileId = name;
	skeletonfileId.Name += ".json";
	atlasFileId.Name += ".atlas";

	return CreateSpineFromJson(skeletonfileId.ToRef(), atlasFileId.ToRef(), isPreCalculated, shareType);
}
Esempio n. 2
0
SpineSkeleton* NodeFactory::CreateSkeletonDefault(const FileIdRef& name, bool isPreCalculated /*= false*/)
{
	FileId skeletonfileId = name;
	FileId atlasFileId = name;
	skeletonfileId.Name += ".json";
	atlasFileId.Name += ".atlas";

	return CreateSkeleton(skeletonfileId.ToRef(), atlasFileId.ToRef(), isPreCalculated);

}