Ejemplo n.º 1
0
 public override void Deserialize(PackedStream2 stream)
 {
     hasValue = true;
     stream.Read(out x);
     stream.Read(out y);
     stream.Read(out z);
 }
Ejemplo n.º 2
0
 public override void Deserialize(PackedStream2 stream)
 {
     hasValue = true;
     if (Type.Id == null)
     {
         Type.Id = new DefinitionId();
     }
     stream.Read(out Type.Id.Id);
 }
Ejemplo n.º 3
0
 public override void Deserialize(PackedStream2 stream)
 {
     hasValue = true;
     stream.Read(out Value);
     if (Value != 0L)
     {
         return;
     }
     Value = -2305320741190498156L;
 }
Ejemplo n.º 4
0
        public static HeroType GetTypeFromJStream(PackedStream2 stream)
        {
            ulong num;

            stream.ReadVersion(out num);
            if ((long)num != 0L)
            {
                throw new InvalidDataException("incorrect header token for creating HeroValueType");
            }
            ulong id;

            stream.Read(out id);
            var heroType = new HeroType((HeroTypes)id);

            switch (heroType.Type)
            {
            case HeroTypes.Enum:
            case HeroTypes.Class:
            case HeroTypes.NodeRef:
                stream.Read(out id);
                heroType.Id = new DefinitionId(id);
                break;

            case HeroTypes.List:
                heroType.Values = GetTypeFromJStream(stream);
                stream.CheckEnd();
                break;

            case HeroTypes.LookupList:
                heroType.Indexer = GetTypeFromJStream(stream);
                stream.CheckEnd();
                heroType.Values = GetTypeFromJStream(stream);
                stream.CheckEnd();
                break;
            }
            return(heroType);
        }
Ejemplo n.º 5
0
 public override void Deserialize(PackedStream2 stream)
 {
     stream.Read(out Value);
 }
Ejemplo n.º 6
0
        public override void Deserialize(PackedStream2 stream)
        {
            hasValue = true;
            stream.Read(out _00);
            ulong num1;

            stream.Read(out num1);
            stream.Read(out _0C);
            stream.Read(out _10);
            stream.Read(out _18);
            stream.Read(out _20);
            stream.Read(out _28);
            stream.Read(out _30);
            long num2;

            stream.Read(out num2);
            stream.Read(out _38);
            if (num2 == 3735928559L)
            {
                stream.Read(out _40);
                stream.Read(out _48);
            }
            _08 = (uint)num1;
        }