本文整理汇总了C#中RecordReader.ReadInt32方法的典型用法代码示例。如果您正苦于以下问题:C# RecordReader.ReadInt32方法的具体用法?C# RecordReader.ReadInt32怎么用?C# RecordReader.ReadInt32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RecordReader
的用法示例。
在下文中一共展示了RecordReader.ReadInt32方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadField
internal override void ReadField(RecordReader reader)
{
Sound = reader.ReadReference(FormKindSet.SndrOnly);
Type = (WeatherSoundType)reader.ReadInt32();
}
示例2: ReadField
internal override void ReadField(RecordReader reader)
{
BodyParts = (BodyParts)reader.ReadUInt32();
SkillUsage = (ArmorSkillUsage)reader.ReadInt32();
}
示例3: ReadField
internal override void ReadField(RecordReader reader)
{
Projectile = reader.ReadReference(FormKindSet.ProjOnly);
Flags = (AmmoFlags)reader.ReadUInt32();
Damage = reader.ReadSingle();
Value = reader.ReadInt32();
}
示例4: ReadField
internal override void ReadField(RecordReader reader)
{
// Read flags and skip 3 bytes
Flags = (ConditionFlags)reader.ReadByte();
reader.Seek(3);
// Read either global variable reference or float
if (Flags.HasFlag(ConditionFlags.UseGlobal))
Operand.GlobalVariable = reader.ReadReference(FormKindSet.GlobOnly);
else
Operand.FloatValue = reader.ReadSingle();
// Read function code and skip 2 bytes
Function = (Function)reader.ReadUInt16();
reader.Seek(2);
// Warn if unknown function - no enum value is defined for it
if (!Enum.IsDefined(typeof(Function), Function))
Log.Warning("Function '{0}' was not recorgnised and any of parameter references may have may get scrambled.", Function);
// Find function signature
var signature = SignatureProvider.Default.GetSignature(Function);
// Read function params
// References must be read with ReadReference function
if (signature[0].IsReference)
Params.UInt32_0 = reader.ReadReference(signature[0].Reference);
else
Params.Int32_0 = reader.ReadInt32();
if (signature[1].IsReference)
Params.UInt32_1 = reader.ReadReference(signature[1].Reference);
else
Params.Int32_1 = reader.ReadInt32();
Target = (FunctionTarget)reader.ReadUInt32();
TargetReference = reader.ReadReference(FormKindSet.Any);
// Third parameter
IntParam3 = reader.ReadInt32();
}
示例5: ReadField
internal override void ReadField(RecordReader reader)
{
Flags = (Flags)reader.ReadUInt32();
Duration = reader.ReadSingle();
for (int i = 0; i < Sizes1.Length; i++)
Sizes1[i] = reader.ReadInt32();
BlurFlags = (BlurFlags)reader.ReadUInt32();
BlurCenterX = reader.ReadSingle();
BlurCenterY = reader.ReadSingle();
for (int i = 0; i < Sizes2.Length; i++)
Sizes2[i] = reader.ReadInt32();
DepthOfFieldFlags = (DepthOfFieldFlags)reader.ReadUInt32();
for (int i = 0; i < Sizes3.Length; i++)
Sizes3[i] = reader.ReadInt32();
if (reader.Context.GameTitle == Games.Fallout4 && !reader.IsEndOfSegment)
{
// Two new values in Fallout 4
Sizes4 = new int[2];
for (int i = 0; i < Sizes4.Length; i++)
Sizes4[i] = reader.ReadInt32();
}
}
示例6: ReadField
internal override void ReadField(RecordReader reader)
{
WeaponType = (WeaponType)(reader.ReadInt32() & 0xFF);
Speed = reader.ReadSingle();
Reach = reader.ReadSingle();
Flags = (WeaponFlags)reader.ReadUInt16();
Unknown1 = reader.ReadUInt16();
SightFov = reader.ReadSingle();
Unknown2 = reader.ReadSingle();
VatsToHitChance = reader.ReadByte();
AttackAnimation = (AttackAnimation)reader.ReadByte();
Projectiles = reader.ReadByte();
EmbeddedWeapon = reader.ReadByte();
MinRange = reader.ReadSingle();
MaxRange = reader.ReadSingle();
OnHitBehavior = (OnHitBehavior)reader.ReadUInt32();
Flags2 = (WeaponFlags2)reader.ReadUInt32();
AttackAnimationMultiplier = reader.ReadSingle();
Unknown3 = reader.ReadSingle();
RumbleLeftMotorStrength = reader.ReadSingle();
RumbleRightMotosStrength = reader.ReadSingle();
RumbleDuration = reader.ReadSingle();
Unknown4 = reader.ReadUInt32();
Unknown5 = reader.ReadUInt32();
Unknown6 = reader.ReadUInt32();
Skill = (ActorValue)reader.ReadInt32();
Unknown7 = reader.ReadUInt32();
Unknown8 = reader.ReadUInt32();
Resist = (ActorValue)reader.ReadInt32();
Unknown9 = reader.ReadUInt32();
Stagger = reader.ReadSingle();
}
示例7: ReadField
internal override void ReadField(RecordReader reader)
{
Version = reader.ReadSingle();
NumRecords = reader.ReadInt32();
NextFormId = reader.ReadUInt32();
}
示例8: ReadField
internal override void ReadField(RecordReader reader)
{
Value = reader.ReadInt32();
Flags = (PotionFlags)reader.ReadUInt32();
Addiction = reader.ReadReference(FormKindSet.Any);
AddictionChance = reader.ReadSingle();
ConsumeSound = reader.ReadReference(FormKindSet.SndrOnly);
}