コード例 #1
0
        public particle_group() : base(27)
        {
            Add(Flags   = new TI.Flags());
            Add(Bitmap  = new TI.TagReference(this, TagGroups.bitm));
            Add(Physics = new TI.TagReference(this, TagGroups.pphy));
            Add(Effects = new TI.TagReference(this, TagGroups.foot));
            Add(new TI.Pad(4));
            Add(Lifespan        = new TI.RealBounds());
            Add(FadeInTime      = new TI.Real());
            Add(FadeOutTime     = new TI.Real());
            Add(CollisionEffect = new TI.TagReference(this));         // snd!,effe
            Add(DeathEffect     = new TI.TagReference(this));         // snd!,effe
            Add(MinSize         = new TI.Real());
            Add(new TI.Pad(8));
            Add(RadiusAnim = new TI.RealBounds());
            Add(new TI.Pad(4));
            Add(AnimRate             = new TI.RealBounds());
            Add(ContactDeterioration = new TI.Real());
            Add(FadeStartSize        = new TI.Real());
            Add(FadeEndSize          = new TI.Real());
            Add(new TI.Pad(4));
            Add(FirstSeqIndex   = new TI.ShortInteger());
            Add(InitialSeqCount = new TI.ShortInteger());
            Add(LoopSeqCount    = new TI.ShortInteger());
            Add(FinalSeqCount   = new TI.ShortInteger());
            Add(new TI.Pad(12));
            Add(Orientation = new TI.Enum());
            Add(new TI.Pad(2));

            Add(ShaderMap = new TI.Struct <shader_map_struct>(this));
        }
コード例 #2
0
 public shader_radiosity_properties_struct() : base(4)
 {
     Add(NumericCounterLimit = new TI.ByteInteger());
     Add(Flags               = TI.Flags.Byte);
     Add(FirstMapType        = new TI.Enum());
     Add(FrameBufferFunction = new TI.Struct <shader_frame_buffer_function_struct>(this));
 }
コード例 #3
0
 public shader_animation_struct() : base(4)
 {
     Add(AnimU         = new TI.Struct <shader_animation_function_struct>(this));
     Add(AnimV         = new TI.Struct <shader_animation_function_struct>(this));
     Add(AnimRot       = new TI.Struct <shader_animation_function_struct>(this));
     Add(AnimRotCenter = new TI.RealPoint2D());
 }
コード例 #4
0
        public shader_map_struct() : base(13)
        {
            // Stubb's code has byte swapping for this padding:
            // word
            // word
            // dword
            // dword
            // dword
            // dword
            // dword
            // dword
            // dword
            // word
            // word
            // word
            // word
            Add(new TI.Pad(40));
            Add(ShaderFlags = TI.Flags.Word);
            Add(FramebufferBlendFunction = new TI.Enum());
            Add(FramebufferFadeMode      = new TI.Enum());
            Add(ShaderMapFlags           = TI.Flags.Word);
            Add(new TI.Pad(28));

            Add(MapBitmap = new TI.TagReference(this, TagGroups.bitm));

            Add(MapAnchor = new TI.Enum());
            Add(MapFlags  = TI.Flags.Word);

            Add(MapAnimation = new TI.Struct <shader_animation_struct>(this));

            // 28
            Add(new TI.Pad(4));
            Add(ZSpriteRadiusScale = new TI.Real());
            Add(new TI.Pad(20));
        }
コード例 #5
0
        public contrail_group() : base(19)
        {
            Add(Flags      = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
            Add(ScaleFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));

            Add(PointGenerationRate       = new TI.Real());
            Add(PointVelocity             = new TI.RealBounds());
            Add(PointVelocityConeAngle    = new TI.Real(BlamLib.TagInterface.FieldType.Angle));
            Add(InheritedVelocityFraction = new TI.Real(BlamLib.TagInterface.FieldType.RealFraction));
            Add(RenderType = new TI.Enum());
            Add(new TI.Pad(2));
            Add(TextureRepeatsU    = new TI.Real());
            Add(TextureRepeatsV    = new TI.Real());
            Add(TextureAnimationU  = new TI.Real());
            Add(TextureAnimationV  = new TI.Real());
            Add(AnimationRate      = new TI.Real());
            Add(Bitmap             = new TI.TagReference(this, TagGroups.bitm));
            Add(FirstSequenceIndex = new TI.ShortInteger());
            Add(SequenceCount      = new TI.ShortInteger());
            Add(new TI.Pad(64));

            // Map is 'Secondary Map'
            Add(ShaderMap   = new TI.Struct <shader_map_struct>(this));
            Add(PointStates = new TI.Block <contrail_point_states_block>(this, 16));
        }
コード例 #6
0
ファイル: Shaders.cs プロジェクト: CodeAsm/open-sauce
			public shader_animation_property_block() : base(6)
			{
				Add(Type = new TI.Enum());
				Add(TI.Pad.Word);
				Add(InputName = new TI.StringId());
				Add(RangeName = new TI.StringId());
				Add(TimePeriod = new TI.Real());
				Add(Function = new TI.Struct<mapping_function>(this));
			}
コード例 #7
0
                public weapon_hud_crosshair_item_block() : base(6)
                {
                    Add(Element = new TI.Struct <global_hud_element_struct>(this));

                    Add(new TI.Pad(4));
                    Add(FrameRate     = new TI.ShortInteger());
                    Add(SequenceIndex = new TI.ShortInteger());
                    Add(Flags         = new TI.Flags());
                    Add(new TI.Pad(32));
                }
コード例 #8
0
            public weapon_hud_meter_block() : base(6)
            {
                Add(StateAttachedTo = new TI.Enum());
                Add(new TI.Pad(2));
                Add(CanUseOnMapType = new TI.Enum());
                Add(new TI.Pad(2 + 28));

                Add(Meter = new TI.Struct <global_hud_meter_struct>(this));

                Add(new TI.Pad(40));
            }
コード例 #9
0
            public grenade_hud_overlay_block() : base(7)
            {
                Add(Element = new TI.Struct <global_hud_element_struct>(this));

                Add(new TI.Pad(4));
                Add(FrameRate     = new TI.Real());
                Add(SequenceIndex = new TI.ShortInteger());
                Add(Type          = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
                Add(Flags         = new TI.Flags());
                Add(new TI.Pad(16 + 40));
            }
コード例 #10
0
 public shader_effect_group() : base(8)
 {
     // 1 << 0 - nonlinear or linear
     Add(Flags = TI.Flags.Byte);
     Add(TI.Pad.Byte);
     Add(FrameBufferFunction = new TI.Struct <shader_frame_buffer_function_struct>(this));
     Add(new TI.UnknownPad(32));
     Add(Bitmap = new TI.TagReference(this, TagGroups.bitm)); // pretty sure it's a bitm
     Add(new TI.Enum());                                      // value judges vertex shader permutation
     Add(TI.Pad.Word);
     Add(Animation = new TI.Struct <shader_animation_struct>(this));
 }
コード例 #11
0
        public continuous_damage_effect_group() : base(7)
        {
            Add(DamageEffect = new TI.Struct <damage_effect_struct>(this));

            Add(LowFreq  = new TI.Real(TI.FieldType.RealFraction));
            Add(HighFreq = new TI.Real(TI.FieldType.RealFraction));

            Add(DamageCameraEffect = new TI.Struct <damage_camera_effect_struct>(this));
            Add(new TI.Pad(damage_breaking_effect_struct.kSizeOf));
            Add(DamageData      = new TI.Struct <damage_data_struct>(this));
            Add(DamageModifiers = new TI.Struct <damage_modifiers_struct>(this));
        }
コード例 #12
0
        public shader_transparent_generic_group() : base(6)
        {
            Add(Radiosity = new TI.Struct <shader_radiosity_properties_struct>(this));

            Add(LensFlareSpacing = new TI.Real());
            Add(LensFlare        = new TI.TagReference(this, TagGroups.lens));
            Add(ExtraLayers      = new TI.Block <field_block <TI.TagReference> >(this, 4));
            Add(Maps             = new TI.Block <shader_transparent_generic_map_block>(this, 4));
            Add(Stages           = new TI.Block <shader_transparent_generic_stage_block>(this, 7));

            //ExtraLayers.Definition.Value.ResetReferenceGroupTag(TagGroups.shdr);
        }
コード例 #13
0
            public unit_hud_auxilary_overlay_block() : base(9)
            {
                Add(Element = new TI.Struct <global_hud_interface_element_struct>(this));

                Add(new TI.Pad(4));
                Add(SequenceIndex = new TI.ShortInteger());
                Add(new TI.Pad(2));
                Add(MultitexOverlay = new TI.Block <global_hud_multitexture_overlay_definition>(this, 30));
                Add(new TI.Pad(4));
                Add(Type  = new TI.Enum());
                Add(Flags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
                Add(new TI.Pad(24));
            }
コード例 #14
0
 public shader_transparent_generic_map_block() : base(10)
 {
     Add(Flags = TI.Flags.Word);
     Add(new TI.Pad(2));
     Add(MapUScale   = new TI.Real());
     Add(MapVScale   = new TI.Real());
     Add(MapUOffset  = new TI.Real());
     Add(MapVOffset  = new TI.Real());
     Add(MapRotation = new TI.Real());
     Add(MipmapBias  = TI.Real.Fraction);
     Add(Map         = new TI.TagReference(this, TagGroups.bitm));
     Add(Animation   = new TI.Struct <shader_animation_struct>(this));
 }
コード例 #15
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));
        }
コード例 #16
0
        public cache_file_resource_gestalt_group() : base(41)
        {
            Add(CacheType = new TI.Enum());
            Add(Flags     = TI.Flags.Word);
            /*0x04*/ Add(ResourceTypes          = new TI.Block <resource_type_block>(this, 0));
            /*0x10*/ Add(ResourceStructureTypes = new TI.Block <resource_structure_type_block>(this, 0));
            /*0x1C*/ Add(ResourceLayoutTable    = new TI.Struct <cache_file_resource_layout_table>(this));
            /*0x58*/ Add(TagResources           = new TI.Block <cache_file_resource_gestalt_tag_resource_block>(this, 0));
            /*0x64*/ Add(Block64 = new TI.Block <cache_file_resource_gestalt_64_block>(this, 0)); // general
            /*0x70*/ Add(Block70 = new TI.Block <cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] global
            /*0x7C*/ Add(Block7C = new TI.Block <cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78]? attached?
            /*0x88*/ Add(Block88 = new TI.Block <cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] unattached // same structure as tag block two fields above
            /*0x94*/ Add(Block94 = new TI.Block <cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] dvd_forbidden // ''
            /*0xA0*/ Add(BlockA0 = new TI.Block <cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] dvd_always_streaming // ''
            /*0xAC*/ Add(BlockAC = new TI.Block <cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] bsp zones // '' -
            /*0xB8*/ Add(BlockB8 = new TI.Block <cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] bsp zones // ''
            /*0xC4*/ Add(BlockC4 = new TI.Block <cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] bsp zones // ''
            /*0xD0*/ Add(BlockD0 = new TI.Block <cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] ? (ex. '030la_highway') // ''
            /*0xDC*/ Add(BlockDC = new TI.Block <cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] zone sets // ''
            /*0xE8*/ Add(TI.UnknownPad.BlockHalo3);                                               // tag block [0x?]?
            /*0xF4*/ Add(TI.UnknownPad.BlockHalo3);                                               // tag block [0x?]?
            /*0x100*/ Add(Block100      = new TI.Block <cache_file_resource_gestalt_100_block>(this, 0));
            /*0x10C*/ Add(BspReferences = new TI.Block <field_block <TI.TagReference> >(this, 0));
            /*0x118*/ Add(TI.UnknownPad.BlockHalo3);                   // tag block [0x?]
            /*0x124*/ Add(TI.UnknownPad.BlockHalo3);                   // tag block [0x?]
            /*0x130*/ Add(TI.UnknownPad.BlockHalo3);                   // tag block [0x?]
            /*0x13C*/ Add(ResourceDefinitionData = new TI.Data(this)); // tag data
            /*0x150*/ Add(new TI.UnknownPad(20));                      // unknown [0x14]
            // dword
            // long
            // long
            // long
            // long (related to the UnknownOffset in 'cache_file_resource_gestalt_tag_resource_block', size of the buffer it refers to)
            /*0x164*/ Add(Block164 = new TI.Block <cache_file_resource_gestalt_164_block>(this, 0));
            /*0x170*/ Add(TI.UnknownPad.BlockHalo3);                                         // tag block [0x?]?
            /*0x17C*/ Add(TI.UnknownPad.BlockHalo3);                                         // tag block [0x?]?
            /*0x188*/ Add(TI.UnknownPad.BlockHalo3);                                         // tag block [0x?]?
            /*0x194*/ Add(TI.UnknownPad.BlockHalo3);                                         // tag block [0x?]?
            /*0x1A0*/ Add(TI.UnknownPad.BlockHalo3);                                         // tag block [0x?]?
            /*0x1AC*/ Add(TI.UnknownPad.BlockHalo3);                                         // tag block [0x?]?
            /*0x1B8*/ Add(TI.UnknownPad.BlockHalo3);                                         // tag block [0x?]?
            /*0x1C4*/ Add(TI.UnknownPad.BlockHalo3);                                         // tag block [0x?]?
            /*0x1D0*/ Add(Block1D0 = new TI.Block <field_block <TI.LongInteger> >(this, 0)); // datum index in nature
            /*0x1DC*/ Add(Block1DC = new TI.Block <cache_file_resource_gestalt_1DC_block>(this, 0));
            /*0x1E8*/ Add(Block1E8 = new TI.Block <cache_file_resource_gestalt_1E8_block>(this, 0));
            /*0x1F4*/ Add(Block1F4 = new TI.Block <cache_file_resource_gestalt_1F4_block>(this, 0));
            /*0x200*/ Add(Block200 = new TI.Block <cache_file_resource_gestalt_200_block>(this, 0));
            Add(MapId = Blam.MapId.SkipField);             // id used for mapinfo files

            //BspReferences.Definition.Value.ResetReferenceGroupTag(TagGroups.sbsp);
        }
コード例 #17
0
        public shader_transparent_chicago_extended_group() : base(8)
        {
            Add(Radiosity = new TI.Struct <shader_radiosity_properties_struct>(this));

            Add(LensFlareSpacing = new TI.Real());
            Add(LensFlare        = new TI.TagReference(this, TagGroups.lens));
            Add(ExtraLayers      = new TI.Block <field_block <TI.TagReference> >(this, 4));
            Add(_4StageMaps      = new TI.Block <shader_transparent_chicago_group.shader_transparent_chicago_map_block>(this, 4));
            Add(_2StageMaps      = new TI.Block <shader_transparent_chicago_group.shader_transparent_chicago_map_block>(this, 4));
            Add(ExtraFlags       = new TI.Flags());
            Add(new TI.Pad(8));

            //ExtraLayers.Definition.Value.ResetReferenceGroupTag(TagGroups.shdr);
        }
コード例 #18
0
            public weapon_hud_static_block() : base(10)
            {
                Add(StateAttachedTo = new TI.Enum());
                Add(new TI.Pad(2));
                Add(CanUseOnMapType = new TI.Enum());
                Add(new TI.Pad(2 + 28));

                Add(Element = new TI.Struct <global_hud_interface_element_struct>(this));

                Add(new TI.Pad(4));
                Add(SequenceIndex = new TI.ShortInteger());
                Add(new TI.Pad(2));
                Add(MultitexOverlay = new TI.Block <global_hud_multitexture_overlay_definition>(this, 30));
                Add(new TI.Pad(4 + 40));
            }
コード例 #19
0
            public weapon_hud_number_block() : base(12)
            {
                Add(StateAttachedTo = new TI.Enum());
                Add(new TI.Pad(2));
                Add(CanUseOnMapType = new TI.Enum());
                Add(new TI.Pad(2 + 28));

                Add(Element = new TI.Struct <global_hud_element_struct>(this));

                Add(new TI.Pad(4));
                Add(MaxNumberOfDigits        = new TI.ByteInteger());
                Add(Flags                    = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
                Add(NumberOfFractionalDigits = new TI.ByteInteger());
                Add(new TI.Pad(1 + 12));
                Add(WeaponSpecificFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
                Add(new TI.Pad(2 + 36));
            }
コード例 #20
0
            public unit_hud_auxilary_panel_block() : base(12)
            {
                Add(Type = new TI.Enum());
                Add(new TI.Pad(2 + 16));

                Add(Background = new TI.Struct <global_hud_interface_element_struct>(this));
                Add(new TI.Pad(4));
                Add(BackgroundSequenceIndex = new TI.ShortInteger());
                Add(new TI.Pad(2));
                Add(BackgroundMultitexOverlay = new TI.Block <global_hud_multitexture_overlay_definition>(this, 30));
                Add(new TI.Pad(4));

                Add(Meter = new TI.Struct <global_hud_meter_struct>(this));
                Add(MeterMinFractionCutoff = new TI.Real());
                Add(Flags = new TI.Flags());
                Add(new TI.Pad(24 + 64));
            }
コード例 #21
0
            public structure_bsp_instanced_geometry_definition_block()
            {
                Add(Unknown00            = new TI.LongInteger());
                Add(BoundingSphereCenter = new TI.RealPoint3D());
                Add(BoundingSphereRadis  = new TI.Real());
                Add(CollisionInfo        = new TI.Struct <global_collision_bsp_struct>(this));

                // collision_bsp_physics_struct
                Add(/*bsps = */ new TI.Block <global_collision_bsp_block>(this, 0));
                Add(new TI.Block <mopp_code_block>(this, 0));
                Add(TI.UnknownPad.BlockHalo3);                 // [0x?] (physics related)

                Add(Unknown98 = new TI.Block <block_98>(this, 0));
                Add(UnknownA4 = new TI.Block <block_A4>(this, 0));
                Add(UnknownB0 = new TI.ShortInteger());
                Add(UnknownB2 = new TI.ShortInteger());
                Add(UnknownB4 = new TI.Real());
            }
コード例 #22
0
 public sound_group() : base(15)
 {
     Add(Flags             = new TI.Flags());
     Add(Class             = new TI.Enum(TI.FieldType.ByteEnum));
     Add(SampleRate        = new TI.Enum(TI.FieldType.ByteEnum));
     Add(OutputEffect      = new TI.Enum(TI.FieldType.ByteEnum));
     Add(ImportType        = new TI.Enum(TI.FieldType.ByteEnum));
     /*0x08*/ Add(Playback = new TI.Struct <sound_playback_parameters_struct>(this));
     /*0x40*/ Add(Scale    = new TI.Struct <sound_scale_modifiers_struct>(this));
     Add(new TI.Pad(2));
     Add(Encoding           = new TI.Enum(TI.FieldType.ByteEnum));
     Add(Compression        = new TI.Enum(TI.FieldType.ByteEnum));
     /*0x58*/ Add(Promotion = new TI.Struct <sound_promotion_parameters_struct>(this));
     Add(new TI.Pad(12));
     /*0x88*/ Add(PitchRanges        = new TI.Block <sound_pitch_range_block>(this, 9));
     /*0x94*/ Add(PlatformParameters = new TI.Block <sound_platform_sound_playback_block>(this, 1));
     /*0xA0*/ Add(ExtraInfo          = new TI.Block <sound_extra_info_block>(this, 1));
 }
コード例 #23
0
            public shader_transparent_chicago_map_block() : base(17)
            {
                Add(Flags = TI.Flags.Word);
                Add(new TI.Pad(2 + 40));
                Add(ColorFunction = new TI.Enum());
                Add(AlphaFunction = new TI.Enum());
                Add(new TI.Pad(36));
                Add(MapUScale   = new TI.Real());
                Add(MapVScale   = new TI.Real());
                Add(MapUOffset  = new TI.Real());
                Add(MapVOffset  = new TI.Real());
                Add(MapRotation = new TI.Real());
                Add(MipmapBias  = TI.Real.Fraction);
                Add(Map         = new TI.TagReference(this, TagGroups.bitm));
                Add(new TI.Pad(40));

                Add(Animation = new TI.Struct <shader_animation_struct>(this));
            }
コード例 #24
0
        public damage_effect_group() : base(31)
        {
            Add(DamageEffect = new TI.Struct <damage_effect_struct>(this));

            Add(ScreenFlashType     = new TI.Enum());
            Add(ScreenFlashPriority = new TI.Enum());
            Add(new TI.Pad(12));
            Add(ScreenFlashDuration     = new TI.Real());
            Add(ScreenFlashFadeFunction = new TI.Enum());
            Add(new TI.Pad(2 + 8));
            Add(ScreenFlashMaxIntensity = new TI.Real(TI.FieldType.RealFraction));
            Add(new TI.Pad(4));
            Add(ScreenFlashColor = new TI.RealColor(BlamLib.TagInterface.FieldType.RealArgbColor));

            Add(RumbleLowFreq         = new TI.Real(BlamLib.TagInterface.FieldType.RealFraction));
            Add(RumbleLowDuration     = new TI.Real());
            Add(RumbleLowFadeFunction = new TI.Enum());
            Add(new TI.Pad(2 + 8));

            Add(RumbleHighFreq         = new TI.Real(BlamLib.TagInterface.FieldType.RealFraction));
            Add(RumbleHighDuration     = new TI.Real());
            Add(RumbleHighFadeFunction = new TI.Enum());
            Add(new TI.Pad(2 + 8 + 4 + 16));

            Add(CameraImpulseDuration     = new TI.Real());
            Add(CameraImpulseFadeFunction = new TI.Enum());
            Add(new TI.Pad(2));
            Add(CameraImpulseRotation = new TI.Real(BlamLib.TagInterface.FieldType.Angle));
            Add(CameraImpulsePushback = new TI.Real());
            Add(CameraImpulseJitter   = new TI.RealBounds());
            Add(new TI.Pad(4 + 4));

            Add(PermCameraImpulseAngle = new TI.Real(BlamLib.TagInterface.FieldType.Angle));

            Add(DamageCameraEffect = new TI.Struct <damage_camera_effect_struct>(this));

            Add(Sound = new TI.TagReference(this, TagGroups.snd_));

            Add(DamageBreakingEffect = new TI.Struct <damage_breaking_effect_struct>(this));
            Add(DamageData           = new TI.Struct <damage_data_struct>(this));
            Add(DamageModifiers      = new TI.Struct <damage_modifiers_struct>(this));
        }
コード例 #25
0
        public shader_model_group() : base(36)
        {
            Add(Flags = TI.Flags.Word);
            Add(new TI.Pad(2 + 12));
            Add(Translucency = TI.Real.Fraction);
            Add(new TI.Pad(16));
            Add(ChangeColorSource = new TI.Enum());
            Add(new TI.Pad(2 + 28));

            Add(SelfIlluminationFlags = TI.Flags.Word);
            Add(new TI.Pad(2));
            Add(ColorSource              = new TI.Enum());
            Add(AnimationFunction        = new TI.Enum());
            Add(AnimationPeriod          = new TI.Real());
            Add(AnimationColorLowerBound = new TI.RealColor());
            Add(AnimationColorUpperBound = new TI.RealColor());
            Add(new TI.Pad(12));

            Add(MapUScale = new TI.Real());
            Add(MapVScale = new TI.Real());
            Add(BaseMap   = new TI.TagReference(this, TagGroups.bitm));
            Add(new TI.Pad(8));
            Add(MultipurposeMap = new TI.TagReference(this, TagGroups.bitm));
            Add(new TI.Pad(8));
            Add(DetailFunction  = new TI.Enum());
            Add(DetailMask      = new TI.Enum());
            Add(DetailMapScale  = new TI.Real());
            Add(DetailMap       = new TI.TagReference(this, TagGroups.bitm));
            Add(DetailMapVScale = new TI.Real());
            Add(ShaderExtension = new TI.Block <shader_model_extension_block>(this, 1));
            Add(Animation       = new TI.Struct <shader_animation_struct>(this));
            Add(new TI.Pad(8));

            Add(ReflectionFalloffDist   = new TI.Real());
            Add(ReflectionCutoffDist    = new TI.Real());
            Add(PerpendicularBrightness = TI.Real.Fraction);
            Add(PerpendicularTintColor  = new TI.RealColor());
            Add(ParallelBrightness      = TI.Real.Fraction);
            Add(ParallelTintColor       = new TI.RealColor());
            Add(ReflectionCubemap       = new TI.TagReference(this, TagGroups.bitm));
            Add(new TI.Pad(16 + 4 + 16 + 32));
        }
コード例 #26
0
ファイル: Shaders.cs プロジェクト: CodeAsm/open-sauce
		public shader_map_struct() : base(13)
		{
			Add(new TI.Pad(40));
			Add(ShaderFlags = TI.Flags.Word);
			Add(FramebufferBlendFunction = new TI.Enum());
			Add(FramebufferFadeMode = new TI.Enum());
			Add(ShaderMapFlags = TI.Flags.Word);
			Add(new TI.Pad(28));

			Add(MapBitmap = new TI.TagReference(this, TagGroups.bitm));
			
			Add(MapAnchor = new TI.Enum());
			Add(MapFlags = TI.Flags.Word);
			
			Add(MapAnimation = new TI.Struct<shader_animation_struct>(this));
			
			// 28
			Add(new TI.Pad(4));
			Add(ZSpriteRadiusScale = new TI.Real());
			Add(new TI.Pad(20));
		}
コード例 #27
0
 public cache_file_resource_layout_table_group() : base(1)
 {
     Add(ResourceLayoutTable = new TI.Struct <cache_file_resource_layout_table>(this));
 }
コード例 #28
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));
        }
コード例 #29
0
        public shader_environment_group() : base(54)
        {
            Add(Flags            = TI.Flags.Word);
            Add(Type             = new TI.Enum());
            Add(LensFlareSpacing = new TI.Real());
            Add(LensFlare        = new TI.TagReference(this, TagGroups.lens));
            Add(ShaderExtension  = new TI.Block <shader_environment_extension_block>(this, 1));
            Add(new TI.Pad(32));

            Add(DiffuseFlags = TI.Flags.Word);
            Add(new TI.Pad(2 + 24));
            Add(BaseMap = new TI.TagReference(this, TagGroups.bitm));
            Add(new TI.Pad(24));
            Add(DetailMapFunctions = new TI.Enum());
            Add(new TI.Pad(2));
            Add(PrimaryDetailMapScale   = new TI.Real());
            Add(PrimaryDetailMap        = new TI.TagReference(this, TagGroups.bitm));
            Add(SecondaryDetailMapScale = new TI.Real());
            Add(SecondaryDetailMap      = new TI.TagReference(this, TagGroups.bitm));
            Add(new TI.Pad(24));
            Add(MicroDetailMapFunction = new TI.Enum());
            Add(new TI.Pad(2));
            Add(MicroDetailMapScale = new TI.Real());
            Add(MicroDetailMap      = new TI.TagReference(this, TagGroups.bitm));
            Add(MaterialColor       = new TI.RealColor());

            Add(new TI.Pad(12));
            Add(BumpMapScale = new TI.Real());
            Add(BumpMap      = new TI.TagReference(this, TagGroups.bitm));
            Add(new TI.Pad(8 + 16));

            Add(UAnimation = new TI.Struct <shader_texture_animation_function_struct>(this));
            Add(VAnimation = new TI.Struct <shader_texture_animation_function_struct>(this));
            Add(new TI.Pad(24));

            Add(SelfIlluminationFlags = TI.Flags.Word);
            Add(new TI.Pad(2 + 24));
            Add(PrimaryAnimation   = new TI.Struct <shader_color_function_struct>(this));
            Add(SecondaryAnimation = new TI.Struct <shader_color_function_struct>(this));
            Add(PlasmaAnimation    = new TI.Struct <shader_color_function_struct>(this));
            Add(MapScale           = new TI.Real());
            Add(Map = new TI.TagReference(this, TagGroups.bitm));
            Add(new TI.Pad(24));

            Add(SpecularFlags = TI.Flags.Word);
            Add(new TI.Pad(2 + 16));
            Add(Brightness = TI.Real.Fraction);
            Add(new TI.Pad(20));
            Add(PerpendicularColor = new TI.RealColor());
            Add(ParallelColor      = new TI.RealColor());
            Add(new TI.Pad(16));

            Add(ReflectionFlags         = TI.Flags.Word);
            Add(ReflectionType          = new TI.Enum());
            Add(LightmapBrightnessScale = TI.Real.Fraction);
            Add(new TI.Pad(28));
            Add(PerpendicularBrightness = TI.Real.Fraction);
            Add(ParallelBrightness      = TI.Real.Fraction);
            Add(new TI.Pad(16 + 8 + 16));
            Add(ReflectionCubeMap = new TI.TagReference(this, TagGroups.bitm));
            Add(new TI.Pad(16));
        }
コード例 #30
0
ファイル: Sound.cs プロジェクト: CodeAsm/open-sauce
		public sound_gestalt_promotions_block() : base(1)
		{
			Add(Promotion = new TI.Struct<sound_promotion_parameters_struct>(this));
		}
コード例 #31
0
ファイル: Functions.cs プロジェクト: CodeAsm/open-sauce
		public color_function_struct() : base(1)
		{
			Add(Function = new TI.Struct<mapping_function>(this));
		}
コード例 #32
0
ファイル: Hud.cs プロジェクト: CodeAsm/open-sauce
				public weapon_hud_crosshair_item_block() : base(6)
				{
					Add(Element = new TI.Struct<global_hud_element_struct>(this));

					Add(new TI.Pad(4));
					Add(FrameRate = new TI.ShortInteger());
					Add(SequenceIndex = new TI.ShortInteger());
					Add(Flags = new TI.Flags());
					Add(new TI.Pad(32));
				}
コード例 #33
0
ファイル: Sound.cs プロジェクト: CodeAsm/open-sauce
		public sound_gestalt_scale_block() : base(1)
		{
			Add(Scale = new TI.Struct<sound_scale_modifiers_struct>(this));
		}
コード例 #34
0
 public model_animation_graph_group()
 {
     Add(Resources = new TI.Struct <animation_graph_resources_struct>(this));
 }
コード例 #35
0
ファイル: Hud.cs プロジェクト: CodeAsm/open-sauce
			public weapon_hud_number_block() : base(12)
			{
				Add(StateAttachedTo = new TI.Enum());
				Add(new TI.Pad(2));
				Add(CanUseOnMapType = new TI.Enum());
				Add(new TI.Pad(2 + 28));

				Add(Element = new TI.Struct<global_hud_element_struct>(this));

				Add(new TI.Pad(4));
				Add(MaxNumberOfDigits = new TI.ByteInteger());
				Add(Flags = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
				Add(NumberOfFractionalDigits = new TI.ByteInteger());
				Add(new TI.Pad(1 + 12));
				Add(WeaponSpecificFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
				Add(new TI.Pad(2 + 36));
			}
コード例 #36
0
ファイル: Hud.cs プロジェクト: CodeAsm/open-sauce
			public weapon_hud_static_block() : base(10)
			{
				Add(StateAttachedTo = new TI.Enum());
				Add(new TI.Pad(2));
				Add(CanUseOnMapType = new TI.Enum());
				Add(new TI.Pad(2 + 28));

				Add(Element = new TI.Struct<global_hud_interface_element_struct>(this));

				Add(new TI.Pad(4));
				Add(SequenceIndex = new TI.ShortInteger());
				Add(new TI.Pad(2));
				Add(MultitexOverlay = new TI.Block<global_hud_multitexture_overlay_definition>(this, 30));
				Add(new TI.Pad(4 + 40));
			}
コード例 #37
0
ファイル: Hud.cs プロジェクト: CodeAsm/open-sauce
		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));
		}
コード例 #38
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));
        }
コード例 #39
0
ファイル: Resources.cs プロジェクト: CodeAsm/open-sauce
		public cache_file_resource_layout_table_group() : base(1)
		{
			Add(ResourceLayoutTable = new TI.Struct<cache_file_resource_layout_table>(this));
		}
コード例 #40
0
ファイル: Hud.cs プロジェクト: CodeAsm/open-sauce
				public weapon_hud_overlay_block() : base(8)
				{
					Add(Element = new TI.Struct<global_hud_element_struct>(this));

					Add(new TI.Pad(4));
					Add(FrameRate = new TI.ShortInteger());
					Add(new TI.Pad(2));
					Add(SequenceIndex = new TI.ShortInteger());
					Add(Type = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
					Add(Flags = new TI.Flags());
					Add(new TI.Pad(16 + 40));
				}
コード例 #41
0
ファイル: Sound.cs プロジェクト: CodeAsm/open-sauce
		public sound_gestalt_playback_block() : base(1)
		{
			Add(Playback = new TI.Struct<sound_playback_parameters_struct>(this));
		}
コード例 #42
0
ファイル: Scenario.cs プロジェクト: CodeAsm/open-sauce
		public scenario_sound_scenery_block() : base(4)
		{
			Add(Type = new TI.BlockIndex()); // 1 scenario_sound_scenery_palette_block
			Add(Name = new TI.BlockIndex()); // 1 scenario_object_names_block
			Add(ObjectData = new TI.Struct<scenario_object_datum_struct>(this));
			Add(/*sound_scenery = */ new TI.Struct<sound_scenery_datum_struct>(this));
		}
コード例 #43
0
ファイル: Sound.cs プロジェクト: CodeAsm/open-sauce
		public sound_gestalt_custom_playback_block() : base(1)
		{
			Add(PlaybackDefinition = new TI.Struct<simple_platform_sound_playback_struct>(this));
		}
コード例 #44
0
ファイル: Scenario.cs プロジェクト: CodeAsm/open-sauce
		public scenario_light_block() : base(5)
		{
			Add(Type = new TI.BlockIndex()); // 1 scenario_light_palette_block
			Add(Name = new TI.BlockIndex()); // 1 scenario_object_names_block
			Add(ObjectData = new TI.Struct<scenario_object_datum_struct>(this));
			Add(DeviceData = new TI.Struct<scenario_device_struct>(this));
			Add(/*Light Data = */ new TI.Struct<scenario_light_struct>(this));
		}
コード例 #45
0
ファイル: Sound.cs プロジェクト: CodeAsm/open-sauce
		public sound_gestalt_extra_info_block() : base(2)
		{
			Add(EncodedPermutationSection = new TI.Block<sound_encoded_dialogue_section_block>(this, 1));
			Add(GeometryBlockInfo = new TI.Struct<geometry_block_info_struct>(this));
		}
コード例 #46
0
ファイル: Scenario.cs プロジェクト: CodeAsm/open-sauce
		public scenario_equipment_block() : base(4)
		{
			Add(Type = new TI.BlockIndex()); // 1 scenario_equipment_palette_block
			Add(Name = new TI.BlockIndex()); // 1 scenario_object_names_block
			Add(ObjectData = new TI.Struct<scenario_object_datum_struct>(this));
			Add(/*Equipment Data = */ new TI.Struct<scenario_equipment_datum_struct>(this));
		}
コード例 #47
0
ファイル: Hud.cs プロジェクト: CodeAsm/open-sauce
			public unit_hud_auxilary_overlay_block() : base(9)
			{
				Add(Element = new TI.Struct<global_hud_interface_element_struct>(this));

				Add(new TI.Pad(4));
				Add(SequenceIndex = new TI.ShortInteger());
				Add(new TI.Pad(2));
				Add(MultitexOverlay = new TI.Block<global_hud_multitexture_overlay_definition>(this, 30));
				Add(new TI.Pad(4));
				Add(Type = new TI.Enum());
				Add(Flags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
				Add(new TI.Pad(24));
			}
コード例 #48
0
 public decorator_cache_block_block() : base(3)
 {
     Add(GeometryBlockInfo = new TI.Struct <geometry_block_info_struct>(this));
     Add(CacheBlockData    = new TI.Block <decorator_cache_block_data_block>(this, 1));
     Add(new TI.Pad(4 + 4));
 }
コード例 #49
0
ファイル: Bsp.cs プロジェクト: CodeAsm/open-sauce
			public structure_bsp_instanced_geometry_definition_block()
			{
				Add(Unknown00 = new TI.LongInteger());
				Add(BoundingSphereCenter = new TI.RealPoint3D());
				Add(BoundingSphereRadis = new TI.Real());
				Add(CollisionInfo = new TI.Struct<global_collision_bsp_struct>(this));

				// collision_bsp_physics_struct
				Add(/*bsps = */ new TI.Block<global_collision_bsp_block>(this, 0));
				Add(new TI.Block<mopp_code_block>(this, 0));
				Add(TI.UnknownPad.BlockHalo3); // [0x?] (physics related)

				Add(Unknown98 = new TI.Block<block_98>(this, 0));
				Add(UnknownA4 = new TI.Block<block_A4>(this, 0));
				Add(UnknownB0 = new TI.ShortInteger());
				Add(UnknownB2 = new TI.ShortInteger());
				Add(UnknownB4 = new TI.Real());
			}
コード例 #50
0
ファイル: Hud.cs プロジェクト: CodeAsm/open-sauce
			public unit_hud_auxilary_panel_block() : base(12)
			{
				Add(Type = new TI.Enum());
				Add(new TI.Pad(2 + 16));

				Add(Background = new TI.Struct<global_hud_interface_element_struct>(this));
				Add(new TI.Pad(4));
				Add(BackgroundSequenceIndex = new TI.ShortInteger());
				Add(new TI.Pad(2));
				Add(BackgroundMultitexOverlay = new TI.Block<global_hud_multitexture_overlay_definition>(this, 30));
				Add(new TI.Pad(4));

				Add(Meter = new TI.Struct<global_hud_meter_struct>(this));
				Add(MeterMinFractionCutoff = new TI.Real());
				Add(Flags = new TI.Flags());
				Add(new TI.Pad(24 + 64));
			}
コード例 #51
0
ファイル: Scenario.cs プロジェクト: CodeAsm/open-sauce
		public scenario_weapon_block() : base(5)
		{
			Add(Type = new TI.BlockIndex()); // 1 scenario_weapon_palette_block
			Add(Name = new TI.BlockIndex()); // 1 scenario_object_names_block
			Add(ObjectData = new TI.Struct<scenario_object_datum_struct>(this));
			Add(PermutationData = new TI.Struct<scenario_object_permutation_struct>(this));
			Add(/*Weapon Data = */ new TI.Struct<scenario_weapon_datum_struct>(this));
		}
コード例 #52
0
ファイル: Hud.cs プロジェクト: CodeAsm/open-sauce
		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));
		}
コード例 #53
0
ファイル: Scenario.cs プロジェクト: CodeAsm/open-sauce
		public scenario_vehicle_block() : base(5)
		{
			Add(Type = new TI.BlockIndex()); // 1 scenario_vehicle_palette_block
			Add(Name = new TI.BlockIndex()); // 1 scenario_object_names_block
			Add(ObjectData = new TI.Struct<scenario_object_datum_struct>(this));
			Add(PermutationData = new TI.Struct<scenario_object_permutation_struct>(this));
			Add(UnitData = new TI.Struct<scenario_unit_struct>(this));
		}
コード例 #54
0
ファイル: Hud.cs プロジェクト: CodeAsm/open-sauce
		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));
		}
コード例 #55
0
ファイル: Sound.cs プロジェクト: CodeAsm/open-sauce
		public sound_platform_sound_playback_block() : base(2)
		{
			Add(PlaybackDefinition = new TI.Struct<simple_platform_sound_playback_struct>(this));
			Add(/* = */ new TI.Block<TI.g_null_block>(this, 0));
		}
コード例 #56
0
ファイル: Sound.cs プロジェクト: CodeAsm/open-sauce
		public sound_extra_info_block() : base(3)
		{
			Add(LanguagePermutationInfo = new TI.Block<sound_definition_language_permutation_info_block>(this, 576));
			Add(EncodedPermutationSection = new TI.Block<sound_encoded_dialogue_section_block>(this, 1));
			Add(GeometryBlockInfo = new TI.Struct<geometry_block_info_struct>(this));
		}
コード例 #57
0
ファイル: Scenario.cs プロジェクト: CodeAsm/open-sauce
		public scenario_creature_block() : base(3)
		{
			Add(Type = new TI.BlockIndex()); // 1 scenario_creature_palette_block
			Add(Name = new TI.BlockIndex()); // 1 scenario_object_names_block
			Add(ObjectData = new TI.Struct<scenario_object_datum_struct>(this));
		}
コード例 #58
0
ファイル: Sound.cs プロジェクト: CodeAsm/open-sauce
		public sound_group() : base(15)
		{
			Add(Flags = new TI.Flags());
			Add(Class = new TI.Enum(TI.FieldType.ByteEnum));
			Add(SampleRate = new TI.Enum(TI.FieldType.ByteEnum));
			Add(OutputEffect = new TI.Enum(TI.FieldType.ByteEnum));
			Add(ImportType = new TI.Enum(TI.FieldType.ByteEnum));
			/*0x08*/Add(Playback = new TI.Struct<sound_playback_parameters_struct>(this));
			/*0x40*/Add(Scale = new TI.Struct<sound_scale_modifiers_struct>(this));
			Add(new TI.Pad(2));
			Add(Encoding = new TI.Enum(TI.FieldType.ByteEnum));
			Add(Compression = new TI.Enum(TI.FieldType.ByteEnum));
			/*0x58*/Add(Promotion = new TI.Struct<sound_promotion_parameters_struct>(this));
			Add(new TI.Pad(12));
			/*0x88*/Add(PitchRanges = new TI.Block<sound_pitch_range_block>(this, 9));
			/*0x94*/Add(PlatformParameters = new TI.Block<sound_platform_sound_playback_block>(this, 1));
			/*0xA0*/Add(ExtraInfo = new TI.Block<sound_extra_info_block>(this, 1));
		}
コード例 #59
0
ファイル: Hud.cs プロジェクト: CodeAsm/open-sauce
			public weapon_hud_meter_block() : base(6)
			{
				Add(StateAttachedTo = new TI.Enum());
				Add(new TI.Pad(2));
				Add(CanUseOnMapType = new TI.Enum());
				Add(new TI.Pad(2 + 28));

				Add(Meter = new TI.Struct<global_hud_meter_struct>(this));

				Add(new TI.Pad(40));
			}
コード例 #60
0
ファイル: Resources.cs プロジェクト: CodeAsm/open-sauce
		public cache_file_resource_gestalt_group() : base(41)
		{
			Add(CacheType = new TI.Enum());
			Add(Flags = TI.Flags.Word);
			/*0x04*/Add(ResourceTypes = new TI.Block<resource_type_block>(this, 0));
			/*0x10*/Add(ResourceStructureTypes = new TI.Block<resource_structure_type_block>(this, 0));
			/*0x1C*/Add(ResourceLayoutTable = new TI.Struct<cache_file_resource_layout_table>(this));
			/*0x58*/Add(TagResources = new TI.Block<cache_file_resource_gestalt_tag_resource_block>(this, 0));
			/*0x64*/Add(Block64 = new TI.Block<cache_file_resource_gestalt_64_block>(this, 0)); // general 
			/*0x70*/Add(Block70 = new TI.Block<cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] global
			/*0x7C*/Add(Block7C = new TI.Block<cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78]? attached?
			/*0x88*/Add(Block88 = new TI.Block<cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] unattached // same structure as tag block two fields above
			/*0x94*/Add(Block94 = new TI.Block<cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] dvd_forbidden // ''
			/*0xA0*/Add(BlockA0 = new TI.Block<cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] dvd_always_streaming // ''
			/*0xAC*/Add(BlockAC = new TI.Block<cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] bsp zones // '' -
			/*0xB8*/Add(BlockB8 = new TI.Block<cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] bsp zones // ''
			/*0xC4*/Add(BlockC4 = new TI.Block<cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] bsp zones // ''
			/*0xD0*/Add(BlockD0 = new TI.Block<cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] ? (ex. '030la_highway') // ''
			/*0xDC*/Add(BlockDC = new TI.Block<cache_file_resource_gestalt_64_block>(this, 0)); // tag block [0x78] zone sets // ''
			/*0xE8*/Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]?
			/*0xF4*/Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]?
			/*0x100*/Add(Block100 = new TI.Block<cache_file_resource_gestalt_100_block>(this, 0));
			/*0x10C*/Add(BspReferences = new TI.Block<field_block<TI.TagReference>>(this, 0));
			/*0x118*/Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]
			/*0x124*/Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]
			/*0x130*/Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]
			/*0x13C*/Add(ResourceDefinitionData = new TI.Data(this)); // tag data
			/*0x150*/Add(new TI.UnknownPad(20)); // unknown [0x14]
				// dword
				// long
				// long
				// long
				// long (related to the UnknownOffset in 'cache_file_resource_gestalt_tag_resource_block', size of the buffer it refers to)
			/*0x164*/Add(Block164 = new TI.Block<cache_file_resource_gestalt_164_block>(this, 0));
			/*0x170*/Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]?
			/*0x17C*/Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]?
			/*0x188*/Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]?
			/*0x194*/Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]?
			/*0x1A0*/Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]?
			/*0x1AC*/Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]?
			/*0x1B8*/Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]?
			/*0x1C4*/Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]?
			/*0x1D0*/Add(Block1D0 = new TI.Block<field_block<TI.LongInteger>>(this, 0)); // datum index in nature
			/*0x1DC*/Add(Block1DC = new TI.Block<cache_file_resource_gestalt_1DC_block>(this, 0));
			/*0x1E8*/Add(Block1E8 = new TI.Block<cache_file_resource_gestalt_1E8_block>(this, 0));
			/*0x1F4*/Add(Block1F4 = new TI.Block<cache_file_resource_gestalt_1F4_block>(this, 0));
			/*0x200*/Add(Block200 = new TI.Block<cache_file_resource_gestalt_200_block>(this, 0));
			Add(MapId = Blam.MapId.SkipField); // id used for mapinfo files

			//BspReferences.Definition.Value.ResetReferenceGroupTag(TagGroups.sbsp);
		}