Ejemplo n.º 1
0
 public text_value_pair_definition_group()
 {
     Add(Parameter   = new TI.Enum(TI.FieldType.LongEnum));           // 0x26C options, last 0x15 are templated options and can't be get\set
     Add(Title       = new TI.StringId());
     Add(Description = new TI.StringId());
     Add(Values      = new TI.Block <text_value_pair_reference_block>(this, 32));
 }
Ejemplo n.º 2
0
 public unknown_3C_block() : base(22)
 {
     Add(Unknown0 = new TI.Flags(TI.FieldType.ByteFlags));
     Add(Unknown1 = new TI.Flags(TI.FieldType.ByteFlags));
     Add(TI.Pad.Word);
     Add(Unknown4      = new TI.LongInteger());
     Add(Block8        = new TI.Block <unknown_8_block>(this, 0));
     Add(Unknown14     = new TI.LongInteger());                 // unknown
     Add(Unknown18     = new TI.LongInteger());                 // unknown
     Add(Unknown1C     = new TI.StringId());
     Add(Unknown20     = new TI.LongInteger());                 // unknown
     Add(CuiScreen     = new TI.TagReference(this, TagGroups.cusc));
     Add(SoundResponse = new TI.TagReference(this, TagGroups.sgrp));
     Add(Unknown44     = new TI.LongInteger());                 // unknown
     Add(Unknown48     = new TI.LongInteger());                 // unknown
     Add(Unknown4C     = new TI.Flags(TI.FieldType.ByteFlags));
     Add(TI.Pad.Byte);
     Add(Unknown4E = new TI.Flags(TI.FieldType.ByteFlags));
     Add(TI.Pad.Byte);
     Add(Unknown50  = new TI.StringId());
     Add(Unknown54  = new TI.LongInteger());                    // unknown
     Add(CuiScreen2 = new TI.TagReference(this, TagGroups.cusc));
     Add(Unknown68  = new TI.TagReference(this));
     Add(Unknown78  = new TI.LongInteger());                    // unknown
 }
Ejemplo n.º 3
0
 public incident_globals_definition_0_block() : base(11)
 {
     Add(Name     = new TI.StringId());
     Add(Unknown4 = new TI.Flags(TI.FieldType.ByteFlags));
     Add(TI.Pad._24);
     Add(Unknown8 = new TI.Flags(TI.FieldType.ByteFlags));
     Add(TI.Pad._24);
     Add(BlockC  = new TI.Block <unknown_C_block>(this, 0));
     Add(Block18 = new TI.Block <unknown_18_block>(this, 0));
     Add(Block24 = new TI.Block <unknown_24_block>(this, 0));
     Add(Block30 = new TI.Block <unknown_30_block>(this, 0));
     Add(Block3C = new TI.Block <unknown_3C_block>(this, 0));
     Add(TI.Pad.BlockHalo3);                 // 0x54
     // byte_flags
     // byte_flags
     // PAD16
     // unknown[0xC]
     // string_id
     // string_id
     // string_id
     // unknown[0x8]
     // tag_block
     // unknown[0x4]
     // int16
     // PAD16?
     // tag_block
     // tag_reference<sirg> sound_incident_response
 }
Ejemplo n.º 4
0
 public text_value_pair_definition_group() : base(4)
 {
     Add(Parameter   = new TI.Enum(TI.FieldType.LongEnum));
     Add(Title       = new TI.StringId());
     Add(Description = new TI.StringId());
     Add(Values      = new TI.Block <text_value_pair_reference_block>(this, 0));
 }
 public unknown_4_block() : base(4)
 {
     Add(Flags = new TI.Flags(TI.FieldType.ByteFlags));
     Add(TI.Pad._24);
     Add(Unknown4 = new TI.LongInteger());                           // for multikills this is the count
     Add(Unknown8 = new TI.StringId());                              // for multikills this is 'kill', so it's probably the incident filter
 }
Ejemplo n.º 6
0
 public game_medal_globals_category_block() : base(4)
 {
     Add(Name     = new TI.StringId());
     Add(Unknown4 = new TI.StringId());
     Add(Unknown8 = new TI.ShortInteger());
     Add(Points   = new TI.ShortInteger());
 }
Ejemplo n.º 7
0
		public hs_scripts_block() : base(5)
		{
			Add(Name = new TI.StringId());
			Add(ScriptType = new TI.Enum());
			Add(ReturnType = new TI.Enum());
			Add(RootExpressionIndex = new TI.LongInteger());
			Add(Parameters = new TI.Block<H3.hs_scripts_block.hs_scripts_parameters_block>(this, 0));
		}
Ejemplo n.º 8
0
 public hs_scripts_block() : base(5)
 {
     Add(Name                = new TI.StringId());
     Add(ScriptType          = new TI.Enum());
     Add(ReturnType          = new TI.Enum());
     Add(RootExpressionIndex = new TI.LongInteger());
     Add(Parameters          = new TI.Block <H3.hs_scripts_block.hs_scripts_parameters_block>(this, 0));
 }
 public resource_type_block() : base(6)
 {
     Add(Guid       = new TI.Skip(16));
     Add(Unknown010 = new TI.ShortInteger());
     Add(Unknown012 = new TI.ShortInteger());
     Add(Unknown014 = new TI.ShortInteger());
     Add(Unknown016 = new TI.ShortInteger());
     Add(Name       = new TI.StringId());
 }
Ejemplo n.º 10
0
 public unknown_4_block() : base(6)
 {
     Add(Settings    = new TI.TagReference(this, TagGroups.goof));
     Add(Template    = new TI.TagReference(this, TagGroups.goof));
     Add(Unknown20   = new TI.Enum(TI.FieldType.LongEnum));
     Add(Title       = new TI.StringId());
     Add(Description = new TI.StringId());
     Add(ValuePairs  = new TI.TagReference(this, TagGroups.sily));
 }
Ejemplo n.º 11
0
			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));
			}
Ejemplo n.º 12
0
 public sound_pitch_range_block() : base(7)
 {
     Add(Name         = new TI.StringId());
     Add(NaturalPitch = new TI.ShortInteger());
     Add(new TI.Pad(2));
     Add(BendBounds  = new TI.ShortIntegerBounds());
     Add(PitchBounds = new TI.ShortIntegerBounds());
     Add(new TI.Pad(4));
     Add(Permutations = new TI.Block <sound_permutations_block>(this, 32));
 }
Ejemplo n.º 13
0
 public sound_permutations_block() : base(7)
 {
     Add(Name         = new TI.StringId());
     Add(SkipFraction = new TI.Real(TI.FieldType.RealFraction));
     Add(Gain         = new TI.Real());
     Add(SamplesSize  = new TI.LongInteger());
     Add(RawInfo      = new TI.BlockIndex());
     Add(LanguageNeutralMilliseconds = new TI.ShortInteger());
     Add(Chunks = new TI.Block <sound_permutation_chunk_block>(this, 32767));
 }
Ejemplo n.º 14
0
 public text_value_pair_reference_block()
 {
     Add(Flags = new TI.Flags(TI.FieldType.ByteFlags));
     Add(Type  = new TI.Enum(TI.FieldType.ByteEnum));
     Add(TI.Pad.Word);
     Add(Integer     = new TI.LongInteger());
     Add(StringId    = new TI.StringId());
     Add(Name        = new TI.StringId());
     Add(Description = new TI.StringId());
 }
Ejemplo n.º 15
0
 public text_value_pair_reference_block() : base(7)
 {
     Add(Flags = new TI.Flags(TI.FieldType.ByteFlags));
     Add(TI.Pad._24);
     Add(Integer     = new TI.LongInteger());
     Add(Real        = new TI.Real());
     Add(StringId    = new TI.StringId());
     Add(Name        = new TI.StringId());
     Add(Description = new TI.StringId());
 }
Ejemplo n.º 16
0
 public multiplayer_object_type_mapping_block() : base(7)
 {
     Add(TypeIndex       = new TI.BlockIndex(TI.FieldType.LongBlockIndex));
     Add(DescriptionText = new TI.StringId());
     Add(HeaderText      = new TI.StringId());
     Add(HelpText        = new TI.StringId());
     Add(Unknown10       = new TI.Real());
     Add(Unknown14       = new TI.LongInteger());
     Add(Icon            = new TI.StringId());
 }
 public game_medal_globals_medals_block() : base(7)
 {
     Add(Name        = new TI.StringId());
     Add(Description = new TI.StringId());
     Add(Unknown8    = new TI.Real());
     Add(UnknownC    = new TI.Real());
     Add(Unknown10   = new TI.ShortInteger());
     Add(Unknown12   = new TI.Flags(TI.FieldType.WordFlags));
     Add(Unknown14   = new TI.LongInteger());
 }
Ejemplo n.º 18
0
		public global_shader_parameter_block() : base(7)
		{
			/*0x00*/Add(Name = new TI.StringId());
			/*0x04*/Add(Type = new TI.Enum());
			/*0x06*/Add(RuntimeFlags = new TI.Flags(TI.FieldType.WordFlags)); // was Pad
			/*0x08*/Add(Bitmap = new TI.TagReference(this, TagGroups.bitm));
			/*0x18*/Add(ConstValue = new TI.Real());
			/*0x1C*/Add(ConstColor = new TI.RealColor());
			/*0x28*/Add(AnimationProperties = new TI.Block<shader_animation_property_block>(this, 14));
		}
Ejemplo n.º 19
0
 public render_model_permutation_block()
 {
     Add(Name = new TI.StringId());
     Add(L1   = new TI.ShortInteger());
     Add(L2   = new TI.ShortInteger());
     Add(L3   = new TI.ShortInteger());
     Add(L4   = new TI.ShortInteger());
     Add(L5   = new TI.ShortInteger());
     Add(L6   = new TI.ShortInteger());
 }
Ejemplo n.º 20
0
            public multilingual_unicode_string_reference_block() : base(10)
            {
                Add(StringId = new TI.StringId());

                LanguageOffsets = new TI.LongInteger[(int)LanguageType.kMax];
                for (int x = 0; x < LanguageOffsets.Length; x++)
                {
                    Add(LanguageOffsets[x] = new TI.LongInteger());
                }
            }
Ejemplo n.º 21
0
				public sandbox_text_value_pair_reference_block()
				{
					Add(Flags = new TI.Flags(TI.FieldType.ByteFlags));
					Add(Type = new TI.Enum(TI.FieldType.ByteEnum));
					Add(TI.Pad.Word);
					Add(Integer = new TI.LongInteger());
					Add(StringId = new TI.StringId());
					Add(Name = new TI.StringId());
					Add(Description = new TI.StringId());
				}
Ejemplo n.º 22
0
 public gui_datasource_definition_group()
 {
     Add(Name = new TI.StringId());
     Add(TI.UnknownPad.BlockHalo3);             // tag block [0x?]
     Add(TI.UnknownPad.BlockHalo3);             // tag block [0x28]
     // unknown [0x18]
     // tag block [0x8]
     // string id
     // string id [value]
     // unknown [0x4]
 }
Ejemplo n.º 23
0
		public gui_datasource_definition_group()
		{
			Add(Name = new TI.StringId());
			Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]
			Add(TI.UnknownPad.BlockHalo3); // tag block [0x28]
				// unknown [0x18]
				// tag block [0x8]
					// string id
					// string id [value]
				// unknown [0x4]
		}
Ejemplo n.º 24
0
 public game_medal_globals_medals_block() : base(8)
 {
     Add(Name        = new TI.StringId());
     Add(Description = new TI.StringId());
     Add(Unknown8    = new TI.ShortInteger());
     Add(UnknownA    = new TI.Flags(TI.FieldType.ByteFlags));
     Add(TI.Pad.Byte);
     Add(UnknownC      = new TI.LongInteger());
     Add(CategoryIndex = new TI.BlockIndex());
     Add(Points        = new TI.ShortInteger());
 }
Ejemplo n.º 25
0
 public sound_permutation_raw_info_block() : base(8)
 {
     Add(SkipFractionName = new TI.StringId());
     Add(Samples          = new TI.Data(this));
     Add(MouthData        = new TI.Data(this));
     Add(LipsyncData      = new TI.Data(this));
     Add(Markers          = new TI.Block <sound_permutation_marker_block>(this, 65535));
     Add(Compression      = new TI.Enum());
     Add(Language         = new TI.Enum(TI.FieldType.ByteEnum));
     Add(TI.Pad.Byte);
 }
Ejemplo n.º 26
0
 public unknown_18_block() : base(8)
 {
     Add(SuppressedIncident = new TI.TagReference(this, TagGroups.sigd));
     Add(Unknown10          = new TI.LongInteger());
     Add(Unknown14          = new TI.LongInteger());            // unknown
     Add(Unknown18          = new TI.StringId());
     Add(Unknown1C          = new TI.LongInteger());            // unknown
     Add(CuiScreen          = new TI.TagReference(this, TagGroups.cusc));
     Add(SoundResponse      = new TI.TagReference(this, TagGroups.sgrp));
     Add(Unknown40          = new TI.LongInteger());            // unknown
 }
Ejemplo n.º 27
0
            public loadout_block() : base(6)
            {
                Add(Name = new TI.StringId());

                Add(PrimaryWeapon = new TI.StringId());

                Add(SecondaryWeapon = new TI.StringId());

                Add(Equipment = new TI.StringId());
                Add(Unk10     = new TI.Flags(TI.FieldType.ByteFlags));
                Add(TI.Pad._24);
            }
Ejemplo n.º 28
0
 public unknown_30_block() : base(3)
 {
     Add(Unknown0  = new TI.LongInteger());                    // unknown
     Add(Block4    = new TI.Block <unknown_4_block>(this, 0));
     Add(Unknown10 = new TI.LongInteger());
     Add(Unknown14 = new TI.LongInteger());                     // unknown
     Add(Unknown18 = new TI.StringId());
     Add(Unknown1C = new TI.LongInteger());                     // unknown
     Add(CuiScreen = new TI.TagReference(this, TagGroups.cusc));
     Add(Unknown30 = new TI.TagReference(this));
     Add(Unknown44 = new TI.LongInteger());                     // unknown
 }
Ejemplo n.º 29
0
 public ordnance_block() : base(10)
 {
     Add(Name       = new TI.StringId());
     Add(LookupName = new TI.String());
     Add(new TI.LongInteger());
     Add(ObjectType = new TI.StringId());
     Add(new TI.TagReference(this));
     Add(new TI.ByteInteger());
     Add(new TI.ByteInteger());                 // amount?
     Add(new TI.Flags(TI.FieldType.ByteFlags));
     Add(TI.Pad.Byte);
     Add(new TI.Pad(12));
 }
Ejemplo n.º 30
0
        public render_model_group()
        {
            Add(Name  = new TI.StringId());
            Add(Flags = new TI.Flags(TI.FieldType.WordFlags));
            Add(new TI.Pad(2 + 4));             // the dword is a postprocessed field
            Add(Regions = new TI.Block <render_model_region_block>(this, 16));
            // TODO
            Add(new TI.UnknownPad(24));
            Add(Nodes        = new TI.Block <render_model_node_block>(this, 255));
            Add(MarkerGroups = new TI.Block <render_model_marker_group_block>(this, 4096));
            Add(Materials    = new TI.Block <global_geometry_material_block>(this, 1024));
            Add(TI.UnknownPad.BlockHalo3);             // errors?
            Add(SectionGroupIndex1 = new TI.ByteInteger());
            Add(SectionGroupIndex2 = new TI.ByteInteger());
            Add(SectionGroupIndex3 = new TI.ByteInteger());
            Add(SectionGroupIndex4 = new TI.ByteInteger());
            Add(SectionGroupIndex5 = new TI.ByteInteger());
            Add(SectionGroupIndex6 = new TI.ByteInteger());
            Add(new TI.Pad(2));

            Add(TI.UnknownPad.BlockHalo3);             // [0x4C] render_model_section_block
            Add(CompressionInfo = new TI.Block <global_geometry_compression_info_block>(this, 1));
            Add(TI.UnknownPad.BlockHalo3);             // [0x30]
            // unknown [0x10]
            // real
            // real
            // real
            // real
            // long (might byte 4 byte indexers)
            // real
            // real
            // real
            Add(TI.UnknownPad.BlockHalo3);             // [0x18] functions
            // string id (input)
            // tag data // mapping_function
            Add(TI.UnknownPad.BlockHalo3);             // tag block [0x?]
            Add(TI.UnknownPad.BlockHalo3);             // tag block [0x20] (count matches render_model_section_block)
            // tag data
            // tag block [0x2]
            Add(TI.UnknownPad.BlockHalo3);             // [0xC] looks like render_model_section_group_block
            // tag block [0x1]
            Add(TI.UnknownPad.BlockHalo3);             // [0xC]
            Add(TI.UnknownPad.BlockHalo3);             // ??
            Add(TI.UnknownPad.BlockHalo3);             // [0x10]
            // tag block ??
            // short (block index?)
            // word
            Add(ResourceId = new TI.LongInteger());    // datum to cache_file_resource_gestalt_58_block
            Add(TI.UnknownPad.DWord);
            Add(TI.UnknownPad.BlockHalo3);             // [0x??] maybe this points to the render_geometry_api_resource_definition block data in the zone tag
        }
Ejemplo n.º 31
0
 public unknown_24_block() : base(9)
 {
     Add(Unknown0 = new TI.StringId());
     Add(TI.Pad.BlockHalo3);
     // byte_flags
     // PAD24
     Add(TI.Pad.BlockHalo3);
     Add(TI.Pad.BlockHalo3);
     Add(TI.Pad.BlockHalo3);
     Add(TI.Pad.BlockHalo3);
     Add(TI.Pad.BlockHalo3);
     Add(TI.Pad.BlockHalo3);
     Add(TI.Pad.BlockHalo3);
 }
Ejemplo n.º 32
0
 public render_model_node_block()
 {
     Add(Name               = new TI.StringId());
     Add(ParentNode         = new TI.BlockIndex());     // 1 render_model_node_block
     Add(FirstChildNode     = new TI.BlockIndex());     // 1 render_model_node_block
     Add(NextSiblingNode    = new TI.BlockIndex());     // 1 render_model_node_block
     Add(ImportNodeIndex    = new TI.ShortInteger());
     Add(DefaultTranslation = new TI.RealPoint3D());
     Add(DefaultRotation    = new TI.RealQuaternion());
     Add(InverseForward     = new TI.RealVector3D());
     Add(InverseLeft        = new TI.RealVector3D());
     Add(InverseUp          = new TI.RealVector3D());
     Add(InversePosition    = new TI.RealPoint3D());
     Add(InverseScale       = new TI.Real());
     Add(DistFromParent     = new TI.Real());
 }
Ejemplo n.º 33
0
            public loadout_block() : base(10)
            {
                Add(Name     = new TI.StringId());
                Add(AppSlot1 = new TI.StringId());
                Add(AppSlot2 = new TI.StringId());

                Add(PrimaryWeapon = new TI.StringId());
                Add(TI.Pad.DWord);

                Add(SecondaryWeapon = new TI.StringId());
                Add(TI.Pad.DWord);

                Add(Equipment = new TI.StringId());
                Add(Unk20     = new TI.Flags(TI.FieldType.ByteFlags));
                Add(TI.Pad._24);
            }
            public cache_file_resource_gestalt_100_block() : base(9)
            {
                Add(Name      = new TI.StringId());
                Add(Unknown04 = new TI.LongInteger());

                Add(Unknown08 = new TI.LongInteger());
                Add(Unknown0C = new TI.LongInteger());

                Add(Unknown10 = new TI.LongInteger());
                Add(Unknown14 = new TI.LongInteger());

                Add(Unknown18 = new TI.LongInteger());

                Add(Unknown1C = new TI.LongInteger());                 // seems to be the same value as the the long after the name field

                Add(PrevZoneSet = new TI.BlockIndex(BlamLib.TagInterface.FieldType.LongBlockIndex));
            }
            public void ToStream(StreamWriter s,
                                 Managers.TagManager tag, TI.Definition owner)
            {
                TI.StringId name = DescriptionText;
                if (name.Handle.IsNull)
                {
                    name = HeaderText;
                }
                if (name.Handle.IsNull)
                {
                    name = HelpText;
                }
                if (name.Handle.IsNull)
                {
                    name = Icon;
                }

                string name_str = "<unknown>";

                if (!name.Handle.IsNull)
                {
                    name_str = name.ToString();
                }

                s.Write("{0}\t", name_str);

                int type_index = TypeIndex.Value;

                if (type_index < 0)
                {
                    s.Write("NONE");
                }
                else
                {
                    var types = (owner as multiplayer_object_type_list_group).TypeList;
                    if (type_index >= types.Count)
                    {
                        s.Write("--INVALID--");
                    }
                    else
                    {
                        types[type_index].DefinitionToStream(s);
                    }
                }
                s.WriteLine();
            }
Ejemplo n.º 36
0
		public render_model_group()
		{
			Add(Name = new TI.StringId());
			Add(Flags = new TI.Flags(TI.FieldType.WordFlags));
			Add(new TI.Pad(2 + 4)); // the dword is a postprocessed field
			Add(Regions = new TI.Block<render_model_region_block>(this, 16));
			// TODO
			Add(new TI.UnknownPad(24));
			Add(Nodes = new TI.Block<render_model_node_block>(this, 255));
			Add(MarkerGroups = new TI.Block<render_model_marker_group_block>(this, 4096));
			Add(Materials = new TI.Block<global_geometry_material_block>(this, 1024));
			Add(TI.UnknownPad.BlockHalo3); // errors?
			Add(SectionGroupIndex1 = new TI.ByteInteger());
			Add(SectionGroupIndex2 = new TI.ByteInteger());
			Add(SectionGroupIndex3 = new TI.ByteInteger());
			Add(SectionGroupIndex4 = new TI.ByteInteger());
			Add(SectionGroupIndex5 = new TI.ByteInteger());
			Add(SectionGroupIndex6 = new TI.ByteInteger());
			Add(new TI.Pad(2));

			Add(TI.UnknownPad.BlockHalo3); // [0x4C] render_model_section_block
			Add(CompressionInfo = new TI.Block<global_geometry_compression_info_block>(this, 1));
			Add(TI.UnknownPad.BlockHalo3); // [0x30]
				// unknown [0x10]
				// real
				// real
				// real
				// real
				// long (might byte 4 byte indexers)
				// real
				// real
				// real
			Add(TI.UnknownPad.BlockHalo3); // [0x18] functions
				// string id (input)
				// tag data // mapping_function
			Add(TI.UnknownPad.BlockHalo3); // tag block [0x?]
			Add(TI.UnknownPad.BlockHalo3); // tag block [0x20] (count matches render_model_section_block)
				// tag data
				// tag block [0x2]
			Add(TI.UnknownPad.BlockHalo3); // [0xC] looks like render_model_section_group_block
				// tag block [0x1]
			Add(TI.UnknownPad.BlockHalo3); // [0xC]
			Add(TI.UnknownPad.BlockHalo3); // ??
			Add(TI.UnknownPad.BlockHalo3); // [0x10]
				// tag block ??
				// short (block index?)
				// word
			Add(ResourceId = new TI.LongInteger()); // datum to cache_file_resource_gestalt_58_block
			Add(TI.UnknownPad.DWord);
			Add(TI.UnknownPad.BlockHalo3); // [0x??] maybe this points to the render_geometry_api_resource_definition block data in the zone tag
		}
Ejemplo n.º 37
0
			public animation_pool_block() : base(29)
			{
				Add(Name = new TI.StringId());
				Add(NodeListChecksum = new TI.LongInteger());
				Add(ProductionChecksum = new TI.LongInteger());
				Add(ImportChecksum = new TI.LongInteger());
				Add(Type = new TI.Enum(TI.FieldType.ByteEnum));
				Add(FrameInfoType = new TI.Enum(TI.FieldType.ByteEnum));
				Add(BlendScreen = new TI.BlockIndex(TI.FieldType.ByteBlockIndex)); // 1 animation_blend_screen_block
				Add(NodeCount = new TI.ByteInteger());
				Add(FrameCount = new TI.ShortInteger());
				Add(InternalFlags = new TI.Flags(TI.FieldType.ByteFlags));
				Add(ProductionFlags = new TI.Flags(TI.FieldType.ByteFlags));

				Add(PlaybackFlags = new TI.Flags(TI.FieldType.WordFlags));
				Add(DesiredCompression = new TI.Enum(TI.FieldType.ByteEnum));
				Add(CurrentCompression = new TI.Enum(TI.FieldType.ByteEnum));
				Add(Weight = new TI.Real());

				AddXbox(ParentGraphIndex = new TI.LongInteger());
				AddXbox(ParentGraphBlockIndex = new TI.LongInteger());
				AddXbox(ParentGraphBlockOffset = new TI.LongInteger());
				AddXbox(ParentGraphStartingPoint = new TI.ShortInteger());
				
				Add(LoopFrameIndex = new TI.ShortInteger());
				Add(ParentAnimation = new TI.BlockIndex()); // 1 animation_pool_block
				Add(NextAnimation = new TI.BlockIndex()); // 1 animation_pool_block
				AddPc(new TI.Pad(2));
				Add(AnimationData = new TI.Data(this));

				Add(DataSizes = new TI.Struct<packed_data_sizes_struct>(this));
				Add(/*frame events = */ new TI.Block<animation_frame_event_block>(this, 512));
				Add(/*sound events = */ new TI.Block<animation_sound_event_block>(this, 512));
				Add(/*effect events = */ new TI.Block<animation_effect_event_block>(this, 512));
				Add(/*object-space parent nodes = */ new TI.Block<object_space_node_data_block>(this, 255));
			}
Ejemplo n.º 38
0
		public constraint_bodies_struct() : base(15)
		{
			Add(Name = new TI.StringId());
			Add(NodeIndexA = new TI.BlockIndex()); // 1 nodes_block
			Add(NodeIndexB = new TI.BlockIndex()); // 1 nodes_block
			NodeA = new node_data(this);
			NodeB = new node_data(this);
			Add(/*edge index = */ new TI.BlockIndex()); // 1 physics_model_node_constraint_edge_block
			Add(new TI.Pad(2));
		}
Ejemplo n.º 39
0
		public render_model_region_block()
		{
			Add(Name = new TI.StringId());
			Add(Permutations = new TI.Block<render_model_permutation_block>(this, 32));
		}
Ejemplo n.º 40
0
		public sound_permutation_raw_info_block() : base(8)
		{
			Add(SkipFractionName = new TI.StringId());
			Add(Samples = new TI.Data(this));
			Add(MouthData = new TI.Data(this));
			Add(LipsyncData = new TI.Data(this));
			Add(Markers = new TI.Block<sound_permutation_marker_block>(this, 65535));
			Add(Compression = new TI.Enum());
			Add(Language = new TI.Enum(TI.FieldType.ByteEnum));
			Add(TI.Pad.Byte);
		}
Ejemplo n.º 41
0
		public sound_permutations_block() : base(7)
		{
			Add(Name = new TI.StringId());
			Add(SkipFraction = new TI.Real(TI.FieldType.RealFraction));
			Add(Gain = new TI.Real());
			Add(SamplesSize = new TI.LongInteger());
			Add(RawInfo = new TI.BlockIndex());
			Add(LanguageNeutralMilliseconds = new TI.ShortInteger());
			Add(Chunks = new TI.Block<sound_permutation_chunk_block>(this, 32767));
		}
Ejemplo n.º 42
0
		public render_model_marker_group_block() : base(2)
		{
			Add(Name = new TI.StringId(true));
			Add(Markers = new TI.Block<render_model_marker_block>(this, 256));
		}
Ejemplo n.º 43
0
			public multilingual_unicode_string_reference_block() : base(10)
			{
				Add(StringId = new TI.StringId());

				LanguageOffsets = new TI.LongInteger[(int)LanguageType.kMax];
				for (int x = 0; x < LanguageOffsets.Length; x++)
					Add(LanguageOffsets[x] = new TI.LongInteger());
			}
Ejemplo n.º 44
0
		public render_model_group() : base(25)
		{
			Add(Name = new TI.StringId(true));
			Add(Flags = new TI.Flags(TI.FieldType.WordFlags));
			Add(new TI.Pad(2 + 4));
			Add(ImportInfo = new TI.Block<global_tag_import_info_block>(this, 1));
			Add(CompressionInfo = new TI.Block<global_geometry_compression_info_block>(this, 1));
			Add(Regions = new TI.Block<render_model_region_block>(this, 16));
			Add(Sections = new TI.Block<render_model_section_block>(this, 255));
			Add(InvalidSectionPairBits = new TI.Block<render_model_invalid_section_pairs_block>(this, 1013));
			Add(SectionGroups = new TI.Block<render_model_section_group_block>(this, 6));
			Add(SectionGroupIndex1 = new TI.ByteInteger());
			Add(SectionGroupIndex2 = new TI.ByteInteger());
			Add(SectionGroupIndex3 = new TI.ByteInteger());
			Add(SectionGroupIndex4 = new TI.ByteInteger());
			Add(SectionGroupIndex5 = new TI.ByteInteger());
			Add(SectionGroupIndex6 = new TI.ByteInteger());
			Add(new TI.Pad(2));
			Add(NodeListChecksum = new TI.LongInteger());
			Add(Nodes = new TI.Block<render_model_node_block>(this, 255));
			Add(NodeMap = new TI.Block<render_model_node_map_block_OLD>(this, 640));
			Add(MarkerGroups = new TI.Block<render_model_marker_group_block>(this, 4096));
			Add(Materials = new TI.Block<global_geometry_material_block>(this, 1024));
			Add(Errors = new TI.Block<global_error_report_categories_block>(this, 64));
			Add(/*don't draw over camera cosine angle = */ new TI.Real());
			Add(PrtInfo = new TI.Block<prt_info_block>(this, 1));
			Add(SectionRenderLeaves = new TI.Block<section_render_leaves_block>(this, 255));
		}
Ejemplo n.º 45
0
		/// <summary>
		/// Copy constructor
		/// </summary>
		/// <param name="value">field to copy</param>
		public StringId(StringId value) :				base(value.fieldType)		{ Handle = value.Handle; OwnerId = value.OwnerId; }
Ejemplo n.º 46
0
		public text_value_pair_definition_group() : base(7)
		{
			Add(Index = new TI.LongInteger());
			Add(new TI.Pad(4));
			Add(Strings = new TI.TagReference(this, TagGroups.unic));
			Add(Title = new TI.StringId());
			Add(Header = new TI.StringId());
			Add(Description = new TI.StringId());
			Add(Values = new TI.Block<text_value_pair_reference_block>(this, 32));
		}
Ejemplo n.º 47
0
			public text_value_pair_reference_block() : base(4)
			{
				Add(Flags = new TI.Flags());
				Add(Value = new TI.ShortInteger());
				Add(new TI.Pad(2));
				Add(Name = new TI.StringId());
			}
Ejemplo n.º 48
0
			public player_training_entry_data_block() : base(10)
			{
				Add(DisplayString = new TI.StringId());
				Add(/*display string2 = */ new TI.StringId());
				Add(/*display string3 = */ new TI.StringId());
				Add(/*max display time = */ new TI.ShortInteger());
				Add(/*display count = */ new TI.ShortInteger());
				Add(/*dissapear delay = */ new TI.ShortInteger());
				Add(/*redisplay delay = */ new TI.ShortInteger());
				Add(/*display delay (s) = */ new TI.Real());
				Add(/*flags = */ new TI.Flags(TI.FieldType.WordFlags));
				Add(new TI.Pad(2));
			}
Ejemplo n.º 49
0
			public cache_file_resource_gestalt_100_block() : base(9)
			{
				Add(Name = new TI.StringId());
				Add(Unknown04 = new TI.LongInteger());

				Add(Unknown08 = new TI.LongInteger());
				Add(Unknown0C = new TI.LongInteger());

				Add(Unknown10 = new TI.LongInteger());
				Add(Unknown14 = new TI.LongInteger());

				Add(Unknown18 = new TI.LongInteger());

				Add(Unknown1C = new TI.LongInteger()); // seems to be the same value as the the long after the name field

				Add(PrevZoneSet = new TI.BlockIndex(BlamLib.TagInterface.FieldType.LongBlockIndex));
			}
Ejemplo n.º 50
0
			public cache_file_resource_gestalt_64_block() : base(14)
			{
				Add(TI.UnknownPad.BlockHalo3); // 0x00 [4]
					// dword
				Add(TI.UnknownPad.BlockHalo3); // 0x0C unused?
				Add(TI.UnknownPad.BlockHalo3); // 0x18 [4]
					// dword
				Add(TI.UnknownPad.BlockHalo3); // 0x24 [4]
					// dword
				Add(Unknown030 = new TI.LongInteger()); // Resource location (page) offset
				Add(Unknown034 = new TI.LongInteger()); // ''
				Add(Unknown038 = new TI.LongInteger()); // ''
				Add(Unknown03C = new TI.LongInteger()); // ''
				Add(Unknown040 = new TI.LongInteger()); // ''
				Add(Unknown044 = new TI.StringId()); // transition zone name related
				Add(TI.UnknownPad.BlockHalo3); // 0x48 [0x14] bsp related? has same count has the bsp count for the cache
					// dword * 5
				Add(TI.UnknownPad.BlockHalo3); // 0x54 [4]
					// dword
				Add(TI.UnknownPad.BlockHalo3); // 0x60 [4]
					// dword
				Add(TI.UnknownPad.BlockHalo3); // 0x6C unused?
			}
Ejemplo n.º 51
0
			public resource_type_block() : base(6)
			{
				Add(Guid = new TI.Skip(16));
				Add(Unknown010 = new TI.ShortInteger());
				Add(Unknown012 = new TI.ShortInteger());
				Add(Unknown014 = new TI.ShortInteger());
				Add(Unknown016 = new TI.ShortInteger());
				Add(Name = new TI.StringId());
			}
Ejemplo n.º 52
0
			public resource_structure_type_block() : base(2)
			{
				Add(Guid = new TI.Skip(16));
				Add(Name = new TI.StringId());
			}
Ejemplo n.º 53
0
			protected havok_shape_base_block(int field_count) : base(10 + field_count)
			{
				Add(Name = new TI.StringId());
				Add(Material =  new TI.BlockIndex()); // 1 materials_block
				Add(Flags =  new TI.Flags(TI.FieldType.WordFlags));
				Add(RelativeMassScale = new TI.Real());
				Add(Friction = new TI.Real(TI.FieldType.RealFraction));
				Add(Restitution = new TI.Real(TI.FieldType.RealFraction));
				Add(Volume = new TI.Real());
				Add(Mass = new TI.Real());
				Add(MassDistributionsIndex = new TI.Skip(2));
				Add(Phantom = new TI.BlockIndex()); // 1 phantoms_block
					// TODO: investigate the upper 8 bits of phantom
			}
Ejemplo n.º 54
0
		public shader_template_category_block() : base(2)
		{
			Add(Name = new TI.StringId());
			Add(Parameters = new TI.Block<shader_template_parameter_block>(this, 64));
		}
Ejemplo n.º 55
0
		public sound_pitch_range_block() : base(7)
		{
			Add(Name = new TI.StringId());
			Add(NaturalPitch = new TI.ShortInteger());
			Add(new TI.Pad(2));
			Add(BendBounds = new TI.ShortIntegerBounds());
			Add(PitchBounds = new TI.ShortIntegerBounds());
			Add(new TI.Pad(4));
			Add(Permutations = new TI.Block<sound_permutations_block>(this, 32));
		}
Ejemplo n.º 56
0
			public render_model_permutation_block() : base(7)
			{
				Add(Name = new TI.StringId(true));
				Add(L1 = new TI.ShortInteger());
				Add(L2 = new TI.ShortInteger());
				Add(L3 = new TI.ShortInteger());
				Add(L4 = new TI.ShortInteger());
				Add(L5 = new TI.ShortInteger());
				Add(L6 = new TI.ShortInteger());
			}
Ejemplo n.º 57
0
		public text_value_pair_definition_group()
		{
			Add(Parameter = new TI.Enum(TI.FieldType.LongEnum)); // 0x26C options, last 0x15 are templated options and can't be get\set
			Add(Title = new TI.StringId());
			Add(Description = new TI.StringId());
			Add(Values = new TI.Block<text_value_pair_reference_block>(this, 32));
		}
Ejemplo n.º 58
0
		public render_model_region_block() : base(4)
		{
			Add(Name = new TI.StringId(true));
			Add(NodeMapOffset = new TI.ShortInteger());
			Add(NodeMapSize = new TI.ShortInteger());
			Add(Permutations = new TI.Block<render_model_permutation_block>(this, 32));
		}
Ejemplo n.º 59
0
			public sandbox_text_value_pair_value_block()
			{
				Add(Name = new TI.StringId());
				Add(Values = new TI.Block<sandbox_text_value_pair_reference_block>(this, 32));
			}
Ejemplo n.º 60
0
		public render_model_node_block() : base(13)
		{
			Add(Name = new TI.StringId(true));
			Add(ParentNode = new TI.BlockIndex()); // 1 render_model_node_block
			Add(FirstChildNode = new TI.BlockIndex()); // 1 render_model_node_block
			Add(NextSiblingNode = new TI.BlockIndex()); // 1 render_model_node_block
			Add(ImportNodeIndex = new TI.ShortInteger());
			Add(DefaultTranslation = new TI.RealPoint3D());
			Add(DefaultRotation = new TI.RealQuaternion());
			Add(InverseForward = new TI.RealVector3D());
			Add(InverseLeft = new TI.RealVector3D());
			Add(InverseUp = new TI.RealVector3D());
			Add(InversePosition = new TI.RealPoint3D());
			Add(InverseScale = new TI.Real());
			Add(DistFromParent = new TI.Real());
		}