!B (Sandbox) (CE-21795) Importing models with multisubmaterials via fbx switches...
[CRYENGINE.git] / Code / CryEngine / CrySchematyc2 / Serialization / SerializationContext.h
blobdd8d6427cda577e51b2e789ed8c2c0fde8f3b6ea
1 // Copyright 2001-2019 Crytek GmbH / Crytek Group. All rights reserved.
3 #pragma once
5 #include <CrySchematyc2/IAny.h>
6 #include <CrySchematyc2/Serialization/ISerializationContext.h>
8 namespace Schematyc2
10 class CSerializationContext : public ISerializationContext
12 public:
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
24 protected:
26 virtual const void* GetDependency_Protected(const EnvTypeId& typeId) const override;
28 private:
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;