示例#1
0
 internal ActorStartingLocationsBlockBase(BinaryReader binaryReader)
 {
     this.name                    = binaryReader.ReadStringID();
     this.position                = binaryReader.ReadVector3();
     this.referenceFrame          = binaryReader.ReadInt16();
     this.invalidName_            = binaryReader.ReadBytes(2);
     this.facingYawPitchDegrees   = binaryReader.ReadVector2();
     this.flags                   = (Flags)binaryReader.ReadInt32();
     this.characterType           = binaryReader.ReadShortBlockIndex1();
     this.initialWeapon           = binaryReader.ReadShortBlockIndex1();
     this.initialSecondaryWeapon  = binaryReader.ReadShortBlockIndex1();
     this.invalidName_0           = binaryReader.ReadBytes(2);
     this.vehicleType             = binaryReader.ReadShortBlockIndex1();
     this.seatType                = (SeatType)binaryReader.ReadInt16();
     this.grenadeType             = (GrenadeType)binaryReader.ReadInt16();
     this.swarmCount              = binaryReader.ReadInt16();
     this.actorVariantName        = binaryReader.ReadStringID();
     this.vehicleVariantName      = binaryReader.ReadStringID();
     this.initialMovementDistance = binaryReader.ReadSingle();
     this.emitterVehicle          = binaryReader.ReadShortBlockIndex1();
     this.initialMovementMode     = (InitialMovementMode)binaryReader.ReadInt16();
     this.placementScript         = binaryReader.ReadString32();
     this.invalidName_1           = binaryReader.ReadBytes(2);
     this.invalidName_2           = binaryReader.ReadBytes(2);
 }
示例#2
0
 public ActorStartingLocationsBlock(BinaryReader binaryReader)
 {
     this.name = binaryReader.ReadStringID();
     this.position = binaryReader.ReadVector3();
     this.referenceFrame = binaryReader.ReadInt16();
     this.padding = binaryReader.ReadBytes(2);
     this.facingYawPitchDegrees = binaryReader.ReadVector2();
     this.flags = (Flags)binaryReader.ReadInt32();
     this.characterType = binaryReader.ReadShortBlockIndex1();
     this.initialWeapon = binaryReader.ReadShortBlockIndex1();
     this.initialSecondaryWeapon = binaryReader.ReadShortBlockIndex1();
     this.padding0 = binaryReader.ReadBytes(2);
     this.vehicleType = binaryReader.ReadShortBlockIndex1();
     this.seatType = (SeatType)binaryReader.ReadInt16();
     this.grenadeType = (GrenadeType)binaryReader.ReadInt16();
     this.swarmCountNumberOfCreturesInSwarmIfASwarmIsSpawnedAtThisLocation = binaryReader.ReadInt16();
     this.actorVariantName = binaryReader.ReadStringID();
     this.vehicleVariantName = binaryReader.ReadStringID();
     this.initialMovementDistanceBeforeDoingAnythingElseTheActorWillTravelTheGivenDistanceInItsForwardDirection = binaryReader.ReadSingle();
     this.emitterVehicle = binaryReader.ReadShortBlockIndex1();
     this.initialMovementMode = (InitialMovementMode)binaryReader.ReadInt16();
     this.placementScript = binaryReader.ReadString32();
     this.skip1 = binaryReader.ReadBytes(2);
     this.padding2 = binaryReader.ReadBytes(2);
 }