Files
o3de/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Mesh/EditorMeshStatsSerializer.cpp
T
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

51 lines
1.7 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzCore/Serialization/Json/JsonSerializationResult.h>
#include <Mesh/EditorMeshStatsSerializer.h>
namespace AZ
{
namespace Render
{
AZ_CLASS_ALLOCATOR_IMPL(JsonEditorMeshStatsSerializer, AZ::SystemAllocator, 0);
JsonSerializationResult::Result JsonEditorMeshStatsSerializer::Load(
[[maybe_unused]] void* outputValue,
[[maybe_unused]] const Uuid& outputValueTypeId,
[[maybe_unused]] const rapidjson::Value& inputValue,
JsonDeserializerContext& context)
{
namespace JSR = JsonSerializationResult;
JSR::ResultCode result(JSR::Tasks::ReadField);
return context.Report(
result,
"Successfully loaded EditorMeshStats information.");
}
JsonSerializationResult::Result JsonEditorMeshStatsSerializer::Store(
[[maybe_unused]] rapidjson::Value& outputValue,
[[maybe_unused]] const void* inputValue,
[[maybe_unused]] const void* defaultValue,
[[maybe_unused]] const Uuid& valueTypeId,
JsonSerializerContext& context)
{
namespace JSR = JsonSerializationResult;
JSR::ResultCode result(JSR::Tasks::WriteValue);
return context.Report(
result,
"Successfully stored EditorMeshStats information.");
}
} // namespace Render
} // namespace AZ