public override void Read(ICsvReader reader)
            {
                base.Read(reader);
                this.Unknown260 = reader.GetInstance <BlobSound>();

                for (int i = 0; i < 32 && reader.AtEnd == false; i++)
                {
                    this.Unknown294[i] = reader.GetInstance <Unknown00404B70>();
                }
            }
Example #2
0
            public override void Read(ICsvReader reader)
            {
                base.Read(reader);

                this.Unknown26C = reader.GetShort();
                if (this.Version < 22 && this.Unknown26C > 6)
                {
                    this.Unknown26C = 6;
                }

                this.Unknown26E = (this.Version >= 22) ? reader.GetShort() : (short)0;
                this.Unknown270 = (this.Version >= 46) ? reader.GetShort() : (short)0;
                this.Unknown272 = reader.GetShort();
                this.Unknown274 = reader.GetShort();
                this.Unknown260 = reader.GetInt();
                this.Unknown268 = (this.Version >= 57) ? reader.GetInt() : 0;
                this.Unknown264 = (this.Version >= 57) ? reader.GetInt() : 0;

                if (this.Version >= 33)
                {
                    this.Unknown278.ReadV3(reader);
                }
                else if (this.Version >= 17)
                {
                    this.Unknown278.ReadV2(reader);
                }
                else
                {
                    this.Unknown278.ReadV1(reader);
                }

                this.Unknown2B4 = reader.GetInstance <BlobSound>();
            }
Example #3
0
 // >= 30
 public void ReadV3(ICsvReader reader)
 {
     this.BlobName         = reader.GetString();
     this.BlobId           = reader.GetString();
     this.LightPermutation = reader.GetShort();
     this.PaletteOffset    = reader.GetShort();
     this.Hsv           = reader.GetInstance <HSV>();
     this.AnimationTime = reader.GetShort();
 }
            public override void Read(ICsvReader reader)
            {
                base.Read(reader);
                this.Unknown162 = reader.GetShort();
                this.Unknown160 = reader.GetShort();
                this.Unknown134 = reader.GetInt();
                this.Unknown138 = reader.GetInt();
                this.Unknown13C = reader.GetShort();
                this.Unknown13E = reader.GetShort();
                this.Unknown140 = reader.GetShort();
                this.Unknown142 = reader.GetShort();
                this.Unknown144 = (this.Version >= 9) ? reader.GetShort() : (short)0;
                this.Unknown146 = (this.Version >= 10) ? reader.GetShort() : (short)0;
                this.Unknown148 = (this.Version >= 10) ? reader.GetShort() : (short)0;
                this.Unknown152 = (this.Version >= 28) ? reader.GetShort() : (short)0;
                this.Unknown154 = (this.Version >= 28) ? reader.GetShort() : (short)0;
                this.Unknown14E = (this.Version >= 28) ? reader.GetShort() : (short)0;
                this.Unknown150 = (this.Version >= 28) ? reader.GetShort() : (short)0;
                this.Unknown14A = (this.Version >= 28) ? reader.GetShort() : (short)0;
                this.Unknown168 = (this.Version >= 28) ? reader.GetInt() : 0;

                if (this.Version >= 11)
                {
                    this.Unknown214 = reader.GetInstance <BlobSound>();
                }

                for (int i = 0; i < 6; i++)
                {
                    this.Unknown16C[i].Read(reader);
                }

                if (this.Version >= 56)
                {
                    for (int i = 0; i < 30; i++)
                    {
                        this.Unknown19C[i].Read(reader);
                    }
                }

                this.Unknown156 = (this.Version >= 56) ? reader.GetShort() : (short)0;
                this.Unknown15A = (this.Version >= 56) ? reader.GetShort() : (short)0;
                this.Unknown158 = (this.Version >= 56) ? reader.GetShort() : (short)0;
                this.Unknown15C = (this.Version >= 56) ? reader.GetShort() : (short)0;
                this.Unknown15E = (this.Version >= 56) ? reader.GetShort() : (short)0;
                this.Unknown164 = (this.Version >= 56) ? reader.GetShort() : (short)0;
                this.Unknown166 = (this.Version >= 56) ? reader.GetShort() : (short)0;
                this.Unknown12C = (this.Version >= 56) ? reader.GetInt() : 0;
                this.Unknown130 = (this.Version >= 56) ? reader.GetInt() : 0;
                this.Unknown120 = (this.Version >= 56) ? reader.GetInt() : 0;
                this.Unknown124 = (this.Version >= 56) ? reader.GetInt() : 0;
                this.Unknown128 = (this.Version >= 56) ? reader.GetInt() : 0;
                this.Unknown14C = (this.Version >= 56) ? reader.GetShort() : (short)0;
            }
Example #5
0
            public override void Read(ICsvReader reader)
            {
                base.Read(reader);
                this.ChildRotateLeft             = reader.GetInt();
                this.ChildRotateRight            = reader.GetInt();
                this.ChildParentRelativeRotation = reader.GetShort();
                this.ChildAngleStart             = reader.GetShort();
                this.ChildAngleLength            = reader.GetShort();
                this.ChildCenterDeltaX           = reader.GetShort();
                this.ChildCenterDeltaY           = reader.GetShort();
                this.ChildCenterDeltaZ           = (this.Version >= 27) ? reader.GetShort() : (short)0;
                this.ChildSortAdjust             = reader.GetShort();
                this.ChildDisableWhenParentDead  = (this.Version >= 14) ? reader.GetShort() : (short)0;
                this.ChildDisableWhenParentEmpty = (this.Version >= 38) ? reader.GetShort() : (short)0;
                this.ChildElevationLowAngle      = (this.Version >= 44) ? reader.GetShort() : (short)0;
                this.ChildEelevationHighAngle    = (this.Version >= 44) ? reader.GetShort() : (short)0;
                this.ChildElevationSpeed         = (this.Version >= 44) ? reader.GetShort() : (short)0;
                this.Unknown6D0 = (this.Version >= 44) ? reader.GetString() : "";
                this.Unknown6E8 = (this.Version >= 44) ? reader.GetString() : "";
                this.Unknown700 = (this.Version >= 44) ? reader.GetShort() : (short)0;
                this.Unknown702 = (this.Version >= 44) ? reader.GetShort() : (short)0;

                if (this.Version >= 30)
                {
                    this.SpriteOccupied.ReadV3(reader);
                    this.SpriteEmpty.ReadV3(reader);
                    this.SpriteBroken.ReadV3(reader);
                }
                else if (this.Version >= 12)
                {
                    this.SpriteOccupied.ReadV2(reader);
                    this.SpriteEmpty.ReadV2(reader);
                    this.SpriteBroken.ReadV2(reader);
                }
                else
                {
                    this.SpriteOccupied.ReadV1(reader);
                    this.SpriteEmpty.ReadV1(reader);
                    this.SpriteBroken.ReadV1(reader);
                }

                this.SoundRotate = reader.GetInstance <BlobSound>();

                if (this.Version < 3)
                {
                    this.SpriteOccupied.FixBlobId();
                    this.SpriteEmpty.FixBlobId();
                    this.SpriteBroken.FixBlobId();
                    this.SoundRotate.FixBlobId();
                }
            }
Example #6
0
            public override void Read(ICsvReader reader)
            {
                base.Read(reader);
                this.Unknown274 = reader.GetShort();

                if (this.Version >= 36)
                {
                    this.Unknown268 = reader.GetInt();
                    this.Unknown26C = reader.GetInt();
                }
                else
                {
                    int dummy = reader.GetInt();
                    if (dummy >= 0)
                    {
                        this.Unknown268 = 0;
                        this.Unknown26C = dummy;
                    }
                    else
                    {
                        this.Unknown268 = -dummy;
                        this.Unknown26C = 0;
                    }
                }

                this.Unknown270 = (this.Version >= 36) ? reader.GetShort() : (short)0;
                this.Unknown260 = reader.GetInt();
                this.Unknown264 = reader.GetInt();
                this.Unknown272 = (this.Version >= 30) ? reader.GetShort() : (short)0;

                if (this.Version >= 33)
                {
                    this.Unknown278.ReadV3(reader);
                }
                else if (this.Version >= 17)
                {
                    this.Unknown278.ReadV2(reader);
                }
                else
                {
                    this.Unknown278.ReadV1(reader);
                }

                this.Unknown2B4 = reader.GetInstance <BlobSound>();

                if (this.Version < 3)
                {
                    this.Unknown278.FixBlobId();
                    this.Unknown2B4.FixBlobId();
                }
            }
Example #7
0
            public override void Read(ICsvReader reader)
            {
                base.Read(reader);

                for (int i = 0; i < 16; i++)
                {
                    this.TerrainSpeeds[i].Parse(this.Version, reader);
                }

                this.BouncePercent         = reader.GetShort();
                this.Mode                  = reader.GetShort();
                this.RemoveDeadTimer       = (this.Version >= 2) ? reader.GetShort() : (short)0;
                this.RemoveUnoccupiedTimer = (this.Version >= 2) ? reader.GetShort() : (short)0;
                this.RemoveGlobalTimer     = (this.Version >= 2) ? reader.GetShort() : (short)0;
                this.ThrustOffsetX         = (this.Version >= 5) ? reader.GetShort() : (short)0;
                this.ThrustOffsetY         = (this.Version >= 5) ? reader.GetShort() : (short)0;
                this.ThrustHeight          = (this.Version >= 5) ? reader.GetShort() : (short)0;
                this.ThrustEffectSpeed     = (this.Version >= 43) ? reader.GetShort() : (short)4000;
                this.SmokeCount            = (this.Version >= 5) ? reader.GetShort() : (short)0;
                this.SmokeDelta            = (this.Version >= 5) ? reader.GetShort() : (short)0;
                this.HyperEnergyCost       = (this.Version >= 16) ? reader.GetInt() : 0;
                this.GravityAcceleration   = (this.Version >= 18) ? reader.GetShort() : (short)0;
                this.FloorBouncePercent    = (this.Version >= 18) ? reader.GetShort() : (short)0;
                this.ThrustWhileFlying     = (this.Version >= 20) ? reader.GetShort() : (short)1;
                this.RotateWhileFlying     = (this.Version >= 20) ? reader.GetShort() : (short)1;
                this.CatchLipPercent       = (this.Version >= 28) ? reader.GetShort() : (short)1000;
                this.PortalGravity         = (this.Version >= 40) ? reader.GetShort() : (short)0;
                this.ThrustDelay           = (this.Version >= 41) ? reader.GetShort() : (short)10;
                this.ThrustOffsetDelay     = (this.Version >= 41) ? reader.GetShort() : (short)24;

                if (this.Version >= 30)
                {
                    this.SpriteRoll.ReadV3(reader);
                    this.SpriteEmpty.ReadV3(reader);
                    this.SpriteBroken.ReadV3(reader);
                    this.SpriteThrust.ReadV3(reader);
                    this.SpriteSmoke.ReadV3(reader);
                    this.SpriteStopped.ReadV3(reader);
                }
                else if (this.Version >= 12)
                {
                    this.SpriteRoll.ReadV2(reader);
                    this.SpriteEmpty.ReadV2(reader);
                    this.SpriteBroken.ReadV2(reader);
                    this.SpriteThrust.ReadV2(reader);
                    this.SpriteSmoke.ReadV2(reader);
                    this.SpriteStopped.ReadV2(reader);
                }
                else
                {
                    this.SpriteRoll.ReadV1(reader);
                    this.SpriteEmpty.ReadV1(reader);
                    this.SpriteBroken.ReadV1(reader);
                    this.SpriteThrust.ReadV1(reader);
                    this.SpriteSmoke.ReadV1(reader);
                    this.SpriteStopped.ReadV1(reader);
                }

                if (this.Version >= 30)
                {
                    this.SpriteShadow.ReadV3(reader);
                }
                else if (this.Version >= 19)
                {
                    this.SpriteShadow.ReadV2(reader);
                }

                this.SoundIdle   = reader.GetInstance <BlobSound>();
                this.SoundThrust = reader.GetInstance <BlobSound>();
                this.SoundRotate = reader.GetInstance <BlobSound>();

                if (this.Version >= 4)
                {
                    this.SoundDeath = reader.GetInstance <BlobSound>();
                }
                else
                {
                    this.SoundDeath = new BlobSound()
                    {
                        BlobName = "None",
                    };
                }

                if (this.Version < 3)
                {
                    this.SpriteRoll.FixBlobId();
                    this.SpriteEmpty.FixBlobId();
                    this.SpriteBroken.FixBlobId();
                    this.SpriteThrust.FixBlobId();
                    this.SpriteSmoke.FixBlobId();
                    this.SpriteStopped.FixBlobId();
                    this.SoundIdle.FixBlobId();
                    this.SoundThrust.FixBlobId();
                    this.SoundRotate.FixBlobId();
                }
            }
Example #8
0
            public override void Read(ICsvReader reader)
            {
                base.Read(reader);

                if (this.Version < 8)
                {
                    reader.Skip(3);
                }

                this.Unknown19C = reader.GetShort();
                this.Unknown194 = reader.GetShort();
                this.Unknown196 = reader.GetShort();
                this.Unknown198 = (this.Version >= 16) ? reader.GetShort() : (short)0;
                this.Unknown19A = (this.Version >= 16) ? reader.GetShort() : (short)0;
                this.Unknown154 = reader.GetInts(16);
                this.Unknown14C = (this.Version >= 53) ? reader.GetInt() : 0;
                this.Unknown150 = (this.Version >= 53) ? reader.GetInt() : 0;
                this.Unknown120 = reader.GetInt();
                this.Unknown124 = reader.GetInt();
                this.Unknown128 = (this.Version >= 43) ? reader.GetInt() : -1;
                this.Unknown12C = (this.Version >= 45) ? reader.GetInt() : 0;
                this.Unknown140 = reader.GetInt();
                this.Unknown134 = (this.Version >= 40) ? reader.GetInt() : this.Unknown140;
                this.Unknown138 = (this.Version >= 40) ? reader.GetInt() : 0;
                this.Unknown13C = (this.Version >= 40) ? reader.GetInt() : 0;
                this.Unknown144 = reader.GetInt();
                this.Unknown148 = reader.GetInt();
                this.Unknown1C0 = reader.GetInt();
                this.Unknown1BC = (this.Version >= 38) ? reader.GetInt() : 0;
                this.Unknown1A0 = reader.GetShort();
                this.Unknown1A2 = (this.Version >= 25) ? reader.GetShort() : (short)0;
                this.Unknown19E = reader.GetShort();
                this.Unknown1A4 = (this.Version >= 36) ? reader.GetShort() : (short)0;
                this.Unknown1A6 = (this.Version >= 36) ? reader.GetShort() : (short)0;

                if (this.Version >= 33)
                {
                    this.Unknown1C4.ReadV3(reader);
                }
                else if (this.Version >= 17)
                {
                    this.Unknown1C4.ReadV2(reader);
                }
                else
                {
                    this.Unknown1C4.ReadV1(reader);
                }

                this.Unknown200 = reader.GetInstance <BlobSound>();
                this.Unknown1A8 = reader.GetShort();
                this.Unknown1AA = reader.GetShort();
                this.Unknown130 = (this.Version >= 7) ? reader.GetInt() : 0;
                this.Unknown1B4 = (this.Version >= 19) ? reader.GetShort() : (short)1;
                this.Unknown1B6 = (this.Version >= 19) ? reader.GetShort() : (short)1;
                this.Unknown1AC = (this.Version >= 27) ? reader.GetInt() : 0;
                this.Unknown1B2 = (this.Version >= 27) ? reader.GetShort() : (short)1;
                this.Unknown1B0 = (this.Version >= 27) ? reader.GetShort() : (short)1;
                this.Unknown1B8 = (this.Version >= 27) ? reader.GetShort() : (short)1;
                this.Unknown1BA = (this.Version >= 27) ? reader.GetShort() : (short)1;

                if (this.Version < 4)
                {
                    reader.Skip(8 * 2);
                }

                if (this.Version < 3)
                {
                    this.Unknown1C4.FixBlobId();
                    this.Unknown200.FixBlobId();
                }
            }
Example #9
0
            public override void Read(ICsvReader reader)
            {
                base.Read(reader);
                this.Unknown318 = reader.GetShort();
                this.Unknown31A = reader.GetShort();

                if (this.Version >= 25)
                {
                    this.Unknown31C = reader.GetShort();
                    this.Unknown31E = reader.GetShort();
                }
                else
                {
                    reader.Skip();
                }

                this.Unknown320 = reader.GetShort();
                this.Unknown322 = reader.GetShort();
                this.Unknown32A = reader.GetShort();
                this.Unknown32C = reader.GetShort();
                this.Unknown324 = reader.GetShort();
                this.Unknown326 = reader.GetShort();
                this.Unknown328 = reader.GetShort();
                this.Unknown32E = reader.GetShort();
                this.Unknown33A = reader.GetShort();
                this.Unknown33C = reader.GetShort();
                this.Unknown33E = reader.GetShort();
                this.Unknown330 = reader.GetShort();
                this.Unknown340 = reader.GetInt();
                this.Unknown344 = reader.GetInt();
                this.Unknown354 = reader.GetInt();
                this.Unknown358 = reader.GetInt();
                this.Unknown35C = reader.GetInt();
                this.Unknown360 = reader.GetInt();
                this.Unknown348 = reader.GetInt();
                this.Unknown2E0 = (this.Version >= 1) ? reader.GetShort() : (short)0;
                this.Unknown2E4 = (this.Version >= 48) ? reader.GetShort() : (short)0;
                this.Unknown2E2 = (this.Version >= 37) ? reader.GetShort() : (short)0;
                this.Unknown2E6 = (this.Version >= 1) ? reader.GetShort() : (short)10;
                this.Unknown2E8 = (this.Version >= 1) ? reader.GetShort() : (short)0;
                this.Unknown2EA = (this.Version >= 1) ? reader.GetShort() : (short)2000;
                this.Unknown2EC = (this.Version >= 26) ? reader.GetShort() : (short)0;
                this.Unknown2EE = (this.Version >= 1) ? reader.GetShort() : (short)30;
                this.Unknown2F4 = (this.Version >= 1) ? reader.GetShort() : (short)0;
                this.Unknown2F6 = (this.Version >= 42) ? reader.GetShort() : (short)50;
                this.Unknown2F2 = (this.Version >= 43) ? reader.GetShort() : (short)0;
                this.Unknown2F8 = (this.Version >= 43) ? reader.GetShort() : (short)0;
                this.Unknown2F0 = (this.Version >= 2) ? reader.GetShort() : (short)0;
                this.Unknown2FA = (this.Version >= 40) ? reader.GetShort() : (short)0;

                if (this.Version < 40)
                {
                    reader.Skip(2);
                }

                this.Unknown2FC = (this.Version >= 14) ? reader.GetShort() : (short)0;
                this.Unknown2FE = (this.Version >= 14) ? reader.GetShort() : (short)0;
                this.Unknown300 = (this.Version >= 14) ? reader.GetShort() : (short)0;
                this.Unknown302 = (this.Version >= 14) ? reader.GetShort() : (short)0;
                this.Unknown304 = (this.Version >= 16) ? reader.GetShort() : (short)0;
                this.Unknown306 = (this.Version >= 16) ? reader.GetShort() : (short)0;
                this.Unknown308 = (this.Version >= 16) ? reader.GetShort() : (short)0;
                this.Unknown30A = (this.Version >= 16) ? reader.GetShort() : (short)0;
                this.Unknown30C = (this.Version >= 16) ? reader.GetShort() : (short)0;
                this.Unknown30E = (this.Version >= 27) ? reader.GetShort() : (short)0;
                this.Unknown310 = (this.Version >= 27) ? reader.GetShort() : (short)0;

                if (this.Version >= 53)
                {
                    this.Unknown312 = reader.GetShort();
                }
                else if (this.Version >= 20)
                {
                    this.Unknown312 = -1;
                    reader.Skip();
                }

                this.Unknown314 = (this.Version >= 23) ? reader.GetShort() : (short)0;
                this.Unknown316 = (this.Version >= 36) ? reader.GetShort() : (short)0;
                this.Unknown34C = (this.Version >= 38) ? reader.GetInt() : 0;
                this.Unknown332 = (this.Version >= 36) ? reader.GetShort() : (short)0;
                this.Unknown336 = (this.Version >= 36) ? reader.GetShort() : (short)0;
                this.Unknown260 = (this.Version >= 36) ? reader.GetString() : "";
                this.Unknown334 = (this.Version >= 39) ? reader.GetShort() : (short)0;
                this.Unknown338 = (this.Version >= 41) ? reader.GetShort() : (short)0;
                this.Unknown350 = (this.Version >= 44) ? reader.GetInt() : 0;

                for (int i = 0; i < 6; i++)
                {
                    if (this.Version >= 50)
                    {
                        this.Unknown52C[i].ReadV2(reader);
                    }
                    else
                    {
                        this.Unknown52C[i].ReadV1(reader);
                    }
                }

                if (this.Version >= 33)
                {
                    this.Unknown364.ReadV3(reader);
                    this.Unknown3A0.ReadV3(reader);
                    this.Unknown3DC.ReadV3(reader);
                    this.Unknown418.ReadV3(reader);
                    this.Unknown454.ReadV3(reader);
                }
                else if (this.Version >= 17)
                {
                    this.Unknown364.ReadV2(reader);
                    this.Unknown3A0.ReadV2(reader);
                    this.Unknown3DC.ReadV2(reader);
                    this.Unknown418.ReadV2(reader);
                    this.Unknown454.ReadV2(reader);
                }
                else
                {
                    this.Unknown364.ReadV1(reader);
                    this.Unknown3A0.ReadV1(reader);
                    this.Unknown3DC.ReadV1(reader);
                    this.Unknown418.ReadV1(reader);
                    this.Unknown454.ReadV1(reader);
                }

                this.Unknown490 = reader.GetInstance <BlobSound>();
                this.Unknown4C4 = reader.GetInstance <BlobSound>();
                this.Unknown4F8 = reader.GetInstance <BlobSound>();

                if (this.Version < 3)
                {
                    this.Unknown364.FixBlobId();
                    this.Unknown3A0.FixBlobId();
                    this.Unknown3DC.FixBlobId();
                    this.Unknown418.FixBlobId();
                    this.Unknown454.FixBlobId();
                    this.Unknown490.FixBlobId();
                    this.Unknown4C4.FixBlobId();
                    this.Unknown4F8.FixBlobId();
                }
            }