Exemplo n.º 1
0
FileId FileId::fromPath(String path)
{
    FileId fileId = FileId(hash(path));
#ifdef DENG_DEBUG
    fileId.setPath(path);
#endif
    return fileId;
}
Exemplo n.º 2
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);
}
Exemplo n.º 3
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);

}
Exemplo n.º 4
0
FileId::FileId(FileId const& other) : LogEntry::Arg::Base(), md5_(other.md5())
#ifdef DENG_DEBUG
  , path_(other.path())
#endif
{}