Пример #1
0
        public override void Serialize(PackedStream_2 stream)
        {
            int count = 0;

            if (this.Data != null)
            {
                count = this.Data.Count;
            }
            SerializeLookupList list = new SerializeLookupList(stream, 1, base.Type, count);

            if (this.Data != null)
            {
                foreach (KeyValuePair <HeroVarId, HeroAnyValue> pair in this.Data)
                {
                    list.SetKey(pair.Key.Value, pair.Key.VarId);
                    pair.Value.Serialize(stream);
                }
            }
        }
Пример #2
0
        public override void Serialize(PackedStream2 stream)
        {
            int Count = 0;

            if (Data != null)
            {
                Count = Data.Count;
            }
            var serializeLookupList = new SerializeLookupList(stream, 1, Type, Count);

            if (Data == null)
            {
                return;
            }
            foreach (var keyValuePair in Data)
            {
                serializeLookupList.SetKey(keyValuePair.Key.Value, keyValuePair.Key.VarId);
                keyValuePair.Value.Serialize(stream);
            }
        }
Пример #3
0
        public override void Serialize(PackedStream_2 stream)
        {
            int Count = 0;

            if (this.Data != null)
            {
                Count = this.Data.Count;
            }
            SerializeLookupList serializeLookupList = new SerializeLookupList(stream, 1, this.Type, Count);

            if (this.Data == null)
            {
                return;
            }
            foreach (KeyValuePair <HeroVarId, HeroAnyValue> keyValuePair in this.Data)
            {
                serializeLookupList.SetKey(keyValuePair.Key.Value, keyValuePair.Key.VarId);
                keyValuePair.Value.Serialize(stream);
            }
        }