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); }
public static MonsterTest LoadMonsterTest(string Filename) { MonsterTest LoadedInstance = new MonsterTest(); XMLSerializable.SerializeFromXML <MonsterTest>(GetFullPathFromFilename(Filename), ref LoadedInstance, false); return(LoadedInstance); }
protected virtual void SerializeEntityManager(bool bSaving) { if (bSaving) { SerializeListOwnerPrefixFixup(); } LinkedEntityManager <EntityType> Instance = new LinkedEntityManager <EntityType>(); XMLSerializable.SerializeFromXML <LinkedEntityManager <EntityType> >(GetEntityListFilename(), ref Instance, bSaving); }
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); }
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 } }
protected virtual void SerializeEntity(string EntityFilename, ref EntityType ToSerialize, bool bSaving, XmlSerializer Serializer) { XMLSerializable.SerializeFromXML <EntityType>(GetDefaultEntityPath() + EntityFilename + ".xml", ref ToSerialize, bSaving, Serializer); }
public virtual void EditorSaveMonsterTest() { MonsterTest ThisInst = this; XMLSerializable.SerializeFromXML <MonsterTest>(GetFullPathFromFilename(GetFilename()), ref ThisInst, true); }