• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# TagInterface.ShortInteger类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中BlamLib.TagInterface.ShortInteger的典型用法代码示例。如果您正苦于以下问题:C# ShortInteger类的具体用法?C# ShortInteger怎么用?C# ShortInteger使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ShortInteger类属于BlamLib.TagInterface命名空间,在下文中一共展示了ShortInteger类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: bsp3d_nodes_block

		public bsp3d_nodes_block() : base(4)
		{
			Add(Plane = new TI.ShortInteger());
			Add(new TI.Pad(2));
			Add(BackChild = new TI.ShortInteger());
			Add(FrontChild = new TI.ShortInteger());
		}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:7,代码来源:Models.cs


示例2: cache_file_sound_group

		public cache_file_sound_group() : base(17)
		{
			// 0x0
			Add(Flags = new TI.Flags(TI.FieldType.WordFlags));
			Add(SoundClass = new TI.Enum(TI.FieldType.ByteEnum));
			Add(SampleRate = new TI.Enum(TI.FieldType.ByteEnum));
			// 0x4
			Add(Encoding = new TI.Enum(TI.FieldType.ByteEnum));
			Add(CodecIndex = new TI.ByteInteger());
			Add(PlaybackIndex = new TI.ShortInteger());
			// 0x8
			Add(Unknown08 = new TI.ShortInteger()); // TODO: UNKNOWN FIELD, index to something, but doesn't seem to be in the sound gestalt
			Add(Unknown0A = new TI.ShortInteger()); // TODO: UNKNOWN FIELD, maybe an index to the first block in the sound gestalt? or not a index...
			// 0xC
			Add(FirstPitchRangeIndex = new TI.ShortInteger());
			Add(PitchRangeIndex = new TI.ByteInteger());
			Add(ScaleIndex = new TI.ByteInteger());
			// 0x10
			Add(PromotionIndex = new TI.ByteInteger());
			Add(CustomPlaybackIndex = new TI.ByteInteger());
			Add(ExtraInfoIndex = new TI.ShortInteger());
			// 0x14
			Add(Unknown14 = new TI.LongInteger()); // TODO: UNKNOWN FIELD
			// 0x18
			Add(ResourceIndex = new TI.LongInteger());
			// 0x1C
			Add(MaximumPlayTime = new TI.LongInteger());
		}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:28,代码来源:Sound.cs


示例3: model_markers_block

			public model_markers_block() : base(4)
			{
				Add(Name = new TI.String());
				Add(MagicIdentifer = new TI.ShortInteger());
				Add(new TI.Pad(2 + 16));
				Add(Instances = new TI.Block<model_marker_instance_block>(this, 32));
			}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:7,代码来源:Models.cs


示例4: bitmap_data_block

			public bitmap_data_block() : base(23)
			{
				Add(Signature = new TI.Tag());
				Add(Width = new TI.ShortInteger());
				Add(Height = new TI.ShortInteger());
				Add(Depth = new TI.ByteInteger());
				Add(MoreFlags = new TI.Flags(BlamLib.TagInterface.FieldType.ByteFlags));
				Add(Type = new TI.Enum());
				Add(Format = new TI.Enum());
				Add(Flags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
				Add(RegistrationPoint = new TI.Point2D());
				Add(MipmapCount = new TI.ShortInteger());
				Add(LowDetailMipmapCount = new TI.ShortInteger());
				Add(PixelsOffset = new TI.LongInteger());
				
				Add(Offsets[0] = new TI.LongInteger());
				Add(Offsets[1] = new TI.LongInteger());
				Add(Offsets[2] = new TI.LongInteger());
				Add(new TI.Skip(4 + 4 + 4));

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

				Add(new TI.Skip(
					4 + 4 + 
					4 // this is special...
					));
				Add(OwnerTagIndex = new TI.LongInteger());
				Add(new TI.Skip(
					20 +
					4
					));
			}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:35,代码来源:Resources.cs


示例5: sound_group

		public sound_group() : base(26)
		{
			Add(Flags = new TI.Flags());
			Add(Class = new TI.Enum());
			Add(SampleRate = new TI.Enum());
			Add(Distance = new TI.RealBounds());
			Add(SkipFraction = new TI.Real(BlamLib.TagInterface.FieldType.RealFraction));
			Add(RandomPitchBounds = new TI.RealBounds());
			Add(InnerConeAngle = new TI.Real(BlamLib.TagInterface.FieldType.Angle));
			Add(OuterConeAngle = new TI.Real(BlamLib.TagInterface.FieldType.Angle));
			Add(OuterConeGain = new TI.Real(BlamLib.TagInterface.FieldType.RealFraction));
			Add(GainModifier = new TI.Real());
			Add(MaxBendPerSecond = new TI.Real());
			Add(new TI.Pad(12));
			Add(SkipFractionModifier1 = new TI.Real());
			Add(GainModifier1 = new TI.Real());
			Add(PitchModifier1 = new TI.Real());
			Add(new TI.Pad(12));
			Add(SkipFractionModifier2 = new TI.Real());
			Add(GainModifier2 = new TI.Real());
			Add(PitchModifier2 = new TI.Real());
			Add(new TI.Pad(12));
			Add(Encoding = new TI.Enum());
			Add(Compression = new TI.Enum());
			Add(PromotionSound = new TI.TagReference(this, TagGroups.snd_));
			Add(PromotionCount = new TI.ShortInteger());
			Add(new TI.Pad(2 + 20));
			Add(PitchRanges = new TI.Block<sound_pitch_range_block>(this, 8));
		}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:29,代码来源:Sound.cs


示例6: contrail_group

		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));
		}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:25,代码来源:ObjectWidgets.cs


示例7: bitmap_data_block

			//public TI.ShortInteger LowDetailMipmapCount;
			#endregion

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

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

				Add(new TI.LongInteger());

				Add(new TI.Skip(4));
			}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:29,代码来源:Resources.cs


示例8: surfaces_block

				public surfaces_block() : base(5)
				{
					Add(Plane = new TI.LongInteger());
					Add(FirstEdge = new TI.LongInteger());
					Add(Flags = new TI.Flags(TI.FieldType.ByteFlags));
					Add(BreakableSurface = new TI.ByteInteger());
					Add(Material = new TI.ShortInteger());
				}
开发者ID:guardian2433,项目名称:open-sauce,代码行数:8,代码来源:Bsp.cs


示例9: bitmap_group_sequence_block

			public bitmap_group_sequence_block()
			{
				Add(Name = new TI.String());
				Add(FirstBitmapIndex = new TI.BlockIndex());
				Add(BitmapCount = new TI.ShortInteger());
				Add(new TI.Pad(16));
				Add(Sprites = new TI.Block<bitmap_group_sprite_block>(this, 64));
			}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:8,代码来源:Resources.cs


示例10: grenades_block

			public grenades_block() : base(6)
			{
				Add(MaxCount = new TI.ShortInteger());
				Add(new TI.Pad(2));
				Add(ThrowingEffect = new TI.TagReference(this, TagGroups.effe));
				Add(HudInterface = new TI.TagReference(this, TagGroups.grhi));
				Add(Equipment = new TI.TagReference(this, TagGroups.eqip));
				Add(Projectile = new TI.TagReference(this, TagGroups.proj));
			}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:9,代码来源:Globals.cs


示例11: sound_pitch_range_block

			public sound_pitch_range_block() : base(6)
			{
				Add(Name = new TI.String());
				Add(NaturalPitch = new TI.Real());
				Add(BendBounds = new TI.RealBounds());
				Add(ActualPermutationCount = new TI.ShortInteger());
				Add(new TI.Pad(2 + 12));
				Add(Permutations = new TI.Block<sound_permutations_block>(this, 256));
			}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:9,代码来源:Sound.cs


示例12: bitmap_group_sprite_block

				public bitmap_group_sprite_block() : base(7)
				{
					Add(BitmapIndex = new TI.ShortInteger());
					Add(new TI.Pad(2 + 4));
					Add(Left = new TI.Real());
					Add(Right = new TI.Real());
					Add(Top = new TI.Real());
					Add(Bottom = new TI.Real());
					Add(RegistrationPoint = new TI.RealPoint2D());
				}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:10,代码来源:Resources.cs


示例13: geometry_block_resource_block

		public TI.LongInteger Offset; // ResourcePtr

		public geometry_block_resource_block() : base(8)
		{
			Add(Type = new TI.Enum(TI.FieldType.ByteEnum));
			Add(AlignmentBit = new TI.ByteInteger());
			Add(FieldOffset = new TI.ShortInteger());
			Add(PrimaryLocater = new TI.ShortInteger());
			Add(SecondaryLocater = new TI.ShortInteger());
			Add(Size = new TI.LongInteger());
			Add(Offset = new TI.LongInteger());
		}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:12,代码来源:CacheableResource.cs


示例14: antenna_vertex_block

			public antenna_vertex_block() : base(9)
			{
				Add(SpringStrengthCoefficent = new TI.Real(BlamLib.TagInterface.FieldType.RealFraction));
				Add(new TI.Pad(24));
				Add(Angles = new TI.RealEulerAngles2D());
				Add(Length = new TI.Real());
				Add(SequenceIndex = new TI.ShortInteger());
				Add(new TI.Pad(2));
				Add(Color = new TI.RealColor(BlamLib.TagInterface.FieldType.RealArgbColor));
				Add(LodColor = new TI.RealColor(BlamLib.TagInterface.FieldType.RealArgbColor));
				Add(new TI.Pad(40 + 12));
			}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:12,代码来源:ObjectWidgets.cs


示例15: sound_permutations_block

				public sound_permutations_block() : base(9)
				{
					Add(Name = new TI.String());
					Add(SkipFraction = new TI.Real(BlamLib.TagInterface.FieldType.RealFraction));
					Add(Gain = new TI.Real(BlamLib.TagInterface.FieldType.RealFraction));
					Add(Compression = new TI.Enum());
					Add(NextPermutationIndex = new TI.ShortInteger());
					Add(new TI.Pad(20));
					Add(Samples = new TI.Data(this, BlamLib.TagInterface.DataType.Sound));
					Add(Mouth = new TI.Data(this));
					Add(SubtitleData = new TI.Data(this));
				}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:12,代码来源:Sound.cs


示例16: bitmap_texture_interop_resource

			public bitmap_texture_interop_resource() : base(4)
			{
				Add(BitmapData = new TI.Data(this));
				Add(UnknownData = new TI.Data(this));
				Add(Width = new TI.ShortInteger());
				Add(Height = new TI.ShortInteger());
				Add(Unknown2C = new TI.ByteInteger());
				Add(Unknown2D = new TI.ByteInteger());
				Add(Unknown2E = new TI.ByteInteger());
				Add(Unknown2F = new TI.ByteInteger());
				Add(Unknown30 = new TI.LongInteger());
			}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:12,代码来源:CacheTagsGen3rd.cs


示例17: bitmap_data_block

			public bitmap_data_block() : base(14)
			{
				Add(Signature = new TI.Tag());
				Add(Width = new TI.ShortInteger());
				Add(Height = new TI.ShortInteger());
				Add(Depth = new TI.ShortInteger());
				Add(Type = new TI.Enum());
				Add(Format = new TI.Enum());
				Add(Flags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
				Add(RegistrationPoint = new TI.Point2D());
				Add(MipmapCount = new TI.ShortInteger());
				Add(new TI.Pad(2));
				Add(PixelsOffset = new TI.LongInteger());
				Add(new TI.Skip(12));
				Add(HardwareFormat = new TI.LongInteger());
				Add(BaseAddress = new TI.LongInteger());
			}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:17,代码来源:Resources.cs


示例18: global_hud_element_struct

		public global_hud_element_struct() : base(13)
		{
			Add(AnchorOffset = new TI.Point2D());
			Add(WidthScale = new TI.Real());
			Add(HeightScale = new TI.Real());
			Add(ScalingFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
			Add(new TI.Pad(2 + 20));
			Add(DefaultColor = new TI.Color());
			Add(FlashingColor = new TI.Color());
			Add(FlashPeriod = new TI.Real());
			Add(FlashDelay = new TI.Real());
			Add(NumberOfFlashes = new TI.ShortInteger());
			Add(FlashFlags = new TI.Flags(BlamLib.TagInterface.FieldType.WordFlags));
			Add(FlashLength = new TI.Real());
			Add(DisabledColor = new TI.Color());

			// i think the 4 byte padding that follows this should be here...
		}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:18,代码来源:Hud.cs


示例19: player_control_block

			public player_control_block() : base(15)
			{
				Add(MagnetismFriction = new TI.Real(BlamLib.TagInterface.FieldType.RealFraction));
				Add(MagnetismAdhesion = new TI.Real(BlamLib.TagInterface.FieldType.RealFraction));
				Add(InconsequentialTargetScale = new TI.Real(BlamLib.TagInterface.FieldType.RealFraction));
				Add(new TI.Pad(52));
				Add(LookAccelerationTime = new TI.Real());
				Add(LookAccelerationScale = new TI.Real());
				Add(LookPegThreshold = new TI.Real(BlamLib.TagInterface.FieldType.RealFraction));
				Add(LookDefaultPitchRate = new TI.Real());
				Add(LookDefaultYawRate = new TI.Real());
				Add(LookAutolevelingScale = new TI.Real());
				Add(new TI.Pad(20));
				Add(MinWeaponSwapTicks = new TI.ShortInteger());
				Add(MinAutolevelingTicks = new TI.ShortInteger());
				Add(MinAngleForVehicleFlipping = new TI.Real(BlamLib.TagInterface.FieldType.Angle));
				Add(LookFunction = new TI.Block<field_block<TI.Real>>(this, 16));
			}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:18,代码来源:Globals.cs


示例20: sound_environment_group

		public sound_environment_group() : base(16)
		{
			Add(new TI.Pad(4));
			Add(Priority = new TI.ShortInteger());
			Add(new TI.Pad(2));
			Add(RoomIntensity = new TI.Real());
			Add(RoomIntensityHf = new TI.Real());
			Add(RoomRollOff = new TI.Real());
			Add(DecayTime = new TI.Real());
			Add(DecayHfRatio = new TI.Real());
			Add(ReflectionsIntensity = new TI.Real());
			Add(ReflectionsDelay = new TI.Real());
			Add(ReverbIntensity = new TI.Real());
			Add(ReverbDelay = new TI.Real());
			Add(Diffusion = new TI.Real());
			Add(Denstiy = new TI.Real());
			Add(HfReference = new TI.Real());
			Add(new TI.Pad(16));
		}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:19,代码来源:Sound.cs



注:本文中的BlamLib.TagInterface.ShortInteger类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# TI.Block类代码示例发布时间:2022-05-24
下一篇:
C# TagInterface.Real类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap