public void Serialize(ISaveStream stream) { if (stream.Mode == SerializeMode.Reading) { uint numBlocks = 0; stream.SerializeValue("numBlocks", ref numBlocks); this._Blocks = new List <QuestBlock>(); for (uint i = 0; i < numBlocks; i++) { QuestBlock block = null; stream.SerializeBlock("questBlock", ref block); this._Blocks.Add(block); } throw new NotImplementedException(); } else { throw new NotImplementedException(); } }
public void Serialize(ISaveStream stream) { if (stream.Mode == SerializeMode.Reading) { uint numBlocks = 0; stream.SerializeValue("numBlocks", ref numBlocks); this.Blocks = new List <QuestBlock>(); for (uint i = 0; i < numBlocks; i++) { QuestBlock block = null; stream.SerializeBlock("questBlock", ref block); this.Blocks.Add(block); } throw new NotImplementedException(); } // ReSharper disable RedundantIfElseBlock else // ReSharper restore RedundantIfElseBlock { throw new NotImplementedException(); } }