Example #1
0
        //読み込み
        public void OnRead(System.IO.BinaryReader reader)
        {
            //バージョンチェック
            int version = reader.ReadInt32();

            if (version == Version)
            {
                int count = reader.ReadInt32();
                for (int i = 0; i < count; ++i)
                {
                    AdvBacklog item = new AdvBacklog();
                    item.Read(reader);
                    if (!item.IsEmpty)
                    {
                        AddLog(item);
                    }
                }
            }
            else
            {
                Debug.LogError(LanguageErrorMsg.LocalizeTextFormat(ErrorMsg.UnknownVersion, version));
            }
        }
        public void OnRead(BinaryReader reader)
        {
            int num = reader.ReadInt32();

            if (num == 0)
            {
                int num2 = reader.ReadInt32();
                for (int i = 0; i < num2; i++)
                {
                    AdvBacklog log = new AdvBacklog();
                    log.Read(reader);
                    if (!log.IsEmpty)
                    {
                        this.AddLog(log);
                    }
                }
            }
            else
            {
                object[] args = new object[] { num };
                Debug.LogError(LanguageErrorMsg.LocalizeTextFormat(ErrorMsg.UnknownVersion, args));
            }
        }