Exemplo n.º 1
0
        public override object LoadFromArchive(BinaryReader stream)
        {
            InfoValue value = InfoValue.ReadFromStream(stream);

            Info.Register(value as InfoObject);
            return(value);
        }
Exemplo n.º 2
0
        internal InfoArray(BinaryReader reader)
            : base(reader)
        {
            int len = reader.ReadInt32();

            myVal = new InfoValue[len];

            for (int i = 0; i < len; ++i)
            {
                myVal[i] = InfoValue.ReadFromStream(reader);
            }
        }
Exemplo n.º 3
0
        internal InfoObject(BinaryReader reader)
            : base(reader)
        {
            Type = reader.ReadString();
            Name = reader.ReadString();

            int count = reader.ReadInt32();

            myDict = new Dictionary <string, InfoValue>();

            for (int i = 0; i < count; ++i)
            {
                string    key = reader.ReadString();
                InfoValue val = InfoValue.ReadFromStream(reader);
                myDict.Add(key, val);
            }
        }