Пример #1
0
        //! serializes the entity to/from a PropertyStream
        public override void Serialize(PropertyStream stream)
        {
            base.Serialize(stream);

            m_ChildEntityPath = stream.Serialize<string>("ChildEntityPath");

            if (m_ChildEntityPath.Length > 0)
            {
                m_ChildEntity = new Entity();
                m_ChildEntity.LoadFromXML(m_ChildEntityPath, null);
                m_ChildEntity.Init();
                AddChild(m_ChildEntity);
            }
        }