/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ // Original file Copyright Crytek GMBH or its affiliates, used under license. #ifndef CRYINCLUDE_CRYCOMMON_SERIALIZATION_DECORATORS_RESOURCES_H #define CRYINCLUDE_CRYCOMMON_SERIALIZATION_DECORATORS_RESOURCES_H #pragma once #include "ResourceSelector.h" namespace Serialization { // animation resources template ResourceSelector AnimationAlias(T& s) { return ResourceSelector(s, "AnimationAlias"); } // "name" from animation set template ResourceSelector AnimationPath(T& s) { return ResourceSelector(s, "Animation"); } inline ResourceSelectorWithId AnimationPathWithId(string& s, int id) { return ResourceSelectorWithId(s, "Animation", id); } template ResourceSelector CharacterPath(T& s) { return ResourceSelector(s, "Character"); } template ResourceSelector CharacterPhysicsPath(T& s) { return ResourceSelector(s, "CharacterPhysics"); } template ResourceSelector CharacterRigPath(T& s) { return ResourceSelector(s, "CharacterRig"); } template ResourceSelector SkeletonPath(T& s) { return ResourceSelector(s, "Skeleton"); } template ResourceSelector SkeletonParamsPath(T& s) { return ResourceSelector(s, "SkeletonParams"); } // CHRParams template ResourceSelector JointName(T& s) { return ResourceSelector(s, "Joint"); } template ResourceSelector AttachmentName(T& s) { return ResourceSelector(s, "Attachment"); } // miscelaneous resources template ResourceSelector SoundName(T& s) { return ResourceSelector(s, "Sound"); } template ResourceSelector DialogName(T& s) { return ResourceSelector(s, "Dialog"); } template ResourceSelector ForceFeedbackIdName(T& s) { return ResourceSelector(s, "ForceFeedbackId"); } template ResourceSelector ModelFilename(T& s) { return ResourceSelector(s, "Model"); } template ResourceSelector ParticleName(T& s) { return ResourceSelector(s, "Particle"); } namespace Decorators { // Decorators namespace is obsolete now, SHOULD NOT BE USED. template ResourceSelector AnimationName(T& s) { return ResourceSelector(s, "Animation"); } using Serialization::SoundName; using Serialization::AttachmentName; template ResourceSelector ObjectFilename(T& s) { return ResourceSelector(s, "Model"); } using Serialization::JointName; using Serialization::ForceFeedbackIdName; } } #endif // CRYINCLUDE_CRYCOMMON_SERIALIZATION_DECORATORS_RESOURCES_H