示例#1
0
        public void Serialize(ISaveStream stream)
        {
            // supposedly only ever has two blocks but oh well...
            stream.SerializeBlocks(
                "questExternalScenePlayers",
                "CQuestExternalScenePlayer",
                ref this._QuestExternalScenePlayers);

            if (stream.Mode == SerializeMode.Reading)
            {
                uint numQuests = 0;
                stream.SerializeValue("numQuests", ref numQuests);

                this._Quests = new List<Quest>();
                for (uint i = 0; i < numQuests; i++)
                {
                    Quest quest = null;
                    stream.SerializeBlock("quest", ref quest);
                    this._Quests.Add(quest);
                }

                throw new NotImplementedException();
            }
            else
            {
                throw new NotImplementedException();
            }
        }
示例#2
0
        public void Serialize(ISaveStream stream)
        {
            // supposedly only ever has two blocks but oh well...
            stream.SerializeBlocks(
                "questExternalScenePlayers",
                "CQuestExternalScenePlayer",
                ref this._QuestExternalScenePlayers);

            if (stream.Mode == SerializeMode.Reading)
            {
                uint numQuests = 0;
                stream.SerializeValue("numQuests", ref numQuests);

                this._Quests = new List <Quest>();
                for (uint i = 0; i < numQuests; i++)
                {
                    Quest quest = null;
                    stream.SerializeBlock("quest", ref quest);
                    this._Quests.Add(quest);
                }

                throw new NotImplementedException();
            }
            // ReSharper disable RedundantIfElseBlock
            else
            // ReSharper restore RedundantIfElseBlock
            {
                throw new NotImplementedException();
            }
        }
示例#3
0
        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();
            }
        }
示例#4
0
        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();
            }
        }
示例#5
0
        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();
            }
        }
示例#6
0
文件: Quest.cs 项目: yole/Gibbed.RED
 public void Serialize(ISaveStream stream)
 {
     stream.SerializeValue("fileName", ref this._FileName);
     stream.SerializeBlock("questThread", ref this._Data);
     throw new NotImplementedException();
 }
示例#7
0
 public void Serialize(ISaveStream stream)
 {
     stream.SerializeValue("fileName", ref this._FileName);
     stream.SerializeBlock("questThread", ref this._Data);
     throw new NotImplementedException();
 }