コード例 #1
0
ファイル: Models.cs プロジェクト: CodeAsm/open-sauce
		public global_geometry_part_block_new() : base(19)
		{
			Add(Type = new TI.Enum());
			Add(Flags = TI.Flags.Word);
			Add(Material = new TI.BlockIndex()); // 1 global_geometry_material_block
			Add(StripStartIndex = new TI.ShortInteger());
			Add(StripLength = new TI.ShortInteger());
			Add(FirstSubpartIndex = new TI.ShortInteger());
			Add(SubpartCount = new TI.ShortInteger());
			Add(MaxNodesVertex = new TI.ByteInteger());
			Add(ContributingCompoundNodeCount = new TI.ByteInteger());
			Centroid = new global_model_skinned_uncompressed_vertex(this, 3);
			Add(LodMipmapMagicNumber = new TI.Real());
			Add(_Skip = new TI.Skip(24));
		}
コード例 #2
0
ファイル: Models.cs プロジェクト: CodeAsm/open-sauce
		internal void SetFrom(global_model_skinned_uncompressed_vertex obj)
		{
			Position.X = obj.Position.X;
			Position.Y = obj.Position.Y;
			Position.Z = obj.Position.Z;
			NodeIndices[0].Value = obj.NodeIndices[0].Value;
			NodeIndices[1].Value = obj.NodeIndices[1].Value;
			NodeIndices[2].Value = obj.NodeIndices[2].Value;
			NodeIndices[3].Value = obj.NodeIndices[3].Value;
			for (int x = 0; x < NodeWeights.Length; x++ )
				NodeWeights[x].Value = obj.NodeWeights[x].Value;
		}
コード例 #3
0
ファイル: Models.cs プロジェクト: CodeAsm/open-sauce
		public global_geometry_part_block() : base(19)
		{
			Add(Type = new TI.Enum());
			Add(Flags = TI.Flags.Word);
			Add(Material = new TI.BlockIndex()); // 1 global_geometry_material_block
			Add(/*Geometry Subclassification = */ new TI.Enum());
			Add(StripStartIndex = new TI.ShortInteger());
			Add(StripLength = new TI.ShortInteger());
			Add(/*First Strip Segment Index =*/ new TI.ShortInteger());
			Add(/*Strip Segment Count =*/ new TI.ShortInteger());
			Add(FirstVertexIndex = new TI.ShortInteger());
			Add(VertexCount = new TI.ShortInteger());
			Add(FirstTriangleIndex = new TI.ShortInteger());
			Add(TriangleCount = new TI.ShortInteger());
			Add(MaxNodesVertex = new TI.ByteInteger());
			Add(ContributingCompoundNodeCount = new TI.ByteInteger());
			Add(VertexUsageFlags = TI.Flags.Word);
			Add(new TI.Pad(12 + 1 + 3));
			Centroid = new global_model_skinned_uncompressed_vertex(this, 3);
			Add(LodMipmapMagicNumber = new TI.Real());
			Add(_Skip = new TI.Skip(24));
		}
コード例 #4
0
ファイル: Globals.cs プロジェクト: CodeAsm/open-sauce
				public error_report_comments_block() : base(11)
				{
					Add(/*Text = */ new TI.Data(this));
					Position = new global_model_skinned_uncompressed_vertex(this);
					Add(Color = TI.RealColor.Argb);
				}
コード例 #5
0
ファイル: Globals.cs プロジェクト: CodeAsm/open-sauce
				public error_report_quads_block() : base(37)
				{
					PointA = new global_model_skinned_uncompressed_vertex(this);
					PointB = new global_model_skinned_uncompressed_vertex(this);
					PointC = new global_model_skinned_uncompressed_vertex(this);
					PointD = new global_model_skinned_uncompressed_vertex(this);
					Add(Color = TI.RealColor.Argb);
				}
コード例 #6
0
ファイル: Globals.cs プロジェクト: CodeAsm/open-sauce
				public error_report_lines_block() : base(19)
				{
					Start = new global_model_skinned_uncompressed_vertex(this);
					End = new global_model_skinned_uncompressed_vertex(this);
					Add(Color = TI.RealColor.Argb);
				}
コード例 #7
0
ファイル: Globals.cs プロジェクト: CodeAsm/open-sauce
				public error_report_vectors_block() : base(12)
				{
					Position = new global_model_skinned_uncompressed_vertex(this);
					Add(Color = TI.RealColor.Argb);
					Add(/*Normal = */ new TI.RealVector3D());
					Add(/*Screen Length = */ new TI.Real());
				}
コード例 #8
0
ファイル: Globals.cs プロジェクト: CodeAsm/open-sauce
				public error_report_vertices_block() : base(11)
				{
					Position = new global_model_skinned_uncompressed_vertex(this);

					Add(Color = TI.RealColor.Argb);
					Add(/*Screen Size = */ new TI.Real());
				}