public void Save <T> (T pObject, string pPath) where T : SerializedRoot, new () { StringWriter sw = new StringWriter(); XmlSerializer s = new XmlSerializer(typeof(T)); s.Serialize(sw, pObject); mSaveProcess = Storage.Save(pPath, sw.ToString()); }
public System.Collections.IEnumerator Exists(ExistCheckParams pParams) { mExistsProcess = Storage.Exists(pParams.mPath); while (!mExistsProcess.IsDone) { yield return(0); } pParams.mResult = mExistsProcess.FileExists; }
public void Load <T> (string pPath) where T : SerializedRoot, new () { mLoadedData = null; mLoadProcess = Storage.Load(pPath); }