public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader) { System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader)); this.VehicleVehicleFlags = ((VehicleFlags)(binaryReader.ReadInt32())); this.Type = ((TypeEnum)(binaryReader.ReadInt16())); this.Control = ((ControlEnum)(binaryReader.ReadInt16())); this.MaximumForwardSpeed = binaryReader.ReadSingle(); this.MaximumReverseSpeed = binaryReader.ReadSingle(); this.SpeedAcceleration = binaryReader.ReadSingle(); this.SpeedDeceleration = binaryReader.ReadSingle(); this.MaximumLeftTurn = binaryReader.ReadSingle(); this.MaximumRightTurn = binaryReader.ReadSingle(); this.WheelCircumference = binaryReader.ReadSingle(); this.TurnRate = binaryReader.ReadSingle(); this.BlurSpeed = binaryReader.ReadSingle(); this.SpecificType = ((SpecificTypeEnum)(binaryReader.ReadInt16())); this.PlayerTrainingVehicleType = ((PlayerTrainingVehicleTypeEnum)(binaryReader.ReadInt16())); this.FlipMessage = binaryReader.ReadStringID(); this.TurnScale = binaryReader.ReadSingle(); this.SpeedTurnPenaltyPower = binaryReader.ReadSingle(); this.SpeedTurnPenalty = binaryReader.ReadSingle(); this.MaximumLeftSlide = binaryReader.ReadSingle(); this.MaximumRightSlide = binaryReader.ReadSingle(); this.SlideAcceleration = binaryReader.ReadSingle(); this.SlideDeceleration = binaryReader.ReadSingle(); this.MinimumFlippingAngularVelocity = binaryReader.ReadSingle(); this.MaximumFlippingAngularVelocity = binaryReader.ReadSingle(); this.VehicleSize = ((VehicleSizeEnum)(binaryReader.ReadInt16())); this.fieldpad4 = binaryReader.ReadBytes(2); this.FixedGunYaw = binaryReader.ReadSingle(); this.FixedGunPitch = binaryReader.ReadSingle(); this.OverdampenCuspAngle = binaryReader.ReadSingle(); this.OverdampenExponent = binaryReader.ReadSingle(); this.CrouchTransitionTime = binaryReader.ReadSingle(); this.fieldpad5 = binaryReader.ReadBytes(4); this.EngineMoment = binaryReader.ReadSingle(); this.EngineMaxAngularVelocity = binaryReader.ReadSingle(); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(68)); this.FlyingTorqueScale = binaryReader.ReadSingle(); this.SeatEnteranceAccelerationScale = binaryReader.ReadSingle(); this.SeatExitAccelersationScale = binaryReader.ReadSingle(); this.AirFrictionDeceleration = binaryReader.ReadSingle(); this.ThrustScale = binaryReader.ReadSingle(); this.SuspensionSound = binaryReader.ReadTagReference(); this.CrashSound = binaryReader.ReadTagReference(); this.UNUSED = binaryReader.ReadTagReference(); this.SpecialEffect = binaryReader.ReadTagReference(); this.UnusedEffect = binaryReader.ReadTagReference(); pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.HavokVehiclePhysics.ReadFields(binaryReader))); return(pointerQueue); }
public static WinchEntity Create(VehicleSizeEnum vehicleSizeEnum) { var id = Guid.NewGuid(); switch (vehicleSizeEnum) { case VehicleSizeEnum.Small: break; case VehicleSizeEnum.Average: break; case VehicleSizeEnum.Big: break; default: throw new ApplicationException("Porte de guincho desconhecido."); } return(null); }
public static VehicleEntity Create(string model, VehicleSizeEnum vehicleSize) { var newGuid = Guid.NewGuid(); switch (vehicleSize) { case VehicleSizeEnum.Big: var bigVehicleEntity = CreateBigVehicle(model, newGuid); return(bigVehicleEntity); case VehicleSizeEnum.Average: var averageVehicleEntity = CreateAverageVehicle(model, newGuid); return(averageVehicleEntity); case VehicleSizeEnum.Small: var smallVehicleEntity = CreateSmallVehicle(model, newGuid); return(smallVehicleEntity); default: throw new ApplicationException("Porte de veículo desconhecido."); } }
protected VehicleEntity(Guid id, string model, VehicleSizeEnum vehicleSize) { Id = id; Model = model; VehicleSize = vehicleSize; }
protected WinchEntity(VehicleSizeEnum vehicleSize) { VehicleSize = vehicleSize; }
public abstract VehicleEntity CreateVehicle(string model, VehicleSizeEnum vehicleSizeEnum);
public override VehicleEntity CreateVehicle(string model, VehicleSizeEnum vehicleSizeEnum) { throw new NotImplementedException(); }