1 // Copyright 2001-2019 Crytek GmbH / Crytek Group. All rights reserved.
5 #include <CrySchematyc2/IAny.h>
6 #include <CrySchematyc2/Serialization/ISerializationContext.h>
10 class CSerializationContext
: public ISerializationContext
14 CSerializationContext(const SSerializationContextParams
& params
);
16 // ISerializationContext
17 virtual IScriptFile
* GetScriptFile() const override
;
18 virtual ESerializationPass
GetPass() const override
;
19 virtual void SetValidatorLink(const SValidatorLink
& validatorLink
) override
;
20 virtual const SValidatorLink
& GetValidatorLink() const override
;
21 virtual void AddDependency(const void* pDependency
, const EnvTypeId
& typeId
) override
;
22 // ~ISerializationContext
26 virtual const void* GetDependency_Protected(const EnvTypeId
& typeId
) const override
;
30 typedef std::unordered_map
<EnvTypeId
, const void*> DependencyMap
;
32 Serialization::SContext m_context
;
33 IScriptFile
* m_pScriptFile
;
34 ESerializationPass m_pass
;
35 SValidatorLink m_validatorLink
;
36 DependencyMap m_dependencies
;