public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.R);
     stream.Serialize(ref this.G);
     stream.Serialize(ref this.B);
     stream.Serialize(ref this.A);
 }
Beispiel #2
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._R);
     stream.Serialize(ref this._G);
     stream.Serialize(ref this._B);
     stream.Serialize(ref this._A);
 }
Beispiel #3
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._QuestCounter);
     stream.Serialize(ref this._QuestUpdated);
     stream.Serialize(ref this._ActiveGoal, s => s.Version < 57, () => 0);
     stream.Serialize(ref this._History);
 }
Beispiel #4
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.SecondsSinceMidnight);
     stream.Serialize(ref this.Day);
     stream.Serialize(ref this.Month);
     stream.Serialize(ref this.Year);
 }
Beispiel #5
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.PowerName);
     stream.Serialize(ref this.CurrentRank);
     stream.Serialize(ref this.PowerClassName);
     stream.Serialize(ref this.WheelDisplayIndex);
 }
Beispiel #6
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._Id);
     stream.Serialize(ref this._Visited);
     stream.Serialize(ref this._Probes);
     stream.Serialize(ref this._ShowAsScanned, s => s.Version < 51, () => false);
 }
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._LevelName);
     stream.Serialize(ref this._Credits);
     stream.Serialize(ref this._XP);
     stream.Serialize(ref this._Items);
 }
Beispiel #8
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.SecondsSinceMidnight);
     stream.Serialize(ref this.Day);
     stream.Serialize(ref this.Month);
     stream.Serialize(ref this.Year);
 }
Beispiel #9
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.R);
     stream.Serialize(ref this.G);
     stream.Serialize(ref this.B);
     stream.Serialize(ref this.A);
 }
Beispiel #10
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.PowerName);
     stream.Serialize(ref this.CurrentRank);
     stream.Serialize(ref this.PowerClassName);
     stream.Serialize(ref this.WheelDisplayIndex);
 }
Beispiel #11
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._MarkerOwnerPath);
     stream.Serialize(ref this._MarkerOffset);
     stream.Serialize(ref this._MarkerLabel);
     stream.Serialize(ref this._BoneToAttachTo);
     stream.SerializeEnum(ref this._MarkerIconType);
 }
Beispiel #12
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._Name);
     stream.Serialize(ref this._CurrentRank);
     stream.Serialize(ref this._EvolvedChoice0, s => s.Version < 30, () => 0);
     stream.Serialize(ref this._EvolvedChoice1, s => s.Version < 30, () => 0);
     stream.Serialize(ref this._EvolvedChoice2, s => s.Version < 31, () => 0);
     stream.Serialize(ref this._EvolvedChoice3, s => s.Version < 31, () => 0);
     stream.Serialize(ref this._EvolvedChoice4, s => s.Version < 31, () => 0);
     stream.Serialize(ref this._EvolvedChoice5, s => s.Version < 31, () => 0);
     stream.Serialize(ref this._ClassName);
     stream.Serialize(ref this._WheelDisplayIndex);
 }
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._Tag);
     stream.Serialize(ref this._Powers);
     stream.Serialize(ref this._CharacterLevel);
     stream.Serialize(ref this._TalentPoints);
     stream.Serialize(ref this._LoadoutWeapons, s => s.Version < 23, () => new Loadout());
     stream.Serialize(ref this._MappedPower, s => s.Version < 29, () => null);
     stream.Serialize(ref this._WeaponMods, s => s.Version < 45, () => new List <WeaponMod>());
     stream.Serialize(ref this._Grenades, s => s.Version < 59, () => 0);
     stream.Serialize(ref this._Weapons, s => s.Version < 59, () => new List <Weapon>());
 }
        public List <int> CodexIDs;            // +4C

        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this.BoolVariables);
            stream.Serialize(ref this.IntVariables);
            stream.Serialize(ref this.FloatVariables);
            stream.Serialize(ref this.QuestProgressCounter);
            stream.Serialize(ref this.QuestProgress);
            stream.Serialize(ref this.QuestIDs);
            stream.Serialize(ref this.CodexEntries);
            stream.Serialize(ref this.CodexIDs);
        }
Beispiel #15
0
        public List<int> CodexIDs; // +4C

        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this.BoolVariables);
            stream.Serialize(ref this.IntVariables);
            stream.Serialize(ref this.FloatVariables);
            stream.Serialize(ref this.QuestProgressCounter);
            stream.Serialize(ref this.QuestProgress);
            stream.Serialize(ref this.QuestIDs);
            stream.Serialize(ref this.CodexEntries);
            stream.Serialize(ref this.CodexIDs);
        }
Beispiel #16
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._ClassName);
     stream.Serialize(ref this._AmmoUsedCount);
     stream.Serialize(ref this._AmmoTotal);
     stream.Serialize(ref this._CurrentWeapon);
     stream.Serialize(ref this._WasLastWeapon);
     stream.Serialize(ref this._AmmoPowerName, s => s.Version < 17, () => null);
     stream.Serialize(ref this._AmmoPowerSourceTag, s => s.Version < 59, () => null);
 }
Beispiel #17
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.Unknown0);
     stream.Serialize(ref this.Unknown1);
     stream.Serialize(ref this.Unknown2);
     stream.Serialize(ref this.Unknown3);
     stream.Serialize(ref this.Unknown4);
     stream.Serialize(ref this.Unknown5);
 }
Beispiel #18
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.Unknown0);
     stream.Serialize(ref this.Unknown1);
     stream.Serialize(ref this.Unknown2);
     stream.Serialize(ref this.Unknown3);
     stream.Serialize(ref this.Unknown4);
     stream.Serialize(ref this.Unknown5);
 }
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._AssaultRifle);
     stream.Serialize(ref this._Shotgun);
     stream.Serialize(ref this._SniperRifle);
     stream.Serialize(ref this._SubmachineGun);
     stream.Serialize(ref this._Pistol);
     stream.Serialize(ref this._HeavyWeapon);
 }
Beispiel #20
0
        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this.WeaponClassName);
            stream.Serialize(ref this.AmmoUsedCount);
            stream.Serialize(ref this.TotalAmmo);
            stream.Serialize(ref this.CurrentWeapon);
            stream.Serialize(ref this.LastWeapon);

            if (stream.Version >= 17)
            {
                stream.Serialize(ref this.AmmoPowerName);
            }
        }
Beispiel #21
0
        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this.WeaponClassName);
            stream.Serialize(ref this.AmmoUsedCount);
            stream.Serialize(ref this.TotalAmmo);
            stream.Serialize(ref this.CurrentWeapon);
            stream.Serialize(ref this.LastWeapon);

            if (stream.Version >= 17)
            {
                stream.Serialize(ref this.AmmoPowerName);
            }
        }
Beispiel #22
0
        public string MappedPower; // +68

        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this.Tag);
            stream.Serialize(ref this.Powers);
            stream.Serialize(ref this.CharacterLevel);
            stream.Serialize(ref this.TalentPoints);

            if (stream.Version >= 23)
            {
                stream.Serialize(ref this.LoadoutWeapons);
            }

            if (stream.Version >= 29)
            {
                stream.Serialize(ref this.MappedPower);
            }
        }
Beispiel #23
0
        public string MappedPower; // +68

        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this.Tag);
            stream.Serialize(ref this.Powers);
            stream.Serialize(ref this.CharacterLevel);
            stream.Serialize(ref this.TalentPoints);

            if (stream.Version >= 23)
            {
                stream.Serialize(ref this.LoadoutWeapons);
            }

            if (stream.Version >= 29)
            {
                stream.Serialize(ref this.MappedPower);
            }
        }
Beispiel #24
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.ModuleID);
     stream.Serialize(ref this.Name);
 }
Beispiel #25
0
        public List <Vector2D> Probes; // +8

        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this.PlanetID);
            stream.Serialize(ref this.Visited);
            stream.Serialize(ref this.Probes);
        }
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.BoolGUID);
     stream.Serialize(ref this.Value);
 }
Beispiel #27
0
        public bool Unknown2; // could be ShouldBeVisible or ShouldBeLoaded

        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this.LevelName);
            stream.Serialize(ref this.Unknown1);
            stream.Serialize(ref this.Unknown2);
        }
Beispiel #28
0
        public List<float> FloatVariables; // +18

        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this.BoolVariables);
            stream.Serialize(ref this.IntVariables);
            stream.Serialize(ref this.FloatVariables);
        }
Beispiel #29
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._Pages);
 }
Beispiel #30
0
        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this._BoolVariables);

            if (stream.Version >= 56)
            {
                stream.Serialize(ref this._IntVariables);
                stream.Serialize(ref this._FloatVariables);
            }
            else
            {
                if (stream.Loading)
                {
                    var oldIntVariables = new List <int>();
                    stream.Serialize(ref oldIntVariables);
                    this._IntVariables = new List <IntVariablePair>();
                    for (int i = 0; i < oldIntVariables.Count; i++)
                    {
                        if (oldIntVariables[i] == 0)
                        {
                            continue;
                        }

                        this._IntVariables.Add(new IntVariablePair()
                        {
                            Index = i,
                            Value = oldIntVariables[i],
                        });
                    }

                    var oldFloatVariables = new List <float>();
                    stream.Serialize(ref oldFloatVariables);
                    this._FloatVariables = new List <FloatVariablePair>();
                    for (int i = 0; i < oldFloatVariables.Count; i++)
                    {
                        if (Equals(oldFloatVariables[i], 0.0f) == true)
                        {
                            continue;
                        }

                        this._FloatVariables.Add(new FloatVariablePair()
                        {
                            Index = i,
                            Value = oldFloatVariables[i],
                        });
                    }
                }
                else if (!stream.Loading)
                {
                    var oldIntVariables = new List <int>();
                    if (this._IntVariables != null)
                    {
                        foreach (var intVariable in this._IntVariables)
                        {
                            oldIntVariables[intVariable.Index] = intVariable.Value;
                        }
                    }
                    stream.Serialize(ref oldIntVariables);

                    var oldFloatVariables = new List <float>();
                    if (this._FloatVariables != null)
                    {
                        foreach (var floatVariable in this._FloatVariables)
                        {
                            oldFloatVariables[floatVariable.Index] = floatVariable.Value;
                        }
                    }
                    stream.Serialize(ref oldFloatVariables);
                }
                else
                {
                    throw new NotSupportedException();
                }
            }

            stream.Serialize(ref this._QuestProgressCounter);
            stream.Serialize(ref this._QuestProgress);
            stream.Serialize(ref this._QuestIDs);
            stream.Serialize(ref this._CodexEntries);
            stream.Serialize(ref this._CodexIDs);
        }
Beispiel #31
0
 protected void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.DebugName);
     stream.Serialize(ref this.SecondsPlayed);
     stream.Serialize(ref this.Disc);
     stream.Serialize(ref this.BaseLevelName);
     stream.SerializeEnum(ref this.Difficulty);
     stream.SerializeEnum(ref this.EndGameState);
     stream.Serialize(ref this.TimeStamp);
     stream.Serialize(ref this.SaveLocation);
     stream.Serialize(ref this.SaveRotation);
     stream.Serialize(ref this.CurrentLoadingTip);
     stream.Serialize(ref this.LevelRecords);
     stream.Serialize(ref this.StreamingRecords);
     stream.Serialize(ref this.KismetRecords);
     stream.Serialize(ref this.DoorRecords);
     stream.Serialize(ref this.PawnRecords);
     stream.Serialize(ref this.PlayerRecord);
     stream.Serialize(ref this.HenchmanRecords);
     stream.Serialize(ref this.PlotRecord);
     stream.Serialize(ref this.ME1PlotRecord);
     stream.Serialize(ref this.GalaxyMapRecord);
     stream.Serialize(ref this.DependentDLC);
 }
Beispiel #32
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.DoorGUID);
     stream.Serialize(ref this.CurrentState);
     stream.Serialize(ref this.OldState);
 }
Beispiel #33
0
        public bool Unknown2; // could be ShouldBeVisible or ShouldBeLoaded

        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this.LevelName);
            stream.Serialize(ref this.Unknown1);
            stream.Serialize(ref this.Unknown2);
        }
Beispiel #34
0
        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this.IsFemale);
            stream.Serialize(ref this.PlayerClassName);
            stream.Serialize(ref this.Level);
            stream.Serialize(ref this.CurrentXP);
            stream.Serialize(ref this.FirstName);
            stream.Serialize(ref this.LastName);
            stream.SerializeEnum(ref this.Origin);
            stream.SerializeEnum(ref this.Notoriety);
            stream.Serialize(ref this.TalentPoints);
            stream.Serialize(ref this.MappedPower1);
            stream.Serialize(ref this.MappedPower2);
            stream.Serialize(ref this.MappedPower3);
            stream.Serialize(ref this.Appearance);
            stream.Serialize(ref this.Powers);
            stream.Serialize(ref this.Weapons);

            if (stream.Version >= 18)
            {
                stream.Serialize(ref this.LoadoutWeapons);
            }

            if (stream.Version >= 19)
            {
                stream.Serialize(ref this.HotKeys);
            }

            stream.Serialize(ref this.Credits);
            stream.Serialize(ref this.Medigel);
            stream.Serialize(ref this.Eezo);
            stream.Serialize(ref this.Iridium);
            stream.Serialize(ref this.Palladium);
            stream.Serialize(ref this.Platinum);
            stream.Serialize(ref this.Probes);
            stream.Serialize(ref this.CurrentFuel);

            if (stream.Version >= 25)
            {
                stream.Serialize(ref this.FaceCode);
            }
            else
            {
                throw new Exception();
            }

            if (stream.Version >= 26)
            {
                stream.Serialize(ref this.ClassFriendlyName);
            }
        }
Beispiel #35
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.PawnName);
     stream.Serialize(ref this.PowerID);
 }
Beispiel #36
0
        public List<int> History; // +08

        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this.QuestCounter);
            stream.Serialize(ref this.QuestUpdated);
            stream.Serialize(ref this.History);
        }
Beispiel #37
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.Pitch);
     stream.Serialize(ref this.Yaw);
     stream.Serialize(ref this.Roll);
 }
Beispiel #38
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.BoolGUID);
     stream.Serialize(ref this.Value);
 }
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.Feature);
     stream.Serialize(ref this.Offset);
 }
Beispiel #40
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.Name);
     stream.Serialize<LinearColor>(ref this.Value);
 }
Beispiel #41
0
 public void Serialize(IUnrealStream stream)
 {
     stream.SerializeEnum(ref this.CombatAppearance);
     stream.Serialize(ref this.CasualID);
     stream.Serialize(ref this.FullBodyID);
     stream.Serialize(ref this.TorsoID);
     stream.Serialize(ref this.ShoulderID);
     stream.Serialize(ref this.ArmID);
     stream.Serialize(ref this.LegID);
     stream.Serialize(ref this.SpecID);
     stream.Serialize(ref this.Tint1ID);
     stream.Serialize(ref this.Tint2ID);
     stream.Serialize(ref this.Tint3ID);
     stream.Serialize(ref this.PatternID);
     stream.Serialize(ref this.PatternColorID);
     stream.Serialize(ref this.HelmetID);
     stream.Serialize(ref this.HasMorphHead);
     
     if (this.HasMorphHead == true)
     {
         stream.Serialize(ref this.MorphHead);
     }
 }
Beispiel #42
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.Feature);
     stream.Serialize(ref this.Offset);
 }
Beispiel #43
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.Name);
     stream.Serialize<Vector>(ref this.Offset);
 }
Beispiel #44
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.X);
     stream.Serialize(ref this.Y);
     stream.Serialize(ref this.Z);
 }
Beispiel #45
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._Guid);
     stream.Serialize(ref this._CurrentState);
     stream.Serialize(ref this._OldState);
 }
Beispiel #46
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._X);
     stream.Serialize(ref this._Y);
 }
Beispiel #47
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.Page);
     stream.Serialize(ref this.New);
 }
Beispiel #48
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._BoolVariables);
     stream.Serialize(ref this._IntVariables);
     stream.Serialize(ref this._FloatVariables);
 }
Beispiel #49
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.Page);
     stream.Serialize(ref this.New);
 }
Beispiel #50
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._ModuleId);
     stream.Serialize(ref this._Name);
     stream.Serialize(ref this._CanonicalName, s => s.Version < 50, () => null);
 }
Beispiel #51
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize <PlotCodexPage>(ref this.Pages);
 }
Beispiel #52
0
        public List<Vector2D> Probes; // +8

        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this.PlanetID);
            stream.Serialize(ref this.Visited);
            stream.Serialize(ref this.Probes);
        }
Beispiel #53
0
 protected void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.DebugName);
     stream.Serialize(ref this.SecondsPlayed);
     stream.Serialize(ref this.Disc);
     stream.Serialize(ref this.BaseLevelName);
     stream.SerializeEnum(ref this.Difficulty);
     stream.SerializeEnum(ref this.EndGameState);
     stream.Serialize(ref this.TimeStamp);
     stream.Serialize(ref this.SaveLocation);
     stream.Serialize(ref this.SaveRotation);
     stream.Serialize(ref this.CurrentLoadingTip);
     stream.Serialize(ref this.LevelRecords);
     stream.Serialize(ref this.StreamingRecords);
     stream.Serialize(ref this.KismetRecords);
     stream.Serialize(ref this.DoorRecords);
     stream.Serialize(ref this.PawnRecords);
     stream.Serialize(ref this.PlayerRecord);
     stream.Serialize(ref this.HenchmanRecords);
     stream.Serialize(ref this.PlotRecord);
     stream.Serialize(ref this.ME1PlotRecord);
     stream.Serialize(ref this.GalaxyMapRecord);
     stream.Serialize(ref this.DependentDLC);
 }
Beispiel #54
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.Planets);
 }
Beispiel #55
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.HairMesh);
     stream.Serialize(ref this.AccessoryMeshes);
     stream.Serialize(ref this.MorphFeatures);
     stream.Serialize(ref this.OffsetBones);
     stream.Serialize(ref this.LOD0Vertices);
     stream.Serialize(ref this.LOD1Vertices);
     stream.Serialize(ref this.LOD2Vertices);
     stream.Serialize(ref this.LOD3Vertices);
     stream.Serialize(ref this.ScalarParameters);
     stream.Serialize(ref this.VectorParameters);
     stream.Serialize(ref this.TextureParameters);
 }
Beispiel #56
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.Name);
     stream.Serialize(ref this.Active);
 }
Beispiel #57
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this._Name);
     stream.Serialize(ref this._Value);
 }
Beispiel #58
0
 public void Serialize(IUnrealStream stream)
 {
     stream.Serialize<PlotCodexPage>(ref this.Pages);
 }