示例#1
0
		public s_cache_language_pack(TI.Definition parent)
		{
			parent.Add(new TI.Pad(
				4 // Index runtime hashing handle 
				+
				4 // Table runtime hashing handle 
				));
			parent.Add(Count = new TI.LongInteger());
			parent.Add(Size = new TI.LongInteger());
			parent.Add(OffsetIndex = new TI.LongInteger());
			parent.Add(OffsetTable = new TI.LongInteger());
			parent.Add(new TI.Skip(20)); // index SHA1 hash
			parent.Add(new TI.Skip(20)); // strings SHA1 hash
			parent.Add(new TI.Pad(1 + 3));
		}
示例#2
0
		public global_geometry_raw_point(TI.Definition parent)
		{
			parent.Add(Position = new TI.RealPoint3D());					// 0x0
			parent.Add(/*Node Index (OLD) = */ new TI.LongInteger());		// 0xC
			parent.Add(/*Node Index (OLD) = */ new TI.LongInteger());		// 0x10
			parent.Add(/*Node Index (OLD) = */ new TI.LongInteger());		// 0x14
			parent.Add(/*Node Index (OLD) = */ new TI.LongInteger());		// 0x18
			for (int x = 0; x < NodeWeight.Length; x++ )
				parent.Add(NodeWeight[x] = new TI.Real());
			for (int x = 0; x < NodeIndex.Length; x++)
				parent.Add(NodeIndex[x] = new TI.LongInteger());

			parent.Add(UseNewNodeIndices = new TI.LongInteger());			// 0x3C
			parent.Add(AdjustedCompoundNodeIndex = new TI.LongInteger());	// 0x40
		}
示例#3
0
			public mass_distribution_data(TI.Definition parent)
			{
				parent.Add(CenterOfMass = new TI.RealVector3D());
				parent.Add(new TI.Skip(4));
				parent.Add(InertiaTensorI = new TI.RealVector3D());
				parent.Add(new TI.Skip(4));
				parent.Add(InertiaTensorJ = new TI.RealVector3D());
				parent.Add(new TI.Skip(4));
				parent.Add(InertiaTensorK = new TI.RealVector3D());
				parent.Add(new TI.Skip(4));
			}
示例#4
0
		public global_model_skinned_uncompressed_vertex(TI.Definition parent, int node_weight_count)
		{
			NodeWeights = new TI.Real[node_weight_count];

			parent.Add(Position = new TI.RealPoint3D());
			parent.Add(NodeIndices[0] = new TI.ByteInteger());
			parent.Add(NodeIndices[1] = new TI.ByteInteger());
			parent.Add(NodeIndices[2] = new TI.ByteInteger());
			parent.Add(NodeIndices[3] = new TI.ByteInteger());
			for (int x = 0; x < NodeWeights.Length; x++ )
				parent.Add(NodeWeights[x] = new TI.Real());
		}
示例#5
0
			public shape_info(TI.Definition parent)
			{
				parent.Add(ShapeType = new TI.Enum());
				parent.Add(Shape = new TI.BlockIndex()); // 2
			}
示例#6
0
			public hkConvexShape(TI.Definition parent) : base(parent)
			{
				parent.Add(Radius = new TI.Real());
			}
示例#7
0
			public hkShape(TI.Definition parent)
			{
				parent.Add(new TI.Skip(4));							// vtable
				parent.Add(Size = new TI.ShortInteger());
				parent.Add(ReferenceCount = new TI.ShortInteger());
				parent.Add(UserData = new TI.Skip(4)); // pointer to the shape block this shape is in
			}
示例#8
0
			public node_data(TI.Definition parent)
			{
				parent.Add(Scale = new TI.Real());
				parent.Add(Forward = new TI.RealVector3D());
				parent.Add(Left = new TI.RealVector3D());
				parent.Add(Up = new TI.RealVector3D());
				parent.Add(Position = new TI.RealPoint3D());
			}
示例#9
0
		/// <summary>
		/// Initialize the language pack to a tag definition or as a stand-alone
		/// </summary>
		/// <param name="parent"></param>
		public s_cache_language_pack(TI.Definition parent)
		{
			Count = new TI.LongInteger();
			Size = new TI.LongInteger();
			OffsetReferences = new TI.LongInteger();
			OffsetStrings = new TI.LongInteger();

			if (parent != null)
			{
				parent.Add(new TI.Pad(4 + 4)); // runtime pointers
					// s_cache_unicode_string_reference* references_buffer
					// byte* strings_buffer
				parent.Add(Count);
				parent.Add(Size);
				parent.Add(OffsetReferences);
				parent.Add(OffsetStrings);
				parent.Add(new TI.Pad(1 + 3));
			}
		}