FileId FileId::fromPath(String path) { FileId fileId = FileId(hash(path)); #ifdef DENG_DEBUG fileId.setPath(path); #endif return fileId; }
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); }
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); }
FileId::FileId(FileId const& other) : LogEntry::Arg::Base(), md5_(other.md5()) #ifdef DENG_DEBUG , path_(other.path()) #endif {}