示例#1
0
        public virtual void SerializeBoxMetadata(bool bSaving)
        {
            GraphWindow <EntityType> .BoxMetaDataSerializer <EntityType> TempSerializer = new GraphWindow <EntityType> .BoxMetaDataSerializer <EntityType>();

            GraphWindow <EntityType> .BoxMetaDataSerializer <EntityType> .WindowToSerialize = this;
            XMLSerializable.SerializeFromXML <GraphWindow <EntityType> .BoxMetaDataSerializer <EntityType> >(GetBoxMetadataFile(), ref TempSerializer, bSaving);
        }
示例#2
0
        public static MonsterTest LoadMonsterTest(string Filename)
        {
            MonsterTest LoadedInstance = new MonsterTest();

            XMLSerializable.SerializeFromXML <MonsterTest>(GetFullPathFromFilename(Filename), ref LoadedInstance, false);

            return(LoadedInstance);
        }
示例#3
0
        protected virtual void SerializeEntityManager(bool bSaving)
        {
            if (bSaving)
            {
                SerializeListOwnerPrefixFixup();
            }

            LinkedEntityManager <EntityType> Instance = new LinkedEntityManager <EntityType>();

            XMLSerializable.SerializeFromXML <LinkedEntityManager <EntityType> >(GetEntityListFilename(), ref Instance, bSaving);
        }
示例#4
0
        public static MonsterTestManager SwapActiveMonsterTestManager(MonsterTest NewTest)
        {
            if (Instance != null)
            {
                Instance.UnloadTests();
            }

            Instance = new MonsterTestManager();

            EntityListFilename = NewTest.GetTestStateListFilename();
            Owner = NewTest;

            XMLSerializable.SerializeFromXML <MonsterTestManager>(NewTest.GetTestStateListFilename(), ref Instance, false);

            return(Instance);
        }
示例#5
0
        protected override void SerializeEntityManager(bool bSaving)
        {
            if (bSaving)
            {
//			StringLibrary.SaveLibrary();

                SerializeListOwnerPrefixFixup();
            }

            XMLSerializable.SerializeFromXML <MonsterTestManager>(GetEntityListFilename(), ref Instance, bSaving);

            if (bSaving)
            {
#if UNITY_EDITOR
                if (Owner != null)
                {
                    Owner.EditorSaveMonsterTest();
                }
#endif // UNITY_EDITOR
            }
        }
示例#6
0
 protected virtual void SerializeEntity(string EntityFilename, ref EntityType ToSerialize, bool bSaving, XmlSerializer Serializer)
 {
     XMLSerializable.SerializeFromXML <EntityType>(GetDefaultEntityPath() + EntityFilename + ".xml", ref ToSerialize, bSaving, Serializer);
 }
示例#7
0
        public virtual void EditorSaveMonsterTest()
        {
            MonsterTest ThisInst = this;

            XMLSerializable.SerializeFromXML <MonsterTest>(GetFullPathFromFilename(GetFilename()), ref ThisInst, true);
        }