d7d2e84fee
Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
38 lines
1.1 KiB
C++
38 lines
1.1 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
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AzCore/Memory/Memory.h>
|
|
#include <AzCore/Serialization/Json/BaseJsonSerializer.h>
|
|
#include <AzCore/Serialization/SerializeContext.h>
|
|
|
|
namespace AZ
|
|
{
|
|
class BehaviorContextObjectSerializer
|
|
: public BaseJsonSerializer
|
|
{
|
|
public:
|
|
AZ_RTTI(BehaviorContextObjectSerializer, "{88469C4C-923F-4508-A45C-33DDBB91074E}", BaseJsonSerializer);
|
|
AZ_CLASS_ALLOCATOR_DECL;
|
|
|
|
private:
|
|
JsonSerializationResult::Result Load
|
|
( void* outputValue
|
|
, const Uuid& outputValueTypeId
|
|
, const rapidjson::Value& inputValue
|
|
, JsonDeserializerContext& context) override;
|
|
|
|
JsonSerializationResult::Result Store
|
|
( rapidjson::Value& outputValue
|
|
, const void* inputValue
|
|
, const void* defaultValue
|
|
, const Uuid& valueTypeId, JsonSerializerContext& context) override;
|
|
};
|
|
}
|