Esempio n. 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();
            }
            // ReSharper disable RedundantIfElseBlock
            else
            // ReSharper restore RedundantIfElseBlock
            {
                throw new NotImplementedException();
            }
        }
Esempio n. 2
0
        public void Serialize(ISaveStream stream)
        {
            if (stream.Mode == SerializeMode.Reading)
            {
                stream.SerializeValue("GUID", ref this.Guid);

                uint inputNamesCount = 0;
                stream.SerializeValue("inputNamesCount", ref inputNamesCount);
                this.InputNames = new List <string>();
                for (uint i = 0; i < inputNamesCount; i++)
                {
                    string inputName = null;
                    stream.SerializeValue("inputName", ref inputName);
                    this.InputNames.Add(inputName);
                }

                stream.SerializeValue("activationState", ref this.ActivationState);

                // it appears there is data loaded here
                // depending on the actual quest data :(
                throw new NotImplementedException();
            }
            // ReSharper disable RedundantIfElseBlock
            else
            // ReSharper restore RedundantIfElseBlock
            {
                throw new NotImplementedException();
            }
        }
Esempio n. 3
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();
            }
        }
        public void Serialize(ISaveStream stream)
        {
            if (stream.Mode == SerializeMode.Reading)
            {
                uint tagsCount = 0;
                stream.SerializeValue("tagsCount", ref tagsCount);

                for (uint i = 0; i < tagsCount; i++)
                {
                    string tag = null;
                    stream.SerializeValue("tag", ref tag);

                    uint dialogsCount = 0;
                    stream.SerializeValue("dialogsCount", ref dialogsCount);

                    for (uint j = 0; j < dialogsCount; j++)
                    {
                        Guid guid = Guid.Empty;
                        stream.SerializeValue("guid", ref guid);
                    }
                }
            }
            else
            {
                throw new NotImplementedException();
            }
        }
Esempio n. 5
0
        public void Serialize(ISaveStream stream)
        {
            if (stream.Mode == SerializeMode.Reading)
            {
                stream.SerializeValue("GUID", ref this._GUID);

                uint inputNamesCount = 0;
                stream.SerializeValue("inputNamesCount", ref inputNamesCount);
                this._InputNames = new List<string>();
                for (uint i = 0; i < inputNamesCount; i++)
                {
                    string inputName = null;
                    stream.SerializeValue("inputName", ref inputName);
                    this._InputNames.Add(inputName);
                }

                stream.SerializeValue("activationState", ref this._ActivationState);

                // it appears there is data loaded here
                // depending on the actual quest data :(
                throw new NotImplementedException();
            }
            else
            {
                throw new NotImplementedException();
            }
        }
        public void Serialize(ISaveStream stream)
        {
            if (stream.Mode == SerializeMode.Reading)
            {
                uint tagsCount = 0;
                stream.SerializeValue("tagsCount", ref tagsCount);

                for (uint i = 0; i < tagsCount; i++)
                {
                    string tag = null;
                    stream.SerializeValue("tag", ref tag);

                    uint dialogsCount = 0;
                    stream.SerializeValue("dialogsCount", ref dialogsCount);

                    for (uint j = 0; j < dialogsCount; j++)
                    {
                        Guid guid = Guid.Empty;
                        stream.SerializeValue("guid", ref guid);
                    }
                }
            }
            else
            {
                throw new NotImplementedException();
            }
        }
Esempio n. 7
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();
            }
        }
Esempio n. 8
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();
            }
        }
Esempio n. 9
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();
            }
        }
Esempio n. 10
0
 public void Serialize(ISaveStream stream)
 {
     stream.SerializeValue("night_time", ref this._NightTime);
 }
Esempio n. 11
0
 public void Serialize(ISaveStream stream)
 {
     stream.SerializeValue("night_time", ref this._NightTime);
 }
Esempio n. 12
0
 public void Serialize(ISaveStream stream)
 {
     stream.SerializeObject("time", "GameTime", ref this._Time);
     stream.SerializeValue("isPaused", ref this._IsPaused);
     stream.SerializeValue("realTime", ref this._RealTime);
 }
Esempio n. 13
0
 public void Serialize(ISaveStream stream)
 {
     stream.SerializeValue("magic_number", ref this._MagicNumber);
     stream.SerializeValue("special_key", ref this._SpecialKey);
     stream.SerializeValue("description", ref this._Description);
 }
Esempio n. 14
0
 public void Serialize(ISaveStream stream)
 {
     stream.SerializeValue("tagIndex", ref this._TagIndex);
 }
Esempio n. 15
0
 public void Serialize(ISaveStream stream)
 {
     stream.SerializeValue("magic_number", ref this._MagicNumber);
     stream.SerializeValue("special_key", ref this._SpecialKey);
     stream.SerializeValue("description", ref this._Description);
 }
Esempio n. 16
0
 public void Serialize(ISaveStream stream)
 {
     stream.SerializeValue("fileName", ref this._FileName);
     stream.SerializeBlock("questThread", ref this._Data);
     throw new NotImplementedException();
 }
Esempio n. 17
0
 public void Serialize(ISaveStream stream)
 {
     stream.SerializeValue("fileName", ref this._FileName);
     stream.SerializeBlock("questThread", ref this._Data);
     throw new NotImplementedException();
 }
Esempio n. 18
0
 public void Serialize(ISaveStream stream)
 {
     stream.SerializeValue("tagIndex", ref this._TagIndex);
 }
Esempio n. 19
0
 public void Serialize(ISaveStream stream)
 {
     stream.SerializeObject("time", "GameTime", ref this._Time);
     stream.SerializeValue("isPaused", ref this._IsPaused);
     stream.SerializeValue("realTime", ref this._RealTime);
 }