Ejemplo n.º 1
0
        public weapon_hud_interface_group() : base(27)
        {
            Add(ChildHud         = new TI.TagReference(this, TagGroups.wphi));
            Add(FlashCutoffFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
            Add(new TI.Pad(2));
            Add(TotalAmmoCutoff  = new TI.ShortInteger());
            Add(LoadedAmmoCutoff = new TI.ShortInteger());
            Add(HeatCutoff       = new TI.ShortInteger());
            Add(AgeCutoff        = new TI.ShortInteger());
            Add(new TI.Pad(32));
            Add(Anchor = new TI.Enum());
            Add(new TI.Pad(2 + 32));

            Add(StaticElements  = new TI.Block <weapon_hud_static_block>(this, 16));
            Add(MeterElements   = new TI.Block <weapon_hud_meter_block>(this, 16));
            Add(NumberElements  = new TI.Block <weapon_hud_number_block>(this, 16));
            Add(Crosshairs      = new TI.Block <weapon_hud_crosshair_block>(this, 19));
            Add(OverlayElements = new TI.Block <weapon_hud_overlays_block>(this, 16));
            Add(PostprocessedUsedCrosshairStatesFlags = new TI.Flags());
            Add(new TI.Pad(12));             // g_null_block, so we just pad it
            Add(ScreenEffect = new TI.Block <global_hud_screen_effect_definition>(this, 1));
            Add(new TI.Pad(132));

            Add(SequenceIndex             = new TI.ShortInteger());
            Add(WidthOffset               = new TI.ShortInteger());
            Add(OffsetFromReferenceCorner = new TI.Point2D());
            Add(OverrideIconColor         = new TI.Color());
            Add(FrameRate = new TI.ByteInteger());
            Add(Flags     = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
            Add(TextIndex = new TI.ShortInteger());
            Add(new TI.Pad(48));
        }
Ejemplo n.º 2
0
            public bitmap_data_block() : base(23)
            {
                Add(Signature            = new TI.Tag());
                Add(Width                = new TI.ShortInteger());
                Add(Height               = new TI.ShortInteger());
                Add(Depth                = new TI.ByteInteger());
                Add(MoreFlags            = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
                Add(Type                 = new TI.Enum());
                Add(Format               = new TI.Enum());
                Add(Flags                = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
                Add(RegistrationPoint    = new TI.Point2D());
                Add(MipmapCount          = new TI.ShortInteger());
                Add(LowDetailMipmapCount = new TI.ShortInteger());
                Add(PixelsOffset         = new TI.LongInteger());

                Add(Offsets[0] = new TI.LongInteger());
                Add(Offsets[1] = new TI.LongInteger());
                Add(Offsets[2] = new TI.LongInteger());
                Add(new TI.Skip(4 + 4 + 4));

                Add(Sizes[0] = new TI.LongInteger());
                Add(Sizes[1] = new TI.LongInteger());
                Add(Sizes[2] = new TI.LongInteger());
                Add(new TI.Skip(4 + 4 + 4));

                Add(new TI.Skip(
                        4 + 4 +
                        4                 // this is special...
                        ));
                Add(OwnerTagIndex = new TI.LongInteger());
                Add(new TI.Skip(
                        20 +
                        4
                        ));
            }
Ejemplo n.º 3
0
            //public TI.ShortInteger LowDetailMipmapCount;
            #endregion

            #region Ctor
            public bitmap_data_block() : base(14)
            {
                Add(Signature         = new TI.Tag());
                Add(Width             = new TI.ShortInteger());
                Add(Height            = new TI.ShortInteger());
                Add(Depth             = new TI.ByteInteger());
                Add(MoreFlags         = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
                Add(Type              = new TI.Enum());
                Add(Format            = new TI.Enum());
                Add(Flags             = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
                Add(RegistrationPoint = new TI.Point2D());
                Add(MipmapCount       = new TI.ByteInteger());
                Add(new TI.Skip(1 +         //LowDetailMipmapCount?
                                1 +         // (just interleaved?) resource index
                                1));        //
                //Add(LowDetailMipmapCount = new TI.ShortInteger());
                Add(PixelsOffset = new TI.LongInteger());

                Add(new TI.Skip(4 +                 // pixels size
                                4 + 4));

                Add(new TI.LongInteger());

                Add(new TI.Skip(4));
            }
Ejemplo n.º 4
0
 public hud_button_icon_block() : base(7)
 {
     Add(SequenceIndex             = new TI.ShortInteger());
     Add(WidthOffset               = new TI.ShortInteger());
     Add(OffsetFromReferenceCorner = new TI.Point2D());
     Add(OverrideIconColor         = new TI.Color());
     Add(FrameRate = new TI.ByteInteger());
     Add(Flags     = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
     Add(TextIndex = new TI.ShortInteger());
 }
Ejemplo n.º 5
0
 public model_vertex_compressed_block() : base(8)
 {
     Add(Position      = new TI.RealPoint3D());
     Add(Normal        = new TI.LongInteger());
     Add(Binormal      = new TI.LongInteger());
     Add(Tangent       = new TI.LongInteger());
     Add(TextureCoords = new TI.Point2D());
     Add(NodeIndex1    = new TI.ByteInteger());
     Add(NodeIndex2    = new TI.ByteInteger());
     Add(NodeWeight0   = new TI.ShortInteger());
 }
Ejemplo n.º 6
0
 public first_person_interface_block() : base(9)
 {
     Add(FirstPersionHands        = new TI.TagReference(this, TagGroups.mod2));
     Add(BaseBitmap               = new TI.TagReference(this, TagGroups.bitm));
     Add(ShieldMeter              = new TI.TagReference(this, TagGroups.metr));
     Add(ShieldMeterOrigin        = new TI.Point2D());
     Add(BodyMeter                = new TI.TagReference(this, TagGroups.metr));
     Add(BodyMeterOrigin          = new TI.Point2D());
     Add(NightVisionTurnOnEffect  = new TI.TagReference(this, TagGroups.effe));
     Add(NightVisionTurnOffEffect = new TI.TagReference(this, TagGroups.effe));
     Add(new TI.Pad(88));
 }
Ejemplo n.º 7
0
        public grenade_hud_interface_group() : base(34)
        {
            Add(Anchor = new TI.Enum());
            Add(new TI.Pad(2 + 32));

            #region HudBackground
            Add(HudBackground = new TI.Struct <global_hud_interface_element_struct>(this));

            Add(new TI.Pad(4));
            Add(HudBackgroundSequenceIndex = new TI.ShortInteger());
            Add(new TI.Pad(2));
            Add(HudBackgroundMultitexOverlay = new TI.Block <global_hud_multitexture_overlay_definition>(this, 30));
            Add(new TI.Pad(4));
            #endregion

            #region TotalGrenadesBackground
            Add(TotalGrenadesBackground = new TI.Struct <global_hud_interface_element_struct>(this));

            Add(new TI.Pad(4));
            Add(TotalGrenadesBackgroundSequenceIndex = new TI.ShortInteger());
            Add(new TI.Pad(2));
            Add(TotalGrenadesBackgroundMultitexOverlay = new TI.Block <global_hud_multitexture_overlay_definition>(this, 30));
            Add(new TI.Pad(4));
            #endregion

            #region TotalGrenadesNumbers
            Add(TotalGrenadesNumbers = new TI.Struct <global_hud_element_struct>(this));

            Add(new TI.Pad(4));
            Add(TotalGrenadesNumbersMaxNumberOfDigits        = new TI.ByteInteger());
            Add(TotalGrenadesNumbersFlags                    = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
            Add(TotalGrenadesNumbersNumberOfFractionalDigits = new TI.ByteInteger());
            Add(new TI.Pad(1 + 12));
            Add(TotalGrenadesNumbersFlashCutoff = new TI.ShortInteger());
            Add(new TI.Pad(2));
            #endregion

            Add(OverlayBitmap = new TI.TagReference(this, TagGroups.bitm));
            Add(Overlays      = new TI.Block <grenade_hud_overlay_block>(this, 16));
            Add(WarningSounds = new TI.Block <global_hud_sound_block>(this, 12));
            Add(new TI.Pad(68));             // looks like an unused global_hud_element_struct

            Add(SequenceIndex             = new TI.ShortInteger());
            Add(WidthOffset               = new TI.ShortInteger());
            Add(OffsetFromReferenceCorner = new TI.Point2D());
            Add(OverrideIconColor         = new TI.Color());
            Add(FrameRate = new TI.ByteInteger());
            Add(Flags     = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
            Add(TextIndex = new TI.ShortInteger());
            Add(new TI.Pad(48));
        }
Ejemplo n.º 8
0
 public bitmap_data_block() : base(14)
 {
     Add(Signature         = new TI.Tag());
     Add(Width             = new TI.ShortInteger());
     Add(Height            = new TI.ShortInteger());
     Add(Depth             = new TI.ShortInteger());
     Add(Type              = new TI.Enum());
     Add(Format            = new TI.Enum());
     Add(Flags             = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
     Add(RegistrationPoint = new TI.Point2D());
     Add(MipmapCount       = new TI.ShortInteger());
     Add(new TI.Pad(2));
     Add(PixelsOffset = new TI.LongInteger());
     Add(new TI.Skip(12));
     Add(HardwareFormat = new TI.LongInteger());
     Add(BaseAddress    = new TI.LongInteger());
 }
Ejemplo n.º 9
0
			public bitmap_data_block() : base(14)
			{
				Add(Signature = new TI.Tag());
				Add(Width = new TI.ShortInteger());
				Add(Height = new TI.ShortInteger());
				Add(Depth = new TI.ShortInteger());
				Add(Type = new TI.Enum());
				Add(Format = new TI.Enum());
				Add(Flags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
				Add(RegistrationPoint = new TI.Point2D());
				Add(MipmapCount = new TI.ShortInteger());
				Add(new TI.Pad(2));
				Add(PixelsOffset = new TI.LongInteger());
				Add(new TI.Skip(12));
				Add(HardwareFormat = new TI.LongInteger());
				Add(BaseAddress = new TI.LongInteger());
			}
Ejemplo n.º 10
0
        public global_hud_element_struct() : base(13)
        {
            Add(AnchorOffset = new TI.Point2D());
            Add(WidthScale   = new TI.Real());
            Add(HeightScale  = new TI.Real());
            Add(ScalingFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
            Add(new TI.Pad(2 + 20));
            Add(DefaultColor    = new TI.Color());
            Add(FlashingColor   = new TI.Color());
            Add(FlashPeriod     = new TI.Real());
            Add(FlashDelay      = new TI.Real());
            Add(NumberOfFlashes = new TI.ShortInteger());
            Add(FlashFlags      = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
            Add(FlashLength     = new TI.Real());
            Add(DisabledColor   = new TI.Color());

            // i think the 4 byte padding that follows this should be here...
        }
Ejemplo n.º 11
0
		public global_hud_element_struct() : base(13)
		{
			Add(AnchorOffset = new TI.Point2D());
			Add(WidthScale = new TI.Real());
			Add(HeightScale = new TI.Real());
			Add(ScalingFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
			Add(new TI.Pad(2 + 20));
			Add(DefaultColor = new TI.Color());
			Add(FlashingColor = new TI.Color());
			Add(FlashPeriod = new TI.Real());
			Add(FlashDelay = new TI.Real());
			Add(NumberOfFlashes = new TI.ShortInteger());
			Add(FlashFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
			Add(FlashLength = new TI.Real());
			Add(DisabledColor = new TI.Color());

			// i think the 4 byte padding that follows this should be here...
		}
Ejemplo n.º 12
0
		public global_hud_meter_struct() : base(20)
		{
			Add(AnchorOffset = new TI.Point2D());
			Add(WidthScale = new TI.Real());
			Add(HeightScale = new TI.Real());
			Add(ScalingFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
			Add(new TI.Pad(2 + 20));
			Add(Bitmap = new TI.TagReference(this, TagGroups.bitm));
			Add(ColorAtMeterMin = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
			Add(ColorAtMeterMax = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
			Add(FlashColor = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
			Add(EmptyColor = new TI.Color());
			Add(Flags = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
			Add(MinMeterValue = new TI.ByteInteger());
			Add(SequenceIndex = new TI.ShortInteger());
			Add(AlphaMul = new TI.ByteInteger());
			Add(AlphaBias = new TI.ByteInteger());
			Add(ValueScale = new TI.ShortInteger());
			Add(Opacity = new TI.Real());
			Add(Translucency = new TI.Real());
			Add(DisabledColor = new TI.Color());
			Add(new TI.Pad(16));
		}
Ejemplo n.º 13
0
 public global_hud_meter_struct() : base(20)
 {
     Add(AnchorOffset = new TI.Point2D());
     Add(WidthScale   = new TI.Real());
     Add(HeightScale  = new TI.Real());
     Add(ScalingFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
     Add(new TI.Pad(2 + 20));
     Add(Bitmap          = new TI.TagReference(this, TagGroups.bitm));
     Add(ColorAtMeterMin = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
     Add(ColorAtMeterMax = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
     Add(FlashColor      = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
     Add(EmptyColor      = new TI.Color());
     Add(Flags           = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
     Add(MinMeterValue   = new TI.ByteInteger());
     Add(SequenceIndex   = new TI.ShortInteger());
     Add(AlphaMul        = new TI.ByteInteger());
     Add(AlphaBias       = new TI.ByteInteger());
     Add(ValueScale      = new TI.ShortInteger());
     Add(Opacity         = new TI.Real());
     Add(Translucency    = new TI.Real());
     Add(DisabledColor   = new TI.Color());
     Add(new TI.Pad(16));
 }
Ejemplo n.º 14
0
		public hud_globals_group() : base(58)
		{
			Add(Anchor = new TI.Enum());
			Add(new TI.Pad(2 + 32));
			Add(AnchorOffset = new TI.Point2D());
			Add(WidthScale = new TI.Real());
			Add(HeightScale = new TI.Real());
			Add(ScalingFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
			Add(new TI.Pad(2 + 20));
			Add(SinglePlayerFont = new TI.TagReference(this, TagGroups.font));
			Add(MultiPlayerFont = new TI.TagReference(this, TagGroups.font));
			Add(UpTime = new TI.Real());
			Add(FadeTime = new TI.Real());
			Add(IconColor = new TI.RealColor(BlamLib.TagInterface.FieldType.RealArgbColor));
			Add(TextColor = new TI.RealColor(BlamLib.TagInterface.FieldType.RealArgbColor));
			Add(TextSpacing = new TI.Real());
			Add(ItemMessageText = new TI.TagReference(this, TagGroups.ustr));
			Add(IconBitmap = new TI.TagReference(this, TagGroups.bitm));
			Add(AlternateIconText = new TI.TagReference(this, TagGroups.ustr));
			Add(ButtonIcons = new TI.Block<hud_button_icon_block>(this, 18));

			Add(HelpText = new TI.Struct<global_hud_color_struct>(this));
			Add(new TI.Pad(4));

			Add(HudMessages = new TI.TagReference(this, TagGroups.hmt_));
			Add(Objective = new TI.Struct<global_hud_color_struct>(this));
			Add(ObjectiveUptimeTicks = new TI.ShortInteger());
			Add(ObjectiveFadeTicks = new TI.ShortInteger());

			Add(WaypointOffsetTop = new TI.Real());
			Add(WaypointOffsetBottom = new TI.Real());
			Add(WaypointOffsetLeft = new TI.Real());
			Add(WaypointOffsetRight = new TI.Real());
			Add(new TI.Pad(32));
			Add(WaypointArrowBitmap = new TI.TagReference(this, TagGroups.bitm));
			Add(WaypointArrows = new TI.Block<hud_waypoint_arrow_block>(this, 16));

			Add(new TI.Pad(80));

			Add(HudScaleInMultiplayer = new TI.Real());
			Add(new TI.Pad(256));

			Add(DefaultWeaponHud = new TI.TagReference(this, TagGroups.wphi));
			Add(MotionSensorRange = new TI.Real());
			Add(MotionSensorVelocitySensitivity = new TI.Real());
			Add(MotionSensorScale = new TI.Real());
			Add(DefaultChapterTitleBounds = new TI.Rectangle2D());
			Add(new TI.Pad(44));

			Add(HudDamageIndicatorOffsets = new TI.Rectangle2D());
			Add(new TI.Pad(32));
			Add(IndicatorBitmap = new TI.TagReference(this, TagGroups.bitm));
			Add(HudDamageIndicatorSequenceIndex = new TI.ShortInteger());
			Add(HudDamageIndicatorMpSequenceIndex = new TI.ShortInteger());
			Add(HudDamageIndicatorColor = new TI.Color());
			Add(new TI.Pad(16));

			Add(HudTimerWarning = new TI.Struct<global_hud_color_struct>(this));
			Add(new TI.Pad(4));

			Add(HudTimerDone = new TI.Struct<global_hud_color_struct>(this));
			Add(new TI.Pad(4 + 40));

			Add(CarnageReportBitmap = new TI.TagReference(this, TagGroups.bitm));
			Add(LoadingBeginText = new TI.ShortInteger());
			Add(LoadingEndText = new TI.ShortInteger());
			Add(CheckpointBeginText = new TI.ShortInteger());
			Add(CheckpointEndText = new TI.ShortInteger());
			Add(CheckpointSound = new TI.TagReference(this, TagGroups.snd_));
			Add(new TI.Pad(96));
		}
Ejemplo n.º 15
0
			public hud_button_icon_block() : base(7)
			{
				Add(SequenceIndex = new TI.ShortInteger());
				Add(WidthOffset = new TI.ShortInteger());
				Add(OffsetFromReferenceCorner = new TI.Point2D());
				Add(OverrideIconColor = new TI.Color());
				Add(FrameRate = new TI.ByteInteger());
				Add(Flags = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
				Add(TextIndex = new TI.ShortInteger());
			}
Ejemplo n.º 16
0
		public unit_hud_interface_group() : base(55)
		{
			Add(Anchor = new TI.Enum());
			Add(new TI.Pad(2 + 32));

			#region HudBackgroundAnchor
			Add(HudBackground = new TI.Struct<global_hud_interface_element_struct>(this));

			Add(new TI.Pad(4));
			Add(HudBackgroundSequenceIndex = new TI.ShortInteger());
			Add(new TI.Pad(2));
			Add(HudBackgroundMultitexOverlay = new TI.Block<global_hud_multitexture_overlay_definition>(this, 30));
			Add(new TI.Pad(4));
			#endregion

			#region ShieldPanelBackground
			Add(ShieldPanelBackground = new TI.Struct<global_hud_interface_element_struct>(this));

			Add(new TI.Pad(4));
			Add(ShieldPanelBackgroundSequenceIndex = new TI.ShortInteger());
			Add(new TI.Pad(2));
			Add(ShieldPanelBackgroundMultitexOverlay = new TI.Block<global_hud_multitexture_overlay_definition>(this, 30));
			Add(new TI.Pad(4));
			#endregion

			#region ShieldPanelMeter
			Add(ShieldPanelMeter = new TI.Struct<global_hud_meter_struct>(this));

			Add(ShieldPanelMeterOverchargeMinColor = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
			Add(ShieldPanelMeterOverchargeMaxColor = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
			Add(ShieldPanelMeterOverchargeFlashColor = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
			Add(ShieldPanelMeterOverchargeEmptyColor = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
			Add(new TI.Pad(16));
			#endregion

			#region HealthPanelBackground
			Add(HealthPanelBackground = new TI.Struct<global_hud_interface_element_struct>(this));

			Add(new TI.Pad(4));
			Add(HealthPanelBackgroundSequenceIndex = new TI.ShortInteger());
			Add(new TI.Pad(2));
			Add(HealthPanelBackgroundMultitexOverlay = new TI.Block<global_hud_multitexture_overlay_definition>(this, 30));
			Add(new TI.Pad(4));
			#endregion

			#region HealthPanelMeter
			Add(HealthPanelMeter = new TI.Struct<global_hud_meter_struct>(this));

			Add(HealthPanelMeterMediumHealthLeftColor = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
			Add(HealthPanelMeterMaxColorHealthFractionCutoff = new TI.Real());
			Add(HealthPanelMeterMinColorHealthFractionCutoff = new TI.Real());
			Add(new TI.Pad(20));
			#endregion

			#region MotionSensorBackground
			Add(MotionSensorBackground = new TI.Struct<global_hud_interface_element_struct>(this));

			Add(new TI.Pad(4));
			Add(MotionSensorBackgroundSequenceIndex = new TI.ShortInteger());
			Add(new TI.Pad(2));
			Add(MotionSensorBackgroundMultitexOverlay = new TI.Block<global_hud_multitexture_overlay_definition>(this, 30));
			Add(new TI.Pad(4));
			#endregion

			#region MotionSensorForeground
			Add(MotionSensorForeground = new TI.Struct<global_hud_interface_element_struct>(this));

			Add(new TI.Pad(4));
			Add(MotionSensorForegroundSequenceIndex = new TI.ShortInteger());
			Add(new TI.Pad(2));
			Add(MotionSensorForegroundMultitexOverlay = new TI.Block<global_hud_multitexture_overlay_definition>(this, 30));
			Add(new TI.Pad(4 + 32));
			#endregion

			Add(MotionSensorCenterAnchorOffset = new TI.Point2D());
			Add(MotionSensorCenterWidthScale = new TI.Real());
			Add(MotionSensorCenterHeightScale = new TI.Real());
			Add(MotionSensorCenterScalingFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
			Add(new TI.Pad(2 + 20));

			Add(AuxilaryOverlaysAnchor = new TI.Enum());
			Add(new TI.Pad(2 + 32));
			Add(AuxilaryOverlays = new TI.Block<unit_hud_auxilary_overlay_block>(this, 16));
			Add(new TI.Pad(16));

			Add(Sounds = new TI.Block<global_hud_sound_block>(this, 12));

			Add(Meters = new TI.Block<unit_hud_auxilary_panel_block>(this, 16));

			Add(new TI.Pad(356 + 48));
		}
Ejemplo n.º 17
0
		public weapon_hud_interface_group() : base(27)
		{
			Add(ChildHud = new TI.TagReference(this, TagGroups.wphi));
			Add(FlashCutoffFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
			Add(new TI.Pad(2));
			Add(TotalAmmoCutoff = new TI.ShortInteger());
			Add(LoadedAmmoCutoff = new TI.ShortInteger());
			Add(HeatCutoff = new TI.ShortInteger());
			Add(AgeCutoff = new TI.ShortInteger());
			Add(new TI.Pad(32));
			Add(Anchor = new TI.Enum());
			Add(new TI.Pad(2 + 32));

			Add(StaticElements = new TI.Block<weapon_hud_static_block>(this, 16));
			Add(MeterElements = new TI.Block<weapon_hud_meter_block>(this, 16));
			Add(NumberElements = new TI.Block<weapon_hud_number_block>(this, 16));
			Add(Crosshairs = new TI.Block<weapon_hud_crosshair_block>(this, 19));
			Add(OverlayElements = new TI.Block<weapon_hud_overlays_block>(this, 16));
			Add(PostprocessedUsedCrosshairStatesFlags = new TI.Flags());
			Add(new TI.Pad(12)); // g_null_block, so we just pad it
			Add(ScreenEffect = new TI.Block<global_hud_screen_effect_definition>(this, 1));
			Add(new TI.Pad(132));

			Add(SequenceIndex = new TI.ShortInteger());
			Add(WidthOffset = new TI.ShortInteger());
			Add(OffsetFromReferenceCorner = new TI.Point2D());
			Add(OverrideIconColor = new TI.Color());
			Add(FrameRate = new TI.ByteInteger());
			Add(Flags = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
			Add(TextIndex = new TI.ShortInteger());
			Add(new TI.Pad(48));
		}
Ejemplo n.º 18
0
		public grenade_hud_interface_group() : base(34)
		{
			Add(Anchor = new TI.Enum());
			Add(new TI.Pad(2 + 32));

			#region HudBackground
			Add(HudBackground = new TI.Struct<global_hud_interface_element_struct>(this));

			Add(new TI.Pad(4));
			Add(HudBackgroundSequenceIndex = new TI.ShortInteger());
			Add(new TI.Pad(2));
			Add(HudBackgroundMultitexOverlay = new TI.Block<global_hud_multitexture_overlay_definition>(this, 30));
			Add(new TI.Pad(4));
			#endregion

			#region TotalGrenadesBackground
			Add(TotalGrenadesBackground = new TI.Struct<global_hud_interface_element_struct>(this));

			Add(new TI.Pad(4));
			Add(TotalGrenadesBackgroundSequenceIndex = new TI.ShortInteger());
			Add(new TI.Pad(2));
			Add(TotalGrenadesBackgroundMultitexOverlay = new TI.Block<global_hud_multitexture_overlay_definition>(this, 30));
			Add(new TI.Pad(4));
			#endregion

			#region TotalGrenadesNumbers
			Add(TotalGrenadesNumbers = new TI.Struct<global_hud_element_struct>(this));

			Add(new TI.Pad(4));
			Add(TotalGrenadesNumbersMaxNumberOfDigits = new TI.ByteInteger());
			Add(TotalGrenadesNumbersFlags = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
			Add(TotalGrenadesNumbersNumberOfFractionalDigits = new TI.ByteInteger());
			Add(new TI.Pad(1 + 12));
			Add(TotalGrenadesNumbersFlashCutoff = new TI.ShortInteger());
			Add(new TI.Pad(2));
			#endregion

			Add(OverlayBitmap = new TI.TagReference(this, TagGroups.bitm));
			Add(Overlays = new TI.Block<grenade_hud_overlay_block>(this, 16));
			Add(WarningSounds = new TI.Block<global_hud_sound_block>(this, 12));
			Add(new TI.Pad(68)); // looks like an unused global_hud_element_struct

			Add(SequenceIndex = new TI.ShortInteger());
			Add(WidthOffset = new TI.ShortInteger());
			Add(OffsetFromReferenceCorner = new TI.Point2D());
			Add(OverrideIconColor = new TI.Color());
			Add(FrameRate = new TI.ByteInteger());
			Add(Flags = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
			Add(TextIndex = new TI.ShortInteger());
			Add(new TI.Pad(48));
		}
Ejemplo n.º 19
0
        public hud_globals_group() : base(58)
        {
            Add(Anchor = new TI.Enum());
            Add(new TI.Pad(2 + 32));
            Add(AnchorOffset = new TI.Point2D());
            Add(WidthScale   = new TI.Real());
            Add(HeightScale  = new TI.Real());
            Add(ScalingFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
            Add(new TI.Pad(2 + 20));
            Add(SinglePlayerFont  = new TI.TagReference(this, TagGroups.font));
            Add(MultiPlayerFont   = new TI.TagReference(this, TagGroups.font));
            Add(UpTime            = new TI.Real());
            Add(FadeTime          = new TI.Real());
            Add(IconColor         = new TI.RealColor(BlamLib.TagInterface.FieldType.RealArgbColor));
            Add(TextColor         = new TI.RealColor(BlamLib.TagInterface.FieldType.RealArgbColor));
            Add(TextSpacing       = new TI.Real());
            Add(ItemMessageText   = new TI.TagReference(this, TagGroups.ustr));
            Add(IconBitmap        = new TI.TagReference(this, TagGroups.bitm));
            Add(AlternateIconText = new TI.TagReference(this, TagGroups.ustr));
            Add(ButtonIcons       = new TI.Block <hud_button_icon_block>(this, 18));

            Add(HelpText = new TI.Struct <global_hud_color_struct>(this));
            Add(new TI.Pad(4));

            Add(HudMessages          = new TI.TagReference(this, TagGroups.hmt_));
            Add(Objective            = new TI.Struct <global_hud_color_struct>(this));
            Add(ObjectiveUptimeTicks = new TI.ShortInteger());
            Add(ObjectiveFadeTicks   = new TI.ShortInteger());

            Add(WaypointOffsetTop    = new TI.Real());
            Add(WaypointOffsetBottom = new TI.Real());
            Add(WaypointOffsetLeft   = new TI.Real());
            Add(WaypointOffsetRight  = new TI.Real());
            Add(new TI.Pad(32));
            Add(WaypointArrowBitmap = new TI.TagReference(this, TagGroups.bitm));
            Add(WaypointArrows      = new TI.Block <hud_waypoint_arrow_block>(this, 16));

            Add(new TI.Pad(80));

            Add(HudScaleInMultiplayer = new TI.Real());
            Add(new TI.Pad(256));

            Add(DefaultWeaponHud  = new TI.TagReference(this, TagGroups.wphi));
            Add(MotionSensorRange = new TI.Real());
            Add(MotionSensorVelocitySensitivity = new TI.Real());
            Add(MotionSensorScale         = new TI.Real());
            Add(DefaultChapterTitleBounds = new TI.Rectangle2D());
            Add(new TI.Pad(44));

            Add(HudDamageIndicatorOffsets = new TI.Rectangle2D());
            Add(new TI.Pad(32));
            Add(IndicatorBitmap = new TI.TagReference(this, TagGroups.bitm));
            Add(HudDamageIndicatorSequenceIndex   = new TI.ShortInteger());
            Add(HudDamageIndicatorMpSequenceIndex = new TI.ShortInteger());
            Add(HudDamageIndicatorColor           = new TI.Color());
            Add(new TI.Pad(16));

            Add(HudTimerWarning = new TI.Struct <global_hud_color_struct>(this));
            Add(new TI.Pad(4));

            Add(HudTimerDone = new TI.Struct <global_hud_color_struct>(this));
            Add(new TI.Pad(4 + 40));

            Add(CarnageReportBitmap = new TI.TagReference(this, TagGroups.bitm));
            Add(LoadingBeginText    = new TI.ShortInteger());
            Add(LoadingEndText      = new TI.ShortInteger());
            Add(CheckpointBeginText = new TI.ShortInteger());
            Add(CheckpointEndText   = new TI.ShortInteger());
            Add(CheckpointSound     = new TI.TagReference(this, TagGroups.snd_));
            Add(new TI.Pad(96));
        }
Ejemplo n.º 20
0
			public first_person_interface_block() : base(9)
			{
				Add(FirstPersionHands = new TI.TagReference(this, TagGroups.mod2));
				Add(BaseBitmap = new TI.TagReference(this, TagGroups.bitm));
				Add(ShieldMeter = new TI.TagReference(this, TagGroups.metr));
				Add(ShieldMeterOrigin = new TI.Point2D());
				Add(BodyMeter = new TI.TagReference(this, TagGroups.metr));
				Add(BodyMeterOrigin = new TI.Point2D());
				Add(NightVisionTurnOnEffect = new TI.TagReference(this, TagGroups.effe));
				Add(NightVisionTurnOffEffect = new TI.TagReference(this, TagGroups.effe));
				Add(new TI.Pad(88));
			}
Ejemplo n.º 21
0
        public unit_hud_interface_group() : base(55)
        {
            Add(Anchor = new TI.Enum());
            Add(new TI.Pad(2 + 32));

            #region HudBackgroundAnchor
            Add(HudBackground = new TI.Struct <global_hud_interface_element_struct>(this));

            Add(new TI.Pad(4));
            Add(HudBackgroundSequenceIndex = new TI.ShortInteger());
            Add(new TI.Pad(2));
            Add(HudBackgroundMultitexOverlay = new TI.Block <global_hud_multitexture_overlay_definition>(this, 30));
            Add(new TI.Pad(4));
            #endregion

            #region ShieldPanelBackground
            Add(ShieldPanelBackground = new TI.Struct <global_hud_interface_element_struct>(this));

            Add(new TI.Pad(4));
            Add(ShieldPanelBackgroundSequenceIndex = new TI.ShortInteger());
            Add(new TI.Pad(2));
            Add(ShieldPanelBackgroundMultitexOverlay = new TI.Block <global_hud_multitexture_overlay_definition>(this, 30));
            Add(new TI.Pad(4));
            #endregion

            #region ShieldPanelMeter
            Add(ShieldPanelMeter = new TI.Struct <global_hud_meter_struct>(this));

            Add(ShieldPanelMeterOverchargeMinColor   = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
            Add(ShieldPanelMeterOverchargeMaxColor   = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
            Add(ShieldPanelMeterOverchargeFlashColor = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
            Add(ShieldPanelMeterOverchargeEmptyColor = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
            Add(new TI.Pad(16));
            #endregion

            #region HealthPanelBackground
            Add(HealthPanelBackground = new TI.Struct <global_hud_interface_element_struct>(this));

            Add(new TI.Pad(4));
            Add(HealthPanelBackgroundSequenceIndex = new TI.ShortInteger());
            Add(new TI.Pad(2));
            Add(HealthPanelBackgroundMultitexOverlay = new TI.Block <global_hud_multitexture_overlay_definition>(this, 30));
            Add(new TI.Pad(4));
            #endregion

            #region HealthPanelMeter
            Add(HealthPanelMeter = new TI.Struct <global_hud_meter_struct>(this));

            Add(HealthPanelMeterMediumHealthLeftColor        = new TI.Color(BlamLib.TagInterface.FieldType.RgbColor));
            Add(HealthPanelMeterMaxColorHealthFractionCutoff = new TI.Real());
            Add(HealthPanelMeterMinColorHealthFractionCutoff = new TI.Real());
            Add(new TI.Pad(20));
            #endregion

            #region MotionSensorBackground
            Add(MotionSensorBackground = new TI.Struct <global_hud_interface_element_struct>(this));

            Add(new TI.Pad(4));
            Add(MotionSensorBackgroundSequenceIndex = new TI.ShortInteger());
            Add(new TI.Pad(2));
            Add(MotionSensorBackgroundMultitexOverlay = new TI.Block <global_hud_multitexture_overlay_definition>(this, 30));
            Add(new TI.Pad(4));
            #endregion

            #region MotionSensorForeground
            Add(MotionSensorForeground = new TI.Struct <global_hud_interface_element_struct>(this));

            Add(new TI.Pad(4));
            Add(MotionSensorForegroundSequenceIndex = new TI.ShortInteger());
            Add(new TI.Pad(2));
            Add(MotionSensorForegroundMultitexOverlay = new TI.Block <global_hud_multitexture_overlay_definition>(this, 30));
            Add(new TI.Pad(4 + 32));
            #endregion

            Add(MotionSensorCenterAnchorOffset = new TI.Point2D());
            Add(MotionSensorCenterWidthScale   = new TI.Real());
            Add(MotionSensorCenterHeightScale  = new TI.Real());
            Add(MotionSensorCenterScalingFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
            Add(new TI.Pad(2 + 20));

            Add(AuxilaryOverlaysAnchor = new TI.Enum());
            Add(new TI.Pad(2 + 32));
            Add(AuxilaryOverlays = new TI.Block <unit_hud_auxilary_overlay_block>(this, 16));
            Add(new TI.Pad(16));

            Add(Sounds = new TI.Block <global_hud_sound_block>(this, 12));

            Add(Meters = new TI.Block <unit_hud_auxilary_panel_block>(this, 16));

            Add(new TI.Pad(356 + 48));
        }
Ejemplo n.º 22
0
					public model_vertex_compressed_block() : base(8)
					{
						Add(Position = new TI.RealPoint3D());
						Add(Normal = new TI.LongInteger());
						Add(Binormal = new TI.LongInteger());
						Add(Tangent = new TI.LongInteger());
						Add(TextureCoords = new TI.Point2D());
						Add(NodeIndex1 = new TI.ByteInteger());
						Add(NodeIndex2 = new TI.ByteInteger());
						Add(NodeWeight0 = new TI.ShortInteger());
					}
Ejemplo n.º 23
0
		/// <summary>
		/// Copy constructor
		/// </summary>
		/// <param name="value">field to copy</param>
		public Point2D(Point2D value) :					this()					{ this.X = value.X; this.Y = value.Y; }
Ejemplo n.º 24
0
			public bitmap_data_block() : base(23)
			{
				Add(Signature = new TI.Tag());
				Add(Width = new TI.ShortInteger());
				Add(Height = new TI.ShortInteger());
				Add(Depth = new TI.ByteInteger());
				Add(MoreFlags = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
				Add(Type = new TI.Enum());
				Add(Format = new TI.Enum());
				Add(Flags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
				Add(RegistrationPoint = new TI.Point2D());
				Add(MipmapCount = new TI.ShortInteger());
				Add(LowDetailMipmapCount = new TI.ShortInteger());
				Add(PixelsOffset = new TI.LongInteger());
				
				Add(Offsets[0] = new TI.LongInteger());
				Add(Offsets[1] = new TI.LongInteger());
				Add(Offsets[2] = new TI.LongInteger());
				Add(new TI.Skip(4 + 4 + 4));

				Add(Sizes[0] = new TI.LongInteger());
				Add(Sizes[1] = new TI.LongInteger());
				Add(Sizes[2] = new TI.LongInteger());
				Add(new TI.Skip(4 + 4 + 4));

				Add(new TI.Skip(
					4 + 4 + 
					4 // this is special...
					));
				Add(OwnerTagIndex = new TI.LongInteger());
				Add(new TI.Skip(
					20 +
					4
					));
			}
Ejemplo n.º 25
0
			//public TI.ShortInteger LowDetailMipmapCount;
			#endregion

			#region Ctor
			public bitmap_data_block() : base(14)
			{
				Add(Signature = new TI.Tag());
				Add(Width = new TI.ShortInteger());
				Add(Height = new TI.ShortInteger());
				Add(Depth = new TI.ByteInteger());
				Add(MoreFlags = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
				Add(Type = new TI.Enum());
				Add(Format = new TI.Enum());
				Add(Flags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
				Add(RegistrationPoint = new TI.Point2D());
				Add(MipmapCount = new TI.ByteInteger());
				Add(new TI.Skip(1 + //LowDetailMipmapCount?
					1 + // (just interleaved?) resource index
					1)); //
				//Add(LowDetailMipmapCount = new TI.ShortInteger());
				Add(PixelsOffset = new TI.LongInteger());

				Add(new TI.Skip(4 + // pixels size
					4 + 4));

				Add(new TI.LongInteger());

				Add(new TI.Skip(4));
			}