Example #1
0
 public SplineVector()
 {
     X = 0;
     Y = 0;
     Z = 0;
     W = 0;
 }
Example #2
0
 public Motion_Mechanism(EndianBinaryReader reader, Game game) : base(reader)
 {
     MovementType     = (EMovementType)reader.ReadByte();
     MovementLoopMode = (EMechanismFlags)reader.ReadByte();
     SlideAxis        = (Axis)reader.ReadByte();
     RotateAxis       = (Axis)reader.ReadByte();
     if (game == Game.Incredibles)
     {
         ScaleAxis = reader.ReadByte();
         reader.ReadByte();
         reader.ReadByte();
         reader.ReadByte();
     }
     SlideDistance    = reader.ReadSingle();
     SlideTime        = reader.ReadSingle();
     SlideAccelTime   = reader.ReadSingle();
     SlideDecelTime   = reader.ReadSingle();
     RotateDistance   = reader.ReadSingle();
     RotateTime       = reader.ReadSingle();
     RotateAccelTime  = reader.ReadSingle();
     RotateDecelTime  = reader.ReadSingle();
     RetractDelay     = reader.ReadSingle();
     PostRetractDelay = reader.ReadSingle();
     if (game == Game.Incredibles)
     {
         ScaleAmount   = reader.ReadSingle();
         ScaleDuration = reader.ReadSingle();
     }
 }
Example #3
0
        public AssetBOUL(Section_AHDR AHDR, Game game, Endianness endianness) : base(AHDR, game, endianness)
        {
            using (var reader = new EndianBinaryReader(AHDR.data, endianness))
            {
                reader.BaseStream.Position = entityHeaderEndPosition;

                Gravity      = reader.ReadSingle();
                Mass         = reader.ReadSingle();
                BounceFactor = reader.ReadSingle();
                Friction     = reader.ReadSingle();
                if (game == Game.BFBB)
                {
                    StartFriction = reader.ReadSingle();
                }
                MaxLinearVelocity         = reader.ReadSingle();
                MaxAngularVelocity        = reader.ReadSingle();
                Stickiness                = reader.ReadSingle();
                BounceDamp                = reader.ReadSingle();
                BoulderFlags.FlagValueInt = reader.ReadUInt32();
                KillTimer     = reader.ReadSingle();
                Hitpoints     = reader.ReadInt32();
                Sound_AssetID = reader.ReadUInt32();
                if (game == Game.BFBB)
                {
                    Volume = reader.ReadSingle();
                }
                MinSoundVel = reader.ReadSingle();
                MaxSoundVel = reader.ReadSingle();
                InnerRadius = reader.ReadSingle();
                OuterRadius = reader.ReadSingle();
            }
        }
Example #4
0
        public DynaEffectFlamethrower(Section_AHDR AHDR, Game game, Endianness endianness) : base(AHDR, DynaType.effect__Flamethrower, game, endianness)
        {
            using (var reader = new EndianBinaryReader(AHDR.data, endianness))
            {
                reader.BaseStream.Position = dynaDataStartPosition;

                _position = new Vector3(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());
                _yaw      = reader.ReadSingle();
                _pitch    = reader.ReadSingle();
                _roll     = reader.ReadSingle();
                Visible   = reader.ReadByte();
                reader.ReadByte();
                reader.ReadByte();
                reader.ReadByte();
                OnLength     = reader.ReadSingle();
                OffLength    = reader.ReadSingle();
                Color        = reader.ReadColor();
                Damage       = reader.ReadInt32();
                Knockback    = reader.ReadSingle();
                DamageRadius = reader.ReadSingle();

                CreateTransformMatrix();
                AddToRenderableAssets(this);
            }
        }
Example #5
0
 public EntryLKIT(EndianBinaryReader reader)
 {
     Type        = reader.ReadInt32();
     ColorR      = reader.ReadSingle();
     ColorG      = reader.ReadSingle();
     ColorB      = reader.ReadSingle();
     Unknown04   = reader.ReadSingle();
     Unknown05_X = reader.ReadSingle();
     Unknown06_Y = reader.ReadSingle();
     Unknown07_Z = reader.ReadSingle();
     Unknown08   = reader.ReadSingle();
     Unknown09_X = reader.ReadSingle();
     Unknown10_Y = reader.ReadSingle();
     Unknown11_Z = reader.ReadSingle();
     Unknown12   = reader.ReadSingle();
     Direction_X = reader.ReadSingle();
     Direction_Y = reader.ReadSingle();
     Direction_Z = reader.ReadSingle();
     Unknown16   = reader.ReadSingle();
     Unknown17_X = reader.ReadSingle();
     Unknown18_Y = reader.ReadSingle();
     Unknown19_Z = reader.ReadSingle();
     Unknown20   = reader.ReadSingle();
     Unknown21_X = reader.ReadSingle();
     Unknown22_Y = reader.ReadSingle();
     Unknown23_Z = reader.ReadSingle();
 }
Example #6
0
        public DynaGObjectBungeeHook(string assetName, uint entityAssetID) : base(assetName, DynaType.game_object__bungee_hook, 13)
        {
            Entity_AssetID = entityAssetID;

            AttachDist              = 3;
            AttachTravelTime        = 0.5f;
            DetachDist              = 10;
            DetachFreeFallTime      = 1;
            DetachAccel             = 2;
            TurnUnused1             = 25;
            TurnUnused2             = 0.95f;
            VerticalFrequency       = 2;
            VerticalGravity         = 9.8f;
            VerticalDive            = 2;
            VerticalMinDist         = 2;
            VerticalMaxDist         = 40;
            VerticalDamp            = 0.05f;
            HorizontalMaxDist       = 2;
            CameraRestDist          = 5;
            Cameraview_angle        = 220;
            CameraOffset            = 0.5f;
            CameraOffsetDir         = 180;
            CameraTurnSpeed         = 0.05f;
            CameraVelScale          = 0;
            CameraRollSpeed         = 0.05f;
            CameraUnused1_X         = 0.2f;
            CameraUnused1_Y         = 0.25f;
            CameraUnused1_Z         = 0.2f;
            CollisionHitLoss        = 0.1f;
            CollisionDamageVelocity = 0.6f;
            CollisionHitVelocity    = 0.2f;
        }
Example #7
0
        protected DynaUIText(Section_AHDR AHDR, DynaType type, Game game, Endianness endianness) : base(AHDR, type, game, endianness)
        {
            using (var reader = new EndianBinaryReader(AHDR.data, endianness))
            {
                reader.BaseStream.Position = dynaUIEnd;

                Text_AssetID       = reader.ReadUInt32();
                font               = reader.ReadByte();
                fontSizeW          = reader.ReadByte();
                fontSizeH          = reader.ReadByte();
                fontSpacingX       = reader.ReadByte();
                fontSpacingY       = reader.ReadByte();
                textBoxInsetTop    = reader.ReadByte();
                textBoxInsetLeft   = reader.ReadByte();
                textBoxInsetRight  = reader.ReadByte();
                textBoxInsetBottom = reader.ReadByte();
                justifyX           = reader.ReadByte();
                justifyY           = reader.ReadByte();
                textFlags          = reader.ReadByte();
                ShadowColor        = reader.ReadColor();
                shadowOffsetX      = reader.ReadSingle();
                shadowOffsetY      = reader.ReadSingle();
                shadowScaleX       = reader.ReadSingle();
                shadowScaleY       = reader.ReadSingle();
            }
        }
Example #8
0
 public EntrySHRP_Type4_BFBB(EndianBinaryReader reader) : base(4, reader)
 {
     ModelAssetID = reader.ReadUInt32();
     Unknown1C    = reader.ReadInt32();
     Unknown20    = reader.ReadInt32();
     Unknown24    = reader.ReadInt32();
     OffsetX      = reader.ReadSingle();
     OffsetY      = reader.ReadSingle();
     OffsetZ      = reader.ReadSingle();
     ReadPad(reader, 0x10);
     Unknown44 = reader.ReadInt32();
     Unknown48 = reader.ReadInt32();
     Unknown4C = reader.ReadSingle();
     Unknown50 = reader.ReadSingle();
     Unknown54 = reader.ReadSingle();
     ReadPad(reader, 0x10);
     Unknown68        = reader.ReadSingle();
     Unknown6C        = reader.ReadInt32();
     Unknown70        = reader.ReadInt32();
     UnknownAssetID74 = reader.ReadUInt32();
     Unknown78        = reader.ReadSingle();
     Unknown7C        = reader.ReadSingle();
     Unknown80        = reader.ReadSingle();
     Unknown84        = reader.ReadSingle();
     Unknown88        = reader.ReadSingle();
     Gravity          = reader.ReadSingle();
 }
Example #9
0
        public DynaGObjectVent(Section_AHDR AHDR, Game game, Endianness endianness) : base(AHDR, DynaType.game_object__Vent, game, endianness)
        {
            using (var reader = new EndianBinaryReader(AHDR.data, endianness))
            {
                reader.BaseStream.Position = dynaDataStartPosition;

                VentType_AssetID       = reader.ReadUInt32();
                _position              = new Vector3(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());
                _yaw                   = reader.ReadSingle();
                _pitch                 = reader.ReadSingle();
                _roll                  = reader.ReadSingle();
                DamageBoxLowerCornerX  = reader.ReadSingle();
                DamageBoxLowerCornerY  = reader.ReadSingle();
                DamageBoxLowerCornerZ  = reader.ReadSingle();
                DamageBoxUpperCornerX  = reader.ReadSingle();
                DamageBoxUpperCornerY  = reader.ReadSingle();
                DamageBoxUpperCornerZ  = reader.ReadSingle();
                BoulderPushSpeed       = reader.ReadSingle();
                VentFlags.FlagValueInt = reader.ReadUInt32();
                IdleTime               = reader.ReadSingle();
                WarnTime               = reader.ReadSingle();
                DamageTime             = reader.ReadSingle();

                CreateTransformMatrix();
                AddToRenderableAssets(this);
            }
        }
Example #10
0
 public zFootstepsData(EndianBinaryReader reader)
 {
     PARE_AssetID    = reader.ReadUInt32();
     Sound_AssetID   = reader.ReadUInt32();
     Texture_AssetID = reader.ReadUInt32();
     Duration        = reader.ReadSingle();
 }
Example #11
0
 public zSurfUVFX(EndianBinaryReader reader)
 {
     Mode          = reader.ReadInt32();
     Rot           = reader.ReadSingle();
     RotSpd        = reader.ReadSingle();
     Trans_X       = reader.ReadSingle();
     Trans_Y       = reader.ReadSingle();
     Trans_Z       = reader.ReadSingle();
     TransSpeed_X  = reader.ReadSingle();
     TransSpeed_Y  = reader.ReadSingle();
     TransSpeed_Z  = reader.ReadSingle();
     Scale_X       = reader.ReadSingle();
     Scale_Y       = reader.ReadSingle();
     Scale_Z       = reader.ReadSingle();
     ScaleSpeed_X  = reader.ReadSingle();
     ScaleSpeed_Y  = reader.ReadSingle();
     ScaleSpeed_Z  = reader.ReadSingle();
     Min_X         = reader.ReadSingle();
     Min_Y         = reader.ReadSingle();
     Min_Z         = reader.ReadSingle();
     Max_X         = reader.ReadSingle();
     Max_Y         = reader.ReadSingle();
     Max_Z         = reader.ReadSingle();
     MinMaxSpeed_X = reader.ReadSingle();
     MinMaxSpeed_Y = reader.ReadSingle();
     MinMaxSpeed_Z = reader.ReadSingle();
 }
Example #12
0
 public zSurfTextureAnim(EndianBinaryReader reader)
 {
     Padding       = reader.ReadInt16();
     Mode          = reader.ReadInt16();
     Group_AssetID = reader.ReadUInt32();
     Speed         = reader.ReadSingle();
 }
 public PlatSpecific_FR(EndianBinaryReader reader)
 {
     fspeed         = reader.ReadSingle();
     rspeed         = reader.ReadSingle();
     ret_delay      = reader.ReadSingle();
     post_ret_delay = reader.ReadSingle();
 }
Example #14
0
 public EntrySGRP(EndianBinaryReader reader)
 {
     Sound_AssetID = reader.ReadUInt32();
     Volume        = reader.ReadSingle();
     MinPitchMult  = reader.ReadSingle();
     MaxPitchMult  = reader.ReadSingle();
 }
 public PareSpecific_xPECircle(EndianBinaryReader reader)
 {
     Radius     = reader.ReadSingle();
     Deflection = reader.ReadSingle();
     DirX       = reader.ReadSingle();
     DirY       = reader.ReadSingle();
     DirZ       = reader.ReadSingle();
 }
Example #16
0
        public Motion_MovePoint(EndianBinaryReader reader, Vector3 initialPosition) : base(reader)
        {
            this.initialPosition = initialPosition;

            MovePointFlags.FlagValueInt = reader.ReadUInt32();
            MVPT_AssetID = reader.ReadUInt32();
            Speed        = reader.ReadSingle();
        }
Example #17
0
        public DynaGObjectBusStop(string assetName, uint mrkrAssetId, uint camAssetId, uint simpAssetId) : base(assetName, DynaType.game_object__BusStop, 2)
        {
            MRKR_ID = mrkrAssetId;
            CAM_ID  = camAssetId;
            SIMP_ID = simpAssetId;

            Delay = 1.5f;
        }
Example #18
0
 public EntrySHRP(int type, EndianBinaryReader reader)
 {
     Type      = type;
     Unknown04 = reader.ReadUInt32();
     Unknown08 = reader.ReadUInt32();
     Unknown0C = reader.ReadUInt32();
     Unknown10 = reader.ReadSingle();
     Unknown14 = reader.ReadSingle();
 }
Example #19
0
 public CamSpecific_Follow(EndianBinaryReader reader)
 {
     Rotation   = reader.ReadSingle();
     Distance   = reader.ReadSingle();
     Height     = reader.ReadSingle();
     RubberBand = reader.ReadSingle();
     StartSpeed = reader.ReadSingle();
     EndSpeed   = reader.ReadSingle();
 }
Example #20
0
 public CamSpecific_Shoulder(EndianBinaryReader reader)
 {
     Distance     = reader.ReadSingle();
     Height       = reader.ReadSingle();
     RealignSpeed = reader.ReadSingle();
     RealignDelay = reader.ReadSingle();
     Unknown1     = reader.ReadSingle();
     Unknown2     = reader.ReadSingle();
 }
Example #21
0
 public CamSpecific_Other(EndianBinaryReader reader)
 {
     Unknown1 = reader.ReadSingle();
     Unknown2 = reader.ReadSingle();
     Unknown3 = reader.ReadSingle();
     Unknown4 = reader.ReadSingle();
     Unknown5 = reader.ReadSingle();
     Unknown6 = reader.ReadSingle();
 }
 public PareSpecific_xPEEntBound(EndianBinaryReader reader)
 {
     flags = reader.ReadByte();
     type  = reader.ReadByte();
     reader.ReadByte();
     reader.ReadByte();
     Expand     = reader.ReadSingle();
     Deflection = reader.ReadSingle();
 }
Example #23
0
 public StructPARP(EndianBinaryReader reader, int index)
 {
     Interp_0              = reader.ReadSingle();
     Interp_1              = reader.ReadSingle();
     Interp_Mode           = (Interp_Mode)reader.ReadInt32();
     Frequency_RandLinStep = reader.ReadSingle();
     Frequency_SinCos      = reader.ReadSingle();
     this.index            = index;
 }
Example #24
0
 public Motion_Orbit(EndianBinaryReader reader) : base(reader)
 {
     CenterX = reader.ReadSingle();
     CenterY = reader.ReadSingle();
     CenterZ = reader.ReadSingle();
     Width   = reader.ReadSingle();
     Height  = reader.ReadSingle();
     Period  = reader.ReadSingle();
 }
Example #25
0
 public EntrySHRP_Type4_TSSM(EndianBinaryReader reader) : base(4, reader)
 {
     ModelAssetID = reader.ReadUInt32();
     Unknown1C    = reader.ReadInt32();
     Unknown20    = reader.ReadInt32();
     Unknown24    = reader.ReadInt32();
     OffsetX      = reader.ReadSingle();
     OffsetY      = reader.ReadSingle();
     OffsetZ      = reader.ReadSingle();
     ReadPad(reader, 0x10);
     UnknownInt44 = reader.ReadInt32();
     UnknownInt48 = reader.ReadInt32();
     UnknownInt4C = reader.ReadInt32();
     UnknownInt50 = reader.ReadInt32();
     UnknownInt54 = reader.ReadInt32();
     UnknownInt58 = reader.ReadInt32();
     ReadPad(reader, 0x10);
     UnknownInt6C   = reader.ReadInt32();
     UnknownByte70  = reader.ReadByte();
     UnknownByte71  = reader.ReadByte();
     UnknownByte72  = reader.ReadByte();
     UnknownByte73  = reader.ReadByte();
     UnknownInt74   = reader.ReadInt32();
     UnknownFloat78 = reader.ReadSingle();
     UnknownFloat7C = reader.ReadSingle();
     UnknownFloat80 = reader.ReadSingle();
     ReadPad(reader, 0x10);
     UnknownInt94 = reader.ReadInt32();
     UnknownInt98 = reader.ReadInt32();
     UnknownInt9C = reader.ReadInt32();
     UnknownIntA0 = reader.ReadInt32();
     UnknownIntA4 = reader.ReadInt32();
     UnknownIntA8 = reader.ReadInt32();
     ReadPad(reader, 0x10);
     UnknownIntBC   = reader.ReadInt32();
     UnknownByteC0  = reader.ReadByte();
     UnknownByteC1  = reader.ReadByte();
     UnknownByteC2  = reader.ReadByte();
     UnknownByteC3  = reader.ReadByte();
     UnknownIntC4   = reader.ReadInt32();
     UnknownFloatC8 = reader.ReadSingle();
     UnknownFloatCC = reader.ReadSingle();
     UnknownFloatD0 = reader.ReadSingle();
     ReadPad(reader, 0x10);
     UnknownIntE4    = reader.ReadInt32();
     UnknownFloatE8  = reader.ReadSingle();
     UnknownIntEC    = reader.ReadInt32();
     UnknownIntF0    = reader.ReadInt32();
     UnknownIntF4    = reader.ReadInt32();
     UnknownIntF8    = reader.ReadInt32();
     UnknownFloatFC  = reader.ReadSingle();
     UnknownFloat100 = reader.ReadSingle();
     UnknownInt104   = reader.ReadInt32();
     UnknownInt108   = reader.ReadInt32();
     Gravity         = reader.ReadSingle();
 }
 public PareSpecific_tagEmitLine(EndianBinaryReader reader)
 {
     Position_0_X = reader.ReadSingle();
     Position_0_Y = reader.ReadSingle();
     Position_0_Z = reader.ReadSingle();
     Position_1_X = reader.ReadSingle();
     Position_1_Y = reader.ReadSingle();
     Position_1_Z = reader.ReadSingle();
     Radius       = reader.ReadSingle();
 }
        public DynaGObjectBungeeDrop(Section_AHDR AHDR, Game game, Endianness endianness) : base(AHDR, DynaType.game_object__bungee_drop, game, endianness)
        {
            using (var reader = new EndianBinaryReader(AHDR.data, endianness))
            {
                reader.BaseStream.Position = dynaDataStartPosition;

                MRKR_ID      = reader.ReadUInt32();
                SetViewAngle = reader.ReadInt32();
                ViewAngle    = reader.ReadSingle();
            }
        }
Example #28
0
 public EntrySHRP_Type6_TSSM(EndianBinaryReader reader) : base(6, reader)
 {
     SoundAssetID = reader.ReadUInt32();
     Unknown1C    = reader.ReadInt32();
     Unknown20    = reader.ReadInt32();
     Unknown24    = reader.ReadInt32();
     Unknown28    = reader.ReadInt32();
     Unknown2C    = reader.ReadInt32();
     ReadPad(reader, 0x10);
     Unknown40 = reader.ReadSingle();
 }
Example #29
0
 public EntryFLY(BinaryReader binaryReader)
 {
     FrameNumer               = binaryReader.ReadInt32();
     CameraNormalizedRight    = new WireVector(binaryReader.ReadSingle(), binaryReader.ReadSingle(), binaryReader.ReadSingle());
     CameraNormalizedUp       = new WireVector(binaryReader.ReadSingle(), binaryReader.ReadSingle(), binaryReader.ReadSingle());
     CameraNormalizedBackward = new WireVector(binaryReader.ReadSingle(), binaryReader.ReadSingle(), binaryReader.ReadSingle());
     CameraPosition           = new WireVector(binaryReader.ReadSingle(), binaryReader.ReadSingle(), binaryReader.ReadSingle());
     ApertureX = binaryReader.ReadSingle();
     ApertureY = binaryReader.ReadSingle();
     Focal     = binaryReader.ReadSingle();
 }
Example #30
0
 public StyleStyleEntry(EndianBinaryReader reader)
 {
     Unknown_00_1    = reader.ReadInt32();
     Color           = reader.ReadColor();
     CharWidth       = reader.ReadSingle();
     CharHeight      = reader.ReadSingle();
     Unknown1        = reader.ReadSingle();
     Unknown2        = reader.ReadSingle();
     MaxScreenWidth  = reader.ReadSingle();
     MaxScreenHeight = reader.ReadSingle();
 }